data-collection-start.txt                                                                           0000644 0000000 0000000 00000000035 11524347556 014524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Mon Feb  7 20:57:32 EST 2011
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/                                                                             0000777 0000000 0000000 00000000000 11524350245 014224  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/                                                                     0000777 0000000 0000000 00000000000 11524350220 015616  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/                                                        0000777 0000000 0000000 00000000000 11524347724 017743  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/proc/                                                   0000777 0000000 0000000 00000000000 11524347577 020714  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/proc/cpuinfo                                            0000644 0000000 0000000 00000031166 11524347576 022304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 0
cpu cores	: 4
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4533.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 1
cpu cores	: 4
apicid		: 2
initial apicid	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.64
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 2
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 2
cpu cores	: 4
apicid		: 4
initial apicid	: 4
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.64
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 6
initial apicid	: 6
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.64
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 4
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 0
cpu cores	: 4
apicid		: 16
initial apicid	: 16
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 5
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 1
cpu cores	: 4
apicid		: 18
initial apicid	: 18
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 6
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 2
cpu cores	: 4
apicid		: 20
initial apicid	: 20
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 7
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 22
initial apicid	: 22
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 8
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 0
cpu cores	: 4
apicid		: 1
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.79
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 9
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 1
cpu cores	: 4
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 10
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 2
cpu cores	: 4
apicid		: 5
initial apicid	: 5
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.67
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 11
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 7
initial apicid	: 7
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 12
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 0
cpu cores	: 4
apicid		: 17
initial apicid	: 17
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 13
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 1
cpu cores	: 4
apicid		: 19
initial apicid	: 19
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 14
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 2
cpu cores	: 4
apicid		: 21
initial apicid	: 21
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 15
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 23
initial apicid	: 23
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/proc/swaps                                              0000644 0000000 0000000 00000000144 11524347577 021767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/dm-1                               partition	4194296	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/proc/devices                                            0000644 0000000 0000000 00000000721 11524347576 022254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  8 sd
  9 md
 11 sr
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
253 device-mapper
254 mdp
                                               Physical_Configuration/Clients/tb3-client02/proc/modules                                            0000644 0000000 0000000 00000005001 11524347576 022276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   tun 16825 10 - Live 0xffffffffa0260000
fuse 66138 2 - Live 0xffffffffa0205000
autofs4 27683 3 - Live 0xffffffffa044b000
nfs 348522 1 - Live 0xffffffffa03df000
lockd 73984 1 nfs, Live 0xffffffffa03c3000
fscache 46761 1 nfs, Live 0xffffffffa03ad000
nfs_acl 2677 1 nfs, Live 0xffffffffa03a7000
auth_rpcgss 44862 1 nfs, Live 0xffffffffa0394000
sunrpc 241630 16 nfs,lockd,nfs_acl,auth_rpcgss, Live 0xffffffffa0341000
cpufreq_ondemand 10382 16 - Live 0xffffffffa0338000
acpi_cpufreq 8593 0 - Live 0xffffffffa032f000
freq_table 4847 2 cpufreq_ondemand,acpi_cpufreq, Live 0xffffffffa0328000
bridge 74113 0 - Live 0xffffffffa0303000
stp 2107 1 bridge, Live 0xffffffffa02fd000
llc 5608 2 bridge,stp, Live 0xffffffffa02f5000
ipv6 321209 58 - Live 0xffffffffa0290000
vfat 10646 1 - Live 0xffffffffa0266000
fat 55086 1 vfat, Live 0xffffffffa0250000
dm_mirror 14003 0 - Live 0xffffffffa0246000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa023d000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0234000
kvm_intel 45674 21 - Live 0xffffffffa021a000
kvm 291811 1 kvm_intel, Live 0xffffffffa01bb000
uinput 8182 0 - Live 0xffffffffa01b4000
sg 30186 0 - Live 0xffffffffa01a5000
cdc_ether 8332 0 - Live 0xffffffffa019c000
usbnet 19001 1 cdc_ether, Live 0xffffffffa0151000
mii 5205 1 usbnet, Live 0xffffffffa0136000
serio_raw 4816 0 - Live 0xffffffffa00c4000
i2c_i801 11190 0 - Live 0xffffffffa0020000
i2c_core 31274 1 i2c_i801, Live 0xffffffffa018d000
iTCO_wdt 11708 0 - Live 0xffffffffa0090000
iTCO_vendor_support 3022 1 iTCO_wdt, Live 0xffffffffa0065000
shpchp 33448 0 - Live 0xffffffffa009b000
ioatdma 57872 152 - Live 0xffffffffa017c000
dca 7099 1 ioatdma, Live 0xffffffffa0051000
i7core_edac 17543 0 - Live 0xffffffffa00bd000
edac_core 46055 4 i7core_edac, Live 0xffffffffa0128000
e1000e 140051 0 - Live 0xffffffffa0157000
bnx2 75826 0 - Live 0xffffffffa013c000
ext4 353979 2 - Live 0xffffffffa00cf000
mbcache 7918 1 ext4, Live 0xffffffffa00c7000
jbd2 89033 1 ext4, Live 0xffffffffa00a5000
sr_mod 16162 0 - Live 0xffffffffa0095000
cdrom 39769 1 sr_mod, Live 0xffffffffa0084000
sd_mod 37221 4 - Live 0xffffffffa0073000
crc_t10dif 1507 1 sd_mod, Live 0xffffffffa006d000
ata_generic 3611 0 - Live 0xffffffffa0054000
pata_acpi 3667 0 - Live 0xffffffffa0024000
ata_piix 22588 0 - Live 0xffffffffa003f000
mptsas 51510 3 - Live 0xffffffffa0056000
mptscsih 35302 1 mptsas, Live 0xffffffffa0046000
mptbase 91106 2 mptsas,mptscsih, Live 0xffffffffa0026000
scsi_transport_sas 35036 1 mptsas, Live 0xffffffffa0015000
dm_mod 76856 8 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/proc/partitions                                         0000644 0000000 0000000 00000000317 11524347577 023030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

   8        0  140623872 sda
   8        1     204800 sda1
   8        2     512000 sda2
   8        3  139905024 sda3
 253        0  135708672 dm-0
 253        1    4194304 dm-1
                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/proc/meminfo                                            0000644 0000000 0000000 00000002222 11524347576 022262  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:       33003228 kB
MemFree:         7996592 kB
Buffers:           76540 kB
Cached:          5112088 kB
SwapCached:            0 kB
Active:         21503800 kB
Inactive:        2409420 kB
Active(anon):   18723908 kB
Inactive(anon):     4304 kB
Active(file):    2779892 kB
Inactive(file):  2405116 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       4194296 kB
SwapFree:        4194296 kB
Dirty:               152 kB
Writeback:             0 kB
AnonPages:      18724796 kB
Mapped:            50328 kB
Shmem:              3608 kB
Slab:             737204 kB
SReclaimable:     135524 kB
SUnreclaim:       601680 kB
KernelStack:        4072 kB
PageTables:        67940 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    20695908 kB
Committed_AS:   19565340 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      379040 kB
VmallocChunk:   34340898884 kB
HardwareCorrupted:     0 kB
AnonHugePages:  18544640 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8192 kB
DirectMap2M:    33538048 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/vgdisplay.txt                                           0000644 0000000 0000000 00000001172 11524347724 022503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                     --- Volume group ---
  VG Name               vg_tb3client02
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               133.42 GiB
  PE Size               4.00 MiB
  Total PE              34156
  Alloc PE / Size       34156 / 133.42 GiB
  Free  PE / Size       0 / 0   
  VG UUID               2gagqf-QYwH-WkCo-NoFT-ANiW-tK46-1RWVOw
   
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile02/                                                 0000777 0000000 0000000 00000000000 11524347641 021040  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/proc/                                            0000777 0000000 0000000 00000000000 11524347640 022002  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/proc/cpuinfo                                     0000644 0000000 0000000 00000002012 11524347640 023357  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.548
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.548
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile02/proc/swaps                                       0000644 0000000 0000000 00000000150 11524347640 023052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	79272	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile02/proc/devices                                     0000644 0000000 0000000 00000000567 11524347640 023353  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile02/proc/modules                                     0000644 0000000 0000000 00000002547 11524347640 023401  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa0259000
stp 2107 1 bridge, Live 0xffffffffa0253000
llc 5608 2 bridge,stp, Live 0xffffffffa024b000
autofs4 27683 3 - Live 0xffffffffa023e000
sunrpc 241630 1 - Live 0xffffffffa01eb000
ipv6 321209 565 - Live 0xffffffffa0156000
dm_mirror 14003 0 - Live 0xffffffffa012a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0121000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0118000
ppdev 8695 0 - Live 0xffffffffa010a000
parport_pc 22944 0 - Live 0xffffffffa00fd000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa00eb000
sg 30186 0 - Live 0xffffffffa00dc000
virtio_net 15665 0 - Live 0xffffffffa00d2000
i2c_piix4 12574 0 - Live 0xffffffffa00c9000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00b9000
ext3 133830 1 - Live 0xffffffffa008d000
jbd 54576 1 ext3, Live 0xffffffffa0076000
mbcache 7918 1 ext3, Live 0xffffffffa006e000
virtio_blk 5087 3 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
ata_generic 3611 0 - Live 0xffffffffa0030000
pata_acpi 3667 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile02/proc/partitions                                  0000644 0000000 0000000 00000000165 11524347640 024117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile02/proc/meminfo                                     0000644 0000000 0000000 00000002222 11524347640 023351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        3605932 kB
MemFree:         3358584 kB
Buffers:            2652 kB
Cached:            26088 kB
SwapCached:         6148 kB
Active:            75964 kB
Inactive:          28620 kB
Active(anon):      60736 kB
Inactive(anon):    15052 kB
Active(file):      15228 kB
Inactive(file):    13568 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        1968720 kB
Dirty:               504 kB
Writeback:             0 kB
AnonPages:         72132 kB
Mapped:             7256 kB
Shmem:                 0 kB
Slab:             114092 kB
SReclaimable:      32236 kB
SUnreclaim:        81856 kB
KernelStack:        1648 kB
PageTables:         3424 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3850956 kB
Committed_AS:     767204 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19136 kB
VmallocChunk:   34359715008 kB
HardwareCorrupted:     0 kB
AnonHugePages:     43008 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     3661824 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile02/lspci.txt                                        0000644 0000000 0000000 00000000744 11524347637 022721  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
                            Physical_Configuration/Clients/tb3-client02/tile02/df.txt                                           0000644 0000000 0000000 00000000276 11524347620 022170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8185252   4595684  65% /
tmpfs                  1802964         0   1802964   0% /dev/shm
                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/tile02/mount.txt                                        0000644 0000000 0000000 00000000434 11524347640 022737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile02/etc/                                             0000777 0000000 0000000 00000000000 11524347637 021620  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/                                        0000777 0000000 0000000 00000000000 11524347631 022440  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/                                  0000777 0000000 0000000 00000000000 11524347637 023357  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K02libvirt-guests                 0000755 0000000 0000000 00000017172 11524347631 026543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K02oddjobd                        0000755 0000000 0000000 00000004325 11524347631 025161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K69rpcsvcgssd                     0000755 0000000 0000000 00000006014 11524347632 025750  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K95cgconfig                       0000755 0000000 0000000 00000012327 11524347635 025354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S55sshd                           0000755 0000000 0000000 00000010671 11524347637 024544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K80fcoe                           0000755 0000000 0000000 00000005775 11524347633 024512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K15httpd                          0000755 0000000 0000000 00000006364 11524347632 024711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K92ip6tables                      0000755 0000000 0000000 00000020716 11524347634 025463  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K80sssd                           0000755 0000000 0000000 00000004731 11524347633 024541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S58ntpd                           0000755 0000000 0000000 00000003603 11524347637 024550  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K02avahi-daemon                   0000755 0000000 0000000 00000004754 11524347631 026113  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K89rdisc                          0000755 0000000 0000000 00000003027 11524347634 024700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K76ipsec                          0000755 0000000 0000000 00000010777 11524347633 024704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S22messagebus                     0000755 0000000 0000000 00000004230 11524347636 025724  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K95firstboot                      0000755 0000000 0000000 00000005341 11524347635 025606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K86cgred                          0000755 0000000 0000000 00000006302 11524347634 024654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S13rpcbind                        0000755 0000000 0000000 00000004031 11524347636 025206  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S13irqbalance                     0000755 0000000 0000000 00000003521 11524347636 025671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K84NetworkManager                 0000755 0000000 0000000 00000004235 11524347633 026514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K99sysstat                        0000755 0000000 0000000 00000002363 11524347635 025312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K50dnsmasq                        0000755 0000000 0000000 00000002577 11524347632 025235  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K01certmonger                     0000755 0000000 0000000 00000004054 11524347631 025717  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K85mdmonitor                      0000755 0000000 0000000 00000005013 11524347634 025575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K36mysqld                         0000755 0000000 0000000 00000012460 11524347632 025074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K80lldpad                         0000755 0000000 0000000 00000014323 11524347633 025023  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K88nslcd                          0000755 0000000 0000000 00000003213 11524347634 024673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K75ntpdate                        0000755 0000000 0000000 00000003512 11524347633 025224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K89iscsid                         0000755 0000000 0000000 00000007127 11524347634 025057  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K73ypbind                         0000755 0000000 0000000 00000011277 11524347632 025056  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S10network                        0000755 0000000 0000000 00000014466 11524347635 025267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S12rsyslog                        0000755 0000000 0000000 00000004326 11524347635 025274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S11auditd                         0000755 0000000 0000000 00000006462 11524347635 025046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K84wpa_supplicant                 0000755 0000000 0000000 00000003512 11524347633 026616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S20kdump                          0000755 0000000 0000000 00000027662 11524347636 024722  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K87multipathd                     0000755 0000000 0000000 00000004473 11524347634 025753  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S26haldaemon                      0000755 0000000 0000000 00000003245 11524347636 025527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K60crond                          0000755 0000000 0000000 00000005445 11524347632 024672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K03rhnsd                          0000755 0000000 0000000 00000005522 11524347631 024673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K36postgresql                     0000755 0000000 0000000 00000012406 11524347632 025766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S00microcode_ctl                  0000755 0000000 0000000 00000002221 11524347635 026365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K10saslauthd                      0000755 0000000 0000000 00000004010 11524347631 025532  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K88iscsi                          0000755 0000000 0000000 00000007315 11524347634 024711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K60nfs                            0000755 0000000 0000000 00000013536 11524347632 024353  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S30nscd                           0000755 0000000 0000000 00000004723 11524347637 024524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S24rpcgssd                        0000755 0000000 0000000 00000006050 11524347636 025237  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K10psacct                         0000755 0000000 0000000 00000003024 11524347631 025023  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S26acpid                          0000755 0000000 0000000 00000003275 11524347636 024662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S13cpuspeed                       0000755 0000000 0000000 00000025442 11524347635 025405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S26udev-post                      0000755 0000000 0000000 00000004370 11524347636 025525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S99local                          0000755 0000000 0000000 00000000334 11524347637 024700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K50netconsole                     0000755 0000000 0000000 00000005650 11524347632 025733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S24rpcidmapd                      0000755 0000000 0000000 00000005222 11524347636 025535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S02lvm2-monitor                   0000555 0000000 0000000 00000004612 11524347635 026132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S28autofs                         0000755 0000000 0000000 00000007234 11524347637 025105  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K01smartd                         0000755 0000000 0000000 00000005672 11524347631 025053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S55autobench                      0000755 0000000 0000000 00000005063 11524347637 025552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S25netfs                          0000755 0000000 0000000 00000012432 11524347636 024713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K30postfix                        0000755 0000000 0000000 00000007414 11524347632 025254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/S24nfslock                        0000755 0000000 0000000 00000006675 11524347636 025246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K92iptables                       0000755 0000000 0000000 00000020557 11524347634 025400  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K87restorecond                    0000755 0000000 0000000 00000003427 11524347634 026125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/rc3.d/K05atd                            0000755 0000000 0000000 00000004112 11524347631 024321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/                                 0000777 0000000 0000000 00000000000 11524347630 023624  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/network                          0000755 0000000 0000000 00000014466 11524347626 025257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/sysstat                          0000755 0000000 0000000 00000002363 11524347630 025264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/saslauthd                        0000755 0000000 0000000 00000004010 11524347630 025531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/messagebus                       0000755 0000000 0000000 00000004230 11524347625 025707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/autobench                        0000755 0000000 0000000 00000005063 11524347622 025523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/atd                              0000755 0000000 0000000 00000004112 11524347622 024315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/mcelogd                          0000755 0000000 0000000 00000003535 11524347625 025172  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/auditd                           0000755 0000000 0000000 00000006462 11524347622 025031  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/certmonger                       0000755 0000000 0000000 00000004054 11524347622 025717  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/mysqld                           0000755 0000000 0000000 00000012460 11524347625 025066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/irqbalance                       0000755 0000000 0000000 00000003521 11524347624 025653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/acpid                            0000755 0000000 0000000 00000003275 11524347622 024636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/iscsid                           0000755 0000000 0000000 00000007127 11524347624 025036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/nscd                             0000755 0000000 0000000 00000004723 11524347626 024510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/rpcidmapd                        0000755 0000000 0000000 00000005222 11524347627 025520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/nfs                              0000755 0000000 0000000 00000013536 11524347626 024351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/sssd                             0000755 0000000 0000000 00000004731 11524347630 024527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/crond                            0000755 0000000 0000000 00000005445 11524347623 024665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/ip6tables                        0000755 0000000 0000000 00000020716 11524347624 025450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/firstboot                        0000755 0000000 0000000 00000005341 11524347623 025566  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/autofs                           0000755 0000000 0000000 00000007234 11524347622 025056  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/sshd                             0000755 0000000 0000000 00000010671 11524347630 024514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/libvirt-guests                   0000755 0000000 0000000 00000017172 11524347625 026545  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/avahi-daemon                     0000755 0000000 0000000 00000004754 11524347622 026112  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/iscsi                            0000755 0000000 0000000 00000007315 11524347624 024671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/ypbind                           0000755 0000000 0000000 00000011277 11524347630 025043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/psacct                           0000755 0000000 0000000 00000003024 11524347627 025030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/fcoe                             0000755 0000000 0000000 00000005775 11524347623 024502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/nfslock                          0000755 0000000 0000000 00000006675 11524347626 025230  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/cgred                            0000755 0000000 0000000 00000006302 11524347622 024634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/udev-post                        0000755 0000000 0000000 00000004370 11524347630 025500  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/haldaemon                        0000755 0000000 0000000 00000003245 11524347623 025504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/ipsec                            0000755 0000000 0000000 00000010777 11524347624 024670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/rpcbind                          0000755 0000000 0000000 00000004031 11524347627 025173  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/rhnsd                            0000755 0000000 0000000 00000005522 11524347627 024676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/dnsmasq                          0000755 0000000 0000000 00000002577 11524347623 025231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/functions                        0000644 0000000 0000000 00000042767 11524347623 025575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/kdump                            0000755 0000000 0000000 00000027662 11524347624 024706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/lldpad                           0000755 0000000 0000000 00000014323 11524347625 025015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/postfix                          0000755 0000000 0000000 00000007414 11524347627 025256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/iptables                         0000755 0000000 0000000 00000020557 11524347624 025365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/multipathd                       0000755 0000000 0000000 00000004473 11524347625 025735  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/rsyslog                          0000755 0000000 0000000 00000004326 11524347630 025255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/NetworkManager                   0000755 0000000 0000000 00000004235 11524347621 026476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/netconsole                       0000755 0000000 0000000 00000005650 11524347625 025731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/rpcgssd                          0000755 0000000 0000000 00000006050 11524347627 025222  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/lvm2-monitor                     0000555 0000000 0000000 00000004612 11524347625 026120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/halt                             0000755 0000000 0000000 00000012723 11524347623 024505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/cgconfig                         0000755 0000000 0000000 00000012327 11524347622 025333  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/single                           0000755 0000000 0000000 00000001207 11524347630 025027  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/postgresql                       0000755 0000000 0000000 00000012406 11524347627 025762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/mdmonitor                        0000755 0000000 0000000 00000005013 11524347625 025561  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/restorecond                      0000755 0000000 0000000 00000003427 11524347627 026111  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/wpa_supplicant                   0000755 0000000 0000000 00000003512 11524347630 026600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/cpuspeed                         0000755 0000000 0000000 00000025442 11524347623 025367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/netfs                            0000755 0000000 0000000 00000012432 11524347626 024674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/rpcsvcgssd                       0000755 0000000 0000000 00000006014 11524347627 025736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/oddjobd                          0000755 0000000 0000000 00000004325 11524347626 025164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/sandbox                          0000755 0000000 0000000 00000003242 11524347630 025205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/killall                          0000755 0000000 0000000 00000001214 11524347625 025174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/rdisc                            0000755 0000000 0000000 00000003027 11524347627 024662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/httpd                            0000755 0000000 0000000 00000006364 11524347623 024704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/ntpd                             0000755 0000000 0000000 00000003603 11524347626 024522  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/smartd                           0000755 0000000 0000000 00000005672 11524347630 025052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/nslcd                            0000755 0000000 0000000 00000003213 11524347626 024655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/ntpdate                          0000755 0000000 0000000 00000003512 11524347626 025213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile02/etc/rc.d/init.d/microcode_ctl                    0000755 0000000 0000000 00000002221 11524347625 026355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile02/etc/hosts                                        0000644 0000000 0000000 00000000052 11524347620 022664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1	localhost.localdomain	localhost
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile02/etc/iproute2/                                    0000777 0000000 0000000 00000000000 11524347621 023362  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/etc/iproute2/rt_dsfield                          0000644 0000000 0000000 00000000672 11524347621 025425  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client02/tile02/etc/iproute2/rt_realms                           0000644 0000000 0000000 00000000160 11524347621 025266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/tile02/etc/iproute2/rt_scopes                           0000644 0000000 0000000 00000000134 11524347621 025300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile02/etc/iproute2/ematch_map                          0000644 0000000 0000000 00000000073 11524347621 025377  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile02/etc/iproute2/rt_tables                           0000644 0000000 0000000 00000000127 11524347621 025260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile02/etc/iproute2/rt_protos                           0000644 0000000 0000000 00000000475 11524347621 025342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/etc/nsswitch.conf                                0000644 0000000 0000000 00000003230 11524347621 024314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile02/etc/fstab                                        0000644 0000000 0000000 00000001307 11524347620 022627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Thu Aug  5 09:23:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=008a3418-d80b-4815-9722-db5af2fba6da /                       ext3    defaults        1 1
UUID=171fffed-b6b4-4161-b8cd-a688d195da49 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile02/etc/sysctl.conf                                  0000644 0000000 0000000 00000001466 11524347637 024013  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile02/etc/inittab                                      0000644 0000000 0000000 00000001564 11524347621 023170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile02/var/                                             0000777 0000000 0000000 00000000000 11524347641 021630  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/var/log/                                         0000777 0000000 0000000 00000000000 11524347641 022411  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/var/log/dmesg                                    0000644 0000000 0000000 00000041752 11524347641 023440  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009cc00 (usable)
 BIOS-e820: 000000000009cc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
RAMDISK: 372ca000 - 37fef973
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffdc0 00040
ACPI: SSDT 00000000dfffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000000dfffd000
Bootmem setup node 0 0000000000000000-00000000dfffd000
  NODE_DATA [000000000000c000 - 000000000003ffff]
  bootmap [0000000000040000 -  000000000005bfff] pages 1c
(7 early reservations) ==> bootmem [0000000000 - 00dfffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [00372ca000 - 0037fef973]          RAMDISK ==> [00372ca000 - 0037fef973]
  #4 [000009cc00 - 0000100000]    BIOS reserved ==> [000009cc00 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00031fffff] PMD -> [ffff880002200000-ffff8800053fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009c
    0: 0x00000100 -> 0x000dfffd
On node 0 totalpages: 917400
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3833 pages, LIFO batch:0
  DMA32 zone: 12488 pages used for memmap
  DMA32 zone: 900917 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009c000 - 000000000009d000
PM: Registered nosave memory: 000000000009d000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 904750
Policy zone: DMA32
Kernel command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us 
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 3591248k/3670004k available (4935k kernel code, 404k absent, 78352k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 36700160 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 2266.548 MHz processor.
Calibrating delay loop (skipped) preset value.. 4533.09 BogoMIPS (lpj=2266548)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Setting APIC routing to flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (9066.19 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13462k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297092516.432:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 7040
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 0) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 15:28:35 UTC (1297092515)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
dracut: Mounted root filesystem /dev/vda1
dracut: Loading SELinux policy
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1297092517.593:2): selinux=0 auid=4294967295 ses=4294967295
dracut: /sbin/load_policy: Can't load policy: No such file or directory
dracut: Switching root
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 27 for MSI/MSI-X
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT3 FS on vda1, internal journal
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                      Physical_Configuration/Clients/tb3-client02/tile02/boot/                                            0000777 0000000 0000000 00000000000 11524347620 022000  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/boot/grub/                                       0000777 0000000 0000000 00000000000 11524347620 022737  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile02/boot/grub/grub.conf                              0000644 0000000 0000000 00000002637 11524347620 024551  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux Server (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-70.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-70.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-70.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-59.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-59.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-59.el6.x86_64.img
                                                                                                 Physical_Configuration/Clients/tb3-client02/tile02/rpmpkgs.txt                                      0000644 0000000 0000000 00000105007 11524347640 023262  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rhnsd-4.9.3-2.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
pycairo-1.8.6-2.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
polkit-devel-0.96-2.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
popt-devel-1.13-7.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
basesystem-10.0-4.el6.noarch
libgnomeui-devel-2.24.1-4.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libhbalinux-1.0.10-1.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-Newt-1.08-26.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
system-icon-theme-6.0.0-2.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
libjpeg-6b-46.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
gettext-0.17-16.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
NetworkManager-glib-0.8.1-5.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
sed-4.2.1-5.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
libXext-1.1-3.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
libcap-2.16-5.2.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
hwdata-0.233-1.el6.noarch
pcre-7.8-3.1.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
fuse-2.8.3-1.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
python-decorator-3.0.1-3.1.el6.noarch
report-plugin-scp-0.18-7.el6.x86_64
rsync-3.0.6-5.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
ModemManager-0.4.0-3.git20100628.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
device-mapper-event-libs-1.02.53-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
nc-1.84-22.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
dracut-004-32.el6.noarch
psmisc-22.6-15.el6.x86_64
vino-2.28.1-3.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
kernel-2.6.32-70.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
mtools-4.0.12-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
mod_wsgi-3.2-1.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
jna-3.2.4-2.el6.x86_64
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
php-pdo-5.3.2-6.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
postfix-2.6.6-2.el6.x86_64
patch-2.6-6.el6.x86_64
elfutils-0.148-1.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
xorg-x11-xkb-utils-7.4-6.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
xvattr-1.3-18.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
boost-regex-1.41.0-11.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
pam-1.1.1-4.el6.x86_64
setserial-2.17-25.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
python-slip-0.2.11-1.el6.noarch
gvfs-1.4.3-9.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
libhbaapi-2.2-10.el6.x86_64
gnome-applets-2.28.0-7.el6.x86_64
grub-0.97-68.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
setup-2.8.14-10.el6.noarch
hal-devel-0.5.14-8.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
autoconf-2.63-5.1.el6.noarch
fontpackages-filesystem-1.41-1.1.el6.noarch
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libXtst-devel-1.0.99.2-3.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
libX11-common-1.3-2.el6.noarch
sos-2.2-2.el6.noarch
php-pear-1.9.0-2.el6.noarch
avahi-autoipd-0.6.25-8.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
bash-4.1.2-3.el6.x86_64
libcap-ng-devel-0.6.4-3.el6.x86_64
festival-1.96-18.el6.x86_64
libICE-1.0.6-1.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
rootfiles-8.1-6.1.el6.noarch
libldb-0.9.10-23.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
libpng-1.2.44-1.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
gd-2.0.35-10.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
man-pages-3.22-12.el6.noarch
libcroco-devel-0.6.2-5.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
numactl-2.0.3-9.el6.x86_64
yum-3.2.27-14.el6.noarch
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
iproute-2.6.32-10.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
boost-1.41.0-11.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
gstreamer-tools-0.10.29-1.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
libXdamage-1.1.2-1.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
binutils-2.20.51.0.2-5.11.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
gcc-4.4.4-13.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
libtheora-1.1.0-2.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
gnome-power-manager-2.28.3-3.el6.x86_64
totem-mozplugin-2.28.6-2.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-Log-Message-0.02-115.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
libXdmcp-1.0.3-1.el6.x86_64
parted-2.1-10.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libevent-1.4.13-1.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
psacct-6.3.2-63.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
checkpolicy-2.0.22-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
flex-2.5.35-8.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
selinux-policy-3.7.19-54.el6.noarch
ltrace-0.5-16.45svn.1.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
crontabs-1.10-32.1.el6.noarch
coreutils-libs-8.4-9.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
mtr-0.75-5.el6.x86_64
openssl-1.0.0-4.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
libgudev1-147-2.29.el6.x86_64
ctags-5.8-2.el6.x86_64
redhat-bookmarks-6-1.el6.noarch
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
passwd-0.77-4.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
orca-2.28.2-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
slang-2.2.1-1.el6.x86_64
subversion-1.6.11-2.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
openswan-2.6.24-8.el6.x86_64
gtk-doc-1.11-5.1.el6.noarch
libdaemon-0.14-1.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
xml-common-0.6.3-32.el6.noarch
gtk2-devel-2.18.9-4.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
notification-daemon-0.5.0-1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
libgcc-4.4.4-13.el6.i686
ncurses-libs-5.7-3.20090208.el6.x86_64
ppp-2.4.5-5.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
info-4.13a-8.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
docbook-style-dsssl-1.79-10.el6.noarch
pam_ldap-185-5.el6.x86_64
glib2-2.22.5-5.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
readline-6.0-3.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
at-3.1.10-42.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
samba-winbind-clients-3.5.4-68.el6.x86_64
gmp-4.3.1-7.el6.x86_64
gnome-panel-libs-2.30.2-5.el6.x86_64
perl-version-0.77-115.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
perl-5.10.1-115.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
curl-7.19.7-16.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
httpd-tools-2.2.15-5.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
libavc1394-0.5.3-9.1.el6.x86_64
which-2.19-5.1.el6.x86_64
perl-BSD-Resource-1.29.03-3.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
keyutils-libs-1.4-1.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
iso-codes-3.16-2.el6.noarch
libxslt-1.1.26-2.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-1.0.5-1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
giflib-4.1.6-3.1.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
report-0.18-7.el6.x86_64
libX11-1.3-2.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
grubby-7.0.15-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
eggdbus-0.6-3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
httpd-2.2.15-5.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
ppl-0.10.2-11.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
file-libs-5.04-5.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
bc-1.06.95-1.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
NetworkManager-0.8.1-5.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
dracut-kernel-004-32.el6.noarch
cpio-2.10-9.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
unzip-6.0-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
check-0.9.8-1.1.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
libgssglue-0.1-8.1.el6.x86_64
db4-cxx-4.7.25-16.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
libnih-1.0.1-6.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
fcoe-utils-1.0.14-9.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
zip-3.0-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
usermode-1.102-3.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
php-xml-5.3.2-6.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
crash-5.0.0-23.el6.x86_64
libthai-0.1.12-3.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
zenity-2.28.0-1.el6.x86_64
report-newt-0.18-7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
boost-test-1.41.0-11.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
tzdata-2010l-1.el6.noarch
ncurses-5.7-3.20090208.el6.x86_64
nspr-4.8.6-1.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
dnsmasq-2.48-4.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
nss-3.12.7-2.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
udev-147-2.29.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
postgresql-libs-8.4.4-2.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
avahi-ui-0.6.25-8.el6.x86_64
device-mapper-multipath-libs-0.4.9-31.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
udisks-1.0.1-2.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
libaio-0.3.107-10.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
evolution-data-server-devel-2.28.3-10.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
elfutils-devel-0.148-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
cas-0.15-1.el6.1.noarch
libgnome-devel-2.28.0-11.el6.x86_64
kernel-devel-2.6.32-59.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
dstat-0.7.0-1.el6.noarch
perl-XML-Dumper-0.81-6.el6.noarch
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
zd1211-firmware-1.4-4.el6.noarch
ivtv-firmware-20080701-20.2.noarch
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
libnl-1.1-12.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
mysql-5.1.47-4.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
iptables-1.4.7-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
perl-Time-HiRes-1.9721-115.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
systemtap-1.2-9.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
eog-2.28.2-4.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
postgresql-server-8.4.4-2.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
gnome-settings-daemon-2.28.2-11.el6.x86_64
usbutils-0.86-2.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
python-psycopg2-2.0.13-2.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
tcsh-6.17-8.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
kernel-devel-2.6.32-70.el6.x86_64
bison-2.4.1-5.el6.x86_64
busybox-1.15.1-10.el6.x86_64
lsof-4.82-1.2.el6.x86_64
swig-1.3.40-5.el6.x86_64
hal-0.5.14-8.el6.x86_64
powertop-1.11-3.1.el6.x86_64
rdate-1.4-16.el6.x86_64
kernel-2.6.32-59.el6.x86_64
libtopology-0.3-7.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
openldap-devel-2.4.19-15.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
kernel-2.6.32-71.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
libxml2-python-2.7.6-1.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
libcanberra-0.22-1.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
python-gudev-147.1-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
mailcap-2.1.31-1.1.el6.noarch
wpa_supplicant-0.6.8-10.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
cracklib-python-2.8.16-2.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
gnome-python2-libwnck-2.28.0-4.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
openjade-1.3.2-36.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
popt-1.13-7.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
system-gnome-theme-60.0.2-1.el6.noarch
db4-4.7.25-16.el6.x86_64
wget-1.12-1.4.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
fipscheck-1.2.0-4.1.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
gawk-3.1.7-6.el6.x86_64
cvs-1.11.23-11.el6.x86_64
php-common-5.3.2-6.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
tcp_wrappers-libs-7.6-56.3.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
atk-1.28.0-2.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
libacl-2.2.49-4.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
findutils-4.4.2-6.el6.x86_64
libiec61883-1.2.0-4.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
grep-2.6.3-2.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
libgcrypt-1.4.5-3.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
pixman-0.16.6-1.el6.x86_64
iw-0.9.17-4.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
libxcb-1.5-1.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
comps-extras-17.8-1.el6.noarch
libsoup-2.28.2-1.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
xfsprogs-3.1.1-4.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
libXv-1.0.5-1.el6.x86_64
polkit-0.96-2.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
rtkit-0.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
libIDL-0.8.13-2.1.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
ed-1.1-3.3.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
tar-1.23-3.el6.x86_64
libconfig-1.3.2-1.1.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
pciutils-libs-3.1.4-9.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
mod_ssl-2.2.15-5.el6.x86_64
kbd-misc-1.15-11.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
rng-tools-2-8.el6.x86_64
pax-3.4-10.1.el6.x86_64
control-center-2.28.1-25.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
php-gd-5.3.2-6.el6.x86_64
libtasn1-2.3-3.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
irqbalance-0.55-27.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
yajl-1.0.7-3.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libXpm-3.5.8-2.el6.x86_64
pango-1.28.1-3.el6.x86_64
gucharmap-2.28.2-2.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
net-tools-1.60-102.el6.x86_64
exempi-2.1.0-5.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
DeviceKit-power-014-1.el6.x86_64
make-3.81-19.el6.x86_64
unique-1.1.4-2.el6.x86_64
rhn-setup-1.0.0-38.el6.noarch
boost-signals-1.41.0-11.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
cronie-1.4.4-2.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
libcollection-0.5.0-28.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
libudev-147-2.29.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
libuser-0.56.13-4.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
device-mapper-multipath-0.4.9-31.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
perl-URI-1.40-2.el6.noarch
dbus-glib-devel-0.86-5.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
seekwatcher-0.12-4.1.el6.noarch
perf-2.6.32-71.el6.noarch
libglade2-devel-2.6.4-3.1.el6.x86_64
glibc-2.12-1.7.el6.i686
polkit-docs-0.96-2.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
libXi-devel-1.3-3.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
mysql-devel-5.1.47-4.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
iotop-0.3.2-3.el6.noarch
python-meh-0.9-1.el6.noarch
bzip2-devel-1.0.5-6.1.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
atmel-firmware-1.3-7.el6.noarch
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
libstdc++-4.4.4-13.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
libXi-1.3-3.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
nautilus-extensions-2.28.4-15.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
libss-1.41.12-3.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
glx-utils-7.7-2.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
cpp-4.4.4-13.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
ipa-client-2.0-9.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
gnome-vfs2-smb-2.24.2-6.el6.x86_64
xdg-user-dirs-0.12-4.el6.x86_64
gdb-7.1-29.el6.x86_64
gok-2.28.1-5.el6.x86_64
SDL-1.2.14-2.el6.x86_64
postgresql-docs-8.4.4-2.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mod_perl-2.0.4-10.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
prelink-0.4.3-4.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
gnome-session-xsession-2.28.0-15.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
crypto-utils-2.4.1-24.2.el6.x86_64
PyGreSQL-3.8.1-2.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
postgresql-odbc-08.04.0200-1.el6.x86_64
git-1.7.1-2.el6.x86_64
report-gtk-0.18-7.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
libvirt-devel-0.8.1-27.el6.x86_64
audit-2.0.4-1.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
attr-2.4.44-4.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
latrace-0.5.9-2.el6.x86_64
byacc-1.9.20070509-6.1.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
nscd-2.12-1.7.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
vte-0.25.1-5.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
gcc-c++-4.4.4-13.el6.x86_64
firefox-3.6.9-2.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
libgnomecanvas-devel-2.26.0-4.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
perl-XML-Grove-0.46alpha-40.el6.noarch
automake-1.11.1-1.2.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
system-config-services-docs-1.1.8-1.el6.noarch
pyOpenSSL-0.10-2.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
zlib-1.2.3-25.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
audit-libs-devel-2.0.4-1.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
libstdc++-4.4.4-13.el6.i686
libdrm-2.4.20-2.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
docbook-utils-0.6.14-24.el6.noarch
freetype-2.3.11-5.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
gnome-python2-desktop-2.28.0-4.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
words-3.0-17.el6.noarch
libselinux-utils-2.0.94-2.el6.x86_64
gamin-0.1.10-9.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
mailx-12.4-6.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
keyutils-1.4-1.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
openssh-5.3p1-20.el6.x86_64
m4-1.4.13-5.el6.x86_64
autofs-5.0.5-23.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
gvfs-archive-1.4.3-9.el6.x86_64
man-1.6f-29.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
gdm-2.30.4-21.el6.x86_64
libusb-0.1.12-23.el6.x86_64
webalizer-2.21_02-3.3.el6.x86_64
time-1.7-37.1.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
less-436-4.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
gettext-libs-0.17-16.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
NetworkManager-gnome-0.8.1-5.el6.x86_64
readahead-1.5.6-1.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
php-5.3.2-6.el6.x86_64
libical-0.43-5.1.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-panel-2.30.2-5.el6.x86_64
latencytop-0.5-3.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
kbd-1.15-11.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
rcs-5.7-37.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
boost-program-options-1.41.0-11.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
iputils-20071127-13.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
glibc-2.12-1.7.el6.x86_64
gzip-1.3.12-18.el6.x86_64
cscope-15.6-6.el6.x86_64
certmonger-0.24-4.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
openldap-2.4.19-15.el6.x86_64
eject-2.1.5-17.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
qt-4.6.2-16.el6.x86_64
diffstat-1.51-2.el6.x86_64
libgail-gnome-1.20.1-4.1.el6.x86_64
sssd-1.2.1-28.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
newt-0.52.11-2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
nspluginwrapper-1.3.0-14.el6.x86_64
mysql-server-5.1.47-4.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
rhn-setup-gnome-1.0.0-38.el6.noarch
atk-devel-1.28.0-2.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
filesystem-2.4.30-2.1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
libcom_err-devel-1.41.12-3.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
m2crypto-0.20.2-7.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
screen-4.0.3-15.el6.x86_64
alsa-lib-devel-1.0.21-3.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
mobile-broadband-provider-info-1.20100122-1.el6.noarch
xorg-x11-docs-1.3-6.1.el6.noarch
gnome-themes-2.28.1-6.el6.noarch
libselinux-2.0.94-2.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
libxcb-devel-1.5-1.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
pam_krb5-2.3.11-1.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
pytz-2010h-2.el6.noarch
libidn-1.18-2.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
acl-2.2.49-4.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
jline-0.9.94-0.8.el6.noarch
libXt-1.0.7-1.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
procps-3.2.8-14.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
gnome-screensaver-2.28.3-8.el6.x86_64
rpm-4.8.0-12.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
quota-3.17-10.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
rpm-build-4.8.0-12.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
nano-2.0.9-7.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
system-config-services-0.99.45-1.el6.3.noarch
perl-parent-0.221-115.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
hal-info-20090716-3.1.el6.noarch
mlocate-0.22.2-3.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
libicu-4.2.1-9.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
yp-tools-2.9-10.el6.x86_64
coreutils-8.4-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
rfkill-0.3-4.el6.x86_64
at-spi-1.28.1-2.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
lldpad-0.9.38-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
gnome-python2-bonobo-2.28.0-3.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
evolution-data-server-doc-2.28.3-10.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
yelp-2.28.1-8.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
python-2.6.5-3.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile02/ifconfig.txt                                     0000644 0000000 0000000 00000001637 11524347637 023375  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:90:00:02  
          inet addr:10.1.216.152  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe90:2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:513297004 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160878804 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:730679356907 (680.4 GiB)  TX bytes:16184038582 (15.0 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:254911 errors:0 dropped:0 overruns:0 frame:0
          TX packets:254911 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:326347744 (311.2 MiB)  TX bytes:326347744 (311.2 MiB)

                                                                                                 Physical_Configuration/Clients/tb3-client02/tile02/chkconfig.txt                                    0000644 0000000 0000000 00000006556 11524347620 023541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:off	4:on	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
fcoe           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:off	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:off	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lldpad         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
multipathd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
mysqld         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postgresql     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/brctl-show.txt                                          0000644 0000000 0000000 00000000457 11524347556 022575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge name	bridge id		STP enabled	interfaces
br0		8000.e41f1332510c	no		eth0
br1		8000.aa341cb6c60e	no		eth1
							vct01
br2		8000.001517d12f4e	no		eth2
							vct02
br3		8000.001517d12f4f	no		eth3
							vct03
br4		8000.001517d14fb2	no		eth4
							vct04
br5		8000.001517d14fb3	no		eth5
							vct05
                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/lspci.txt                                               0000644 0000000 0000000 00000021512 11524347576 021620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 5520 I/O Hub to ESI Port (rev 13)
00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 13)
00:02.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 2 (rev 13)
00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 13)
00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 13)
00:10.0 PIC: Intel Corporation 5520/5500/X58 Physical and Link Layer Registers Port 0 (rev 13)
00:10.1 PIC: Intel Corporation 5520/5500/X58 Routing and Protocol Layer Registers Port 0 (rev 13)
00:11.0 PIC: Intel Corporation 5520/5500 Physical and Link Layer Registers Port 1 (rev 13)
00:11.1 PIC: Intel Corporation 5520/5500 Routing & Protocol Layer Register Port 1 (rev 13)
00:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers (rev 13)
00:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 13)
00:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 13)
00:14.3 PIC: Intel Corporation 5520/5500/X58 I/O Hub Throttle Registers (rev 13)
00:15.0 PIC: Intel Corporation 5520/5500/X58 Trusted Execution Technology Registers (rev 13)
00:16.0 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.1 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.2 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.3 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.4 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.5 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.6 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.7 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:1a.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
00:1a.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5
00:1a.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1
00:1c.4 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 5
00:1d.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
00:1d.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
00:1d.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
00:1d.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller
00:1f.2 IDE interface: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1
00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
00:1f.5 IDE interface: Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller #2
01:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068E PCI-Express Fusion-MPT SAS (rev 08)
06:00.0 PCI bridge: Vitesse Semiconductor VSC452 [SuperBMC] (rev 01)
07:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200EV
0b:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
0b:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
15:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
15:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
1a:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
1a:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
fe:00.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture Generic Non-Core Registers (rev 05)
fe:00.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture System Address Decoder (rev 05)
fe:02.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Link 0 (rev 05)
fe:02.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Physical 0 (rev 05)
fe:02.4 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Link 1 (rev 05)
fe:02.5 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Physical 1 (rev 05)
fe:03.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller (rev 05)
fe:03.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Target Address Decoder (rev 05)
fe:03.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller RAS Registers (rev 05)
fe:03.4 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Test Registers (rev 05)
fe:04.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Control Registers (rev 05)
fe:04.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Address Registers (rev 05)
fe:04.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Rank Registers (rev 05)
fe:04.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Thermal Control Registers (rev 05)
fe:05.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Control Registers (rev 05)
fe:05.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Address Registers (rev 05)
fe:05.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Rank Registers (rev 05)
fe:05.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Thermal Control Registers (rev 05)
fe:06.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Control Registers (rev 05)
fe:06.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Address Registers (rev 05)
fe:06.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Rank Registers (rev 05)
fe:06.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Thermal Control Registers (rev 05)
ff:00.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture Generic Non-Core Registers (rev 05)
ff:00.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture System Address Decoder (rev 05)
ff:02.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Link 0 (rev 05)
ff:02.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Physical 0 (rev 05)
ff:02.4 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Link 1 (rev 05)
ff:02.5 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Physical 1 (rev 05)
ff:03.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller (rev 05)
ff:03.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Target Address Decoder (rev 05)
ff:03.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller RAS Registers (rev 05)
ff:03.4 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Test Registers (rev 05)
ff:04.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Control Registers (rev 05)
ff:04.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Address Registers (rev 05)
ff:04.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Rank Registers (rev 05)
ff:04.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Thermal Control Registers (rev 05)
ff:05.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Control Registers (rev 05)
ff:05.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Address Registers (rev 05)
ff:05.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Rank Registers (rev 05)
ff:05.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Thermal Control Registers (rev 05)
ff:06.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Control Registers (rev 05)
ff:06.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Address Registers (rev 05)
ff:06.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Rank Registers (rev 05)
ff:06.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Thermal Control Registers (rev 05)
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile01/                                                 0000777 0000000 0000000 00000000000 11524347617 021042  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/proc/                                            0000777 0000000 0000000 00000000000 11524347617 022005  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/proc/cpuinfo                                     0000644 0000000 0000000 00000002012 11524347617 023362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.548
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.548
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile01/proc/swaps                                       0000644 0000000 0000000 00000000150 11524347617 023055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	71804	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile01/proc/devices                                     0000644 0000000 0000000 00000000567 11524347617 023356  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile01/proc/modules                                     0000644 0000000 0000000 00000002547 11524347617 023404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa0259000
stp 2107 1 bridge, Live 0xffffffffa0253000
llc 5608 2 bridge,stp, Live 0xffffffffa024b000
autofs4 27683 3 - Live 0xffffffffa023e000
sunrpc 241630 1 - Live 0xffffffffa01eb000
ipv6 321209 584 - Live 0xffffffffa0156000
dm_mirror 14003 0 - Live 0xffffffffa012a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0121000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0118000
ppdev 8695 0 - Live 0xffffffffa010a000
parport_pc 22944 0 - Live 0xffffffffa00fd000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa00eb000
sg 30186 0 - Live 0xffffffffa00dc000
virtio_net 15665 0 - Live 0xffffffffa00d2000
i2c_piix4 12574 0 - Live 0xffffffffa00c9000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00b9000
ext3 133830 1 - Live 0xffffffffa008d000
jbd 54576 1 ext3, Live 0xffffffffa0076000
mbcache 7918 1 ext3, Live 0xffffffffa006e000
sr_mod 16162 0 - Live 0xffffffffa0064000
cdrom 39769 1 sr_mod, Live 0xffffffffa0053000
virtio_blk 5087 3 - Live 0xffffffffa004c000
ata_generic 3611 0 - Live 0xffffffffa0046000
pata_acpi 3667 0 - Live 0xffffffffa0040000
ata_piix 22588 0 - Live 0xffffffffa0034000
virtio_pci 6733 0 - Live 0xffffffffa002c000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0025000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile01/proc/partitions                                  0000644 0000000 0000000 00000000165 11524347617 024122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile01/proc/meminfo                                     0000644 0000000 0000000 00000002222 11524347617 023354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        3605932 kB
MemFree:         3353564 kB
Buffers:            2884 kB
Cached:            26224 kB
SwapCached:         4368 kB
Active:            36840 kB
Inactive:          71956 kB
Active(anon):      21312 kB
Inactive(anon):    58380 kB
Active(file):      15528 kB
Inactive(file):    13576 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        1976188 kB
Dirty:               540 kB
Writeback:             0 kB
AnonPages:         77356 kB
Mapped:             7660 kB
Shmem:                 4 kB
Slab:             115232 kB
SReclaimable:      33128 kB
SUnreclaim:        82104 kB
KernelStack:        1688 kB
PageTables:         3568 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3850956 kB
Committed_AS:     766164 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19136 kB
VmallocChunk:   34359715016 kB
HardwareCorrupted:     0 kB
AnonHugePages:     45056 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     3661824 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile01/lspci.txt                                        0000644 0000000 0000000 00000000744 11524347616 022715  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
                            Physical_Configuration/Clients/tb3-client02/tile01/df.txt                                           0000644 0000000 0000000 00000000276 11524347600 022165  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8186144   4594792  65% /
tmpfs                  1802964         0   1802964   0% /dev/shm
                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/tile01/mount.txt                                        0000644 0000000 0000000 00000000434 11524347616 022741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile01/etc/                                             0000777 0000000 0000000 00000000000 11524347616 021614  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/                                        0000777 0000000 0000000 00000000000 11524347607 022442  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/                                  0000777 0000000 0000000 00000000000 11524347616 023353  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K02libvirt-guests                 0000755 0000000 0000000 00000017172 11524347610 026537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K02oddjobd                        0000755 0000000 0000000 00000004325 11524347610 025155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K69rpcsvcgssd                     0000755 0000000 0000000 00000006014 11524347612 025745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K95cgconfig                       0000755 0000000 0000000 00000012327 11524347614 025350  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S55sshd                           0000755 0000000 0000000 00000010671 11524347616 024540  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K80fcoe                           0000755 0000000 0000000 00000005775 11524347612 024506  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K15httpd                          0000755 0000000 0000000 00000006364 11524347611 024705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K92ip6tables                      0000755 0000000 0000000 00000020716 11524347613 025457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K80sssd                           0000755 0000000 0000000 00000004731 11524347612 024535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S58ntpd                           0000755 0000000 0000000 00000003603 11524347616 024544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K02avahi-daemon                   0000755 0000000 0000000 00000004754 11524347610 026107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K89rdisc                          0000755 0000000 0000000 00000003027 11524347613 024674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K76ipsec                          0000755 0000000 0000000 00000010777 11524347612 024700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S22messagebus                     0000755 0000000 0000000 00000004230 11524347615 025720  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K95firstboot                      0000755 0000000 0000000 00000005341 11524347614 025602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K86cgred                          0000755 0000000 0000000 00000006302 11524347613 024650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S13rpcbind                        0000755 0000000 0000000 00000004031 11524347614 025201  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S13irqbalance                     0000755 0000000 0000000 00000003521 11524347614 025664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K84NetworkManager                 0000755 0000000 0000000 00000004235 11524347612 026510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K99sysstat                        0000755 0000000 0000000 00000002363 11524347614 025306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K50dnsmasq                        0000755 0000000 0000000 00000002577 11524347611 025231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K01certmonger                     0000755 0000000 0000000 00000004054 11524347610 025713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K85mdmonitor                      0000755 0000000 0000000 00000005013 11524347612 025570  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K36mysqld                         0000755 0000000 0000000 00000012460 11524347611 025070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K80lldpad                         0000755 0000000 0000000 00000014323 11524347612 025017  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K88nslcd                          0000755 0000000 0000000 00000003213 11524347613 024667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K75ntpdate                        0000755 0000000 0000000 00000003512 11524347612 025220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K89iscsid                         0000755 0000000 0000000 00000007127 11524347613 025053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K73ypbind                         0000755 0000000 0000000 00000011277 11524347612 025053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S10network                        0000755 0000000 0000000 00000014466 11524347614 025263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S12rsyslog                        0000755 0000000 0000000 00000004326 11524347614 025270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S11auditd                         0000755 0000000 0000000 00000006462 11524347614 025042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K84wpa_supplicant                 0000755 0000000 0000000 00000003512 11524347612 026612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S20kdump                          0000755 0000000 0000000 00000027662 11524347615 024716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K87multipathd                     0000755 0000000 0000000 00000004473 11524347613 025747  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S26haldaemon                      0000755 0000000 0000000 00000003245 11524347615 025523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K60crond                          0000755 0000000 0000000 00000005445 11524347611 024666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K03rhnsd                          0000755 0000000 0000000 00000005522 11524347610 024667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K36postgresql                     0000755 0000000 0000000 00000012406 11524347611 025762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S00microcode_ctl                  0000755 0000000 0000000 00000002221 11524347614 026361  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K10saslauthd                      0000755 0000000 0000000 00000004010 11524347611 025527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K88iscsi                          0000755 0000000 0000000 00000007315 11524347613 024705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K60nfs                            0000755 0000000 0000000 00000013536 11524347611 024347  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S30nscd                           0000755 0000000 0000000 00000004723 11524347616 024520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S24rpcgssd                        0000755 0000000 0000000 00000006050 11524347615 025233  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K10psacct                         0000755 0000000 0000000 00000003024 11524347611 025020  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S26acpid                          0000755 0000000 0000000 00000003275 11524347615 024656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S13cpuspeed                       0000755 0000000 0000000 00000025442 11524347614 025401  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S26udev-post                      0000755 0000000 0000000 00000004370 11524347615 025521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S99local                          0000755 0000000 0000000 00000000334 11524347616 024674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K50netconsole                     0000755 0000000 0000000 00000005650 11524347611 025727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S24rpcidmapd                      0000755 0000000 0000000 00000005222 11524347615 025531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S02lvm2-monitor                   0000555 0000000 0000000 00000004612 11524347614 026126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S28autofs                         0000755 0000000 0000000 00000007234 11524347615 025100  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K01smartd                         0000755 0000000 0000000 00000005672 11524347610 025047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S55autobench                      0000755 0000000 0000000 00000005063 11524347616 025546  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S25netfs                          0000755 0000000 0000000 00000012432 11524347615 024707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K30postfix                        0000755 0000000 0000000 00000007414 11524347611 025250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/S24nfslock                        0000755 0000000 0000000 00000006675 11524347615 025242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K92iptables                       0000755 0000000 0000000 00000020557 11524347613 025374  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K87restorecond                    0000755 0000000 0000000 00000003427 11524347613 026121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/rc3.d/K05atd                            0000755 0000000 0000000 00000004112 11524347610 024315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/                                 0000777 0000000 0000000 00000000000 11524347607 023627  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/network                          0000755 0000000 0000000 00000014466 11524347605 025253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/sysstat                          0000755 0000000 0000000 00000002363 11524347607 025267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/saslauthd                        0000755 0000000 0000000 00000004010 11524347607 025534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/messagebus                       0000755 0000000 0000000 00000004230 11524347604 025703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/autobench                        0000755 0000000 0000000 00000005063 11524347601 025517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/atd                              0000755 0000000 0000000 00000004112 11524347601 024311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/mcelogd                          0000755 0000000 0000000 00000003535 11524347604 025166  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/auditd                           0000755 0000000 0000000 00000006462 11524347601 025025  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/certmonger                       0000755 0000000 0000000 00000004054 11524347602 025714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/mysqld                           0000755 0000000 0000000 00000012460 11524347604 025062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/irqbalance                       0000755 0000000 0000000 00000003521 11524347603 025647  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/acpid                            0000755 0000000 0000000 00000003275 11524347601 024632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/iscsid                           0000755 0000000 0000000 00000007127 11524347603 025032  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/nscd                             0000755 0000000 0000000 00000004723 11524347605 024504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/rpcidmapd                        0000755 0000000 0000000 00000005222 11524347606 025514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/nfs                              0000755 0000000 0000000 00000013536 11524347605 024345  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/sssd                             0000755 0000000 0000000 00000004731 11524347607 024532  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/crond                            0000755 0000000 0000000 00000005445 11524347602 024661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/ip6tables                        0000755 0000000 0000000 00000020716 11524347603 025444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/firstboot                        0000755 0000000 0000000 00000005341 11524347602 025562  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/autofs                           0000755 0000000 0000000 00000007234 11524347601 025052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/sshd                             0000755 0000000 0000000 00000010671 11524347607 024517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/libvirt-guests                   0000755 0000000 0000000 00000017172 11524347604 026541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/avahi-daemon                     0000755 0000000 0000000 00000004754 11524347601 026106  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/iscsi                            0000755 0000000 0000000 00000007315 11524347603 024665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/ypbind                           0000755 0000000 0000000 00000011277 11524347607 025046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/psacct                           0000755 0000000 0000000 00000003024 11524347606 025024  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/fcoe                             0000755 0000000 0000000 00000005775 11524347602 024476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/nfslock                          0000755 0000000 0000000 00000006675 11524347605 025224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/cgred                            0000755 0000000 0000000 00000006302 11524347602 024631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/udev-post                        0000755 0000000 0000000 00000004370 11524347607 025503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/haldaemon                        0000755 0000000 0000000 00000003245 11524347603 025501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/ipsec                            0000755 0000000 0000000 00000010777 11524347603 024664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/rpcbind                          0000755 0000000 0000000 00000004031 11524347606 025167  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/rhnsd                            0000755 0000000 0000000 00000005522 11524347606 024672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/dnsmasq                          0000755 0000000 0000000 00000002577 11524347602 025225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/functions                        0000644 0000000 0000000 00000042767 11524347602 025571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/kdump                            0000755 0000000 0000000 00000027662 11524347603 024702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/lldpad                           0000755 0000000 0000000 00000014323 11524347604 025011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/postfix                          0000755 0000000 0000000 00000007414 11524347605 025251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/iptables                         0000755 0000000 0000000 00000020557 11524347603 025361  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/multipathd                       0000755 0000000 0000000 00000004473 11524347604 025731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/rsyslog                          0000755 0000000 0000000 00000004326 11524347606 025257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/NetworkManager                   0000755 0000000 0000000 00000004235 11524347601 026473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/netconsole                       0000755 0000000 0000000 00000005650 11524347604 025725  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/rpcgssd                          0000755 0000000 0000000 00000006050 11524347606 025216  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/lvm2-monitor                     0000555 0000000 0000000 00000004612 11524347604 026114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/halt                             0000755 0000000 0000000 00000012723 11524347603 024502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/cgconfig                         0000755 0000000 0000000 00000012327 11524347602 025330  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/single                           0000755 0000000 0000000 00000001207 11524347607 025032  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/postgresql                       0000755 0000000 0000000 00000012406 11524347606 025756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/mdmonitor                        0000755 0000000 0000000 00000005013 11524347604 025555  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/restorecond                      0000755 0000000 0000000 00000003427 11524347606 026105  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/wpa_supplicant                   0000755 0000000 0000000 00000003512 11524347607 026603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/cpuspeed                         0000755 0000000 0000000 00000025442 11524347602 025363  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/netfs                            0000755 0000000 0000000 00000012432 11524347605 024670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/rpcsvcgssd                       0000755 0000000 0000000 00000006014 11524347606 025732  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/oddjobd                          0000755 0000000 0000000 00000004325 11524347605 025160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/sandbox                          0000755 0000000 0000000 00000003242 11524347607 025210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/killall                          0000755 0000000 0000000 00000001214 11524347603 025167  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/rdisc                            0000755 0000000 0000000 00000003027 11524347606 024656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/httpd                            0000755 0000000 0000000 00000006364 11524347603 024701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/ntpd                             0000755 0000000 0000000 00000003603 11524347605 024516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/smartd                           0000755 0000000 0000000 00000005672 11524347607 025055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/nslcd                            0000755 0000000 0000000 00000003213 11524347605 024651  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/ntpdate                          0000755 0000000 0000000 00000003512 11524347605 025207  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile01/etc/rc.d/init.d/microcode_ctl                    0000755 0000000 0000000 00000002221 11524347604 026351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile01/etc/hosts                                        0000644 0000000 0000000 00000000052 11524347600 022661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1	localhost.localdomain	localhost
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile01/etc/iproute2/                                    0000777 0000000 0000000 00000000000 11524347601 023357  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/etc/iproute2/rt_dsfield                          0000644 0000000 0000000 00000000672 11524347600 025421  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client02/tile01/etc/iproute2/rt_realms                           0000644 0000000 0000000 00000000160 11524347600 025262  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/tile01/etc/iproute2/rt_scopes                           0000644 0000000 0000000 00000000134 11524347600 025274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile01/etc/iproute2/ematch_map                          0000644 0000000 0000000 00000000073 11524347600 025373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile01/etc/iproute2/rt_tables                           0000644 0000000 0000000 00000000127 11524347601 025255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile01/etc/iproute2/rt_protos                           0000644 0000000 0000000 00000000475 11524347600 025336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/etc/nsswitch.conf                                0000644 0000000 0000000 00000003230 11524347601 024311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile01/etc/fstab                                        0000644 0000000 0000000 00000001307 11524347600 022624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Thu Aug  5 09:23:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=008a3418-d80b-4815-9722-db5af2fba6da /                       ext3    defaults        1 1
UUID=171fffed-b6b4-4161-b8cd-a688d195da49 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile01/etc/sysctl.conf                                  0000644 0000000 0000000 00000001466 11524347616 024007  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile01/etc/inittab                                      0000644 0000000 0000000 00000001564 11524347600 023164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile01/var/                                             0000777 0000000 0000000 00000000000 11524347617 021632  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/var/log/                                         0000777 0000000 0000000 00000000000 11524347617 022413  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/var/log/dmesg                                    0000644 0000000 0000000 00000041752 11524347620 023434  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009cc00 (usable)
 BIOS-e820: 000000000009cc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
RAMDISK: 372ca000 - 37fef973
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffdc0 00040
ACPI: SSDT 00000000dfffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000000dfffd000
Bootmem setup node 0 0000000000000000-00000000dfffd000
  NODE_DATA [000000000000c000 - 000000000003ffff]
  bootmap [0000000000040000 -  000000000005bfff] pages 1c
(7 early reservations) ==> bootmem [0000000000 - 00dfffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [00372ca000 - 0037fef973]          RAMDISK ==> [00372ca000 - 0037fef973]
  #4 [000009cc00 - 0000100000]    BIOS reserved ==> [000009cc00 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00031fffff] PMD -> [ffff880002200000-ffff8800053fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009c
    0: 0x00000100 -> 0x000dfffd
On node 0 totalpages: 917400
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3833 pages, LIFO batch:0
  DMA32 zone: 12488 pages used for memmap
  DMA32 zone: 900917 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009c000 - 000000000009d000
PM: Registered nosave memory: 000000000009d000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 904750
Policy zone: DMA32
Kernel command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us 
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 3591248k/3670004k available (4935k kernel code, 404k absent, 78352k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 36700160 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 2266.548 MHz processor.
Calibrating delay loop (skipped) preset value.. 4533.09 BogoMIPS (lpj=2266548)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Setting APIC routing to flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (9066.19 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13462k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297092512.429:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 7040
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 15:28:32 UTC (1297092512)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
dracut: Mounted root filesystem /dev/vda1
dracut: Loading SELinux policy
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1297092513.989:2): selinux=0 auid=4294967295 ses=4294967295
dracut: /sbin/load_policy: Can't load policy: No such file or directory
dracut: Switching root
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 27 for MSI/MSI-X
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT3 FS on vda1, internal journal
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                      Physical_Configuration/Clients/tb3-client02/tile01/boot/                                            0000777 0000000 0000000 00000000000 11524347577 022012  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/boot/grub/                                       0000777 0000000 0000000 00000000000 11524347577 022751  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile01/boot/grub/grub.conf                              0000644 0000000 0000000 00000002637 11524347577 024563  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux Server (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-70.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-70.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-70.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-59.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-59.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-59.el6.x86_64.img
                                                                                                 Physical_Configuration/Clients/tb3-client02/tile01/rpmpkgs.txt                                      0000644 0000000 0000000 00000105007 11524347617 023265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rhnsd-4.9.3-2.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
pycairo-1.8.6-2.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
polkit-devel-0.96-2.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
popt-devel-1.13-7.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
basesystem-10.0-4.el6.noarch
libgnomeui-devel-2.24.1-4.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libhbalinux-1.0.10-1.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-Newt-1.08-26.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
system-icon-theme-6.0.0-2.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
libjpeg-6b-46.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
gettext-0.17-16.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
NetworkManager-glib-0.8.1-5.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
sed-4.2.1-5.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
libXext-1.1-3.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
libcap-2.16-5.2.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
hwdata-0.233-1.el6.noarch
pcre-7.8-3.1.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
fuse-2.8.3-1.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
python-decorator-3.0.1-3.1.el6.noarch
report-plugin-scp-0.18-7.el6.x86_64
rsync-3.0.6-5.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
ModemManager-0.4.0-3.git20100628.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
device-mapper-event-libs-1.02.53-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
nc-1.84-22.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
dracut-004-32.el6.noarch
psmisc-22.6-15.el6.x86_64
vino-2.28.1-3.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
kernel-2.6.32-70.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
mtools-4.0.12-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
mod_wsgi-3.2-1.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
jna-3.2.4-2.el6.x86_64
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
php-pdo-5.3.2-6.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
postfix-2.6.6-2.el6.x86_64
patch-2.6-6.el6.x86_64
elfutils-0.148-1.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
xorg-x11-xkb-utils-7.4-6.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
xvattr-1.3-18.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
boost-regex-1.41.0-11.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
pam-1.1.1-4.el6.x86_64
setserial-2.17-25.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
python-slip-0.2.11-1.el6.noarch
gvfs-1.4.3-9.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
libhbaapi-2.2-10.el6.x86_64
gnome-applets-2.28.0-7.el6.x86_64
grub-0.97-68.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
setup-2.8.14-10.el6.noarch
hal-devel-0.5.14-8.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
autoconf-2.63-5.1.el6.noarch
fontpackages-filesystem-1.41-1.1.el6.noarch
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libXtst-devel-1.0.99.2-3.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
libX11-common-1.3-2.el6.noarch
sos-2.2-2.el6.noarch
php-pear-1.9.0-2.el6.noarch
avahi-autoipd-0.6.25-8.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
bash-4.1.2-3.el6.x86_64
libcap-ng-devel-0.6.4-3.el6.x86_64
festival-1.96-18.el6.x86_64
libICE-1.0.6-1.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
rootfiles-8.1-6.1.el6.noarch
libldb-0.9.10-23.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
libpng-1.2.44-1.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
gd-2.0.35-10.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
man-pages-3.22-12.el6.noarch
libcroco-devel-0.6.2-5.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
numactl-2.0.3-9.el6.x86_64
yum-3.2.27-14.el6.noarch
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
iproute-2.6.32-10.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
boost-1.41.0-11.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
gstreamer-tools-0.10.29-1.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
libXdamage-1.1.2-1.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
binutils-2.20.51.0.2-5.11.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
gcc-4.4.4-13.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
libtheora-1.1.0-2.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
gnome-power-manager-2.28.3-3.el6.x86_64
totem-mozplugin-2.28.6-2.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-Log-Message-0.02-115.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
libXdmcp-1.0.3-1.el6.x86_64
parted-2.1-10.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libevent-1.4.13-1.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
psacct-6.3.2-63.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
checkpolicy-2.0.22-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
flex-2.5.35-8.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
selinux-policy-3.7.19-54.el6.noarch
ltrace-0.5-16.45svn.1.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
crontabs-1.10-32.1.el6.noarch
coreutils-libs-8.4-9.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
mtr-0.75-5.el6.x86_64
openssl-1.0.0-4.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
libgudev1-147-2.29.el6.x86_64
ctags-5.8-2.el6.x86_64
redhat-bookmarks-6-1.el6.noarch
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
passwd-0.77-4.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
orca-2.28.2-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
slang-2.2.1-1.el6.x86_64
subversion-1.6.11-2.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
openswan-2.6.24-8.el6.x86_64
gtk-doc-1.11-5.1.el6.noarch
libdaemon-0.14-1.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
xml-common-0.6.3-32.el6.noarch
gtk2-devel-2.18.9-4.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
notification-daemon-0.5.0-1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
libgcc-4.4.4-13.el6.i686
ncurses-libs-5.7-3.20090208.el6.x86_64
ppp-2.4.5-5.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
info-4.13a-8.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
docbook-style-dsssl-1.79-10.el6.noarch
pam_ldap-185-5.el6.x86_64
glib2-2.22.5-5.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
readline-6.0-3.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
at-3.1.10-42.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
samba-winbind-clients-3.5.4-68.el6.x86_64
gmp-4.3.1-7.el6.x86_64
gnome-panel-libs-2.30.2-5.el6.x86_64
perl-version-0.77-115.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
perl-5.10.1-115.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
curl-7.19.7-16.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
httpd-tools-2.2.15-5.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
libavc1394-0.5.3-9.1.el6.x86_64
which-2.19-5.1.el6.x86_64
perl-BSD-Resource-1.29.03-3.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
keyutils-libs-1.4-1.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
iso-codes-3.16-2.el6.noarch
libxslt-1.1.26-2.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-1.0.5-1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
giflib-4.1.6-3.1.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
report-0.18-7.el6.x86_64
libX11-1.3-2.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
grubby-7.0.15-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
eggdbus-0.6-3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
httpd-2.2.15-5.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
ppl-0.10.2-11.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
file-libs-5.04-5.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
bc-1.06.95-1.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
NetworkManager-0.8.1-5.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
dracut-kernel-004-32.el6.noarch
cpio-2.10-9.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
unzip-6.0-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
check-0.9.8-1.1.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
libgssglue-0.1-8.1.el6.x86_64
db4-cxx-4.7.25-16.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
libnih-1.0.1-6.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
fcoe-utils-1.0.14-9.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
zip-3.0-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
usermode-1.102-3.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
php-xml-5.3.2-6.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
crash-5.0.0-23.el6.x86_64
libthai-0.1.12-3.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
zenity-2.28.0-1.el6.x86_64
report-newt-0.18-7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
boost-test-1.41.0-11.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
tzdata-2010l-1.el6.noarch
ncurses-5.7-3.20090208.el6.x86_64
nspr-4.8.6-1.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
dnsmasq-2.48-4.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
nss-3.12.7-2.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
udev-147-2.29.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
postgresql-libs-8.4.4-2.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
avahi-ui-0.6.25-8.el6.x86_64
device-mapper-multipath-libs-0.4.9-31.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
udisks-1.0.1-2.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
libaio-0.3.107-10.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
evolution-data-server-devel-2.28.3-10.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
elfutils-devel-0.148-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
cas-0.15-1.el6.1.noarch
libgnome-devel-2.28.0-11.el6.x86_64
kernel-devel-2.6.32-59.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
dstat-0.7.0-1.el6.noarch
perl-XML-Dumper-0.81-6.el6.noarch
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
zd1211-firmware-1.4-4.el6.noarch
ivtv-firmware-20080701-20.2.noarch
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
libnl-1.1-12.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
mysql-5.1.47-4.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
iptables-1.4.7-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
perl-Time-HiRes-1.9721-115.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
systemtap-1.2-9.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
eog-2.28.2-4.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
postgresql-server-8.4.4-2.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
gnome-settings-daemon-2.28.2-11.el6.x86_64
usbutils-0.86-2.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
python-psycopg2-2.0.13-2.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
tcsh-6.17-8.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
kernel-devel-2.6.32-70.el6.x86_64
bison-2.4.1-5.el6.x86_64
busybox-1.15.1-10.el6.x86_64
lsof-4.82-1.2.el6.x86_64
swig-1.3.40-5.el6.x86_64
hal-0.5.14-8.el6.x86_64
powertop-1.11-3.1.el6.x86_64
rdate-1.4-16.el6.x86_64
kernel-2.6.32-59.el6.x86_64
libtopology-0.3-7.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
openldap-devel-2.4.19-15.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
kernel-2.6.32-71.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
libxml2-python-2.7.6-1.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
libcanberra-0.22-1.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
python-gudev-147.1-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
mailcap-2.1.31-1.1.el6.noarch
wpa_supplicant-0.6.8-10.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
cracklib-python-2.8.16-2.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
gnome-python2-libwnck-2.28.0-4.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
openjade-1.3.2-36.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
popt-1.13-7.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
system-gnome-theme-60.0.2-1.el6.noarch
db4-4.7.25-16.el6.x86_64
wget-1.12-1.4.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
fipscheck-1.2.0-4.1.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
gawk-3.1.7-6.el6.x86_64
cvs-1.11.23-11.el6.x86_64
php-common-5.3.2-6.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
tcp_wrappers-libs-7.6-56.3.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
atk-1.28.0-2.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
libacl-2.2.49-4.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
findutils-4.4.2-6.el6.x86_64
libiec61883-1.2.0-4.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
grep-2.6.3-2.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
libgcrypt-1.4.5-3.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
pixman-0.16.6-1.el6.x86_64
iw-0.9.17-4.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
libxcb-1.5-1.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
comps-extras-17.8-1.el6.noarch
libsoup-2.28.2-1.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
xfsprogs-3.1.1-4.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
libXv-1.0.5-1.el6.x86_64
polkit-0.96-2.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
rtkit-0.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
libIDL-0.8.13-2.1.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
ed-1.1-3.3.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
tar-1.23-3.el6.x86_64
libconfig-1.3.2-1.1.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
pciutils-libs-3.1.4-9.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
mod_ssl-2.2.15-5.el6.x86_64
kbd-misc-1.15-11.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
rng-tools-2-8.el6.x86_64
pax-3.4-10.1.el6.x86_64
control-center-2.28.1-25.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
php-gd-5.3.2-6.el6.x86_64
libtasn1-2.3-3.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
irqbalance-0.55-27.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
yajl-1.0.7-3.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libXpm-3.5.8-2.el6.x86_64
pango-1.28.1-3.el6.x86_64
gucharmap-2.28.2-2.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
net-tools-1.60-102.el6.x86_64
exempi-2.1.0-5.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
DeviceKit-power-014-1.el6.x86_64
make-3.81-19.el6.x86_64
unique-1.1.4-2.el6.x86_64
rhn-setup-1.0.0-38.el6.noarch
boost-signals-1.41.0-11.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
cronie-1.4.4-2.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
libcollection-0.5.0-28.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
libudev-147-2.29.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
libuser-0.56.13-4.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
device-mapper-multipath-0.4.9-31.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
perl-URI-1.40-2.el6.noarch
dbus-glib-devel-0.86-5.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
seekwatcher-0.12-4.1.el6.noarch
perf-2.6.32-71.el6.noarch
libglade2-devel-2.6.4-3.1.el6.x86_64
glibc-2.12-1.7.el6.i686
polkit-docs-0.96-2.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
libXi-devel-1.3-3.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
mysql-devel-5.1.47-4.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
iotop-0.3.2-3.el6.noarch
python-meh-0.9-1.el6.noarch
bzip2-devel-1.0.5-6.1.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
atmel-firmware-1.3-7.el6.noarch
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
libstdc++-4.4.4-13.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
libXi-1.3-3.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
nautilus-extensions-2.28.4-15.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
libss-1.41.12-3.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
glx-utils-7.7-2.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
cpp-4.4.4-13.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
ipa-client-2.0-9.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
gnome-vfs2-smb-2.24.2-6.el6.x86_64
xdg-user-dirs-0.12-4.el6.x86_64
gdb-7.1-29.el6.x86_64
gok-2.28.1-5.el6.x86_64
SDL-1.2.14-2.el6.x86_64
postgresql-docs-8.4.4-2.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mod_perl-2.0.4-10.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
prelink-0.4.3-4.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
gnome-session-xsession-2.28.0-15.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
crypto-utils-2.4.1-24.2.el6.x86_64
PyGreSQL-3.8.1-2.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
postgresql-odbc-08.04.0200-1.el6.x86_64
git-1.7.1-2.el6.x86_64
report-gtk-0.18-7.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
libvirt-devel-0.8.1-27.el6.x86_64
audit-2.0.4-1.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
attr-2.4.44-4.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
latrace-0.5.9-2.el6.x86_64
byacc-1.9.20070509-6.1.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
nscd-2.12-1.7.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
vte-0.25.1-5.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
gcc-c++-4.4.4-13.el6.x86_64
firefox-3.6.9-2.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
libgnomecanvas-devel-2.26.0-4.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
perl-XML-Grove-0.46alpha-40.el6.noarch
automake-1.11.1-1.2.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
system-config-services-docs-1.1.8-1.el6.noarch
pyOpenSSL-0.10-2.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
zlib-1.2.3-25.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
audit-libs-devel-2.0.4-1.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
libstdc++-4.4.4-13.el6.i686
libdrm-2.4.20-2.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
docbook-utils-0.6.14-24.el6.noarch
freetype-2.3.11-5.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
gnome-python2-desktop-2.28.0-4.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
words-3.0-17.el6.noarch
libselinux-utils-2.0.94-2.el6.x86_64
gamin-0.1.10-9.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
mailx-12.4-6.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
keyutils-1.4-1.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
openssh-5.3p1-20.el6.x86_64
m4-1.4.13-5.el6.x86_64
autofs-5.0.5-23.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
gvfs-archive-1.4.3-9.el6.x86_64
man-1.6f-29.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
gdm-2.30.4-21.el6.x86_64
libusb-0.1.12-23.el6.x86_64
webalizer-2.21_02-3.3.el6.x86_64
time-1.7-37.1.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
less-436-4.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
gettext-libs-0.17-16.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
NetworkManager-gnome-0.8.1-5.el6.x86_64
readahead-1.5.6-1.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
php-5.3.2-6.el6.x86_64
libical-0.43-5.1.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-panel-2.30.2-5.el6.x86_64
latencytop-0.5-3.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
kbd-1.15-11.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
rcs-5.7-37.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
boost-program-options-1.41.0-11.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
iputils-20071127-13.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
glibc-2.12-1.7.el6.x86_64
gzip-1.3.12-18.el6.x86_64
cscope-15.6-6.el6.x86_64
certmonger-0.24-4.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
openldap-2.4.19-15.el6.x86_64
eject-2.1.5-17.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
qt-4.6.2-16.el6.x86_64
diffstat-1.51-2.el6.x86_64
libgail-gnome-1.20.1-4.1.el6.x86_64
sssd-1.2.1-28.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
newt-0.52.11-2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
nspluginwrapper-1.3.0-14.el6.x86_64
mysql-server-5.1.47-4.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
rhn-setup-gnome-1.0.0-38.el6.noarch
atk-devel-1.28.0-2.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
filesystem-2.4.30-2.1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
libcom_err-devel-1.41.12-3.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
m2crypto-0.20.2-7.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
screen-4.0.3-15.el6.x86_64
alsa-lib-devel-1.0.21-3.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
mobile-broadband-provider-info-1.20100122-1.el6.noarch
xorg-x11-docs-1.3-6.1.el6.noarch
gnome-themes-2.28.1-6.el6.noarch
libselinux-2.0.94-2.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
libxcb-devel-1.5-1.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
pam_krb5-2.3.11-1.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
pytz-2010h-2.el6.noarch
libidn-1.18-2.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
acl-2.2.49-4.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
jline-0.9.94-0.8.el6.noarch
libXt-1.0.7-1.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
procps-3.2.8-14.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
gnome-screensaver-2.28.3-8.el6.x86_64
rpm-4.8.0-12.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
quota-3.17-10.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
rpm-build-4.8.0-12.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
nano-2.0.9-7.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
system-config-services-0.99.45-1.el6.3.noarch
perl-parent-0.221-115.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
hal-info-20090716-3.1.el6.noarch
mlocate-0.22.2-3.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
libicu-4.2.1-9.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
yp-tools-2.9-10.el6.x86_64
coreutils-8.4-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
rfkill-0.3-4.el6.x86_64
at-spi-1.28.1-2.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
lldpad-0.9.38-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
gnome-python2-bonobo-2.28.0-3.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
evolution-data-server-doc-2.28.3-10.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
yelp-2.28.1-8.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
python-2.6.5-3.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile01/ifconfig.txt                                     0000644 0000000 0000000 00000001636 11524347616 023370  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:90:00:01  
          inet addr:10.1.216.11  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe90:1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:513430489 errors:0 dropped:0 overruns:0 frame:0
          TX packets:161130016 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:729799460138 (679.6 GiB)  TX bytes:16196829353 (15.0 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:255264 errors:0 dropped:0 overruns:0 frame:0
          TX packets:255264 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:326360393 (311.2 MiB)  TX bytes:326360393 (311.2 MiB)

                                                                                                  Physical_Configuration/Clients/tb3-client02/tile01/chkconfig.txt                                    0000644 0000000 0000000 00000006556 11524347577 023553  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:off	4:on	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
fcoe           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:off	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:off	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lldpad         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
multipathd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
mysqld         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postgresql     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/df.txt                                                  0000644 0000000 0000000 00000000672 11524347556 021101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg_tb3client02-lv_root
                     133578056  88898924  37893700  71% /
tmpfs                 16501612       188  16501424   1% /dev/shm
/dev/sda2               495844     35181    435063   8% /boot
/dev/sda1               204580       240    204340   1% /boot/efi
10.1.216.100:/RHEL6x64
                     271644928 209848896  47774624  82% /RHEL6x64
                                                                      Physical_Configuration/Clients/tb3-client02/lvdisplay.txt                                           0000644 0000000 0000000 00000001747 11524347576 022525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                     --- Logical volume ---
  LV Name                /dev/vg_tb3client02/lv_root
  VG Name                vg_tb3client02
  LV UUID                uFZ9C6-3AyJ-eF33-V5r3-nZY0-o2eC-T5aaSk
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                129.42 GiB
  Current LE             33132
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/vg_tb3client02/lv_swap
  VG Name                vg_tb3client02
  LV UUID                tpkRTJ-OyTk-FdWC-eDcX-6Vbz-4BVz-b4G8zC
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.00 GiB
  Current LE             1024
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
                         Physical_Configuration/Clients/tb3-client02/mount.txt                                               0000644 0000000 0000000 00000001124 11524347576 021645  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/mapper/vg_tb3client02-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda2 on /boot type ext4 (rw)
/dev/sda1 on /boot/efi type vfat (rw,umask=0077,shortname=winnt)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
10.1.216.100:/RHEL6x64 on /RHEL6x64 type nfs (rw,addr=10.1.216.100)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/etc/                                                    0000777 0000000 0000000 00000000000 11524347576 020523  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/etc/rc.d/                                               0000777 0000000 0000000 00000000000 11524347570 021343  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/                                         0000777 0000000 0000000 00000000000 11524347575 022261  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S23NetworkManager                        0000755 0000000 0000000 00000004235 11524347573 025421  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S80postfix                               0000755 0000000 0000000 00000007414 11524347575 024200  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K69rpcsvcgssd                            0000755 0000000 0000000 00000006014 11524347570 024652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S07iscsid                                0000755 0000000 0000000 00000007127 11524347572 023757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S55sshd                                  0000755 0000000 0000000 00000010671 11524347574 023445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K15httpd                                 0000755 0000000 0000000 00000006364 11524347570 023613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K92ip6tables                             0000755 0000000 0000000 00000020716 11524347572 024365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K89rdisc                                 0000755 0000000 0000000 00000003027 11524347571 023601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K76ipsec                                 0000755 0000000 0000000 00000010777 11524347571 023606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S22messagebus                            0000755 0000000 0000000 00000004230 11524347573 024625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K95firstboot                             0000755 0000000 0000000 00000005341 11524347572 024507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K86cgred                                 0000755 0000000 0000000 00000006302 11524347571 023555  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S84ksm                                   0000755 0000000 0000000 00000004236 11524347575 023301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S13rpcbind                               0000755 0000000 0000000 00000004031 11524347573 024107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S13irqbalance                            0000755 0000000 0000000 00000003521 11524347573 024572  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S91vncserver                             0000755 0000000 0000000 00000006066 11524347575 024525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 91 35
# description: Starts and stops vncserver. \
#	       used to provide remote X administration services.

### BEGIN INIT INFO
# Provides: vncserver
# Required-Start: $network $named
# Required-Stop: $network $named
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: start|stop|restart|try-restart|status|force-reload vncserver
# Description: control vncserver which exports your desktop
### END INIT INFO

# Source function library.
. /etc/init.d/functions

[ -r /etc/sysconfig/vncservers ] && . /etc/sysconfig/vncservers

prog=$"VNC server"

RETVAL=0

start() {
    [ "$EUID" != "0" ] && exit 4
    
    # Source networking configuration.
    . /etc/sysconfig/network

    # Check that networking is up.
    [ ${NETWORKING} = "no" ] && exit 1

    [ -x /usr/bin/vncserver ] || exit 5
    [ -x /usr/bin/Xvnc ] || exit 5

    echo -n $"Starting $prog: "
    RETVAL=0
    if [ ! -d /tmp/.X11-unix ]
    then
        mkdir -m 1777 /tmp/.X11-unix || :
        restorecon /tmp/.X11-unix 2>/dev/null || :
    fi

    for display in ${VNCSERVERS}
    do
        SERVS=1
        echo -n "${display} "
	DISP="${display%%:*}"
	USER="${display##*:}"
	VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
        runuser -l ${USER} -c "cd ~${USER} && [ -r .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
        RETVAL=$?
        [ "$RETVAL" -eq 0 ] || break
    done
    if [ -z "$SERVS" ]; then
        echo -n "no displays configured "
        failure
        RETVAL=6
    else
        if [ "$RETVAL" -eq 0 ]; then
	    success $"vncserver startup"
	    touch /var/lock/subsys/Xvnc
        else 
            failure $"vncserver start"
        fi
    fi
    echo

# As written in https://bugzilla.redhat.com/show_bug.cgi?id=523974 (LSB
# compliance) start of already running service is OK.
    [ "$RETVAL" -eq 98 ] && RETVAL=0

    return "$RETVAL"
}

stop() {
    [ "$EUID" != "0" ] && exit 4

    echo -n $"Shutting down $prog: "

    status Xvnc > /dev/null 2>&1
    RETVAL=$?

    # 3 means service is already stopped
    if ! [ "$RETVAL" -eq 3 ]; then
	for display in ${VNCSERVERS}; do
	    echo -n "${display} "
	    export USER="${display##*:}"
	    runuser ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
	done
	RETVAL=$?
    else
	let RETVAL=0
    fi

    [ "$RETVAL" -eq 0 ] && success $"vncserver shutdown" || \
	failure $"vncserver shutdown"
    echo
    [ "$RETVAL" -eq 0 ] && rm -f /var/lock/subsys/Xvnc
    return "$RETVAL"
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|force-reload)
	stop
	sleep 3
	start
	;;
  condrestart)
#	https://bugzilla.redhat.com/show_bug.cgi?id=508367
#	echo "condrestart is obsolete, use try-restart instead"
	if [ -e /var/lock/subsys/Xvnc ]; then
	    stop
	    sleep 3
	    start
	fi
	;;
  try-restart)
        if [ -e /var/lock/subsys/Xvnc ]; then
            stop
            sleep 3
            start
        fi
        ;;
  status)
	status Xvnc
	RETVAL=$?
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|try-restart|status|force-reload}"
	exit 2
esac

exit "$RETVAL"

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K50dnsmasq                               0000755 0000000 0000000 00000002577 11524347570 024137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S05cgconfig                              0000755 0000000 0000000 00000012327 11524347572 024254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S95atd                                   0000755 0000000 0000000 00000004112 11524347575 023252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K85ebtables                              0000755 0000000 0000000 00000007106 11524347571 024254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# init script for the Ethernet Bridge filter tables
#
# Written by Dag Wieers <dag@wieers.com>
# Modified by Rok Papez <rok.papez@arnes.si>
#             Bart De Schuymer <bdschuym@pandora.be>
#
# chkconfig: - 15 85
# description: Ethernet Bridge filtering tables
#
# config: /etc/sysconfig/ebtables         (text)
#         /etc/sysconfig/ebtables.<table> (binary)

source /etc/init.d/functions
source /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -x /sbin/ebtables ] || exit 5
[ -x /sbin/ebtables-save ] || exit 5
[ -x /sbin/ebtables-restore ] || exit 5

RETVAL=0
prog="ebtables"
desc="Ethernet bridge filtering"
umask 0077

#default configuration
EBTABLES_TEXT_FORMAT="yes"
EBTABLES_BINARY_FORMAT="yes"
EBTABLES_MODULES_UNLOAD="yes"
EBTABLES_SAVE_ON_STOP="no"
EBTABLES_SAVE_ON_RESTART="no"
EBTABLES_SAVE_COUNTER="no"

config=/etc/sysconfig/$prog-config
[ -f "$config" ] && . "$config"

start() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Starting $desc ($prog): "
	if [ "$EBTABLES_BINARY_FORMAT" = "yes" ]; then
		for table in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | sed -e 's/.*ebtables\.//' -e '/save/d' ); do
			/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-commit || RETVAL=1
		done
	else
		/sbin/ebtables-restore < /etc/sysconfig/ebtables || RETVAL=1
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog startup"
		touch "/var/lock/subsys/$prog"
	else
		failure "$prog startup"
	fi
	echo
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Stopping $desc ($prog): "
	for table in $(grep '^ebtable_' /proc/modules | sed -e 's/ebtable_\([^ ]*\).*/\1/'); do
		/sbin/ebtables -t $table --init-table || RETVAL=1
	done

	if [ "$EBTABLES_MODULES_UNLOAD" = "yes" ]; then
		for mod in $(grep -E '^(ebt|ebtable)_' /proc/modules | cut -f1 -d' ') ebtables; do
			rmmod $mod 2> /dev/null
		done
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog shutdown"
		rm -f "/var/lock/subsys/$prog"
	else
		failure "$prog shutdown"
	fi
	echo
}

restart() {
	[ "$EBTABLES_SAVE_ON_RESTART" = "yes" ] && save
	stop
	start
}

save() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Saving $desc ($prog): "
	if [ "$EBTABLES_TEXT_FORMAT" = "yes" ]; then
		if [ -e /etc/sysconfig/ebtables ]; then
			chmod 0600 /etc/sysconfig/ebtables
			mv -f /etc/sysconfig/ebtables /etc/sysconfig/ebtables.save
		fi
		/sbin/ebtables-save > /etc/sysconfig/ebtables || RETVAL=1
	fi
	if [ "$EBTABLES_BINARY_FORMAT" = "yes" ]; then
		rm -f /etc/sysconfig/ebtables.*.save
		for oldtable in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | grep -vF 'ebtables.save'); do
			chmod 0600 $oldtable
			mv -f $oldtable $oldtable.save
		done
		for table in $(grep '^ebtable_' /proc/modules | sed -e 's/ebtable_\([^ ]*\).*/\1/'); do
			/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-save || RETVAL=1
			if [ "$EBTABLES_SAVE_COUNTER" = "no" ]; then
				/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table -Z || RETVAL=1
			fi
		done
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog saved"
	else
		failure "$prog saved"
	fi
	echo
}

case "$1" in
  start)
	[ -f "/var/lock/subsys/$prog" ] && exit 0
	start
	;;
  stop)
	[ "$EBTABLES_SAVE_ON_STOP" = "yes" ] && save
	stop
	;;
  restart|force-reload)
	restart
	;;
  reload)
	[ ! -f "/var/lock/subsys/$prog" ] && exit 7
	restart
	;;
  condrestart|try-restart)
	[ ! -e "/var/lock/subsys/$prog" ] && exit 0
	restart
	;;
  save)
	save
	;;
  status)
	[ -f "/var/lock/subsys/$prog" ] && RETVAL=0 || RETVAL=3
	/sbin/ebtables-save
	;;
  *)
	echo $"Usage $0 {start|stop|restart|condrestart|save|status}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S13iscsi                                 0000755 0000000 0000000 00000007315 11524347573 023610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S15mdmonitor                             0000755 0000000 0000000 00000005013 11524347573 024501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K75ntpdate                               0000755 0000000 0000000 00000003512 11524347571 024126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S97rhnsd                                 0000755 0000000 0000000 00000005522 11524347575 023630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K74ntpd                                  0000755 0000000 0000000 00000003603 11524347571 023434  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K80kdump                                 0000755 0000000 0000000 00000027662 11524347571 023617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S10network                               0000755 0000000 0000000 00000014466 11524347572 024170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S90crond                                 0000755 0000000 0000000 00000005445 11524347575 023614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S12rsyslog                               0000755 0000000 0000000 00000004326 11524347573 024176  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S11auditd                                0000755 0000000 0000000 00000006462 11524347572 023747  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K84wpa_supplicant                        0000755 0000000 0000000 00000003512 11524347571 025520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S01sysstat                               0000755 0000000 0000000 00000002363 11524347572 024202  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K03libvirtd                              0000755 0000000 0000000 00000004765 11524347570 024307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: libvirtd
# Required-Start: $network messagebus
# Should-Start: $named
# Should-Start: xend
# Should-Start: hal
# Should-Start: avahi
# Required-Stop: $network messagebus
# Should-Stop: $named
# Default-Start: 3 4 5
# Short-Description: daemon for libvirt virtualization API
# Description: This is a daemon for managing guest instances
#              and libvirt virtual networks
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirtd:   guest and virtual network management daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon for managing guest instances
#               and libvirt virtual networks
#               See http://libvirt.org
#
# processname: libvirtd
# pidfile: /var/run/libvirtd.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

SERVICE=libvirtd
PROCESS=libvirtd
PIDFILE=/var/run/$SERVICE.pid

LIBVIRTD_CONFIG=
LIBVIRTD_ARGS=
KRB5_KTNAME=/etc/libvirt/krb5.tab

test -f /etc/sysconfig/libvirtd && . /etc/sysconfig/libvirtd

LIBVIRTD_CONFIG_ARGS=
if [ -n "$LIBVIRTD_CONFIG" ]
then
    LIBVIRTD_CONFIG_ARGS="--config $LIBVIRTD_CONFIG"
fi

RETVAL=0

start() {
    echo -n $"Starting $SERVICE daemon: "
    mkdir -p /var/cache/libvirt
    rm -rf /var/cache/libvirt/*
    KRB5_KTNAME=$KRB5_KTNAME daemon --pidfile $PIDFILE --check $SERVICE $PROCESS --daemon $LIBVIRTD_CONFIG_ARGS $LIBVIRTD_ARGS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SERVICE
}

stop() {
    echo -n $"Stopping $SERVICE daemon: "

    killproc -p $PIDFILE $PROCESS
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$SERVICE
        rm -f $PIDFILE
        rm -rf /var/cache/libvirt/*
    fi
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading $SERVICE configuration: "

    killproc -p $PIDFILE $PROCESS -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

# See how we were called.
case "$1" in
    start|stop|restart|reload)
        $1
        ;;
    status)
        status -p $PIDFILE $PROCESS
        RETVAL=$?
        ;;
    force-reload)
        reload
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$SERVICE ] && restart || :
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload|try-restart}"
        exit 2
        ;;
esac
exit $RETVAL
           Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K74gfs2                                  0000755 0000000 0000000 00000006445 11524347571 023337  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S24avahi-daemon                          0000755 0000000 0000000 00000004754 11524347573 025035  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S26haldaemon                             0000755 0000000 0000000 00000003245 11524347574 024431  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S00microcode_ctl                         0000755 0000000 0000000 00000002221 11524347572 025266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K10saslauthd                             0000755 0000000 0000000 00000004010 11524347570 024435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K60nfs                                   0000755 0000000 0000000 00000013536 11524347570 023255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S24rpcgssd                               0000755 0000000 0000000 00000006050 11524347573 024140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S50bluetooth                             0000755 0000000 0000000 00000001306 11524347574 024477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 345 50 83
# description: Turn HID adapters into Bluetooth ones
#
### BEGIN INIT INFO
# Short-Description: Trigger bluetoothd start-up
# Description: Trigger bluetoothd start-up
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth

start()
{
	echo -n $"Enabling Bluetooth devices:"
	udevadm trigger --subsystem-match=bluetooth
	echo ""
	return 0
}

stop()
{
	# FIXME If somebody figures out how to disable the K* script
	echo -n "Stopping Bluetooth services:"
	echo ""
	return 0
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  *)
	echo $"Usage: $0 {start|stop}"
	exit 3
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K10psacct                                0000755 0000000 0000000 00000003024 11524347570 023726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S26acpid                                 0000755 0000000 0000000 00000003275 11524347574 023564  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S13cpuspeed                              0000755 0000000 0000000 00000025442 11524347573 024307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S26udev-post                             0000755 0000000 0000000 00000004370 11524347574 024427  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S99local                                 0000755 0000000 0000000 00000000334 11524347575 023602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K50netconsole                            0000755 0000000 0000000 00000005650 11524347570 024635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S24rpcidmapd                             0000755 0000000 0000000 00000005222 11524347574 024437  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S02lvm2-monitor                          0000555 0000000 0000000 00000004612 11524347572 025033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S28autofs                                0000755 0000000 0000000 00000007234 11524347574 024006  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S85ksmtuned                              0000755 0000000 0000000 00000003433 11524347575 024340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K01smartd                                0000755 0000000 0000000 00000005672 11524347570 023756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S98libvirt-guests                        0000755 0000000 0000000 00000017172 11524347575 025502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S82abrtd                                 0000755 0000000 0000000 00000003254 11524347575 023600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S55autobench                             0000755 0000000 0000000 00000005063 11524347574 024453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S25netfs                                 0000755 0000000 0000000 00000012432 11524347574 023615  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/S24nfslock                               0000755 0000000 0000000 00000006675 11524347573 024147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K92iptables                              0000755 0000000 0000000 00000020557 11524347572 024302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/etc/rc.d/rc3.d/K87restorecond                           0000755 0000000 0000000 00000003427 11524347571 025026  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/                                        0000777 0000000 0000000 00000000000 11524347567 022536  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/network                                 0000755 0000000 0000000 00000014466 11524347565 024162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/gfs2                                    0000755 0000000 0000000 00000006445 11524347563 023326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/sysstat                                 0000755 0000000 0000000 00000002363 11524347567 024176  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/saslauthd                               0000755 0000000 0000000 00000004010 11524347567 024443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/messagebus                              0000755 0000000 0000000 00000004230 11524347565 024613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/autobench                               0000755 0000000 0000000 00000005063 11524347562 024427  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/atd                                     0000755 0000000 0000000 00000004112 11524347561 023220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/mcelogd                                 0000755 0000000 0000000 00000003535 11524347565 024076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/auditd                                  0000755 0000000 0000000 00000006462 11524347562 023735  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/irqbalance                              0000755 0000000 0000000 00000003521 11524347564 024557  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/acpid                                   0000755 0000000 0000000 00000003275 11524347561 023541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/iscsid                                  0000755 0000000 0000000 00000007127 11524347564 023742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/rpcidmapd                               0000755 0000000 0000000 00000005222 11524347566 024423  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/nfs                                     0000755 0000000 0000000 00000013536 11524347565 023254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/crond                                   0000755 0000000 0000000 00000005445 11524347562 023570  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/ip6tables                               0000755 0000000 0000000 00000020716 11524347563 024353  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/firstboot                               0000755 0000000 0000000 00000005341 11524347563 024472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/autofs                                  0000755 0000000 0000000 00000007234 11524347562 023762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/sshd                                    0000755 0000000 0000000 00000010671 11524347567 023426  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/ksm                                     0000755 0000000 0000000 00000004236 11524347564 023254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/libvirtd                                0000755 0000000 0000000 00000004765 11524347564 024310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: libvirtd
# Required-Start: $network messagebus
# Should-Start: $named
# Should-Start: xend
# Should-Start: hal
# Should-Start: avahi
# Required-Stop: $network messagebus
# Should-Stop: $named
# Default-Start: 3 4 5
# Short-Description: daemon for libvirt virtualization API
# Description: This is a daemon for managing guest instances
#              and libvirt virtual networks
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirtd:   guest and virtual network management daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon for managing guest instances
#               and libvirt virtual networks
#               See http://libvirt.org
#
# processname: libvirtd
# pidfile: /var/run/libvirtd.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

SERVICE=libvirtd
PROCESS=libvirtd
PIDFILE=/var/run/$SERVICE.pid

LIBVIRTD_CONFIG=
LIBVIRTD_ARGS=
KRB5_KTNAME=/etc/libvirt/krb5.tab

test -f /etc/sysconfig/libvirtd && . /etc/sysconfig/libvirtd

LIBVIRTD_CONFIG_ARGS=
if [ -n "$LIBVIRTD_CONFIG" ]
then
    LIBVIRTD_CONFIG_ARGS="--config $LIBVIRTD_CONFIG"
fi

RETVAL=0

start() {
    echo -n $"Starting $SERVICE daemon: "
    mkdir -p /var/cache/libvirt
    rm -rf /var/cache/libvirt/*
    KRB5_KTNAME=$KRB5_KTNAME daemon --pidfile $PIDFILE --check $SERVICE $PROCESS --daemon $LIBVIRTD_CONFIG_ARGS $LIBVIRTD_ARGS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SERVICE
}

stop() {
    echo -n $"Stopping $SERVICE daemon: "

    killproc -p $PIDFILE $PROCESS
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$SERVICE
        rm -f $PIDFILE
        rm -rf /var/cache/libvirt/*
    fi
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading $SERVICE configuration: "

    killproc -p $PIDFILE $PROCESS -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

# See how we were called.
case "$1" in
    start|stop|restart|reload)
        $1
        ;;
    status)
        status -p $PIDFILE $PROCESS
        RETVAL=$?
        ;;
    force-reload)
        reload
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$SERVICE ] && restart || :
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload|try-restart}"
        exit 2
        ;;
esac
exit $RETVAL
           Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/libvirt-guests                          0000755 0000000 0000000 00000017172 11524347564 025450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/avahi-daemon                            0000755 0000000 0000000 00000004754 11524347562 025016  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/iscsi                                   0000755 0000000 0000000 00000007315 11524347564 023575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/psacct                                  0000755 0000000 0000000 00000003024 11524347566 023733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/nfslock                                 0000755 0000000 0000000 00000006675 11524347565 024133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/ebtables                                0000755 0000000 0000000 00000007106 11524347563 024241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# init script for the Ethernet Bridge filter tables
#
# Written by Dag Wieers <dag@wieers.com>
# Modified by Rok Papez <rok.papez@arnes.si>
#             Bart De Schuymer <bdschuym@pandora.be>
#
# chkconfig: - 15 85
# description: Ethernet Bridge filtering tables
#
# config: /etc/sysconfig/ebtables         (text)
#         /etc/sysconfig/ebtables.<table> (binary)

source /etc/init.d/functions
source /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -x /sbin/ebtables ] || exit 5
[ -x /sbin/ebtables-save ] || exit 5
[ -x /sbin/ebtables-restore ] || exit 5

RETVAL=0
prog="ebtables"
desc="Ethernet bridge filtering"
umask 0077

#default configuration
EBTABLES_TEXT_FORMAT="yes"
EBTABLES_BINARY_FORMAT="yes"
EBTABLES_MODULES_UNLOAD="yes"
EBTABLES_SAVE_ON_STOP="no"
EBTABLES_SAVE_ON_RESTART="no"
EBTABLES_SAVE_COUNTER="no"

config=/etc/sysconfig/$prog-config
[ -f "$config" ] && . "$config"

start() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Starting $desc ($prog): "
	if [ "$EBTABLES_BINARY_FORMAT" = "yes" ]; then
		for table in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | sed -e 's/.*ebtables\.//' -e '/save/d' ); do
			/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-commit || RETVAL=1
		done
	else
		/sbin/ebtables-restore < /etc/sysconfig/ebtables || RETVAL=1
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog startup"
		touch "/var/lock/subsys/$prog"
	else
		failure "$prog startup"
	fi
	echo
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Stopping $desc ($prog): "
	for table in $(grep '^ebtable_' /proc/modules | sed -e 's/ebtable_\([^ ]*\).*/\1/'); do
		/sbin/ebtables -t $table --init-table || RETVAL=1
	done

	if [ "$EBTABLES_MODULES_UNLOAD" = "yes" ]; then
		for mod in $(grep -E '^(ebt|ebtable)_' /proc/modules | cut -f1 -d' ') ebtables; do
			rmmod $mod 2> /dev/null
		done
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog shutdown"
		rm -f "/var/lock/subsys/$prog"
	else
		failure "$prog shutdown"
	fi
	echo
}

restart() {
	[ "$EBTABLES_SAVE_ON_RESTART" = "yes" ] && save
	stop
	start
}

save() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Saving $desc ($prog): "
	if [ "$EBTABLES_TEXT_FORMAT" = "yes" ]; then
		if [ -e /etc/sysconfig/ebtables ]; then
			chmod 0600 /etc/sysconfig/ebtables
			mv -f /etc/sysconfig/ebtables /etc/sysconfig/ebtables.save
		fi
		/sbin/ebtables-save > /etc/sysconfig/ebtables || RETVAL=1
	fi
	if [ "$EBTABLES_BINARY_FORMAT" = "yes" ]; then
		rm -f /etc/sysconfig/ebtables.*.save
		for oldtable in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | grep -vF 'ebtables.save'); do
			chmod 0600 $oldtable
			mv -f $oldtable $oldtable.save
		done
		for table in $(grep '^ebtable_' /proc/modules | sed -e 's/ebtable_\([^ ]*\).*/\1/'); do
			/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-save || RETVAL=1
			if [ "$EBTABLES_SAVE_COUNTER" = "no" ]; then
				/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table -Z || RETVAL=1
			fi
		done
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog saved"
	else
		failure "$prog saved"
	fi
	echo
}

case "$1" in
  start)
	[ -f "/var/lock/subsys/$prog" ] && exit 0
	start
	;;
  stop)
	[ "$EBTABLES_SAVE_ON_STOP" = "yes" ] && save
	stop
	;;
  restart|force-reload)
	restart
	;;
  reload)
	[ ! -f "/var/lock/subsys/$prog" ] && exit 7
	restart
	;;
  condrestart|try-restart)
	[ ! -e "/var/lock/subsys/$prog" ] && exit 0
	restart
	;;
  save)
	save
	;;
  status)
	[ -f "/var/lock/subsys/$prog" ] && RETVAL=0 || RETVAL=3
	/sbin/ebtables-save
	;;
  *)
	echo $"Usage $0 {start|stop|restart|condrestart|save|status}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/cgred                                   0000755 0000000 0000000 00000006302 11524347562 023540  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/udev-post                               0000755 0000000 0000000 00000004370 11524347567 024412  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/haldaemon                               0000755 0000000 0000000 00000003245 11524347563 024410  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/ipsec                                   0000755 0000000 0000000 00000010777 11524347563 023573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/rpcbind                                 0000755 0000000 0000000 00000004031 11524347566 024076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/rhnsd                                   0000755 0000000 0000000 00000005522 11524347566 023601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/dnsmasq                                 0000755 0000000 0000000 00000002577 11524347562 024134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/functions                               0000644 0000000 0000000 00000042767 11524347563 024501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/kdump                                   0000755 0000000 0000000 00000027662 11524347564 023612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/postfix                                 0000755 0000000 0000000 00000007414 11524347566 024161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/iptables                                0000755 0000000 0000000 00000020557 11524347564 024271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/rsyslog                                 0000755 0000000 0000000 00000004326 11524347567 024167  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/NetworkManager                          0000755 0000000 0000000 00000004235 11524347561 025402  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/netconsole                              0000755 0000000 0000000 00000005650 11524347565 024635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/rpcgssd                                 0000755 0000000 0000000 00000006050 11524347566 024125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/abrtd                                   0000755 0000000 0000000 00000003254 11524347561 023552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/lvm2-monitor                            0000555 0000000 0000000 00000004612 11524347564 025023  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/halt                                    0000755 0000000 0000000 00000012723 11524347563 023411  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/cgconfig                                0000755 0000000 0000000 00000012327 11524347562 024237  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/vncserver                               0000755 0000000 0000000 00000006066 11524347567 024505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 91 35
# description: Starts and stops vncserver. \
#	       used to provide remote X administration services.

### BEGIN INIT INFO
# Provides: vncserver
# Required-Start: $network $named
# Required-Stop: $network $named
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: start|stop|restart|try-restart|status|force-reload vncserver
# Description: control vncserver which exports your desktop
### END INIT INFO

# Source function library.
. /etc/init.d/functions

[ -r /etc/sysconfig/vncservers ] && . /etc/sysconfig/vncservers

prog=$"VNC server"

RETVAL=0

start() {
    [ "$EUID" != "0" ] && exit 4
    
    # Source networking configuration.
    . /etc/sysconfig/network

    # Check that networking is up.
    [ ${NETWORKING} = "no" ] && exit 1

    [ -x /usr/bin/vncserver ] || exit 5
    [ -x /usr/bin/Xvnc ] || exit 5

    echo -n $"Starting $prog: "
    RETVAL=0
    if [ ! -d /tmp/.X11-unix ]
    then
        mkdir -m 1777 /tmp/.X11-unix || :
        restorecon /tmp/.X11-unix 2>/dev/null || :
    fi

    for display in ${VNCSERVERS}
    do
        SERVS=1
        echo -n "${display} "
	DISP="${display%%:*}"
	USER="${display##*:}"
	VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
        runuser -l ${USER} -c "cd ~${USER} && [ -r .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
        RETVAL=$?
        [ "$RETVAL" -eq 0 ] || break
    done
    if [ -z "$SERVS" ]; then
        echo -n "no displays configured "
        failure
        RETVAL=6
    else
        if [ "$RETVAL" -eq 0 ]; then
	    success $"vncserver startup"
	    touch /var/lock/subsys/Xvnc
        else 
            failure $"vncserver start"
        fi
    fi
    echo

# As written in https://bugzilla.redhat.com/show_bug.cgi?id=523974 (LSB
# compliance) start of already running service is OK.
    [ "$RETVAL" -eq 98 ] && RETVAL=0

    return "$RETVAL"
}

stop() {
    [ "$EUID" != "0" ] && exit 4

    echo -n $"Shutting down $prog: "

    status Xvnc > /dev/null 2>&1
    RETVAL=$?

    # 3 means service is already stopped
    if ! [ "$RETVAL" -eq 3 ]; then
	for display in ${VNCSERVERS}; do
	    echo -n "${display} "
	    export USER="${display##*:}"
	    runuser ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
	done
	RETVAL=$?
    else
	let RETVAL=0
    fi

    [ "$RETVAL" -eq 0 ] && success $"vncserver shutdown" || \
	failure $"vncserver shutdown"
    echo
    [ "$RETVAL" -eq 0 ] && rm -f /var/lock/subsys/Xvnc
    return "$RETVAL"
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|force-reload)
	stop
	sleep 3
	start
	;;
  condrestart)
#	https://bugzilla.redhat.com/show_bug.cgi?id=508367
#	echo "condrestart is obsolete, use try-restart instead"
	if [ -e /var/lock/subsys/Xvnc ]; then
	    stop
	    sleep 3
	    start
	fi
	;;
  try-restart)
        if [ -e /var/lock/subsys/Xvnc ]; then
            stop
            sleep 3
            start
        fi
        ;;
  status)
	status Xvnc
	RETVAL=$?
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|try-restart|status|force-reload}"
	exit 2
esac

exit "$RETVAL"

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/single                                  0000755 0000000 0000000 00000001207 11524347567 023741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/mdmonitor                               0000755 0000000 0000000 00000005013 11524347565 024465  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/restorecond                             0000755 0000000 0000000 00000003427 11524347566 025014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/bluetooth                               0000755 0000000 0000000 00000001306 11524347562 024460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 345 50 83
# description: Turn HID adapters into Bluetooth ones
#
### BEGIN INIT INFO
# Short-Description: Trigger bluetoothd start-up
# Description: Trigger bluetoothd start-up
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth

start()
{
	echo -n $"Enabling Bluetooth devices:"
	udevadm trigger --subsystem-match=bluetooth
	echo ""
	return 0
}

stop()
{
	# FIXME If somebody figures out how to disable the K* script
	echo -n "Stopping Bluetooth services:"
	echo ""
	return 0
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  *)
	echo $"Usage: $0 {start|stop}"
	exit 3
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/wpa_supplicant                          0000755 0000000 0000000 00000003512 11524347567 025512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/cpuspeed                                0000755 0000000 0000000 00000025442 11524347562 024272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/netfs                                   0000755 0000000 0000000 00000012432 11524347565 023577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/rpcsvcgssd                              0000755 0000000 0000000 00000006014 11524347567 024642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/ksmtuned                                0000755 0000000 0000000 00000003433 11524347564 024312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/sandbox                                 0000755 0000000 0000000 00000003242 11524347567 024117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/killall                                 0000755 0000000 0000000 00000001214 11524347564 024077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/rdisc                                   0000755 0000000 0000000 00000003027 11524347566 023565  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/httpd                                   0000755 0000000 0000000 00000006364 11524347563 023610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/ntpd                                    0000755 0000000 0000000 00000003603 11524347566 023426  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/smartd                                  0000755 0000000 0000000 00000005672 11524347567 023764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/ntpdate                                 0000755 0000000 0000000 00000003512 11524347566 024117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/etc/rc.d/init.d/microcode_ctl                           0000755 0000000 0000000 00000002221 11524347565 025261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/etc/hosts                                               0000644 0000000 0000000 00000033400 11524347557 021601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1	tb3-client02	localhost.localdomain	localhost
::1	tb3-client02	localhost6.localdomain6	localhost6

10.1.216.100	autobench tb3-autobench tb3-autobench.linuxperf9025.net
10.1.216.150	tb3-master
10.1.216.246	tb3-mako18

10.1.216.11		tb3-client01
10.1.216.12		tb3-client02
10.1.216.13		tb3-client03
10.1.216.14		tb3-client04

10.1.216.151		tb3-vct01	tb3-vct01.linuxperf9025.net
10.1.216.152		tb3-vct02	tb3-vct02.linuxperf9025.net
10.1.216.153		tb3-vct03	tb3-vct03.linuxperf9025.net
10.1.216.154		tb3-vct04	tb3-vct04.linuxperf9025.net
10.1.216.155		tb3-vct05	tb3-vct05.linuxperf9025.net
10.1.216.156		tb3-vct06	tb3-vct06.linuxperf9025.net
10.1.216.157		tb3-vct07	tb3-vct07.linuxperf9025.net
10.1.216.158		tb3-vct08	tb3-vct08.linuxperf9025.net
10.1.216.159		tb3-vct09	tb3-vct09.linuxperf9025.net
10.1.216.160		tb3-vct10	tb3-vct10.linuxperf9025.net
10.1.216.161		tb3-vct11	tb3-vct11.linuxperf9025.net
10.1.216.162		tb3-vct12	tb3-vct12.linuxperf9025.net
10.1.216.163		tb3-vct13	tb3-vct13.linuxperf9025.net
10.1.216.164		tb3-vct14	tb3-vct14.linuxperf9025.net
10.1.216.165		tb3-vct15	tb3-vct15.linuxperf9025.net
10.1.216.166		tb3-vct16	tb3-vct16.linuxperf9025.net
10.1.216.167		tb3-vct17	tb3-vct17.linuxperf9025.net
10.1.216.168		tb3-vct18	tb3-vct18.linuxperf9025.net
10.1.216.169		tb3-vct19	tb3-vct19.linuxperf9025.net
10.1.216.170		tb3-vct20	tb3-vct20.linuxperf9025.net
10.1.216.171		tb3-vct21	tb3-vct21.linuxperf9025.net
10.1.216.172		tb3-vct22	tb3-vct22.linuxperf9025.net
10.1.216.173		tb3-vct23	tb3-vct23.linuxperf9025.net
10.1.216.174		tb3-vct24	tb3-vct24.linuxperf9025.net
10.1.216.175		tb3-vct25	tb3-vct25.linuxperf9025.net
10.1.216.176		tb3-vct26	tb3-vct26.linuxperf9025.net
10.1.216.177		tb3-vct27	tb3-vct27.linuxperf9025.net
10.1.216.178		tb3-vct28	tb3-vct28.linuxperf9025.net
10.1.216.179		tb3-vct29	tb3-vct29.linuxperf9025.net
10.1.216.180		tb3-vct30	tb3-vct30.linuxperf9025.net
10.1.216.181		tb3-vct31	tb3-vct31.linuxperf9025.net
10.1.216.182		tb3-vct32	tb3-vct32.linuxperf9025.net
10.1.216.183		tb3-vct33	tb3-vct33.linuxperf9025.net
10.1.216.184		tb3-vct34	tb3-vct34.linuxperf9025.net
10.1.216.185		tb3-vct35	tb3-vct35.linuxperf9025.net
10.1.216.186		tb3-vct36	tb3-vct36.linuxperf9025.net

10.1.217.1		tb3-webt01	tb3-webt01.linuxperf9025.net
10.1.217.2		tb3-appt01	tb3-appt01.linuxperf9025.net
10.1.217.3		tb3-dbt01	tb3-dbt01.linuxperf9025.net
10.1.217.4		tb3-idlet01	tb3-idlet01.linuxperf9025.net
10.1.217.5		tb3-infrat01	tb3-infrat01.linuxperf9025.net
10.1.217.6		tb3-mailt01	tb3-mailt01.linuxperf9025.net
10.1.217.7		tb3-webt02	tb3-webt02.linuxperf9025.net
10.1.217.8		tb3-appt02	tb3-appt02.linuxperf9025.net
10.1.217.9		tb3-dbt02	tb3-dbt02.linuxperf9025.net
10.1.217.10		tb3-idlet02	tb3-idlet02.linuxperf9025.net
10.1.217.11		tb3-infrat02	tb3-infrat02.linuxperf9025.net
10.1.217.12		tb3-mailt02	tb3-mailt02.linuxperf9025.net
10.1.217.13		tb3-webt03	tb3-webt03.linuxperf9025.net
10.1.217.14		tb3-appt03	tb3-appt03.linuxperf9025.net
10.1.217.15		tb3-dbt03	tb3-dbt03.linuxperf9025.net
10.1.217.16		tb3-idlet03	tb3-idlet03.linuxperf9025.net
10.1.217.17		tb3-infrat03	tb3-infrat03.linuxperf9025.net
10.1.217.18		tb3-mailt03	tb3-mailt03.linuxperf9025.net
10.1.217.19		tb3-webt04	tb3-webt04.linuxperf9025.net
10.1.217.20		tb3-appt04	tb3-appt04.linuxperf9025.net
10.1.217.21		tb3-dbt04	tb3-dbt04.linuxperf9025.net
10.1.217.22		tb3-idlet04	tb3-idlet04.linuxperf9025.net
10.1.217.23		tb3-infrat04	tb3-infrat04.linuxperf9025.net
10.1.217.24		tb3-mailt04	tb3-mailt04.linuxperf9025.net
10.1.217.25		tb3-webt05	tb3-webt05.linuxperf9025.net
10.1.217.26		tb3-appt05	tb3-appt05.linuxperf9025.net
10.1.217.27		tb3-dbt05	tb3-dbt05.linuxperf9025.net
10.1.217.28		tb3-idlet05	tb3-idlet05.linuxperf9025.net
10.1.217.29		tb3-infrat05	tb3-infrat05.linuxperf9025.net
10.1.217.30		tb3-mailt05	tb3-mailt05.linuxperf9025.net
10.1.217.31		tb3-webt06	tb3-webt06.linuxperf9025.net
10.1.217.32		tb3-appt06	tb3-appt06.linuxperf9025.net
10.1.217.33		tb3-dbt06	tb3-dbt06.linuxperf9025.net
10.1.217.34		tb3-idlet06	tb3-idlet06.linuxperf9025.net
10.1.217.35		tb3-infrat06	tb3-infrat06.linuxperf9025.net
10.1.217.36		tb3-mailt06	tb3-mailt06.linuxperf9025.net
10.1.217.37		tb3-webt07	tb3-webt07.linuxperf9025.net
10.1.217.38		tb3-appt07	tb3-appt07.linuxperf9025.net
10.1.217.39		tb3-dbt07	tb3-dbt07.linuxperf9025.net
10.1.217.40		tb3-idlet07	tb3-idlet07.linuxperf9025.net
10.1.217.41		tb3-infrat07	tb3-infrat07.linuxperf9025.net
10.1.217.42		tb3-mailt07	tb3-mailt07.linuxperf9025.net
10.1.217.43		tb3-webt08	tb3-webt08.linuxperf9025.net
10.1.217.44		tb3-appt08	tb3-appt08.linuxperf9025.net
10.1.217.45		tb3-dbt08	tb3-dbt08.linuxperf9025.net
10.1.217.46		tb3-idlet08	tb3-idlet08.linuxperf9025.net
10.1.217.47		tb3-infrat08	tb3-infrat08.linuxperf9025.net
10.1.217.48		tb3-mailt08	tb3-mailt08.linuxperf9025.net
10.1.217.49		tb3-webt09	tb3-webt09.linuxperf9025.net
10.1.217.50		tb3-appt09	tb3-appt09.linuxperf9025.net
10.1.217.51		tb3-dbt09	tb3-dbt09.linuxperf9025.net
10.1.217.52		tb3-idlet09	tb3-idlet09.linuxperf9025.net
10.1.217.53		tb3-infrat09	tb3-infrat09.linuxperf9025.net
10.1.217.54		tb3-mailt09	tb3-mailt09.linuxperf9025.net
10.1.217.55		tb3-webt10	tb3-webt10.linuxperf9025.net
10.1.217.56		tb3-appt10	tb3-appt10.linuxperf9025.net
10.1.217.57		tb3-dbt10	tb3-dbt10.linuxperf9025.net
10.1.217.58		tb3-idlet10	tb3-idlet10.linuxperf9025.net
10.1.217.59		tb3-infrat10	tb3-infrat10.linuxperf9025.net
10.1.217.60		tb3-mailt10	tb3-mailt10.linuxperf9025.net
10.1.217.61		tb3-webt11	tb3-webt11.linuxperf9025.net
10.1.217.62		tb3-appt11	tb3-appt11.linuxperf9025.net
10.1.217.63		tb3-dbt11	tb3-dbt11.linuxperf9025.net
10.1.217.64		tb3-idlet11	tb3-idlet11.linuxperf9025.net
10.1.217.65		tb3-infrat11	tb3-infrat11.linuxperf9025.net
10.1.217.66		tb3-mailt11	tb3-mailt11.linuxperf9025.net
10.1.217.67		tb3-webt12	tb3-webt12.linuxperf9025.net
10.1.217.68		tb3-appt12	tb3-appt12.linuxperf9025.net
10.1.217.69		tb3-dbt12	tb3-dbt12.linuxperf9025.net
10.1.217.70		tb3-idlet12	tb3-idlet12.linuxperf9025.net
10.1.217.71		tb3-infrat12	tb3-infrat12.linuxperf9025.net
10.1.217.72		tb3-mailt12	tb3-mailt12.linuxperf9025.net
10.1.217.73		tb3-webt13	tb3-webt13.linuxperf9025.net
10.1.217.74		tb3-appt13	tb3-appt13.linuxperf9025.net
10.1.217.75		tb3-dbt13	tb3-dbt13.linuxperf9025.net
10.1.217.76		tb3-idlet13	tb3-idlet13.linuxperf9025.net
10.1.217.77		tb3-infrat13	tb3-infrat13.linuxperf9025.net
10.1.217.78		tb3-mailt13	tb3-mailt13.linuxperf9025.net
10.1.217.79		tb3-webt14	tb3-webt14.linuxperf9025.net
10.1.217.80		tb3-appt14	tb3-appt14.linuxperf9025.net
10.1.217.81		tb3-dbt14	tb3-dbt14.linuxperf9025.net
10.1.217.82		tb3-idlet14	tb3-idlet14.linuxperf9025.net
10.1.217.83		tb3-infrat14	tb3-infrat14.linuxperf9025.net
10.1.217.84		tb3-mailt14	tb3-mailt14.linuxperf9025.net
10.1.217.85		tb3-webt15	tb3-webt15.linuxperf9025.net
10.1.217.86		tb3-appt15	tb3-appt15.linuxperf9025.net
10.1.217.87		tb3-dbt15	tb3-dbt15.linuxperf9025.net
10.1.217.88		tb3-idlet15	tb3-idlet15.linuxperf9025.net
10.1.217.89		tb3-infrat15	tb3-infrat15.linuxperf9025.net
10.1.217.90		tb3-mailt15	tb3-mailt15.linuxperf9025.net
10.1.217.91		tb3-webt16	tb3-webt16.linuxperf9025.net
10.1.217.92		tb3-appt16	tb3-appt16.linuxperf9025.net
10.1.217.93		tb3-dbt16	tb3-dbt16.linuxperf9025.net
10.1.217.94		tb3-idlet16	tb3-idlet16.linuxperf9025.net
10.1.217.95		tb3-infrat16	tb3-infrat16.linuxperf9025.net
10.1.217.96		tb3-mailt16	tb3-mailt16.linuxperf9025.net
10.1.217.97		tb3-webt17	tb3-webt17.linuxperf9025.net
10.1.217.98		tb3-appt17	tb3-appt17.linuxperf9025.net
10.1.217.99		tb3-dbt17	tb3-dbt17.linuxperf9025.net
10.1.217.100		tb3-idlet17	tb3-idlet17.linuxperf9025.net
10.1.217.101		tb3-infrat17	tb3-infrat17.linuxperf9025.net
10.1.217.102		tb3-mailt17	tb3-mailt17.linuxperf9025.net
10.1.217.103		tb3-webt18	tb3-webt18.linuxperf9025.net
10.1.217.104		tb3-appt18	tb3-appt18.linuxperf9025.net
10.1.217.105		tb3-dbt18	tb3-dbt18.linuxperf9025.net
10.1.217.106		tb3-idlet18	tb3-idlet18.linuxperf9025.net
10.1.217.107		tb3-infrat18	tb3-infrat18.linuxperf9025.net
10.1.217.108		tb3-mailt18	tb3-mailt18.linuxperf9025.net
10.1.217.109		tb3-webt19	tb3-webt19.linuxperf9025.net
10.1.217.110		tb3-appt19	tb3-appt19.linuxperf9025.net
10.1.217.111		tb3-dbt19	tb3-dbt19.linuxperf9025.net
10.1.217.112		tb3-idlet19	tb3-idlet19.linuxperf9025.net
10.1.217.113		tb3-infrat19	tb3-infrat19.linuxperf9025.net
10.1.217.114		tb3-mailt19	tb3-mailt19.linuxperf9025.net
10.1.217.115		tb3-webt20	tb3-webt20.linuxperf9025.net
10.1.217.116		tb3-appt20	tb3-appt20.linuxperf9025.net
10.1.217.117		tb3-dbt20	tb3-dbt20.linuxperf9025.net
10.1.217.118		tb3-idlet20	tb3-idlet20.linuxperf9025.net
10.1.217.119		tb3-infrat20	tb3-infrat20.linuxperf9025.net
10.1.217.120		tb3-mailt20	tb3-mailt20.linuxperf9025.net
10.1.217.121		tb3-webt21	tb3-webt21.linuxperf9025.net
10.1.217.122		tb3-appt21	tb3-appt21.linuxperf9025.net
10.1.217.123		tb3-dbt21	tb3-dbt21.linuxperf9025.net
10.1.217.124		tb3-idlet21	tb3-idlet21.linuxperf9025.net
10.1.217.125		tb3-infrat21	tb3-infrat21.linuxperf9025.net
10.1.217.126		tb3-mailt21	tb3-mailt21.linuxperf9025.net
10.1.217.127		tb3-webt22	tb3-webt22.linuxperf9025.net
10.1.217.128		tb3-appt22	tb3-appt22.linuxperf9025.net
10.1.217.129		tb3-dbt22	tb3-dbt22.linuxperf9025.net
10.1.217.130		tb3-idlet22	tb3-idlet22.linuxperf9025.net
10.1.217.131		tb3-infrat22	tb3-infrat22.linuxperf9025.net
10.1.217.132		tb3-mailt22	tb3-mailt22.linuxperf9025.net
10.1.217.133		tb3-webt23	tb3-webt23.linuxperf9025.net
10.1.217.134		tb3-appt23	tb3-appt23.linuxperf9025.net
10.1.217.135		tb3-dbt23	tb3-dbt23.linuxperf9025.net
10.1.217.136		tb3-idlet23	tb3-idlet23.linuxperf9025.net
10.1.217.137		tb3-infrat23	tb3-infrat23.linuxperf9025.net
10.1.217.138		tb3-mailt23	tb3-mailt23.linuxperf9025.net
10.1.217.139		tb3-webt24	tb3-webt24.linuxperf9025.net
10.1.217.140		tb3-appt24	tb3-appt24.linuxperf9025.net
10.1.217.141		tb3-dbt24	tb3-dbt24.linuxperf9025.net
10.1.217.142		tb3-idlet24	tb3-idlet24.linuxperf9025.net
10.1.217.143		tb3-infrat24	tb3-infrat24.linuxperf9025.net
10.1.217.144		tb3-mailt24	tb3-mailt24.linuxperf9025.net
10.1.217.145		tb3-webt25	tb3-webt25.linuxperf9025.net
10.1.217.146		tb3-appt25	tb3-appt25.linuxperf9025.net
10.1.217.147		tb3-dbt25	tb3-dbt25.linuxperf9025.net
10.1.217.148		tb3-idlet25	tb3-idlet25.linuxperf9025.net
10.1.217.149		tb3-infrat25	tb3-infrat25.linuxperf9025.net
10.1.217.150		tb3-mailt25	tb3-mailt25.linuxperf9025.net
10.1.217.151		tb3-webt26	tb3-webt26.linuxperf9025.net
10.1.217.152		tb3-appt26	tb3-appt26.linuxperf9025.net
10.1.217.153		tb3-dbt26	tb3-dbt26.linuxperf9025.net
10.1.217.154		tb3-idlet26	tb3-idlet26.linuxperf9025.net
10.1.217.155		tb3-infrat26	tb3-infrat26.linuxperf9025.net
10.1.217.156		tb3-mailt26	tb3-mailt26.linuxperf9025.net
10.1.217.157		tb3-webt27	tb3-webt27.linuxperf9025.net
10.1.217.158		tb3-appt27	tb3-appt27.linuxperf9025.net
10.1.217.159		tb3-dbt27	tb3-dbt27.linuxperf9025.net
10.1.217.160		tb3-idlet27	tb3-idlet27.linuxperf9025.net
10.1.217.161		tb3-infrat27	tb3-infrat27.linuxperf9025.net
10.1.217.162		tb3-mailt27	tb3-mailt27.linuxperf9025.net
10.1.217.163		tb3-webt28	tb3-webt28.linuxperf9025.net
10.1.217.164		tb3-appt28	tb3-appt28.linuxperf9025.net
10.1.217.165		tb3-dbt28	tb3-dbt28.linuxperf9025.net
10.1.217.166		tb3-idlet28	tb3-idlet28.linuxperf9025.net
10.1.217.167		tb3-infrat28	tb3-infrat28.linuxperf9025.net
10.1.217.168		tb3-mailt28	tb3-mailt28.linuxperf9025.net
10.1.217.169		tb3-webt29	tb3-webt29.linuxperf9025.net
10.1.217.170		tb3-appt29	tb3-appt29.linuxperf9025.net
10.1.217.171		tb3-dbt29	tb3-dbt29.linuxperf9025.net
10.1.217.172		tb3-idlet29	tb3-idlet29.linuxperf9025.net
10.1.217.173		tb3-infrat29	tb3-infrat29.linuxperf9025.net
10.1.217.174		tb3-mailt29	tb3-mailt29.linuxperf9025.net
10.1.217.175		tb3-webt30	tb3-webt30.linuxperf9025.net
10.1.217.176		tb3-appt30	tb3-appt30.linuxperf9025.net
10.1.217.177		tb3-dbt30	tb3-dbt30.linuxperf9025.net
10.1.217.178		tb3-idlet30	tb3-idlet30.linuxperf9025.net
10.1.217.179		tb3-infrat30	tb3-infrat30.linuxperf9025.net
10.1.217.180		tb3-mailt30	tb3-mailt30.linuxperf9025.net
10.1.217.181		tb3-webt31	tb3-webt31.linuxperf9025.net
10.1.217.182		tb3-appt31	tb3-appt31.linuxperf9025.net
10.1.217.183		tb3-dbt31	tb3-dbt31.linuxperf9025.net
10.1.217.184		tb3-idlet31	tb3-idlet31.linuxperf9025.net
10.1.217.185		tb3-infrat31	tb3-infrat31.linuxperf9025.net
10.1.217.186		tb3-mailt31	tb3-mailt31.linuxperf9025.net
10.1.217.187		tb3-webt32	tb3-webt32.linuxperf9025.net
10.1.217.188		tb3-appt32	tb3-appt32.linuxperf9025.net
10.1.217.189		tb3-dbt32	tb3-dbt32.linuxperf9025.net
10.1.217.190		tb3-idlet32	tb3-idlet32.linuxperf9025.net
10.1.217.191		tb3-infrat32	tb3-infrat32.linuxperf9025.net
10.1.217.192		tb3-mailt32	tb3-mailt32.linuxperf9025.net
10.1.217.193		tb3-webt33	tb3-webt33.linuxperf9025.net
10.1.217.194		tb3-appt33	tb3-appt33.linuxperf9025.net
10.1.217.195		tb3-dbt33	tb3-dbt33.linuxperf9025.net
10.1.217.196		tb3-idlet33	tb3-idlet33.linuxperf9025.net
10.1.217.197		tb3-infrat33	tb3-infrat33.linuxperf9025.net
10.1.217.198		tb3-mailt33	tb3-mailt33.linuxperf9025.net
10.1.217.199		tb3-webt34	tb3-webt34.linuxperf9025.net
10.1.217.200		tb3-appt34	tb3-appt34.linuxperf9025.net
10.1.217.201		tb3-dbt34	tb3-dbt34.linuxperf9025.net
10.1.217.202		tb3-idlet34	tb3-idlet34.linuxperf9025.net
10.1.217.203		tb3-infrat34	tb3-infrat34.linuxperf9025.net
10.1.217.204		tb3-mailt34	tb3-mailt34.linuxperf9025.net
10.1.217.205		tb3-webt35	tb3-webt35.linuxperf9025.net
10.1.217.206		tb3-appt35	tb3-appt35.linuxperf9025.net
10.1.217.207		tb3-dbt35	tb3-dbt35.linuxperf9025.net
10.1.217.208		tb3-idlet35	tb3-idlet35.linuxperf9025.net
10.1.217.209		tb3-infrat35	tb3-infrat35.linuxperf9025.net
10.1.217.210		tb3-mailt35	tb3-mailt35.linuxperf9025.net
10.1.217.211		tb3-webt36	tb3-webt36.linuxperf9025.net
10.1.217.212		tb3-appt36	tb3-appt36.linuxperf9025.net
10.1.217.213		tb3-dbt36	tb3-dbt36.linuxperf9025.net
10.1.217.214		tb3-idlet36	tb3-idlet36.linuxperf9025.net
10.1.217.215		tb3-infrat36	tb3-infrat36.linuxperf9025.net
10.1.217.216		tb3-mailt36	tb3-mailt36.linuxperf9025.net
                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/etc/iproute2/                                           0000777 0000000 0000000 00000000000 11524347557 022273  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/etc/iproute2/rt_dsfield                                 0000644 0000000 0000000 00000000672 11524347557 024336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client02/etc/iproute2/rt_realms                                  0000644 0000000 0000000 00000000160 11524347557 024177  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/etc/iproute2/rt_scopes                                  0000644 0000000 0000000 00000000134 11524347557 024211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/etc/iproute2/ematch_map                                 0000644 0000000 0000000 00000000073 11524347557 024310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/etc/iproute2/rt_tables                                  0000644 0000000 0000000 00000000127 11524347557 024171  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/etc/iproute2/rt_protos                                  0000644 0000000 0000000 00000000475 11524347557 024253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/etc/nsswitch.conf                                       0000644 0000000 0000000 00000003230 11524347561 023220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/etc/kvm/                                                0000777 0000000 0000000 00000000000 11524347561 021312  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/etc/kvm/qemu-ifup-br7                                   0000755 0000000 0000000 00000000145 11524347561 023634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br7


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/etc/kvm/qemu-ifup-br8                                   0000755 0000000 0000000 00000000145 11524347561 023635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br8


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/etc/kvm/qemu-ifup-br2                                   0000755 0000000 0000000 00000000145 11524347560 023626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br2


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/etc/kvm/qemu-ifup-2                                     0000755 0000000 0000000 00000000126 11524347560 023301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash


ifconfig $1 0.0.0.0. promisc up
brctl addif br3 $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/etc/kvm/qemu-ifup                                       0000755 0000000 0000000 00000001103 11524347560 023136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

ID=`echo $1 | sed -e s/tap//`
if [ $ID -ge 0 -a $ID -lt 1000 ]; then
    BRIF=br0
fi
if [ $ID -ge 1000 -a $ID -lt 2000 ]; then
    BRIF=br1
fi
if [ $ID -ge 2000 -a $ID -lt 3000 ]; then
    BRIF=br2
fi
if [ $ID -ge 3000 -a $ID -lt 4000 ]; then
    BRIF=br3
fi
if [ $ID -ge 4000 -a $ID -lt 5000 ]; then
    BRIF=br4
fi
if [ $ID -ge 5000 -a $ID -lt 6000 ]; then
    BRIF=br5
fi
if [ $ID -ge 6000 -a $ID -lt 7000 ]; then
    BRIF=br6
fi
if [ $ID -ge 7000 -a $ID -lt 8000 ]; then
    BRIF=br7
fi

ifconfig $1 0.0.0.0. promisc up
brctl addif $BRIF $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/etc/kvm/qemu-ifup-br5                                   0000755 0000000 0000000 00000000145 11524347560 023631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br5


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/etc/kvm/qemu-ifup-br6                                   0000755 0000000 0000000 00000000145 11524347561 023633  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br6


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/etc/kvm/qemu-ifup-br9                                   0000755 0000000 0000000 00000000145 11524347561 023636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br9


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/etc/kvm/qemu-ifup-br0                                   0000755 0000000 0000000 00000000143 11524347560 023622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br0
ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/etc/kvm/qemu-ifup-br3                                   0000755 0000000 0000000 00000000145 11524347560 023627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br3


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/etc/kvm/qemu-ifup-1                                     0000755 0000000 0000000 00000000126 11524347560 023300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash


ifconfig $1 0.0.0.0. promisc up
brctl addif br3 $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/etc/kvm/qemu-ifup-3                                     0000755 0000000 0000000 00000000126 11524347560 023302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash


ifconfig $1 0.0.0.0. promisc up
brctl addif br3 $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/etc/kvm/qemu-ifup-br4                                   0000755 0000000 0000000 00000000145 11524347560 023630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br4


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/etc/kvm/qemu-ifup-br1                                   0000755 0000000 0000000 00000000143 11524347560 023623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br1
ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/etc/fstab                                               0000644 0000000 0000000 00000001643 11524347556 021543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Fri Nov 12 00:47:25 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_tb3client02-lv_root /                       ext4    defaults        1 1
UUID=d3cd1123-2839-4591-a6f7-0f8b70d2c8f6 /boot                   ext4    defaults        1 2
UUID=432B-891D          /boot/efi               vfat    umask=0077,shortname=winnt 0 0
/dev/mapper/vg_tb3client02-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
10.1.216.100:/RHEL6x64  /RHEL6x64		nfs	defaults	0 0 
                                                                                             Physical_Configuration/Clients/tb3-client02/etc/sysctl.conf                                         0000644 0000000 0000000 00000001466 11524347576 022716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/etc/inittab                                             0000644 0000000 0000000 00000001564 11524347557 022101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:5:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile03/                                                 0000777 0000000 0000000 00000000000 11524347661 021043  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/proc/                                            0000777 0000000 0000000 00000000000 11524347661 022006  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/proc/cpuinfo                                     0000644 0000000 0000000 00000003017 11524347661 023371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.548
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.548
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 2
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.548
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile03/proc/swaps                                       0000644 0000000 0000000 00000000150 11524347661 023056  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	72936	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile03/proc/devices                                     0000644 0000000 0000000 00000000567 11524347661 023357  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile03/proc/modules                                     0000644 0000000 0000000 00000002547 11524347661 023405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa0259000
stp 2107 1 bridge, Live 0xffffffffa0253000
llc 5608 2 bridge,stp, Live 0xffffffffa024b000
autofs4 27683 3 - Live 0xffffffffa023e000
sunrpc 241630 1 - Live 0xffffffffa01eb000
ipv6 321209 565 - Live 0xffffffffa0156000
dm_mirror 14003 0 - Live 0xffffffffa012a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0121000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0118000
ppdev 8695 0 - Live 0xffffffffa010a000
parport_pc 22944 0 - Live 0xffffffffa00fd000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa00eb000
sg 30186 0 - Live 0xffffffffa00dc000
virtio_net 15665 0 - Live 0xffffffffa00d2000
i2c_piix4 12574 0 - Live 0xffffffffa00c9000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00b9000
ext3 133830 1 - Live 0xffffffffa008d000
jbd 54576 1 ext3, Live 0xffffffffa0076000
mbcache 7918 1 ext3, Live 0xffffffffa006e000
virtio_blk 5087 3 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
ata_generic 3611 0 - Live 0xffffffffa0030000
pata_acpi 3667 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile03/proc/partitions                                  0000644 0000000 0000000 00000000165 11524347661 024123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile03/proc/meminfo                                     0000644 0000000 0000000 00000002222 11524347661 023355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        3605808 kB
MemFree:         3348364 kB
Buffers:            3964 kB
Cached:            26420 kB
SwapCached:         4300 kB
Active:            39708 kB
Inactive:          76084 kB
Active(anon):      24296 kB
Inactive(anon):    60952 kB
Active(file):      15412 kB
Inactive(file):    15132 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        1975056 kB
Dirty:               380 kB
Writeback:             0 kB
AnonPages:         82972 kB
Mapped:             7432 kB
Shmem:                 0 kB
Slab:             111928 kB
SReclaimable:      30104 kB
SUnreclaim:        81824 kB
KernelStack:        1784 kB
PageTables:         3544 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3850896 kB
Committed_AS:     764648 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19136 kB
VmallocChunk:   34359715008 kB
HardwareCorrupted:     0 kB
AnonHugePages:     49152 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     3661824 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile03/lspci.txt                                        0000644 0000000 0000000 00000000744 11524347660 022716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
                            Physical_Configuration/Clients/tb3-client02/tile03/df.txt                                           0000644 0000000 0000000 00000000276 11524347641 022174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8185360   4595576  65% /
tmpfs                  1802904         0   1802904   0% /dev/shm
                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/tile03/mount.txt                                        0000644 0000000 0000000 00000000434 11524347660 022742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile03/etc/                                             0000777 0000000 0000000 00000000000 11524347660 021615  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/                                        0000777 0000000 0000000 00000000000 11524347651 022443  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/                                  0000777 0000000 0000000 00000000000 11524347660 023354  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K02libvirt-guests                 0000755 0000000 0000000 00000017172 11524347652 026547  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K02oddjobd                        0000755 0000000 0000000 00000004325 11524347652 025165  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K69rpcsvcgssd                     0000755 0000000 0000000 00000006014 11524347654 025755  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K95cgconfig                       0000755 0000000 0000000 00000012327 11524347656 025360  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S55sshd                           0000755 0000000 0000000 00000010671 11524347660 024541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K80fcoe                           0000755 0000000 0000000 00000005775 11524347654 024516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K15httpd                          0000755 0000000 0000000 00000006364 11524347653 024715  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K92ip6tables                      0000755 0000000 0000000 00000020716 11524347655 025467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K80sssd                           0000755 0000000 0000000 00000004731 11524347654 024545  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S58ntpd                           0000755 0000000 0000000 00000003603 11524347660 024545  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K02avahi-daemon                   0000755 0000000 0000000 00000004754 11524347652 026117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K89rdisc                          0000755 0000000 0000000 00000003027 11524347655 024704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K76ipsec                          0000755 0000000 0000000 00000010777 11524347654 024710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S22messagebus                     0000755 0000000 0000000 00000004230 11524347657 025730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K95firstboot                      0000755 0000000 0000000 00000005341 11524347656 025612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K86cgred                          0000755 0000000 0000000 00000006302 11524347655 024660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S13rpcbind                        0000755 0000000 0000000 00000004031 11524347656 025211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S13irqbalance                     0000755 0000000 0000000 00000003521 11524347656 025674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K84NetworkManager                 0000755 0000000 0000000 00000004235 11524347654 026520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K99sysstat                        0000755 0000000 0000000 00000002363 11524347656 025316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K50dnsmasq                        0000755 0000000 0000000 00000002577 11524347653 025241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K01certmonger                     0000755 0000000 0000000 00000004054 11524347652 025723  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K85mdmonitor                      0000755 0000000 0000000 00000005013 11524347654 025600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K36mysqld                         0000755 0000000 0000000 00000012460 11524347653 025100  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K80lldpad                         0000755 0000000 0000000 00000014323 11524347654 025027  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K88nslcd                          0000755 0000000 0000000 00000003213 11524347655 024677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K75ntpdate                        0000755 0000000 0000000 00000003512 11524347654 025230  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K89iscsid                         0000755 0000000 0000000 00000007127 11524347655 025063  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K73ypbind                         0000755 0000000 0000000 00000011277 11524347654 025063  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S10network                        0000755 0000000 0000000 00000014466 11524347656 025273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S12rsyslog                        0000755 0000000 0000000 00000004326 11524347656 025300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S11auditd                         0000755 0000000 0000000 00000006462 11524347656 025052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K84wpa_supplicant                 0000755 0000000 0000000 00000003512 11524347654 026622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S20kdump                          0000755 0000000 0000000 00000027662 11524347657 024726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K87multipathd                     0000755 0000000 0000000 00000004473 11524347655 025757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S26haldaemon                      0000755 0000000 0000000 00000003245 11524347657 025533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K60crond                          0000755 0000000 0000000 00000005445 11524347653 024676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K03rhnsd                          0000755 0000000 0000000 00000005522 11524347652 024677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K36postgresql                     0000755 0000000 0000000 00000012406 11524347653 025772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S00microcode_ctl                  0000755 0000000 0000000 00000002221 11524347656 026371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K10saslauthd                      0000755 0000000 0000000 00000004010 11524347653 025537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K88iscsi                          0000755 0000000 0000000 00000007315 11524347655 024715  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K60nfs                            0000755 0000000 0000000 00000013536 11524347654 024360  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S30nscd                           0000755 0000000 0000000 00000004723 11524347660 024521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S24rpcgssd                        0000755 0000000 0000000 00000006050 11524347657 025243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K10psacct                         0000755 0000000 0000000 00000003024 11524347652 025027  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S26acpid                          0000755 0000000 0000000 00000003275 11524347657 024666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S13cpuspeed                       0000755 0000000 0000000 00000025442 11524347656 025411  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S26udev-post                      0000755 0000000 0000000 00000004370 11524347657 025531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S99local                          0000755 0000000 0000000 00000000334 11524347660 024675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K50netconsole                     0000755 0000000 0000000 00000005650 11524347653 025737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S24rpcidmapd                      0000755 0000000 0000000 00000005222 11524347657 025541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S02lvm2-monitor                   0000555 0000000 0000000 00000004612 11524347656 026136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S28autofs                         0000755 0000000 0000000 00000007234 11524347657 025110  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K01smartd                         0000755 0000000 0000000 00000005672 11524347652 025057  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S55autobench                      0000755 0000000 0000000 00000005063 11524347660 025547  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S25netfs                          0000755 0000000 0000000 00000012432 11524347657 024717  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K30postfix                        0000755 0000000 0000000 00000007414 11524347653 025260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/S24nfslock                        0000755 0000000 0000000 00000006675 11524347657 025252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K92iptables                       0000755 0000000 0000000 00000020557 11524347655 025404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K87restorecond                    0000755 0000000 0000000 00000003427 11524347655 026131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/rc3.d/K05atd                            0000755 0000000 0000000 00000004112 11524347652 024325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/                                 0000777 0000000 0000000 00000000000 11524347651 023630  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/network                          0000755 0000000 0000000 00000014466 11524347647 025263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/sysstat                          0000755 0000000 0000000 00000002363 11524347651 025270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/saslauthd                        0000755 0000000 0000000 00000004010 11524347651 025535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/messagebus                       0000755 0000000 0000000 00000004230 11524347646 025713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/autobench                        0000755 0000000 0000000 00000005063 11524347643 025527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/atd                              0000755 0000000 0000000 00000004112 11524347643 024321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/mcelogd                          0000755 0000000 0000000 00000003535 11524347646 025176  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/auditd                           0000755 0000000 0000000 00000006462 11524347643 025035  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/certmonger                       0000755 0000000 0000000 00000004054 11524347643 025723  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/mysqld                           0000755 0000000 0000000 00000012460 11524347646 025072  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/irqbalance                       0000755 0000000 0000000 00000003521 11524347645 025657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/acpid                            0000755 0000000 0000000 00000003275 11524347643 024642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/iscsid                           0000755 0000000 0000000 00000007127 11524347645 025042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/nscd                             0000755 0000000 0000000 00000004723 11524347647 024514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/rpcidmapd                        0000755 0000000 0000000 00000005222 11524347650 025515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/nfs                              0000755 0000000 0000000 00000013536 11524347647 024355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/sssd                             0000755 0000000 0000000 00000004731 11524347651 024533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/crond                            0000755 0000000 0000000 00000005445 11524347644 024671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/ip6tables                        0000755 0000000 0000000 00000020716 11524347645 025454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/firstboot                        0000755 0000000 0000000 00000005341 11524347644 025572  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/autofs                           0000755 0000000 0000000 00000007234 11524347643 025062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/sshd                             0000755 0000000 0000000 00000010671 11524347651 024520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/libvirt-guests                   0000755 0000000 0000000 00000017172 11524347645 026550  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/avahi-daemon                     0000755 0000000 0000000 00000004754 11524347643 026116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/iscsi                            0000755 0000000 0000000 00000007315 11524347645 024675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/ypbind                           0000755 0000000 0000000 00000011277 11524347651 025047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/psacct                           0000755 0000000 0000000 00000003024 11524347650 025025  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/fcoe                             0000755 0000000 0000000 00000005775 11524347644 024506  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/nfslock                          0000755 0000000 0000000 00000006675 11524347647 025234  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/cgred                            0000755 0000000 0000000 00000006302 11524347644 024641  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/udev-post                        0000755 0000000 0000000 00000004370 11524347651 025504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/haldaemon                        0000755 0000000 0000000 00000003245 11524347644 025510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/ipsec                            0000755 0000000 0000000 00000010777 11524347645 024674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/rpcbind                          0000755 0000000 0000000 00000004031 11524347650 025170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/rhnsd                            0000755 0000000 0000000 00000005522 11524347650 024673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/dnsmasq                          0000755 0000000 0000000 00000002577 11524347644 025235  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/functions                        0000644 0000000 0000000 00000042767 11524347644 025601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/kdump                            0000755 0000000 0000000 00000027662 11524347645 024712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/lldpad                           0000755 0000000 0000000 00000014323 11524347646 025021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/postfix                          0000755 0000000 0000000 00000007414 11524347647 025261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/iptables                         0000755 0000000 0000000 00000020557 11524347645 025371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/multipathd                       0000755 0000000 0000000 00000004473 11524347646 025741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/rsyslog                          0000755 0000000 0000000 00000004326 11524347650 025260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/NetworkManager                   0000755 0000000 0000000 00000004235 11524347643 026503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/netconsole                       0000755 0000000 0000000 00000005650 11524347646 025735  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/rpcgssd                          0000755 0000000 0000000 00000006050 11524347650 025217  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/lvm2-monitor                     0000555 0000000 0000000 00000004612 11524347646 026124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/halt                             0000755 0000000 0000000 00000012723 11524347645 024512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/cgconfig                         0000755 0000000 0000000 00000012327 11524347644 025340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/single                           0000755 0000000 0000000 00000001207 11524347651 025033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/postgresql                       0000755 0000000 0000000 00000012406 11524347647 025765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/mdmonitor                        0000755 0000000 0000000 00000005013 11524347646 025565  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/restorecond                      0000755 0000000 0000000 00000003427 11524347650 026106  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/wpa_supplicant                   0000755 0000000 0000000 00000003512 11524347651 026604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/cpuspeed                         0000755 0000000 0000000 00000025442 11524347644 025373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/netfs                            0000755 0000000 0000000 00000012432 11524347646 024677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/rpcsvcgssd                       0000755 0000000 0000000 00000006014 11524347650 025733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/oddjobd                          0000755 0000000 0000000 00000004325 11524347647 025170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/sandbox                          0000755 0000000 0000000 00000003242 11524347650 025210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/killall                          0000755 0000000 0000000 00000001214 11524347645 025177  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/rdisc                            0000755 0000000 0000000 00000003027 11524347650 024657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/httpd                            0000755 0000000 0000000 00000006364 11524347645 024711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/ntpd                             0000755 0000000 0000000 00000003603 11524347647 024526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/smartd                           0000755 0000000 0000000 00000005672 11524347651 025056  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/nslcd                            0000755 0000000 0000000 00000003213 11524347647 024661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/ntpdate                          0000755 0000000 0000000 00000003512 11524347647 025217  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile03/etc/rc.d/init.d/microcode_ctl                    0000755 0000000 0000000 00000002221 11524347646 026361  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile03/etc/hosts                                        0000644 0000000 0000000 00000000052 11524347642 022671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1	localhost.localdomain	localhost
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile03/etc/iproute2/                                    0000777 0000000 0000000 00000000000 11524347642 023366  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/etc/iproute2/rt_dsfield                          0000644 0000000 0000000 00000000672 11524347642 025431  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client02/tile03/etc/iproute2/rt_realms                           0000644 0000000 0000000 00000000160 11524347642 025272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/tile03/etc/iproute2/rt_scopes                           0000644 0000000 0000000 00000000134 11524347642 025304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile03/etc/iproute2/ematch_map                          0000644 0000000 0000000 00000000073 11524347642 025403  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile03/etc/iproute2/rt_tables                           0000644 0000000 0000000 00000000127 11524347642 025264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile03/etc/iproute2/rt_protos                           0000644 0000000 0000000 00000000475 11524347642 025346  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/etc/nsswitch.conf                                0000644 0000000 0000000 00000003230 11524347643 024321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile03/etc/fstab                                        0000644 0000000 0000000 00000001307 11524347642 022634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Thu Aug  5 09:23:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=008a3418-d80b-4815-9722-db5af2fba6da /                       ext3    defaults        1 1
UUID=171fffed-b6b4-4161-b8cd-a688d195da49 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile03/etc/sysctl.conf                                  0000644 0000000 0000000 00000001466 11524347660 024010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile03/etc/inittab                                      0000644 0000000 0000000 00000001564 11524347642 023174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile03/var/                                             0000777 0000000 0000000 00000000000 11524347661 021633  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/var/log/                                         0000777 0000000 0000000 00000000000 11524347661 022414  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/var/log/dmesg                                    0000644 0000000 0000000 00000042426 11524347662 023443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009cc00 (usable)
 BIOS-e820: 000000000009cc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
RAMDISK: 372ca000 - 37fef973
ACPI: RSDP 00000000000f80c0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffddb0 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffdf0 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf30 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffd80 00040
ACPI: SSDT 00000000dfffded0 00051 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffdde0 00082 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000000dfffd000
Bootmem setup node 0 0000000000000000-00000000dfffd000
  NODE_DATA [000000000000c000 - 000000000003ffff]
  bootmap [0000000000040000 -  000000000005bfff] pages 1c
(7 early reservations) ==> bootmem [0000000000 - 00dfffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [00372ca000 - 0037fef973]          RAMDISK ==> [00372ca000 - 0037fef973]
  #4 [000009cc00 - 0000100000]    BIOS reserved ==> [000009cc00 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
found SMP MP-table at [ffff8800000f8110] f8110
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00031fffff] PMD -> [ffff880002200000-ffff8800053fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009c
    0: 0x00000100 -> 0x000dfffd
On node 0 totalpages: 917400
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3833 pages, LIFO batch:0
  DMA32 zone: 12488 pages used for memmap
  DMA32 zone: 900917 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
ACPI: IOAPIC (id[0x03] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 3, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 3 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009c000 - 000000000009d000
PM: Registered nosave memory: 000000000009d000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:3 nr_cpu_ids:3 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u524288
pcpu-alloc: s95064 r8192 d23720 u524288 alloc=1*2097152
pcpu-alloc: [0] 0 1 2 - 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 904750
Policy zone: DMA32
Kernel command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us 
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 3591124k/3670004k available (4935k kernel code, 404k absent, 78476k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:432
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 36700160 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 2266.548 MHz processor.
Calibrating delay loop (skipped) preset value.. 4533.09 BogoMIPS (lpj=2266548)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Setting APIC routing to flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1
kvm-clock: cpu 1, msr 0:1e96901, secondary cpu clock
 #2 Ok.
kvm-clock: cpu 2, msr 0:1f16901, secondary cpu clock
Brought up 3 CPUs
Total of 3 processors activated (13599.28 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#2: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13462k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297092519.448:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 7040
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
processor LNXCPU:02: registered as cooling_device2
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 15:28:38 UTC (1297092518)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
dracut: Mounted root filesystem /dev/vda1
dracut: Loading SELinux policy
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1297092523.099:2): selinux=0 auid=4294967295 ses=4294967295
dracut: /sbin/load_policy: Can't load policy: No such file or directory
dracut: Switching root
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 27 for MSI/MSI-X
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT3 FS on vda1, internal journal
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile03/boot/                                            0000777 0000000 0000000 00000000000 11524347641 022004  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/boot/grub/                                       0000777 0000000 0000000 00000000000 11524347641 022743  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile03/boot/grub/grub.conf                              0000644 0000000 0000000 00000002637 11524347641 024555  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux Server (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-70.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-70.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-70.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-59.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-59.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-59.el6.x86_64.img
                                                                                                 Physical_Configuration/Clients/tb3-client02/tile03/rpmpkgs.txt                                      0000644 0000000 0000000 00000105007 11524347661 023266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rhnsd-4.9.3-2.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
pycairo-1.8.6-2.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
polkit-devel-0.96-2.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
popt-devel-1.13-7.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
basesystem-10.0-4.el6.noarch
libgnomeui-devel-2.24.1-4.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libhbalinux-1.0.10-1.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-Newt-1.08-26.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
system-icon-theme-6.0.0-2.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
libjpeg-6b-46.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
gettext-0.17-16.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
NetworkManager-glib-0.8.1-5.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
sed-4.2.1-5.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
libXext-1.1-3.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
libcap-2.16-5.2.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
hwdata-0.233-1.el6.noarch
pcre-7.8-3.1.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
fuse-2.8.3-1.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
python-decorator-3.0.1-3.1.el6.noarch
report-plugin-scp-0.18-7.el6.x86_64
rsync-3.0.6-5.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
ModemManager-0.4.0-3.git20100628.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
device-mapper-event-libs-1.02.53-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
nc-1.84-22.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
dracut-004-32.el6.noarch
psmisc-22.6-15.el6.x86_64
vino-2.28.1-3.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
kernel-2.6.32-70.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
mtools-4.0.12-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
mod_wsgi-3.2-1.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
jna-3.2.4-2.el6.x86_64
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
php-pdo-5.3.2-6.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
postfix-2.6.6-2.el6.x86_64
patch-2.6-6.el6.x86_64
elfutils-0.148-1.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
xorg-x11-xkb-utils-7.4-6.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
xvattr-1.3-18.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
boost-regex-1.41.0-11.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
pam-1.1.1-4.el6.x86_64
setserial-2.17-25.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
python-slip-0.2.11-1.el6.noarch
gvfs-1.4.3-9.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
libhbaapi-2.2-10.el6.x86_64
gnome-applets-2.28.0-7.el6.x86_64
grub-0.97-68.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
setup-2.8.14-10.el6.noarch
hal-devel-0.5.14-8.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
autoconf-2.63-5.1.el6.noarch
fontpackages-filesystem-1.41-1.1.el6.noarch
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libXtst-devel-1.0.99.2-3.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
libX11-common-1.3-2.el6.noarch
sos-2.2-2.el6.noarch
php-pear-1.9.0-2.el6.noarch
avahi-autoipd-0.6.25-8.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
bash-4.1.2-3.el6.x86_64
libcap-ng-devel-0.6.4-3.el6.x86_64
festival-1.96-18.el6.x86_64
libICE-1.0.6-1.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
rootfiles-8.1-6.1.el6.noarch
libldb-0.9.10-23.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
libpng-1.2.44-1.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
gd-2.0.35-10.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
man-pages-3.22-12.el6.noarch
libcroco-devel-0.6.2-5.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
numactl-2.0.3-9.el6.x86_64
yum-3.2.27-14.el6.noarch
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
iproute-2.6.32-10.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
boost-1.41.0-11.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
gstreamer-tools-0.10.29-1.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
libXdamage-1.1.2-1.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
binutils-2.20.51.0.2-5.11.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
gcc-4.4.4-13.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
libtheora-1.1.0-2.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
gnome-power-manager-2.28.3-3.el6.x86_64
totem-mozplugin-2.28.6-2.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-Log-Message-0.02-115.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
libXdmcp-1.0.3-1.el6.x86_64
parted-2.1-10.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libevent-1.4.13-1.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
psacct-6.3.2-63.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
checkpolicy-2.0.22-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
flex-2.5.35-8.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
selinux-policy-3.7.19-54.el6.noarch
ltrace-0.5-16.45svn.1.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
crontabs-1.10-32.1.el6.noarch
coreutils-libs-8.4-9.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
mtr-0.75-5.el6.x86_64
openssl-1.0.0-4.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
libgudev1-147-2.29.el6.x86_64
ctags-5.8-2.el6.x86_64
redhat-bookmarks-6-1.el6.noarch
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
passwd-0.77-4.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
orca-2.28.2-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
slang-2.2.1-1.el6.x86_64
subversion-1.6.11-2.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
openswan-2.6.24-8.el6.x86_64
gtk-doc-1.11-5.1.el6.noarch
libdaemon-0.14-1.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
xml-common-0.6.3-32.el6.noarch
gtk2-devel-2.18.9-4.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
notification-daemon-0.5.0-1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
libgcc-4.4.4-13.el6.i686
ncurses-libs-5.7-3.20090208.el6.x86_64
ppp-2.4.5-5.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
info-4.13a-8.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
docbook-style-dsssl-1.79-10.el6.noarch
pam_ldap-185-5.el6.x86_64
glib2-2.22.5-5.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
readline-6.0-3.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
at-3.1.10-42.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
samba-winbind-clients-3.5.4-68.el6.x86_64
gmp-4.3.1-7.el6.x86_64
gnome-panel-libs-2.30.2-5.el6.x86_64
perl-version-0.77-115.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
perl-5.10.1-115.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
curl-7.19.7-16.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
httpd-tools-2.2.15-5.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
libavc1394-0.5.3-9.1.el6.x86_64
which-2.19-5.1.el6.x86_64
perl-BSD-Resource-1.29.03-3.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
keyutils-libs-1.4-1.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
iso-codes-3.16-2.el6.noarch
libxslt-1.1.26-2.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-1.0.5-1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
giflib-4.1.6-3.1.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
report-0.18-7.el6.x86_64
libX11-1.3-2.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
grubby-7.0.15-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
eggdbus-0.6-3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
httpd-2.2.15-5.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
ppl-0.10.2-11.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
file-libs-5.04-5.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
bc-1.06.95-1.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
NetworkManager-0.8.1-5.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
dracut-kernel-004-32.el6.noarch
cpio-2.10-9.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
unzip-6.0-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
check-0.9.8-1.1.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
libgssglue-0.1-8.1.el6.x86_64
db4-cxx-4.7.25-16.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
libnih-1.0.1-6.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
fcoe-utils-1.0.14-9.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
zip-3.0-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
usermode-1.102-3.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
php-xml-5.3.2-6.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
crash-5.0.0-23.el6.x86_64
libthai-0.1.12-3.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
zenity-2.28.0-1.el6.x86_64
report-newt-0.18-7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
boost-test-1.41.0-11.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
tzdata-2010l-1.el6.noarch
ncurses-5.7-3.20090208.el6.x86_64
nspr-4.8.6-1.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
dnsmasq-2.48-4.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
nss-3.12.7-2.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
udev-147-2.29.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
postgresql-libs-8.4.4-2.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
avahi-ui-0.6.25-8.el6.x86_64
device-mapper-multipath-libs-0.4.9-31.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
udisks-1.0.1-2.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
libaio-0.3.107-10.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
evolution-data-server-devel-2.28.3-10.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
elfutils-devel-0.148-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
cas-0.15-1.el6.1.noarch
libgnome-devel-2.28.0-11.el6.x86_64
kernel-devel-2.6.32-59.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
dstat-0.7.0-1.el6.noarch
perl-XML-Dumper-0.81-6.el6.noarch
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
zd1211-firmware-1.4-4.el6.noarch
ivtv-firmware-20080701-20.2.noarch
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
libnl-1.1-12.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
mysql-5.1.47-4.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
iptables-1.4.7-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
perl-Time-HiRes-1.9721-115.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
systemtap-1.2-9.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
eog-2.28.2-4.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
postgresql-server-8.4.4-2.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
gnome-settings-daemon-2.28.2-11.el6.x86_64
usbutils-0.86-2.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
python-psycopg2-2.0.13-2.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
tcsh-6.17-8.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
kernel-devel-2.6.32-70.el6.x86_64
bison-2.4.1-5.el6.x86_64
busybox-1.15.1-10.el6.x86_64
lsof-4.82-1.2.el6.x86_64
swig-1.3.40-5.el6.x86_64
hal-0.5.14-8.el6.x86_64
powertop-1.11-3.1.el6.x86_64
rdate-1.4-16.el6.x86_64
kernel-2.6.32-59.el6.x86_64
libtopology-0.3-7.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
openldap-devel-2.4.19-15.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
kernel-2.6.32-71.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
libxml2-python-2.7.6-1.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
libcanberra-0.22-1.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
python-gudev-147.1-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
mailcap-2.1.31-1.1.el6.noarch
wpa_supplicant-0.6.8-10.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
cracklib-python-2.8.16-2.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
gnome-python2-libwnck-2.28.0-4.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
openjade-1.3.2-36.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
popt-1.13-7.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
system-gnome-theme-60.0.2-1.el6.noarch
db4-4.7.25-16.el6.x86_64
wget-1.12-1.4.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
fipscheck-1.2.0-4.1.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
gawk-3.1.7-6.el6.x86_64
cvs-1.11.23-11.el6.x86_64
php-common-5.3.2-6.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
tcp_wrappers-libs-7.6-56.3.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
atk-1.28.0-2.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
libacl-2.2.49-4.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
findutils-4.4.2-6.el6.x86_64
libiec61883-1.2.0-4.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
grep-2.6.3-2.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
libgcrypt-1.4.5-3.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
pixman-0.16.6-1.el6.x86_64
iw-0.9.17-4.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
libxcb-1.5-1.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
comps-extras-17.8-1.el6.noarch
libsoup-2.28.2-1.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
xfsprogs-3.1.1-4.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
libXv-1.0.5-1.el6.x86_64
polkit-0.96-2.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
rtkit-0.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
libIDL-0.8.13-2.1.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
ed-1.1-3.3.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
tar-1.23-3.el6.x86_64
libconfig-1.3.2-1.1.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
pciutils-libs-3.1.4-9.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
mod_ssl-2.2.15-5.el6.x86_64
kbd-misc-1.15-11.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
rng-tools-2-8.el6.x86_64
pax-3.4-10.1.el6.x86_64
control-center-2.28.1-25.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
php-gd-5.3.2-6.el6.x86_64
libtasn1-2.3-3.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
irqbalance-0.55-27.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
yajl-1.0.7-3.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libXpm-3.5.8-2.el6.x86_64
pango-1.28.1-3.el6.x86_64
gucharmap-2.28.2-2.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
net-tools-1.60-102.el6.x86_64
exempi-2.1.0-5.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
DeviceKit-power-014-1.el6.x86_64
make-3.81-19.el6.x86_64
unique-1.1.4-2.el6.x86_64
rhn-setup-1.0.0-38.el6.noarch
boost-signals-1.41.0-11.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
cronie-1.4.4-2.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
libcollection-0.5.0-28.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
libudev-147-2.29.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
libuser-0.56.13-4.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
device-mapper-multipath-0.4.9-31.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
perl-URI-1.40-2.el6.noarch
dbus-glib-devel-0.86-5.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
seekwatcher-0.12-4.1.el6.noarch
perf-2.6.32-71.el6.noarch
libglade2-devel-2.6.4-3.1.el6.x86_64
glibc-2.12-1.7.el6.i686
polkit-docs-0.96-2.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
libXi-devel-1.3-3.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
mysql-devel-5.1.47-4.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
iotop-0.3.2-3.el6.noarch
python-meh-0.9-1.el6.noarch
bzip2-devel-1.0.5-6.1.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
atmel-firmware-1.3-7.el6.noarch
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
libstdc++-4.4.4-13.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
libXi-1.3-3.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
nautilus-extensions-2.28.4-15.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
libss-1.41.12-3.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
glx-utils-7.7-2.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
cpp-4.4.4-13.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
ipa-client-2.0-9.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
gnome-vfs2-smb-2.24.2-6.el6.x86_64
xdg-user-dirs-0.12-4.el6.x86_64
gdb-7.1-29.el6.x86_64
gok-2.28.1-5.el6.x86_64
SDL-1.2.14-2.el6.x86_64
postgresql-docs-8.4.4-2.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mod_perl-2.0.4-10.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
prelink-0.4.3-4.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
gnome-session-xsession-2.28.0-15.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
crypto-utils-2.4.1-24.2.el6.x86_64
PyGreSQL-3.8.1-2.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
postgresql-odbc-08.04.0200-1.el6.x86_64
git-1.7.1-2.el6.x86_64
report-gtk-0.18-7.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
libvirt-devel-0.8.1-27.el6.x86_64
audit-2.0.4-1.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
attr-2.4.44-4.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
latrace-0.5.9-2.el6.x86_64
byacc-1.9.20070509-6.1.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
nscd-2.12-1.7.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
vte-0.25.1-5.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
gcc-c++-4.4.4-13.el6.x86_64
firefox-3.6.9-2.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
libgnomecanvas-devel-2.26.0-4.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
perl-XML-Grove-0.46alpha-40.el6.noarch
automake-1.11.1-1.2.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
system-config-services-docs-1.1.8-1.el6.noarch
pyOpenSSL-0.10-2.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
zlib-1.2.3-25.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
audit-libs-devel-2.0.4-1.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
libstdc++-4.4.4-13.el6.i686
libdrm-2.4.20-2.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
docbook-utils-0.6.14-24.el6.noarch
freetype-2.3.11-5.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
gnome-python2-desktop-2.28.0-4.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
words-3.0-17.el6.noarch
libselinux-utils-2.0.94-2.el6.x86_64
gamin-0.1.10-9.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
mailx-12.4-6.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
keyutils-1.4-1.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
openssh-5.3p1-20.el6.x86_64
m4-1.4.13-5.el6.x86_64
autofs-5.0.5-23.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
gvfs-archive-1.4.3-9.el6.x86_64
man-1.6f-29.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
gdm-2.30.4-21.el6.x86_64
libusb-0.1.12-23.el6.x86_64
webalizer-2.21_02-3.3.el6.x86_64
time-1.7-37.1.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
less-436-4.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
gettext-libs-0.17-16.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
NetworkManager-gnome-0.8.1-5.el6.x86_64
readahead-1.5.6-1.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
php-5.3.2-6.el6.x86_64
libical-0.43-5.1.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-panel-2.30.2-5.el6.x86_64
latencytop-0.5-3.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
kbd-1.15-11.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
rcs-5.7-37.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
boost-program-options-1.41.0-11.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
iputils-20071127-13.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
glibc-2.12-1.7.el6.x86_64
gzip-1.3.12-18.el6.x86_64
cscope-15.6-6.el6.x86_64
certmonger-0.24-4.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
openldap-2.4.19-15.el6.x86_64
eject-2.1.5-17.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
qt-4.6.2-16.el6.x86_64
diffstat-1.51-2.el6.x86_64
libgail-gnome-1.20.1-4.1.el6.x86_64
sssd-1.2.1-28.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
newt-0.52.11-2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
nspluginwrapper-1.3.0-14.el6.x86_64
mysql-server-5.1.47-4.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
rhn-setup-gnome-1.0.0-38.el6.noarch
atk-devel-1.28.0-2.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
filesystem-2.4.30-2.1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
libcom_err-devel-1.41.12-3.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
m2crypto-0.20.2-7.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
screen-4.0.3-15.el6.x86_64
alsa-lib-devel-1.0.21-3.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
mobile-broadband-provider-info-1.20100122-1.el6.noarch
xorg-x11-docs-1.3-6.1.el6.noarch
gnome-themes-2.28.1-6.el6.noarch
libselinux-2.0.94-2.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
libxcb-devel-1.5-1.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
pam_krb5-2.3.11-1.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
pytz-2010h-2.el6.noarch
libidn-1.18-2.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
acl-2.2.49-4.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
jline-0.9.94-0.8.el6.noarch
libXt-1.0.7-1.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
procps-3.2.8-14.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
gnome-screensaver-2.28.3-8.el6.x86_64
rpm-4.8.0-12.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
quota-3.17-10.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
rpm-build-4.8.0-12.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
nano-2.0.9-7.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
system-config-services-0.99.45-1.el6.3.noarch
perl-parent-0.221-115.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
hal-info-20090716-3.1.el6.noarch
mlocate-0.22.2-3.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
libicu-4.2.1-9.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
yp-tools-2.9-10.el6.x86_64
coreutils-8.4-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
rfkill-0.3-4.el6.x86_64
at-spi-1.28.1-2.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
lldpad-0.9.38-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
gnome-python2-bonobo-2.28.0-3.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
evolution-data-server-doc-2.28.3-10.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
yelp-2.28.1-8.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
python-2.6.5-3.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile03/ifconfig.txt                                     0000644 0000000 0000000 00000001637 11524347660 023372  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:90:00:03  
          inet addr:10.1.216.153  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe90:3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512230457 errors:0 dropped:0 overruns:0 frame:0
          TX packets:162447255 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:728006612057 (678.0 GiB)  TX bytes:16269933301 (15.1 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:256557 errors:0 dropped:0 overruns:0 frame:0
          TX packets:256557 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:326437429 (311.3 MiB)  TX bytes:326437429 (311.3 MiB)

                                                                                                 Physical_Configuration/Clients/tb3-client02/tile03/chkconfig.txt                                    0000644 0000000 0000000 00000006556 11524347641 023545  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:off	4:on	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
fcoe           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:off	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:off	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lldpad         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
multipathd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
mysqld         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postgresql     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/var/                                                    0000777 0000000 0000000 00000000000 11524347723 020532  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/var/log/                                                0000777 0000000 0000000 00000000000 11524347723 021313  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/var/log/dmesg                                           0000644 0000000 0000000 00000203672 11524347724 022344  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=/dev/mapper/vg_tb3client02-lv_root rd_LVM_LV=vg_tb3client02/lv_root rd_LVM_LV=vg_tb3client02/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000006c000 (usable)
 BIOS-e820: 000000000006c000 - 000000000006d000 (ACPI NVS)
 BIOS-e820: 000000000006d000 - 000000000009f000 (usable)
 BIOS-e820: 000000000009f000 - 00000000000a0000 (ACPI NVS)
 BIOS-e820: 0000000000100000 - 000000007d3f3000 (usable)
 BIOS-e820: 000000007d3f3000 - 000000007d41d000 (reserved)
 BIOS-e820: 000000007d41d000 - 000000007d447000 (usable)
 BIOS-e820: 000000007d447000 - 000000007d471000 (reserved)
 BIOS-e820: 000000007d471000 - 000000007d84d000 (usable)
 BIOS-e820: 000000007d84d000 - 000000007d8fd000 (reserved)
 BIOS-e820: 000000007d8fd000 - 000000007f5ef000 (usable)
 BIOS-e820: 000000007f5ef000 - 000000007f6df000 (reserved)
 BIOS-e820: 000000007f6df000 - 000000007f7df000 (ACPI NVS)
 BIOS-e820: 000000007f7df000 - 000000007f7ff000 (ACPI data)
 BIOS-e820: 000000007f7ff000 - 000000007f800000 (usable)
 BIOS-e820: 0000000080000000 - 0000000090000000 (reserved)
 BIOS-e820: 00000000fed1c000 - 00000000fed20000 (reserved)
 BIOS-e820: 00000000ff800000 - 0000000100000000 (reserved)
 BIOS-e820: 0000000100000000 - 0000000880000000 (usable)
EFI v2.10 by IBM
 ACPI 2.0=0x7f7fe014  SMBIOS=0x7f6be000 
Kernel-defined memdesc doesn't match the one from EFI!
EFI: mem00: type=3, attr=0xf, range=[0x0000000000000000-0x0000000000001000) (0MB)
EFI: mem01: type=7, attr=0xf, range=[0x0000000000001000-0x000000000001e000) (0MB)
EFI: mem02: type=2, attr=0xf, range=[0x000000000001e000-0x0000000000020000) (0MB)
EFI: mem03: type=3, attr=0xf, range=[0x0000000000020000-0x000000000006c000) (0MB)
EFI: mem04: type=10, attr=0xf, range=[0x000000000006c000-0x000000000006d000) (0MB)
EFI: mem05: type=4, attr=0xf, range=[0x000000000006d000-0x000000000006e000) (0MB)
EFI: mem06: type=3, attr=0xf, range=[0x000000000006e000-0x000000000009f000) (0MB)
EFI: mem07: type=10, attr=0xf, range=[0x000000000009f000-0x00000000000a0000) (0MB)
EFI: mem08: type=7, attr=0xf, range=[0x0000000000100000-0x0000000000400000) (3MB)
EFI: mem09: type=3, attr=0xf, range=[0x0000000000400000-0x000000000044c000) (0MB)
EFI: mem10: type=7, attr=0xf, range=[0x000000000044c000-0x0000000000800000) (3MB)
EFI: mem11: type=3, attr=0xf, range=[0x0000000000800000-0x0000000001000000) (8MB)
EFI: mem12: type=7, attr=0xf, range=[0x0000000001000000-0x000000007a073000) (1936MB)
EFI: mem13: type=2, attr=0xf, range=[0x000000007a073000-0x000000007b4cf000) (20MB)
EFI: mem14: type=4, attr=0xf, range=[0x000000007b4cf000-0x000000007bed1000) (10MB)
EFI: mem15: type=2, attr=0xf, range=[0x000000007bed1000-0x000000007c2d1000) (4MB)
EFI: mem16: type=1, attr=0xf, range=[0x000000007c2d1000-0x000000007c30d000) (0MB)
EFI: mem17: type=7, attr=0xf, range=[0x000000007c30d000-0x000000007c33d000) (0MB)
EFI: mem18: type=2, attr=0xf, range=[0x000000007c33d000-0x000000007c346000) (0MB)
EFI: mem19: type=4, attr=0xf, range=[0x000000007c346000-0x000000007c35c000) (0MB)
EFI: mem20: type=2, attr=0xf, range=[0x000000007c35c000-0x000000007c531000) (1MB)
EFI: mem21: type=4, attr=0xf, range=[0x000000007c531000-0x000000007c6fd000) (1MB)
EFI: mem22: type=3, attr=0xf, range=[0x000000007c6fd000-0x000000007c6fe000) (0MB)
EFI: mem23: type=4, attr=0xf, range=[0x000000007c6fe000-0x000000007d3bb000) (12MB)
EFI: mem24: type=2, attr=0xf, range=[0x000000007d3bb000-0x000000007d3bc000) (0MB)
EFI: mem25: type=4, attr=0xf, range=[0x000000007d3bc000-0x000000007d3c4000) (0MB)
EFI: mem26: type=2, attr=0xf, range=[0x000000007d3c4000-0x000000007d3c5000) (0MB)
EFI: mem27: type=4, attr=0xf, range=[0x000000007d3c5000-0x000000007d3d8000) (0MB)
EFI: mem28: type=3, attr=0xf, range=[0x000000007d3d8000-0x000000007d3e5000) (0MB)
EFI: mem29: type=4, attr=0xf, range=[0x000000007d3e5000-0x000000007d3f3000) (0MB)
EFI: mem30: type=5, attr=0x800000000000000f, range=[0x000000007d3f3000-0x000000007d41d000) (0MB)
EFI: mem31: type=4, attr=0xf, range=[0x000000007d41d000-0x000000007d447000) (0MB)
EFI: mem32: type=5, attr=0x800000000000000f, range=[0x000000007d447000-0x000000007d471000) (0MB)
EFI: mem33: type=4, attr=0xf, range=[0x000000007d471000-0x000000007d523000) (0MB)
EFI: mem34: type=2, attr=0xf, range=[0x000000007d523000-0x000000007d525000) (0MB)
EFI: mem35: type=4, attr=0xf, range=[0x000000007d525000-0x000000007d52f000) (0MB)
EFI: mem36: type=3, attr=0xf, range=[0x000000007d52f000-0x000000007d531000) (0MB)
EFI: mem37: type=4, attr=0xf, range=[0x000000007d531000-0x000000007d533000) (0MB)
EFI: mem38: type=3, attr=0xf, range=[0x000000007d533000-0x000000007d534000) (0MB)
EFI: mem39: type=4, attr=0xf, range=[0x000000007d534000-0x000000007d814000) (2MB)
EFI: mem40: type=3, attr=0xf, range=[0x000000007d814000-0x000000007d81a000) (0MB)
EFI: mem41: type=4, attr=0xf, range=[0x000000007d81a000-0x000000007d823000) (0MB)
EFI: mem42: type=3, attr=0xf, range=[0x000000007d823000-0x000000007d82b000) (0MB)
EFI: mem43: type=4, attr=0xf, range=[0x000000007d82b000-0x000000007d84d000) (0MB)
EFI: mem44: type=0, attr=0xf, range=[0x000000007d84d000-0x000000007d8fd000) (0MB)
EFI: mem45: type=4, attr=0xf, range=[0x000000007d8fd000-0x000000007d917000) (0MB)
EFI: mem46: type=3, attr=0xf, range=[0x000000007d917000-0x000000007d91e000) (0MB)
EFI: mem47: type=4, attr=0xf, range=[0x000000007d91e000-0x000000007d984000) (0MB)
EFI: mem48: type=3, attr=0xf, range=[0x000000007d984000-0x000000007d98a000) (0MB)
EFI: mem49: type=4, attr=0xf, range=[0x000000007d98a000-0x000000007d991000) (0MB)
EFI: mem50: type=3, attr=0xf, range=[0x000000007d991000-0x000000007d993000) (0MB)
EFI: mem51: type=4, attr=0xf, range=[0x000000007d993000-0x000000007dab0000) (1MB)
EFI: mem52: type=3, attr=0xf, range=[0x000000007dab0000-0x000000007dabb000) (0MB)
EFI: mem53: type=4, attr=0xf, range=[0x000000007dabb000-0x000000007dac3000) (0MB)
EFI: mem54: type=3, attr=0xf, range=[0x000000007dac3000-0x000000007dad1000) (0MB)
EFI: mem55: type=4, attr=0xf, range=[0x000000007dad1000-0x000000007dad7000) (0MB)
EFI: mem56: type=3, attr=0xf, range=[0x000000007dad7000-0x000000007dae1000) (0MB)
EFI: mem57: type=4, attr=0xf, range=[0x000000007dae1000-0x000000007dae3000) (0MB)
EFI: mem58: type=3, attr=0xf, range=[0x000000007dae3000-0x000000007dae7000) (0MB)
EFI: mem59: type=4, attr=0xf, range=[0x000000007dae7000-0x000000007daeb000) (0MB)
EFI: mem60: type=3, attr=0xf, range=[0x000000007daeb000-0x000000007dafc000) (0MB)
EFI: mem61: type=4, attr=0xf, range=[0x000000007dafc000-0x000000007daff000) (0MB)
EFI: mem62: type=3, attr=0xf, range=[0x000000007daff000-0x000000007db09000) (0MB)
EFI: mem63: type=4, attr=0xf, range=[0x000000007db09000-0x000000007db0a000) (0MB)
EFI: mem64: type=3, attr=0xf, range=[0x000000007db0a000-0x000000007db21000) (0MB)
EFI: mem65: type=4, attr=0xf, range=[0x000000007db21000-0x000000007db23000) (0MB)
EFI: mem66: type=3, attr=0xf, range=[0x000000007db23000-0x000000007db27000) (0MB)
EFI: mem67: type=4, attr=0xf, range=[0x000000007db27000-0x000000007db29000) (0MB)
EFI: mem68: type=3, attr=0xf, range=[0x000000007db29000-0x000000007db2d000) (0MB)
EFI: mem69: type=4, attr=0xf, range=[0x000000007db2d000-0x000000007db30000) (0MB)
EFI: mem70: type=3, attr=0xf, range=[0x000000007db30000-0x000000007db3b000) (0MB)
EFI: mem71: type=4, attr=0xf, range=[0x000000007db3b000-0x000000007db3c000) (0MB)
EFI: mem72: type=3, attr=0xf, range=[0x000000007db3c000-0x000000007db42000) (0MB)
EFI: mem73: type=4, attr=0xf, range=[0x000000007db42000-0x000000007db43000) (0MB)
EFI: mem74: type=3, attr=0xf, range=[0x000000007db43000-0x000000007db4a000) (0MB)
EFI: mem75: type=4, attr=0xf, range=[0x000000007db4a000-0x000000007db4c000) (0MB)
EFI: mem76: type=3, attr=0xf, range=[0x000000007db4c000-0x000000007db53000) (0MB)
EFI: mem77: type=2, attr=0xf, range=[0x000000007db53000-0x000000007dd26000) (1MB)
EFI: mem78: type=4, attr=0xf, range=[0x000000007dd26000-0x000000007defd000) (1MB)
EFI: mem79: type=3, attr=0xf, range=[0x000000007defd000-0x000000007df5a000) (0MB)
EFI: mem80: type=4, attr=0xf, range=[0x000000007df5a000-0x000000007df5c000) (0MB)
EFI: mem81: type=3, attr=0xf, range=[0x000000007df5c000-0x000000007df5d000) (0MB)
EFI: mem82: type=4, attr=0xf, range=[0x000000007df5d000-0x000000007df5e000) (0MB)
EFI: mem83: type=3, attr=0xf, range=[0x000000007df5e000-0x000000007df62000) (0MB)
EFI: mem84: type=4, attr=0xf, range=[0x000000007df62000-0x000000007df67000) (0MB)
EFI: mem85: type=3, attr=0xf, range=[0x000000007df67000-0x000000007df76000) (0MB)
EFI: mem86: type=4, attr=0xf, range=[0x000000007df76000-0x000000007df77000) (0MB)
EFI: mem87: type=3, attr=0xf, range=[0x000000007df77000-0x000000007df7f000) (0MB)
EFI: mem88: type=4, attr=0xf, range=[0x000000007df7f000-0x000000007df82000) (0MB)
EFI: mem89: type=3, attr=0xf, range=[0x000000007df82000-0x000000007df86000) (0MB)
EFI: mem90: type=4, attr=0xf, range=[0x000000007df86000-0x000000007df87000) (0MB)
EFI: mem91: type=3, attr=0xf, range=[0x000000007df87000-0x000000007df90000) (0MB)
EFI: mem92: type=4, attr=0xf, range=[0x000000007df90000-0x000000007df91000) (0MB)
EFI: mem93: type=3, attr=0xf, range=[0x000000007df91000-0x000000007df98000) (0MB)
EFI: mem94: type=4, attr=0xf, range=[0x000000007df98000-0x000000007df9f000) (0MB)
EFI: mem95: type=3, attr=0xf, range=[0x000000007df9f000-0x000000007dfa8000) (0MB)
EFI: mem96: type=4, attr=0xf, range=[0x000000007dfa8000-0x000000007dfab000) (0MB)
EFI: mem97: type=3, attr=0xf, range=[0x000000007dfab000-0x000000007dfb7000) (0MB)
EFI: mem98: type=4, attr=0xf, range=[0x000000007dfb7000-0x000000007e06e000) (0MB)
EFI: mem99: type=3, attr=0xf, range=[0x000000007e06e000-0x000000007e075000) (0MB)
EFI: mem100: type=4, attr=0xf, range=[0x000000007e075000-0x000000007e078000) (0MB)
EFI: mem101: type=3, attr=0xf, range=[0x000000007e078000-0x000000007e08f000) (0MB)
EFI: mem102: type=4, attr=0xf, range=[0x000000007e08f000-0x000000007e090000) (0MB)
EFI: mem103: type=3, attr=0xf, range=[0x000000007e090000-0x000000007e092000) (0MB)
EFI: mem104: type=4, attr=0xf, range=[0x000000007e092000-0x000000007e094000) (0MB)
EFI: mem105: type=3, attr=0xf, range=[0x000000007e094000-0x000000007e09d000) (0MB)
EFI: mem106: type=4, attr=0xf, range=[0x000000007e09d000-0x000000007e09e000) (0MB)
EFI: mem107: type=3, attr=0xf, range=[0x000000007e09e000-0x000000007e0a6000) (0MB)
EFI: mem108: type=4, attr=0xf, range=[0x000000007e0a6000-0x000000007e0e6000) (0MB)
EFI: mem109: type=3, attr=0xf, range=[0x000000007e0e6000-0x000000007e101000) (0MB)
EFI: mem110: type=4, attr=0xf, range=[0x000000007e101000-0x000000007e108000) (0MB)
EFI: mem111: type=3, attr=0xf, range=[0x000000007e108000-0x000000007e109000) (0MB)
EFI: mem112: type=4, attr=0xf, range=[0x000000007e109000-0x000000007e10a000) (0MB)
EFI: mem113: type=3, attr=0xf, range=[0x000000007e10a000-0x000000007e10d000) (0MB)
EFI: mem114: type=4, attr=0xf, range=[0x000000007e10d000-0x000000007e114000) (0MB)
EFI: mem115: type=3, attr=0xf, range=[0x000000007e114000-0x000000007e116000) (0MB)
EFI: mem116: type=4, attr=0xf, range=[0x000000007e116000-0x000000007e118000) (0MB)
EFI: mem117: type=3, attr=0xf, range=[0x000000007e118000-0x000000007e11b000) (0MB)
EFI: mem118: type=4, attr=0xf, range=[0x000000007e11b000-0x000000007e11e000) (0MB)
EFI: mem119: type=3, attr=0xf, range=[0x000000007e11e000-0x000000007e121000) (0MB)
EFI: mem120: type=4, attr=0xf, range=[0x000000007e121000-0x000000007e521000) (4MB)
EFI: mem121: type=3, attr=0xf, range=[0x000000007e521000-0x000000007e528000) (0MB)
EFI: mem122: type=4, attr=0xf, range=[0x000000007e528000-0x000000007e52d000) (0MB)
EFI: mem123: type=3, attr=0xf, range=[0x000000007e52d000-0x000000007e52f000) (0MB)
EFI: mem124: type=4, attr=0xf, range=[0x000000007e52f000-0x000000007e532000) (0MB)
EFI: mem125: type=3, attr=0xf, range=[0x000000007e532000-0x000000007e534000) (0MB)
EFI: mem126: type=4, attr=0xf, range=[0x000000007e534000-0x000000007e53f000) (0MB)
EFI: mem127: type=3, attr=0xf, range=[0x000000007e53f000-0x000000007e540000) (0MB)
EFI: mem128: type=4, attr=0xf, range=[0x000000007e540000-0x000000007e542000) (0MB)
EFI: mem129: type=3, attr=0xf, range=[0x000000007e542000-0x000000007e543000) (0MB)
EFI: mem130: type=4, attr=0xf, range=[0x000000007e543000-0x000000007e567000) (0MB)
EFI: mem131: type=3, attr=0xf, range=[0x000000007e567000-0x000000007e56e000) (0MB)
EFI: mem132: type=4, attr=0xf, range=[0x000000007e56e000-0x000000007e572000) (0MB)
EFI: mem133: type=3, attr=0xf, range=[0x000000007e572000-0x000000007e574000) (0MB)
EFI: mem134: type=4, attr=0xf, range=[0x000000007e574000-0x000000007e577000) (0MB)
EFI: mem135: type=3, attr=0xf, range=[0x000000007e577000-0x000000007e578000) (0MB)
EFI: mem136: type=4, attr=0xf, range=[0x000000007e578000-0x000000007e57c000) (0MB)
EFI: mem137: type=3, attr=0xf, range=[0x000000007e57c000-0x000000007e57e000) (0MB)
EFI: mem138: type=4, attr=0xf, range=[0x000000007e57e000-0x000000007e584000) (0MB)
EFI: mem139: type=3, attr=0xf, range=[0x000000007e584000-0x000000007e588000) (0MB)
EFI: mem140: type=4, attr=0xf, range=[0x000000007e588000-0x000000007e5d1000) (0MB)
EFI: mem141: type=3, attr=0xf, range=[0x000000007e5d1000-0x000000007e5df000) (0MB)
EFI: mem142: type=4, attr=0xf, range=[0x000000007e5df000-0x000000007e641000) (0MB)
EFI: mem143: type=3, attr=0xf, range=[0x000000007e641000-0x000000007e663000) (0MB)
EFI: mem144: type=4, attr=0xf, range=[0x000000007e663000-0x000000007e66b000) (0MB)
EFI: mem145: type=3, attr=0xf, range=[0x000000007e66b000-0x000000007e66f000) (0MB)
EFI: mem146: type=4, attr=0xf, range=[0x000000007e66f000-0x000000007e670000) (0MB)
EFI: mem147: type=3, attr=0xf, range=[0x000000007e670000-0x000000007e673000) (0MB)
EFI: mem148: type=4, attr=0xf, range=[0x000000007e673000-0x000000007e6be000) (0MB)
EFI: mem149: type=3, attr=0xf, range=[0x000000007e6be000-0x000000007e6dc000) (0MB)
EFI: mem150: type=4, attr=0xf, range=[0x000000007e6dc000-0x000000007e6e3000) (0MB)
EFI: mem151: type=3, attr=0xf, range=[0x000000007e6e3000-0x000000007e6e4000) (0MB)
EFI: mem152: type=4, attr=0xf, range=[0x000000007e6e4000-0x000000007e6ee000) (0MB)
EFI: mem153: type=3, attr=0xf, range=[0x000000007e6ee000-0x000000007e6f6000) (0MB)
EFI: mem154: type=4, attr=0xf, range=[0x000000007e6f6000-0x000000007e6fe000) (0MB)
EFI: mem155: type=3, attr=0xf, range=[0x000000007e6fe000-0x000000007e70a000) (0MB)
EFI: mem156: type=4, attr=0xf, range=[0x000000007e70a000-0x000000007e710000) (0MB)
EFI: mem157: type=3, attr=0xf, range=[0x000000007e710000-0x000000007e71c000) (0MB)
EFI: mem158: type=4, attr=0xf, range=[0x000000007e71c000-0x000000007e71e000) (0MB)
EFI: mem159: type=3, attr=0xf, range=[0x000000007e71e000-0x000000007e721000) (0MB)
EFI: mem160: type=4, attr=0xf, range=[0x000000007e721000-0x000000007e722000) (0MB)
EFI: mem161: type=3, attr=0xf, range=[0x000000007e722000-0x000000007e72b000) (0MB)
EFI: mem162: type=4, attr=0xf, range=[0x000000007e72b000-0x000000007e72c000) (0MB)
EFI: mem163: type=3, attr=0xf, range=[0x000000007e72c000-0x000000007e72d000) (0MB)
EFI: mem164: type=4, attr=0xf, range=[0x000000007e72d000-0x000000007e72e000) (0MB)
EFI: mem165: type=3, attr=0xf, range=[0x000000007e72e000-0x000000007e732000) (0MB)
EFI: mem166: type=4, attr=0xf, range=[0x000000007e732000-0x000000007e733000) (0MB)
EFI: mem167: type=3, attr=0xf, range=[0x000000007e733000-0x000000007e734000) (0MB)
EFI: mem168: type=4, attr=0xf, range=[0x000000007e734000-0x000000007e737000) (0MB)
EFI: mem169: type=3, attr=0xf, range=[0x000000007e737000-0x000000007e73c000) (0MB)
EFI: mem170: type=4, attr=0xf, range=[0x000000007e73c000-0x000000007e73e000) (0MB)
EFI: mem171: type=3, attr=0xf, range=[0x000000007e73e000-0x000000007e741000) (0MB)
EFI: mem172: type=4, attr=0xf, range=[0x000000007e741000-0x000000007e772000) (0MB)
EFI: mem173: type=3, attr=0xf, range=[0x000000007e772000-0x000000007e773000) (0MB)
EFI: mem174: type=4, attr=0xf, range=[0x000000007e773000-0x000000007f5ef000) (14MB)
EFI: mem175: type=6, attr=0x800000000000000f, range=[0x000000007f5ef000-0x000000007f5f5000) (0MB)
EFI: mem176: type=6, attr=0x800000000000000f, range=[0x000000007f5f5000-0x000000007f601000) (0MB)
EFI: mem177: type=5, attr=0x800000000000000f, range=[0x000000007f601000-0x000000007f60d000) (0MB)
EFI: mem178: type=6, attr=0x800000000000000f, range=[0x000000007f60d000-0x000000007f63f000) (0MB)
EFI: mem179: type=5, attr=0x800000000000000f, range=[0x000000007f63f000-0x000000007f68f000) (0MB)
EFI: mem180: type=0, attr=0xf, range=[0x000000007f68f000-0x000000007f6bd000) (0MB)
EFI: mem181: type=0, attr=0xf, range=[0x000000007f6bd000-0x000000007f6df000) (0MB)
EFI: mem182: type=10, attr=0xf, range=[0x000000007f6df000-0x000000007f72c000) (0MB)
EFI: mem183: type=10, attr=0xf, range=[0x000000007f72c000-0x000000007f7df000) (0MB)
EFI: mem184: type=9, attr=0xf, range=[0x000000007f7df000-0x000000007f7e9000) (0MB)
EFI: mem185: type=9, attr=0xf, range=[0x000000007f7e9000-0x000000007f7ff000) (0MB)
EFI: mem186: type=4, attr=0xf, range=[0x000000007f7ff000-0x000000007f800000) (0MB)
EFI: mem187: type=11, attr=0x8000000000000001, range=[0x00000000ff800000-0x0000000100000000) (8MB)
EFI: mem188: type=7, attr=0xf, range=[0x0000000100000000-0x0000000880000000) (30720MB)
EFI: mem189: type=11, attr=0x8000000000000001, range=[0x0000000080000000-0x0000000090000000) (256MB)
EFI: mem190: type=11, attr=0x8000000000000000, range=[0x00000000fed1c000-0x00000000fed20000) (0MB)
DMI 2.5 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x880000 max_arch_pfn = 0x400000000
MTRR default type: uncachable
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-FFFFF uncachable
MTRR variable ranges enabled:
  0 base 0000000000 mask FF80000000 write-back
  1 base 0100000000 mask FF00000000 write-back
  2 base 0200000000 mask FE00000000 write-back
  3 base 0400000000 mask FC00000000 write-back
  4 base 0800000000 mask F800000000 write-back
  5 disabled
  6 disabled
  7 disabled
x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
e820 update range: 0000000080000000 - 0000000100000000 (usable) ==> (reserved)
last_pfn = 0x7f800 max_arch_pfn = 0x400000000
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007f800000
 0000000000 - 007f800000 page 2M
kernel direct mapping tables up to 7f800000 @ 8000-b000
init_memory_mapping: 0000000100000000-0000000880000000
 0100000000 - 0880000000 page 2M
kernel direct mapping tables up to 880000000 @ 9000-2c000
RAMDISK: 7a073000 - 7adac5a8
ACPI: RSDP 000000007f7fe014 00024 (v02 IBM   )
ACPI: XSDT 000000007f7fe120 00094 (v01 IBM    THURLEY  00000000      01000013)
ACPI: FACP 000000007f7fb000 000F4 (v04 IBM    THURLEY  00000000 IBM  01000013)
ACPI Warning: Invalid length for Pm1aControlBlock: 32, using default 16 (20090903/tbfadt-607)
ACPI: DSDT 000000007f7f8000 02BF3 (v01 IBM    THURLEY  00000003 IBM  01000013)
ACPI: FACS 000000007f72c000 00040
ACPI: TCPA 000000007f7fd000 00064 (v00                 00000000      00000000)
ACPI: APIC 000000007f7f7000 000DE (v02 IBM    THURLEY  00000000 IBM  01000013)
ACPI: MCFG 000000007f7f6000 0003C (v01 IBM    THURLEY  00000001 IBM  01000013)
ACPI: SLIC 000000007f7f5000 00176 (v01 IBM    THURLEY  00000000 IBM  01000013)
ACPI: HPET 000000007f7f4000 00038 (v01 IBM    THURLEY  00000001 IBM  01000013)
ACPI: SRAT 000000007f7f3000 001A8 (v02 IBM    THURLEY  00000001 IBM  01000013)
ACPI: SLIT 000000007f7f2000 00030 (v01 IBM    THURLEY  00000000 IBM  01000013)
ACPI: SSDT 000000007f7f1000 00113 (v02 IBM    CPUSCOPE 00004000 IBM  01000013)
ACPI: SSDT 000000007f7f0000 00491 (v02 IBM    CPUWYVRN 00004000 IBM  01000013)
ACPI: SSDT 000000007f7ec000 035AC (v02 IBM    PSTATEPM 00004000 IBM  01000013)
ACPI: SSDT 000000007f7eb000 00832 (v02 IBM    CPUCSTAT 00004000 IBM  01000013)
ACPI: ERST 000000007f7ea000 00230 (v01 IBM    THURLEY  00000001 IBM  01000013)
ACPI: DMAR 000000007f7e9000 000C8 (v01 IBM    THURLEY  00000001 IBM  01000013)
ACPI: Local APIC address 0xfee00000
SRAT: PXM 0 -> APIC 0 -> Node 0
SRAT: PXM 0 -> APIC 2 -> Node 0
SRAT: PXM 0 -> APIC 4 -> Node 0
SRAT: PXM 0 -> APIC 6 -> Node 0
SRAT: PXM 1 -> APIC 16 -> Node 1
SRAT: PXM 1 -> APIC 18 -> Node 1
SRAT: PXM 1 -> APIC 20 -> Node 1
SRAT: PXM 1 -> APIC 22 -> Node 1
SRAT: PXM 0 -> APIC 1 -> Node 0
SRAT: PXM 0 -> APIC 3 -> Node 0
SRAT: PXM 0 -> APIC 5 -> Node 0
SRAT: PXM 0 -> APIC 7 -> Node 0
SRAT: PXM 1 -> APIC 17 -> Node 1
SRAT: PXM 1 -> APIC 19 -> Node 1
SRAT: PXM 1 -> APIC 21 -> Node 1
SRAT: PXM 1 -> APIC 23 -> Node 1
SRAT: Node 0 PXM 0 0-80000000
SRAT: Node 0 PXM 0 100000000-480000000
SRAT: Node 1 PXM 1 480000000-880000000
NUMA: Using 31 for the hash shift.
Bootmem setup node 0 0000000000000000-0000000480000000
  NODE_DATA [0000000000027000 - 000000000005afff]
  bootmap [0000000000100000 -  000000000018ffff] pages 90
(10 early reservations) ==> bootmem [0000000000 - 0480000000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [007a073000 - 007adac5a8]          RAMDISK ==> [007a073000 - 007adac5a8]
  #4 [000009d000 - 0000100000]    BIOS reserved ==> [000009d000 - 0000100000]
  #5 [007c342000 - 007c3443d0]       EFI memmap ==> [007c342000 - 007c3443d0]
  #6 [0001c9f000 - 0001c9f480]              BRK ==> [0001c9f000 - 0001c9f480]
  #7 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
  #8 [0000009000 - 0000027000]          PGTABLE ==> [0000009000 - 0000027000]
  #9 [0000001000 - 0000001030]        ACPI SLIT ==> [0000001000 - 0000001030]
Bootmem setup node 1 0000000480000000-0000000880000000
  NODE_DATA [0000000480000000 - 0000000480033fff]
  bootmap [0000000480034000 -  00000004800b3fff] pages 80
(10 early reservations) ==> bootmem [0480000000 - 0880000000]
  #0 [0000000000 - 0000001000]   BIOS data page
  #1 [0000006000 - 0000008000]       TRAMPOLINE
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS
  #3 [007a073000 - 007adac5a8]          RAMDISK
  #4 [000009d000 - 0000100000]    BIOS reserved
  #5 [007c342000 - 007c3443d0]       EFI memmap
  #6 [0001c9f000 - 0001c9f480]              BRK
  #7 [0000008000 - 0000009000]          PGTABLE
  #8 [0000009000 - 0000027000]          PGTABLE
  #9 [0000001000 - 0000001030]        ACPI SLIT
 [ffffea0000000000-ffffea000fbfffff] PMD -> [ffff880028600000-ffff8800365fffff] on node 0
 [ffffea000fc00000-ffffea001dbfffff] PMD -> [ffff880480200000-ffff88048e1fffff] on node 1
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00880000
Movable zone start PFN for each node
early_node_map[9] active PFN ranges
    0: 0x00000001 -> 0x0000006c
    0: 0x0000006d -> 0x0000009f
    0: 0x00000100 -> 0x0007d3f3
    0: 0x0007d41d -> 0x0007d447
    0: 0x0007d471 -> 0x0007d84d
    0: 0x0007d8fd -> 0x0007f5ef
    0: 0x0007f7ff -> 0x0007f800
    0: 0x00100000 -> 0x00480000
    1: 0x00480000 -> 0x00880000
On node 0 totalpages: 4191369
  DMA zone: 56 pages used for memmap
  DMA zone: 133 pages reserved
  DMA zone: 3808 pages, LIFO batch:0
  DMA32 zone: 14280 pages used for memmap
  DMA32 zone: 503076 pages, LIFO batch:31
  Normal zone: 50176 pages used for memmap
  Normal zone: 3619840 pages, LIFO batch:31
On node 1 totalpages: 4194304
  Normal zone: 57344 pages used for memmap
  Normal zone: 4136960 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0x588
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x02] enabled)
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x04] enabled)
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x06] enabled)
ACPI: LAPIC (acpi_id[0x04] lapic_id[0x10] enabled)
ACPI: LAPIC (acpi_id[0x05] lapic_id[0x12] enabled)
ACPI: LAPIC (acpi_id[0x06] lapic_id[0x14] enabled)
ACPI: LAPIC (acpi_id[0x07] lapic_id[0x16] enabled)
ACPI: LAPIC (acpi_id[0x08] lapic_id[0x01] enabled)
ACPI: LAPIC (acpi_id[0x09] lapic_id[0x03] enabled)
ACPI: LAPIC (acpi_id[0x0a] lapic_id[0x05] enabled)
ACPI: LAPIC (acpi_id[0x0b] lapic_id[0x07] enabled)
ACPI: LAPIC (acpi_id[0x0c] lapic_id[0x11] enabled)
ACPI: LAPIC (acpi_id[0x0d] lapic_id[0x13] enabled)
ACPI: LAPIC (acpi_id[0x0e] lapic_id[0x15] enabled)
ACPI: LAPIC (acpi_id[0x0f] lapic_id[0x17] enabled)
ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
ACPI: IOAPIC (id[0x08] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 8, version 32, address 0xfec00000, GSI 0-23
ACPI: IOAPIC (id[0x09] address[0xfec80000] gsi_base[24])
IOAPIC[1]: apic_id 9, version 32, address 0xfec80000, GSI 24-47
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Using ACPI (MADT) for SMP configuration information
ACPI: HPET id: 0x8086a301 base: 0xfed00000
SMP: Allowing 16 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 48
PM: Registered nosave memory: 000000000006c000 - 000000000006d000
PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
PM: Registered nosave memory: 000000007d3f3000 - 000000007d41d000
PM: Registered nosave memory: 000000007d447000 - 000000007d471000
PM: Registered nosave memory: 000000007d84d000 - 000000007d8fd000
PM: Registered nosave memory: 000000007f5ef000 - 000000007f6df000
PM: Registered nosave memory: 000000007f6df000 - 000000007f7df000
PM: Registered nosave memory: 000000007f7df000 - 000000007f7ff000
PM: Registered nosave memory: 000000007f800000 - 0000000080000000
PM: Registered nosave memory: 0000000080000000 - 0000000090000000
PM: Registered nosave memory: 0000000090000000 - 00000000fed1c000
PM: Registered nosave memory: 00000000fed1c000 - 00000000fed20000
PM: Registered nosave memory: 00000000fed20000 - 00000000ff800000
PM: Registered nosave memory: 00000000ff800000 - 0000000100000000
Allocating PCI resources starting at 90000000 (gap: 90000000:6ed1c000)
Booting paravirtualized kernel on bare hardware
NR_CPUS:4096 nr_cpumask_bits:16 nr_cpu_ids:16 nr_node_ids:2
PERCPU: Embedded 31 pages/cpu @ffff880028200000 s95064 r8192 d23720 u262144
pcpu-alloc: s95064 r8192 d23720 u262144 alloc=1*2097152
pcpu-alloc: [0] 00 01 02 03 08 09 10 11 [1] 04 05 06 07 12 13 14 15 
Built 2 zonelists in Zone order, mobility grouping on.  Total pages: 8263684
Policy zone: Normal
Kernel command line: ro root=/dev/mapper/vg_tb3client02-lv_root rd_LVM_LV=vg_tb3client02/lv_root rd_LVM_LV=vg_tb3client02/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing 64MB software IO TLB between ffff880020000000 - ffff880024000000
software IO TLB at phys 0x20000000 - 0x24000000
Memory: 32988464k/35651584k available (4935k kernel code, 2108892k absent, 554228k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:944
Extended CMOS year: 2000
Console: colour dummy device 80x25
console [tty0] enabled
allocated 335544320 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
hpet clockevent registered
HPET: 4 timers in total, 0 timers will be used for per-cpu timer
Fast TSC calibration using PIT
Detected 2266.548 MHz processor.
Calibrating delay loop (skipped), value calculated using timer frequency.. 4533.09 BogoMIPS (lpj=2266548)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 4194304 (order: 13, 33554432 bytes)
Inode-cache hash table entries: 2097152 (order: 12, 16777216 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
mce: CPU supports 9 MCE banks
CPU0: Thermal monitoring enabled (TM1)
using mwait in idle threads.
Performance Events: PEBS fmt1+, Nehalem events, Intel PMU driver.
... version:                3
... bit width:              48
... generic registers:      4
... value mask:             0000ffffffffffff
... max period:             000000007fffffff
... fixed-purpose events:   3
... event mask:             000000070000000f
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
DMAR: Host address width 40
DMAR: DRHD base: 0x000000fe710000 flags: 0x1
IOMMU fe710000: ver 1:0 cap c90780106f0462 ecap f020f6
DMAR: RMRR base: 0x0000007d870000 end: 0x0000007d8effff
DMAR: ATSR flags: 0x0
Setting APIC routing to physical flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
Booting Node   0, Processors  #1 #2 #3 Ok.
Booting Node   1, Processors  #4 #5 #6 #7 Ok.
Booting Node   0, Processors  #8 #9 #10 #11 Ok.
Booting Node   1, Processors  #12 #13 #14 #15 Ok.
Brought up 16 CPUs
Total of 16 processors activated (72523.32 BogoMIPS).
Testing NMI watchdog ... OK.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
ACPI: bus type pci registered
PCI: MCFG configuration 0: base 80000000 segment 0 buses 0 - 255
PCI: MCFG area at 80000000 reserved in E820
PCI: Using MMCONFIG at 80000000 - 8fffffff
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S1 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
pci 0000:00:00.0: PME# disabled
pci 0000:00:01.0: PME# supported from D0 D3hot D3cold
pci 0000:00:01.0: PME# disabled
pci 0000:00:02.0: PME# supported from D0 D3hot D3cold
pci 0000:00:02.0: PME# disabled
pci 0000:00:03.0: PME# supported from D0 D3hot D3cold
pci 0000:00:03.0: PME# disabled
pci 0000:00:07.0: PME# supported from D0 D3hot D3cold
pci 0000:00:07.0: PME# disabled
pci 0000:00:16.0: reg 10 64bit mmio: [0x97c00000-0x97c03fff]
pci 0000:00:16.1: reg 10 64bit mmio: [0x97c04000-0x97c07fff]
pci 0000:00:16.2: reg 10 64bit mmio: [0x97c08000-0x97c0bfff]
pci 0000:00:16.3: reg 10 64bit mmio: [0x97c0c000-0x97c0ffff]
pci 0000:00:16.4: reg 10 64bit mmio: [0x97c10000-0x97c13fff]
pci 0000:00:16.5: reg 10 64bit mmio: [0x97c14000-0x97c17fff]
pci 0000:00:16.6: reg 10 64bit mmio: [0x97c18000-0x97c1bfff]
pci 0000:00:16.7: reg 10 64bit mmio: [0x97c1c000-0x97c1ffff]
pci 0000:00:1a.0: reg 20 io port: [0x40a0-0x40bf]
pci 0000:00:1a.1: reg 20 io port: [0x4080-0x409f]
pci 0000:00:1a.7: reg 10 32bit mmio: [0x97c21000-0x97c213ff]
pci 0000:00:1a.7: PME# supported from D0 D3hot D3cold
pci 0000:00:1a.7: PME# disabled
pci 0000:00:1c.0: PME# supported from D0 D3hot D3cold
pci 0000:00:1c.0: PME# disabled
pci 0000:00:1c.4: PME# supported from D0 D3hot D3cold
pci 0000:00:1c.4: PME# disabled
pci 0000:00:1d.0: reg 20 io port: [0x4060-0x407f]
pci 0000:00:1d.1: reg 20 io port: [0x4040-0x405f]
pci 0000:00:1d.2: reg 20 io port: [0x4020-0x403f]
pci 0000:00:1d.7: reg 10 32bit mmio: [0x97c20000-0x97c203ff]
pci 0000:00:1d.7: PME# supported from D0 D3hot D3cold
pci 0000:00:1d.7: PME# disabled
pci 0000:00:1f.2: reg 10 io port: [0x4118-0x411f]
pci 0000:00:1f.2: reg 14 io port: [0x412c-0x412f]
pci 0000:00:1f.2: reg 18 io port: [0x4110-0x4117]
pci 0000:00:1f.2: reg 1c io port: [0x4128-0x412b]
pci 0000:00:1f.2: reg 20 io port: [0x40f0-0x40ff]
pci 0000:00:1f.2: reg 24 io port: [0x40e0-0x40ef]
pci 0000:00:1f.3: reg 10 64bit mmio: [0x97c22000-0x97c220ff]
pci 0000:00:1f.3: reg 20 io port: [0x4000-0x401f]
pci 0000:00:1f.5: reg 10 io port: [0x4108-0x410f]
pci 0000:00:1f.5: reg 14 io port: [0x4124-0x4127]
pci 0000:00:1f.5: reg 18 io port: [0x4100-0x4107]
pci 0000:00:1f.5: reg 1c io port: [0x4120-0x4123]
pci 0000:00:1f.5: reg 20 io port: [0x40d0-0x40df]
pci 0000:00:1f.5: reg 24 io port: [0x40c0-0x40cf]
pci 0000:0b:00.0: reg 10 64bit mmio: [0x92000000-0x93ffffff]
pci 0000:0b:00.0: PME# supported from D0 D3hot D3cold
pci 0000:0b:00.0: PME# disabled
pci 0000:0b:00.1: reg 10 64bit mmio: [0x94000000-0x95ffffff]
pci 0000:0b:00.1: PME# supported from D0 D3hot D3cold
pci 0000:0b:00.1: PME# disabled
pci 0000:00:01.0: bridge 32bit mmio: [0x92000000-0x95ffffff]
pci 0000:15:00.0: reg 10 32bit mmio: [0x97b60000-0x97b7ffff]
pci 0000:15:00.0: reg 14 32bit mmio: [0x97b40000-0x97b5ffff]
pci 0000:15:00.0: reg 18 io port: [0x3020-0x303f]
pci 0000:15:00.0: reg 30 32bit mmio pref: [0xfffe0000-0xffffffff]
pci 0000:15:00.0: PME# supported from D0 D3hot D3cold
pci 0000:15:00.0: PME# disabled
pci 0000:15:00.1: reg 10 32bit mmio: [0x97b20000-0x97b3ffff]
pci 0000:15:00.1: reg 14 32bit mmio: [0x97b00000-0x97b1ffff]
pci 0000:15:00.1: reg 18 io port: [0x3000-0x301f]
pci 0000:15:00.1: PME# supported from D0 D3hot D3cold
pci 0000:15:00.1: PME# disabled
pci 0000:15:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
pci 0000:00:03.0: bridge io port: [0x3000-0x3fff]
pci 0000:00:03.0: bridge 32bit mmio: [0x97b00000-0x97bfffff]
pci 0000:1a:00.0: reg 10 32bit mmio: [0x97a60000-0x97a7ffff]
pci 0000:1a:00.0: reg 14 32bit mmio: [0x97a40000-0x97a5ffff]
pci 0000:1a:00.0: reg 18 io port: [0x2020-0x203f]
pci 0000:1a:00.0: reg 30 32bit mmio pref: [0xfffe0000-0xffffffff]
pci 0000:1a:00.0: PME# supported from D0 D3hot D3cold
pci 0000:1a:00.0: PME# disabled
pci 0000:1a:00.1: reg 10 32bit mmio: [0x97a20000-0x97a3ffff]
pci 0000:1a:00.1: reg 14 32bit mmio: [0x97a00000-0x97a1ffff]
pci 0000:1a:00.1: reg 18 io port: [0x2000-0x201f]
pci 0000:1a:00.1: PME# supported from D0 D3hot D3cold
pci 0000:1a:00.1: PME# disabled
pci 0000:1a:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
pci 0000:00:07.0: bridge io port: [0x2000-0x2fff]
pci 0000:00:07.0: bridge 32bit mmio: [0x97a00000-0x97afffff]
pci 0000:01:00.0: reg 10 io port: [0x1000-0x10ff]
pci 0000:01:00.0: reg 14 64bit mmio: [0x97910000-0x97913fff]
pci 0000:01:00.0: reg 1c 64bit mmio: [0x97900000-0x9790ffff]
pci 0000:01:00.0: reg 30 32bit mmio pref: [0xffe00000-0xffffffff]
pci 0000:01:00.0: supports D1 D2
pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
pci 0000:00:1c.0: bridge io port: [0x1000-0x1fff]
pci 0000:00:1c.0: bridge 32bit mmio: [0x97900000-0x979fffff]
pci 0000:06:00.0: PME# supported from D0 D3hot D3cold
pci 0000:06:00.0: PME# disabled
pci 0000:00:1c.4: bridge 32bit mmio: [0x97000000-0x978fffff]
pci 0000:00:1c.4: bridge 64bit mmio pref: [0x96000000-0x96ffffff]
pci 0000:07:00.0: reg 10 32bit mmio pref: [0x96000000-0x96ffffff]
pci 0000:07:00.0: reg 14 32bit mmio: [0x97800000-0x97803fff]
pci 0000:07:00.0: reg 18 32bit mmio: [0x97000000-0x977fffff]
pci 0000:06:00.0: bridge 32bit mmio: [0x97000000-0x978fffff]
pci 0000:06:00.0: bridge 32bit mmio pref: [0x96000000-0x96ffffff]
pci 0000:00:1e.0: transparent bridge
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI3._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI7._PRT]
Firmware did not grant requested _OSC control
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
vgaarb: device added: PCI:0000:07:00.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0
hpet0: 4 comparators, 64-bit 14.318180 MHz counter
Switching to clocksource tsc
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
system 00:05: iomem range 0xfed00000-0xfed003ff has been reserved
system 00:06: ioport range 0x400-0x43f has been reserved
system 00:06: ioport range 0x440-0x45f has been reserved
system 00:06: ioport range 0x460-0x47f has been reserved
system 00:06: ioport range 0x580-0x5ff has been reserved
system 00:06: ioport range 0x5e0-0x5ff has been reserved
system 00:06: ioport range 0xcf9-0xcf9 could not be reserved
system 00:0a: iomem range 0xfed1c000-0xfed1ffff has been reserved
system 00:0a: iomem range 0xfec00000-0xfecfffff could not be reserved
system 00:0a: iomem range 0xfee00000-0xfeefffff has been reserved
system 00:0a: iomem range 0x80000000-0x8fffffff has been reserved
system 00:0a: iomem range 0xffc00000-0xffffffff has been reserved
system 00:0a: iomem range 0xfeb00000-0xfebfffff has been reserved
system 00:0a: iomem range 0xfe710000-0xfe711fff has been reserved
system 00:0a: iomem range 0xfe800000-0xfe9fffff has been reserved
system 00:0a: iomem range 0xfc000000-0xfcffffff has been reserved
system 00:0a: iomem range 0xfea00000-0xfeafffff has been reserved
system 00:0b: ioport range 0xca0-0xca1 has been reserved
system 00:0b: ioport range 0xca4-0xca9 has been reserved
system 00:0b: ioport range 0xcaa-0xcab has been reserved
system 00:0b: ioport range 0xcac-0xccb has been reserved
system 00:0c: ioport range 0xca2-0xca2 has been reserved
system 00:0c: ioport range 0xca3-0xca3 has been reserved
pci 0000:15:00.0: BAR 6: no parent found for of device [0xfffe0000-0xffffffff]
pci 0000:1a:00.0: BAR 6: no parent found for of device [0xfffe0000-0xffffffff]
pci 0000:01:00.0: BAR 6: no parent found for of device [0xffe00000-0xffffffff]
pci 0000:00:01.0: PCI bridge to [bus 0b-0f]
pci 0000:00:01.0: PCI bridge, secondary bus 0000:0b
pci 0000:00:01.0:   bridge window [io  disabled]
pci 0000:00:01.0:   bridge window [0x92000000-0x95ffffff]
pci 0000:00:01.0:   bridge window [mem pref disabled]
pci 0000:00:02.0: PCI bridge to [bus 10-14]
pci 0000:00:02.0: PCI bridge, secondary bus 0000:10
pci 0000:00:02.0:   bridge window [io  disabled]
pci 0000:00:02.0:   bridge window [mem disabled]
pci 0000:00:02.0:   bridge window [mem pref disabled]
pci 0000:00:03.0: PCI bridge to [bus 15-19]
pci 0000:00:03.0: PCI bridge, secondary bus 0000:15
pci 0000:00:03.0:   bridge window [0x3000-0x3fff]
pci 0000:00:03.0:   bridge window [0x97b00000-0x97bfffff]
pci 0000:00:03.0:   bridge window [0x90200000-0x902fffff]
pci 0000:00:07.0: PCI bridge to [bus 1a-1e]
pci 0000:00:07.0: PCI bridge, secondary bus 0000:1a
pci 0000:00:07.0:   bridge window [0x2000-0x2fff]
pci 0000:00:07.0:   bridge window [0x97a00000-0x97afffff]
pci 0000:00:07.0:   bridge window [0x90300000-0x903fffff]
pci 0000:00:1c.0: PCI bridge to [bus 01-05]
pci 0000:00:1c.0: PCI bridge, secondary bus 0000:01
pci 0000:00:1c.0:   bridge window [0x1000-0x1fff]
pci 0000:00:1c.0:   bridge window [0x97900000-0x979fffff]
pci 0000:00:1c.0:   bridge window [0x90000000-0x901fffff]
pci 0000:06:00.0: PCI bridge to [bus 07-07]
pci 0000:06:00.0: PCI bridge, secondary bus 0000:07
pci 0000:06:00.0:   bridge window [io  disabled]
pci 0000:06:00.0:   bridge window [0x97000000-0x978fffff]
pci 0000:06:00.0:   bridge window [0x96000000-0x96ffffff]
pci 0000:00:1c.4: PCI bridge to [bus 06-0a]
pci 0000:00:1c.4: PCI bridge, secondary bus 0000:06
pci 0000:00:1c.4:   bridge window [io  disabled]
pci 0000:00:1c.4:   bridge window [0x97000000-0x978fffff]
pci 0000:00:1c.4:   bridge window [0x96000000-0x96ffffff]
pci 0000:00:1e.0: PCI bridge to [bus 1f-23]
pci 0000:00:1e.0: PCI bridge, secondary bus 0000:1f
pci 0000:00:1e.0:   bridge window [io  disabled]
pci 0000:00:1e.0:   bridge window [mem disabled]
pci 0000:00:1e.0:   bridge window [mem pref disabled]
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
pci 0000:00:01.0: PCI INT A -> GSI 28 (level, low) -> IRQ 28
pci 0000:00:01.0: setting latency timer to 64
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
pci 0000:00:02.0: PCI INT A -> GSI 29 (level, low) -> IRQ 29
pci 0000:00:02.0: setting latency timer to 64
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
pci 0000:00:03.0: PCI INT A -> GSI 24 (level, low) -> IRQ 24
pci 0000:00:03.0: setting latency timer to 64
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
pci 0000:00:07.0: PCI INT A -> GSI 30 (level, low) -> IRQ 30
pci 0000:00:07.0: setting latency timer to 64
  alloc irq_desc for 16 on node -1
  alloc kstat_irqs on node -1
pci 0000:00:1c.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
pci 0000:00:1c.0: setting latency timer to 64
pci 0000:00:1c.4: PCI INT A -> GSI 16 (level, low) -> IRQ 16
pci 0000:00:1c.4: setting latency timer to 64
pci 0000:06:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
pci 0000:06:00.0: setting latency timer to 64
pci 0000:00:1e.0: setting latency timer to 64
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
pci_bus 0000:0b: resource 1 mem: [0x92000000-0x95ffffff]
pci_bus 0000:15: resource 0 io:  [0x3000-0x3fff]
pci_bus 0000:15: resource 1 mem: [0x97b00000-0x97bfffff]
pci_bus 0000:15: resource 2 pref mem [0x90200000-0x902fffff]
pci_bus 0000:1a: resource 0 io:  [0x2000-0x2fff]
pci_bus 0000:1a: resource 1 mem: [0x97a00000-0x97afffff]
pci_bus 0000:1a: resource 2 pref mem [0x90300000-0x903fffff]
pci_bus 0000:01: resource 0 io:  [0x1000-0x1fff]
pci_bus 0000:01: resource 1 mem: [0x97900000-0x979fffff]
pci_bus 0000:01: resource 2 pref mem [0x90000000-0x901fffff]
pci_bus 0000:06: resource 1 mem: [0x97000000-0x978fffff]
pci_bus 0000:06: resource 2 pref mem [0x96000000-0x96ffffff]
pci_bus 0000:07: resource 1 mem: [0x97000000-0x978fffff]
pci_bus 0000:07: resource 2 pref mem [0x96000000-0x96ffffff]
pci_bus 0000:1f: resource 3 io:  [0x00-0xffff]
pci_bus 0000:1f: resource 4 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 524288 (order: 10, 4194304 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:07:00.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13541k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297073891.745:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 32768
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
  alloc irq_desc for 48 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:01.0: irq 48 for MSI/MSI-X
pcieport 0000:00:01.0: setting latency timer to 64
  alloc irq_desc for 49 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:02.0: irq 49 for MSI/MSI-X
pcieport 0000:00:02.0: setting latency timer to 64
  alloc irq_desc for 50 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:03.0: irq 50 for MSI/MSI-X
pcieport 0000:00:03.0: setting latency timer to 64
  alloc irq_desc for 51 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:07.0: irq 51 for MSI/MSI-X
pcieport 0000:00:07.0: setting latency timer to 64
  alloc irq_desc for 52 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:1c.0: irq 52 for MSI/MSI-X
pcieport 0000:00:1c.0: setting latency timer to 64
  alloc irq_desc for 53 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:1c.4: irq 53 for MSI/MSI-X
pcieport 0000:00:1c.4: setting latency timer to 64
Firmware did not grant requested _OSC control
aer 0000:00:01.0:pcie02: AER service couldn't init device: no _OSC support
Firmware did not grant requested _OSC control
aer 0000:00:02.0:pcie02: AER service couldn't init device: no _OSC support
Firmware did not grant requested _OSC control
aer 0000:00:03.0:pcie02: AER service couldn't init device: no _OSC support
Firmware did not grant requested _OSC control
aer 0000:00:07.0:pcie02: AER service couldn't init device: no _OSC support
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Firmware did not grant requested _OSC control
Firmware did not grant requested _OSC control
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
pci-stub: invalid id string ""
efifb: probing for efifb
efifb: framebuffer at 0x96000000, mapped to 0xffffc90013e00000, using 10240k, total 16384k
efifb: mode is 1280x1024x32, linelength=5120, pages=1
efifb: scrolling: redraw
efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
Console: switching to colour frame buffer device 160x64
fb0: EFI VGA frame buffer device
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
Monitor-Mwait will be used to enter C-1 state
Monitor-Mwait will be used to enter C-3 state
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
processor LNXCPU:02: registered as cooling_device2
processor LNXCPU:03: registered as cooling_device3
processor LNXCPU:04: registered as cooling_device4
processor LNXCPU:05: registered as cooling_device5
processor LNXCPU:06: registered as cooling_device6
processor LNXCPU:07: registered as cooling_device7
processor LNXCPU:08: registered as cooling_device8
processor LNXCPU:09: registered as cooling_device9
processor LNXCPU:0a: registered as cooling_device10
processor LNXCPU:0b: registered as cooling_device11
processor LNXCPU:0c: registered as cooling_device12
processor LNXCPU:0d: registered as cooling_device13
processor LNXCPU:0e: registered as cooling_device14
processor LNXCPU:0f: registered as cooling_device15
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
tpm_tis 00:09: 1.2 TPM (device-id 0xFE, rev-id 70)
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:08: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  alloc irq_desc for 19 on node -1
  alloc kstat_irqs on node -1
ehci_hcd 0000:00:1a.7: PCI INT C -> GSI 19 (level, low) -> IRQ 19
ehci_hcd 0000:00:1a.7: setting latency timer to 64
ehci_hcd 0000:00:1a.7: EHCI Host Controller
ehci_hcd 0000:00:1a.7: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1a.7: debug port 1
ehci_hcd 0000:00:1a.7: cache line size of 64 is not supported
ehci_hcd 0000:00:1a.7: irq 19, io mem 0x97c21000
ehci_hcd 0000:00:1a.7: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.32-71.el6.x86_64 ehci_hcd
usb usb1: SerialNumber: 0000:00:1a.7
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
  alloc irq_desc for 17 on node -1
  alloc kstat_irqs on node -1
ehci_hcd 0000:00:1d.7: PCI INT A -> GSI 17 (level, low) -> IRQ 17
ehci_hcd 0000:00:1d.7: setting latency timer to 64
ehci_hcd 0000:00:1d.7: EHCI Host Controller
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 2
ehci_hcd 0000:00:1d.7: debug port 1
ehci_hcd 0000:00:1d.7: cache line size of 64 is not supported
ehci_hcd 0000:00:1d.7: irq 17, io mem 0x97c20000
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: EHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.32-71.el6.x86_64 ehci_hcd
usb usb2: SerialNumber: 0000:00:1d.7
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 6 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
uhci_hcd 0000:00:1a.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
uhci_hcd 0000:00:1a.0: setting latency timer to 64
uhci_hcd 0000:00:1a.0: UHCI Host Controller
uhci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1a.0: irq 17, io base 0x000040a0
usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb3: Product: UHCI Host Controller
usb usb3: Manufacturer: Linux 2.6.32-71.el6.x86_64 uhci_hcd
usb usb3: SerialNumber: 0000:00:1a.0
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
  alloc irq_desc for 18 on node -1
  alloc kstat_irqs on node -1
uhci_hcd 0000:00:1a.1: PCI INT B -> GSI 18 (level, low) -> IRQ 18
uhci_hcd 0000:00:1a.1: setting latency timer to 64
uhci_hcd 0000:00:1a.1: UHCI Host Controller
uhci_hcd 0000:00:1a.1: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:1a.1: irq 18, io base 0x00004080
usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb4: Product: UHCI Host Controller
usb usb4: Manufacturer: Linux 2.6.32-71.el6.x86_64 uhci_hcd
usb usb4: SerialNumber: 0000:00:1a.1
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
uhci_hcd 0000:00:1d.0: setting latency timer to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:1d.0: irq 17, io base 0x00004060
usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb5: Product: UHCI Host Controller
usb usb5: Manufacturer: Linux 2.6.32-71.el6.x86_64 uhci_hcd
usb usb5: SerialNumber: 0000:00:1d.0
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.1: PCI INT B -> GSI 18 (level, low) -> IRQ 18
uhci_hcd 0000:00:1d.1: setting latency timer to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 6
uhci_hcd 0000:00:1d.1: irq 18, io base 0x00004040
usb usb6: New USB device found, idVendor=1d6b, idProduct=0001
usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb6: Product: UHCI Host Controller
usb usb6: Manufacturer: Linux 2.6.32-71.el6.x86_64 uhci_hcd
usb usb6: SerialNumber: 0000:00:1d.1
usb usb6: configuration #1 chosen from 1 choice
hub 6-0:1.0: USB hub found
hub 6-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.2: PCI INT C -> GSI 19 (level, low) -> IRQ 19
uhci_hcd 0000:00:1d.2: setting latency timer to 64
uhci_hcd 0000:00:1d.2: UHCI Host Controller
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 7
uhci_hcd 0000:00:1d.2: irq 19, io base 0x00004020
usb usb7: New USB device found, idVendor=1d6b, idProduct=0001
usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb7: Product: UHCI Host Controller
usb usb7: Manufacturer: Linux 2.6.32-71.el6.x86_64 uhci_hcd
usb usb7: SerialNumber: 0000:00:1d.2
usb usb7: configuration #1 chosen from 1 choice
hub 7-0:1.0: USB hub found
hub 7-0:1.0: 2 ports detected
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
rtc_cmos 00:02: RTC can wake from S4
rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
cpuidle: using governor ladder
cpuidle: using governor menu
EFI Variables Facility v0.08 2004-May-17
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
rtc_cmos 00:02: setting system clock to 2011-02-07 10:18:14 UTC (1297073894)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
usb 5-2: new full speed USB device using uhci_hcd and address 2
dracut: Starting plymouth daemon
usb 5-2: New USB device found, idVendor=04b3, idProduct=4010
usb 5-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 5-2: Product: RNDIS/CDC ETHER
usb 5-2: Manufacturer: IBM
usb 5-2: configuration #1 chosen from 2 choices
usb 7-2: new low speed USB device using uhci_hcd and address 2
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
usb 7-2: New USB device found, idVendor=0624, idProduct=0296
usb 7-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 7-2: Product: IBM 73P5832
usb 7-2: Manufacturer: Avocent
usb 7-2: configuration #1 chosen from 1 choice
input: Avocent IBM 73P5832 as /devices/pci0000:00/0000:00:1d.2/usb7/7-2/7-2:1.0/input/input2
generic-usb 0003:0624:0296.0001: input,hidraw0: USB HID v1.10 Keyboard [Avocent IBM 73P5832] on usb-0000:00:1d.2-2/input0
Fusion MPT base driver 3.04.16
Copyright (c) 1999-2008 LSI Corporation
input: Avocent IBM 73P5832 as /devices/pci0000:00/0000:00:1d.2/usb7/7-2/7-2:1.1/input/input3
generic-usb 0003:0624:0296.0002: input,hidraw1: USB HID v1.10 Mouse [Avocent IBM 73P5832] on usb-0000:00:1d.2-2/input1
Fusion MPT SAS Host driver 3.04.16
mptsas 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
mptbase: ioc0: Initiating bringup
ioc0: LSISAS1068E B3: Capabilities={Initiator}
mptsas 0000:01:00.0: setting latency timer to 64
scsi0 : ioc0: LSISAS1068E B3, FwRev=011b5800h, Ports=1, MaxQ=277, IRQ=16
mptsas: ioc0: attaching ssp device: fw_channel 0, fw_id 3, phy 0, sas_addr 0x5000c5001cd00b35
scsi 0:0:0:0: Direct-Access     IBM-ESXS ST973452SS       B624 PQ: 0 ANSI: 5
mptsas: ioc0: attaching ssp device: fw_channel 0, fw_id 2, phy 1, sas_addr 0x5000c5001ccfc2f1
scsi 0:0:1:0: Direct-Access     IBM-ESXS ST973452SS       B624 PQ: 0 ANSI: 5
mptsas: ioc0: attaching raid volume, channel 1, id 1
scsi 0:1:1:0: Direct-Access     LSILOGIC Logical Volume   3000 PQ: 0 ANSI: 2
ata_piix 0000:00:1f.2: version 2.13
ata_piix 0000:00:1f.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
ata_piix 0000:00:1f.2: setting latency timer to 64
scsi1 : ata_piix
scsi2 : ata_piix
ata1: SATA max UDMA/133 cmd 0x4118 ctl 0x412c bmdma 0x40f0 irq 16
ata2: SATA max UDMA/133 cmd 0x4110 ctl 0x4128 bmdma 0x40f8 irq 16
  alloc irq_desc for 21 on node -1
  alloc kstat_irqs on node -1
ata_piix 0000:00:1f.5: PCI INT C -> GSI 21 (level, low) -> IRQ 21
ata_piix 0000:00:1f.5: MAP [ P0 -- P1 -- ]
ata_piix 0000:00:1f.5: setting latency timer to 64
scsi3 : ata_piix
scsi4 : ata_piix
ata3: SATA max UDMA/133 cmd 0x4108 ctl 0x4124 bmdma 0x40d0 irq 21
ata4: SATA max UDMA/133 cmd 0x4100 ctl 0x4120 bmdma 0x40d8 irq 21
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
ata2.00: SATA link down (SStatus 0 SControl 300)
ata2.01: SATA link down (SStatus 0 SControl 300)
ata1.00: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.01: SATA link down (SStatus 0 SControl 300)
ata1.01: link offline, clearing class 3 to NONE
ata1.00: ATAPI: UJDA782 DVD/CDRW, VA13, max UDMA/33
ata1.00: configured for UDMA/33
scsi 1:0:0:0: CD-ROM            MATSHITA UJDA782 DVD/CDRW VA13 PQ: 0 ANSI: 5
sd 0:1:1:0: [sda] 281247744 512-byte logical blocks: (143 GB/134 GiB)
sd 0:1:1:0: [sda] Write Protect is off
sd 0:1:1:0: [sda] Mode Sense: 03 00 00 08
sd 0:1:1:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3
sd 0:1:1:0: [sda] Attached SCSI disk
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
dracut: Scanning devices sda3  for LVM logical volumes vg_tb3client02/lv_root vg_tb3client02/lv_swap 
dracut: inactive '/dev/vg_tb3client02/lv_root' [129.42 GiB] inherit
dracut: inactive '/dev/vg_tb3client02/lv_swap' [4.00 GiB] inherit
EXT4-fs (dm-0): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/mapper/vg_tb3client02-lv_root
dracut: Loading SELinux policy
type=1404 audit(1297073911.422:2): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
SELinux: 2048 avtab hash slots, 199690 rules.
SELinux: 2048 avtab hash slots, 199690 rules.
SELinux:  9 users, 13 roles, 3323 types, 168 bools, 1 sens, 1024 cats
SELinux:  77 classes, 199690 rules
SELinux:  Completing initialization.
SELinux:  Setting up existing superblocks.
SELinux: initialized (dev dm-0, type ext4), uses xattr
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts
SELinux: initialized (dev securityfs, type securityfs), uses genfs_contexts
SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
SELinux: initialized (dev mqueue, type mqueue), uses transition SIDs
SELinux: initialized (dev hugetlbfs, type hugetlbfs), uses transition SIDs
SELinux: initialized (dev devpts, type devpts), uses transition SIDs
SELinux: initialized (dev inotifyfs, type inotifyfs), uses genfs_contexts
SELinux: initialized (dev anon_inodefs, type anon_inodefs), uses genfs_contexts
SELinux: initialized (dev pipefs, type pipefs), uses task SIDs
SELinux: initialized (dev debugfs, type debugfs), uses genfs_contexts
SELinux: initialized (dev sockfs, type sockfs), uses task SIDs
SELinux: initialized (dev devtmpfs, type devtmpfs), uses transition SIDs
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
SELinux: initialized (dev proc, type proc), uses genfs_contexts
SELinux: initialized (dev bdev, type bdev), uses genfs_contexts
SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
type=1403 audit(1297073911.741:3): policy loaded auid=4294967295 ses=4294967295
dracut: 
dracut: Switching root
readahead: starting
udev: starting version 147
Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v2.0.8-j15 (Feb 15, 2010)
bnx2 0000:0b:00.0: PCI INT A -> GSI 28 (level, low) -> IRQ 28
bnx2 0000:0b:00.0: setting latency timer to 64
bnx2 0000:0b:00.0: firmware: requesting bnx2/bnx2-mips-09-5.0.0.j15.fw
bnx2 0000:0b:00.0: firmware: requesting bnx2/bnx2-rv2p-09-5.0.0.j10.fw
eth0: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem 92000000, IRQ 28, node addr e4:1f:13:32:51:0c
  alloc irq_desc for 40 on node -1
  alloc kstat_irqs on node -1
bnx2 0000:0b:00.1: PCI INT B -> GSI 40 (level, low) -> IRQ 40
bnx2 0000:0b:00.1: setting latency timer to 64
bnx2 0000:0b:00.1: firmware: requesting bnx2/bnx2-mips-09-5.0.0.j15.fw
bnx2 0000:0b:00.1: firmware: requesting bnx2/bnx2-rv2p-09-5.0.0.j10.fw
eth1: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem 94000000, IRQ 40, node addr e4:1f:13:32:51:0e
e1000e: Intel(R) PRO/1000 Network Driver - 1.2.7-k2
e1000e: Copyright (c) 1999 - 2009 Intel Corporation.
e1000e 0000:15:00.0: enabling device (0040 -> 0042)
e1000e 0000:15:00.0: PCI INT A -> GSI 24 (level, low) -> IRQ 24
e1000e 0000:15:00.0: setting latency timer to 64
  alloc irq_desc for 54 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:15:00.0: irq 54 for MSI/MSI-X
0000:15:00.0: eth2: (PCI Express:2.5GB/s:Width x4) 00:15:17:d1:2f:4e
0000:15:00.0: eth2: Intel(R) PRO/1000 Network Connection
0000:15:00.0: eth2: MAC: 0, PHY: 4, PBA No: d56146-003
e1000e 0000:15:00.1: enabling device (0040 -> 0042)
  alloc irq_desc for 34 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:15:00.1: PCI INT B -> GSI 34 (level, low) -> IRQ 34
e1000e 0000:15:00.1: setting latency timer to 64
  alloc irq_desc for 55 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:15:00.1: irq 55 for MSI/MSI-X
0000:15:00.1: eth3: (PCI Express:2.5GB/s:Width x4) 00:15:17:d1:2f:4f
0000:15:00.1: eth3: Intel(R) PRO/1000 Network Connection
0000:15:00.1: eth3: MAC: 0, PHY: 4, PBA No: d56146-003
e1000e 0000:1a:00.0: enabling device (0040 -> 0042)
e1000e 0000:1a:00.0: PCI INT A -> GSI 30 (level, low) -> IRQ 30
e1000e 0000:1a:00.0: setting latency timer to 64
  alloc irq_desc for 56 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:1a:00.0: irq 56 for MSI/MSI-X
0000:1a:00.0: eth4: (PCI Express:2.5GB/s:Width x4) 00:15:17:d1:4f:b2
0000:1a:00.0: eth4: Intel(R) PRO/1000 Network Connection
0000:1a:00.0: eth4: MAC: 0, PHY: 4, PBA No: d56146-003
e1000e 0000:1a:00.1: enabling device (0040 -> 0042)
  alloc irq_desc for 37 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:1a:00.1: PCI INT B -> GSI 37 (level, low) -> IRQ 37
e1000e 0000:1a:00.1: setting latency timer to 64
  alloc irq_desc for 57 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:1a:00.1: irq 57 for MSI/MSI-X
0000:1a:00.1: eth5: (PCI Express:2.5GB/s:Width x4) 00:15:17:d1:4f:b3
0000:1a:00.1: eth5: Intel(R) PRO/1000 Network Connection
0000:1a:00.1: eth5: MAC: 0, PHY: 4, PBA No: d56146-003
EDAC MC: Ver: 2.1.0 Sep  1 2010
PCI: Discovered peer bus ff
PCI: Discovered peer bus fe
EDAC MC0: Giving out device to 'i7core_edac.c' 'i7 core #0': DEV 0000:ff:03.0
EDAC PCI0: Giving out device to module 'i7core_edac' controller 'EDAC PCI controller': DEV '0000:ff:03.0' (POLLED)
EDAC MC1: Giving out device to 'i7core_edac.c' 'i7 core #1': DEV 0000:fe:03.0
EDAC PCI1: Giving out device to module 'i7core_edac' controller 'EDAC PCI controller': DEV '0000:fe:03.0' (POLLED)
EDAC i7core: Driver loaded.
dca service started, version 1.12.1
ioatdma: Intel(R) QuickData Technology Driver 4.00
ioatdma 0000:00:16.0: enabling device (0000 -> 0002)
ioatdma 0000:00:16.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ioatdma 0000:00:16.0: setting latency timer to 64
  alloc irq_desc for 58 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.0: irq 58 for MSI/MSI-X
ioatdma 0000:00:16.1: enabling device (0000 -> 0002)
ioatdma 0000:00:16.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
ioatdma 0000:00:16.1: setting latency timer to 64
  alloc irq_desc for 59 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.1: irq 59 for MSI/MSI-X
ioatdma 0000:00:16.2: enabling device (0000 -> 0002)
ioatdma 0000:00:16.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
ioatdma 0000:00:16.2: setting latency timer to 64
  alloc irq_desc for 60 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.2: irq 60 for MSI/MSI-X
ioatdma 0000:00:16.3: enabling device (0000 -> 0002)
ioatdma 0000:00:16.3: PCI INT D -> GSI 19 (level, low) -> IRQ 19
ioatdma 0000:00:16.3: setting latency timer to 64
  alloc irq_desc for 61 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.3: irq 61 for MSI/MSI-X
ioatdma 0000:00:16.4: enabling device (0000 -> 0002)
ioatdma 0000:00:16.4: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ioatdma 0000:00:16.4: setting latency timer to 64
  alloc irq_desc for 62 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.4: irq 62 for MSI/MSI-X
ioatdma 0000:00:16.5: enabling device (0000 -> 0002)
ioatdma 0000:00:16.5: PCI INT B -> GSI 17 (level, low) -> IRQ 17
ioatdma 0000:00:16.5: setting latency timer to 64
  alloc irq_desc for 63 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.5: irq 63 for MSI/MSI-X
ioatdma 0000:00:16.6: enabling device (0000 -> 0002)
ioatdma 0000:00:16.6: PCI INT C -> GSI 18 (level, low) -> IRQ 18
ioatdma 0000:00:16.6: setting latency timer to 64
  alloc irq_desc for 64 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.6: irq 64 for MSI/MSI-X
ioatdma 0000:00:16.7: enabling device (0000 -> 0002)
ioatdma 0000:00:16.7: PCI INT D -> GSI 19 (level, low) -> IRQ 19
ioatdma 0000:00:16.7: setting latency timer to 64
  alloc irq_desc for 65 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.7: irq 65 for MSI/MSI-X
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
iTCO_vendor_support: vendor-support=0
iTCO_wdt: Intel TCO WatchDog Timer Driver v1.05
iTCO_wdt: Found a ICH10 TCO device (Version=2, TCOBASE=0x05e0)
iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
i801_smbus 0000:00:1f.3: enabling device (0140 -> 0143)
  alloc irq_desc for 22 on node -1
  alloc kstat_irqs on node -1
i801_smbus 0000:00:1f.3: PCI INT B -> GSI 22 (level, low) -> IRQ 22
usb0: register 'cdc_ether' at usb-0000:00:1d.0-2, CDC Ethernet Device, e6:1f:13:2b:a1:0f
usbcore: registered new interface driver cdc_ether
scsi 0:0:0:0: Attached scsi generic sg0 type 0
scsi 0:0:1:0: Attached scsi generic sg1 type 0
sd 0:1:1:0: Attached scsi generic sg2 type 0
sr 1:0:0:0: Attached scsi generic sg3 type 5
EXT4-fs (sda2): mounted filesystem with ordered data mode
SELinux: initialized (dev sda2, type ext4), uses xattr
SELinux: initialized (dev sda1, type vfat), uses genfs_contexts
Adding 4194296k swap on /dev/mapper/vg_tb3client02-lv_swap.  Priority:-1 extents:1 across:4194296k 
SELinux: initialized (dev binfmt_misc, type binfmt_misc), uses genfs_contexts
                                                                      Physical_Configuration/Clients/tb3-client02/tile04/                                                 0000777 0000000 0000000 00000000000 11524347702 021040  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/proc/                                            0000777 0000000 0000000 00000000000 11524347702 022003  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/proc/cpuinfo                                     0000644 0000000 0000000 00000002012 11524347701 023357  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.548
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.548
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile04/proc/swaps                                       0000644 0000000 0000000 00000000150 11524347702 023053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	71532	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile04/proc/devices                                     0000644 0000000 0000000 00000000567 11524347702 023354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile04/proc/modules                                     0000644 0000000 0000000 00000002547 11524347702 023402  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa0259000
stp 2107 1 bridge, Live 0xffffffffa0253000
llc 5608 2 bridge,stp, Live 0xffffffffa024b000
autofs4 27683 3 - Live 0xffffffffa023e000
sunrpc 241630 1 - Live 0xffffffffa01eb000
ipv6 321209 574 - Live 0xffffffffa0156000
dm_mirror 14003 0 - Live 0xffffffffa012a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0121000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0118000
ppdev 8695 0 - Live 0xffffffffa010a000
parport_pc 22944 0 - Live 0xffffffffa00fd000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa00eb000
sg 30186 0 - Live 0xffffffffa00dc000
virtio_net 15665 0 - Live 0xffffffffa00d2000
i2c_piix4 12574 0 - Live 0xffffffffa00c9000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00b9000
ext3 133830 1 - Live 0xffffffffa008d000
jbd 54576 1 ext3, Live 0xffffffffa0076000
mbcache 7918 1 ext3, Live 0xffffffffa006e000
sr_mod 16162 0 - Live 0xffffffffa0064000
cdrom 39769 1 sr_mod, Live 0xffffffffa0053000
virtio_blk 5087 3 - Live 0xffffffffa004c000
ata_generic 3611 0 - Live 0xffffffffa0046000
pata_acpi 3667 0 - Live 0xffffffffa0040000
ata_piix 22588 0 - Live 0xffffffffa0034000
virtio_pci 6733 0 - Live 0xffffffffa002c000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0025000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile04/proc/partitions                                  0000644 0000000 0000000 00000000165 11524347702 024120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile04/proc/meminfo                                     0000644 0000000 0000000 00000002222 11524347702 023352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        3605932 kB
MemFree:         3347220 kB
Buffers:            5188 kB
Cached:            27080 kB
SwapCached:         4604 kB
Active:            33280 kB
Inactive:          82548 kB
Active(anon):      17696 kB
Inactive(anon):    65868 kB
Active(file):      15584 kB
Inactive(file):    16680 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        1976460 kB
Dirty:               512 kB
Writeback:             0 kB
AnonPages:         80752 kB
Mapped:             7416 kB
Shmem:                 0 kB
Slab:             114144 kB
SReclaimable:      32676 kB
SUnreclaim:        81468 kB
KernelStack:        1664 kB
PageTables:         3460 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3850956 kB
Committed_AS:     768312 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19136 kB
VmallocChunk:   34359715016 kB
HardwareCorrupted:     0 kB
AnonHugePages:     45056 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     3661824 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile04/lspci.txt                                        0000644 0000000 0000000 00000000744 11524347701 022713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
                            Physical_Configuration/Clients/tb3-client02/tile04/df.txt                                           0000644 0000000 0000000 00000000276 11524347662 022200  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8187488   4593448  65% /
tmpfs                  1802964         0   1802964   0% /dev/shm
                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/tile04/mount.txt                                        0000644 0000000 0000000 00000000434 11524347701 022737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile04/etc/                                             0000777 0000000 0000000 00000000000 11524347701 021612  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/                                        0000777 0000000 0000000 00000000000 11524347672 022447  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/                                  0000777 0000000 0000000 00000000000 11524347701 023351  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K02libvirt-guests                 0000755 0000000 0000000 00000017172 11524347672 026552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K02oddjobd                        0000755 0000000 0000000 00000004325 11524347673 025171  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K69rpcsvcgssd                     0000755 0000000 0000000 00000006014 11524347674 025760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K95cgconfig                       0000755 0000000 0000000 00000012327 11524347676 025363  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S55sshd                           0000755 0000000 0000000 00000010671 11524347701 024536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K80fcoe                           0000755 0000000 0000000 00000005775 11524347674 024521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K15httpd                          0000755 0000000 0000000 00000006364 11524347673 024720  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K92ip6tables                      0000755 0000000 0000000 00000020716 11524347676 025473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K80sssd                           0000755 0000000 0000000 00000004731 11524347674 024550  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S58ntpd                           0000755 0000000 0000000 00000003603 11524347701 024542  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K02avahi-daemon                   0000755 0000000 0000000 00000004754 11524347672 026122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K89rdisc                          0000755 0000000 0000000 00000003027 11524347676 024710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K76ipsec                          0000755 0000000 0000000 00000010777 11524347674 024713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S22messagebus                     0000755 0000000 0000000 00000004230 11524347700 025716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K95firstboot                      0000755 0000000 0000000 00000005341 11524347676 025615  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K86cgred                          0000755 0000000 0000000 00000006302 11524347675 024663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S13rpcbind                        0000755 0000000 0000000 00000004031 11524347677 025215  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S13irqbalance                     0000755 0000000 0000000 00000003521 11524347677 025700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K84NetworkManager                 0000755 0000000 0000000 00000004235 11524347674 026523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K99sysstat                        0000755 0000000 0000000 00000002363 11524347677 025322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K50dnsmasq                        0000755 0000000 0000000 00000002577 11524347673 025244  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K01certmonger                     0000755 0000000 0000000 00000004054 11524347672 025726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K85mdmonitor                      0000755 0000000 0000000 00000005013 11524347675 025604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K36mysqld                         0000755 0000000 0000000 00000012460 11524347673 025103  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K80lldpad                         0000755 0000000 0000000 00000014323 11524347674 025032  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K88nslcd                          0000755 0000000 0000000 00000003213 11524347675 024702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K75ntpdate                        0000755 0000000 0000000 00000003512 11524347674 025233  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K89iscsid                         0000755 0000000 0000000 00000007127 11524347676 025067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K73ypbind                         0000755 0000000 0000000 00000011277 11524347674 025066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S10network                        0000755 0000000 0000000 00000014466 11524347677 025277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S12rsyslog                        0000755 0000000 0000000 00000004326 11524347677 025304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S11auditd                         0000755 0000000 0000000 00000006462 11524347677 025056  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K84wpa_supplicant                 0000755 0000000 0000000 00000003512 11524347675 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S20kdump                          0000755 0000000 0000000 00000027662 11524347677 024731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K87multipathd                     0000755 0000000 0000000 00000004473 11524347675 025762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S26haldaemon                      0000755 0000000 0000000 00000003245 11524347700 025521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K60crond                          0000755 0000000 0000000 00000005445 11524347674 024702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K03rhnsd                          0000755 0000000 0000000 00000005522 11524347673 024703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K36postgresql                     0000755 0000000 0000000 00000012406 11524347673 025775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S00microcode_ctl                  0000755 0000000 0000000 00000002221 11524347677 026375  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K10saslauthd                      0000755 0000000 0000000 00000004010 11524347673 025542  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K88iscsi                          0000755 0000000 0000000 00000007315 11524347675 024720  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K60nfs                            0000755 0000000 0000000 00000013536 11524347674 024363  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S30nscd                           0000755 0000000 0000000 00000004723 11524347700 024515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S24rpcgssd                        0000755 0000000 0000000 00000006050 11524347700 025231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K10psacct                         0000755 0000000 0000000 00000003024 11524347673 025033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S26acpid                          0000755 0000000 0000000 00000003275 11524347700 024654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S13cpuspeed                       0000755 0000000 0000000 00000025442 11524347677 025415  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S26udev-post                      0000755 0000000 0000000 00000004370 11524347700 025517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S99local                          0000755 0000000 0000000 00000000334 11524347701 024672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K50netconsole                     0000755 0000000 0000000 00000005650 11524347673 025742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S24rpcidmapd                      0000755 0000000 0000000 00000005222 11524347700 025527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S02lvm2-monitor                   0000555 0000000 0000000 00000004612 11524347677 026142  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S28autofs                         0000755 0000000 0000000 00000007234 11524347700 025076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K01smartd                         0000755 0000000 0000000 00000005672 11524347672 025062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S55autobench                      0000755 0000000 0000000 00000005063 11524347701 025544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S25netfs                          0000755 0000000 0000000 00000012432 11524347700 024705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K30postfix                        0000755 0000000 0000000 00000007414 11524347673 025263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/S24nfslock                        0000755 0000000 0000000 00000006675 11524347700 025240  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K92iptables                       0000755 0000000 0000000 00000020557 11524347676 025410  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K87restorecond                    0000755 0000000 0000000 00000003427 11524347675 026134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/rc3.d/K05atd                            0000755 0000000 0000000 00000004112 11524347673 024331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/                                 0000777 0000000 0000000 00000000000 11524347672 023634  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/network                          0000755 0000000 0000000 00000014466 11524347667 025266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/sysstat                          0000755 0000000 0000000 00000002363 11524347672 025274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/saslauthd                        0000755 0000000 0000000 00000004010 11524347671 025540  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/messagebus                       0000755 0000000 0000000 00000004230 11524347667 025717  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/autobench                        0000755 0000000 0000000 00000005063 11524347664 025533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/atd                              0000755 0000000 0000000 00000004112 11524347664 024325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/mcelogd                          0000755 0000000 0000000 00000003535 11524347667 025202  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/auditd                           0000755 0000000 0000000 00000006462 11524347664 025041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/certmonger                       0000755 0000000 0000000 00000004054 11524347664 025727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/mysqld                           0000755 0000000 0000000 00000012460 11524347667 025076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/irqbalance                       0000755 0000000 0000000 00000003521 11524347666 025663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/acpid                            0000755 0000000 0000000 00000003275 11524347664 024646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/iscsid                           0000755 0000000 0000000 00000007127 11524347666 025046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/nscd                             0000755 0000000 0000000 00000004723 11524347670 024511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/rpcidmapd                        0000755 0000000 0000000 00000005222 11524347671 025521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/nfs                              0000755 0000000 0000000 00000013536 11524347667 024360  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/sssd                             0000755 0000000 0000000 00000004731 11524347671 024536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/crond                            0000755 0000000 0000000 00000005445 11524347665 024675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/ip6tables                        0000755 0000000 0000000 00000020716 11524347665 025457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/firstboot                        0000755 0000000 0000000 00000005341 11524347665 025576  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/autofs                           0000755 0000000 0000000 00000007234 11524347664 025066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/sshd                             0000755 0000000 0000000 00000010671 11524347671 024523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/libvirt-guests                   0000755 0000000 0000000 00000017172 11524347666 026554  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/avahi-daemon                     0000755 0000000 0000000 00000004754 11524347664 026122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/iscsi                            0000755 0000000 0000000 00000007315 11524347666 024701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/ypbind                           0000755 0000000 0000000 00000011277 11524347672 025053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/psacct                           0000755 0000000 0000000 00000003024 11524347670 025030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/fcoe                             0000755 0000000 0000000 00000005775 11524347665 024512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/nfslock                          0000755 0000000 0000000 00000006675 11524347667 025237  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/cgred                            0000755 0000000 0000000 00000006302 11524347664 024644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/udev-post                        0000755 0000000 0000000 00000004370 11524347672 025510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/haldaemon                        0000755 0000000 0000000 00000003245 11524347665 025514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/ipsec                            0000755 0000000 0000000 00000010777 11524347666 024700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/rpcbind                          0000755 0000000 0000000 00000004031 11524347671 025174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/rhnsd                            0000755 0000000 0000000 00000005522 11524347670 024676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/dnsmasq                          0000755 0000000 0000000 00000002577 11524347665 025241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/functions                        0000644 0000000 0000000 00000042767 11524347665 025605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/kdump                            0000755 0000000 0000000 00000027662 11524347666 024716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/lldpad                           0000755 0000000 0000000 00000014323 11524347666 025024  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/postfix                          0000755 0000000 0000000 00000007414 11524347670 025256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/iptables                         0000755 0000000 0000000 00000020557 11524347666 025375  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/multipathd                       0000755 0000000 0000000 00000004473 11524347667 025745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/rsyslog                          0000755 0000000 0000000 00000004326 11524347671 025264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/NetworkManager                   0000755 0000000 0000000 00000004235 11524347664 026507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/netconsole                       0000755 0000000 0000000 00000005650 11524347667 025741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/rpcgssd                          0000755 0000000 0000000 00000006050 11524347671 025223  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/lvm2-monitor                     0000555 0000000 0000000 00000004612 11524347666 026127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/halt                             0000755 0000000 0000000 00000012723 11524347665 024515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/cgconfig                         0000755 0000000 0000000 00000012327 11524347664 025343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/single                           0000755 0000000 0000000 00000001207 11524347671 025036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/postgresql                       0000755 0000000 0000000 00000012406 11524347670 025762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/mdmonitor                        0000755 0000000 0000000 00000005013 11524347667 025571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/restorecond                      0000755 0000000 0000000 00000003427 11524347670 026111  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/wpa_supplicant                   0000755 0000000 0000000 00000003512 11524347672 026610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/cpuspeed                         0000755 0000000 0000000 00000025442 11524347665 025377  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/netfs                            0000755 0000000 0000000 00000012432 11524347667 024703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/rpcsvcgssd                       0000755 0000000 0000000 00000006014 11524347671 025737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/oddjobd                          0000755 0000000 0000000 00000004325 11524347670 025165  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/sandbox                          0000755 0000000 0000000 00000003242 11524347671 025214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/killall                          0000755 0000000 0000000 00000001214 11524347666 025203  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/rdisc                            0000755 0000000 0000000 00000003027 11524347670 024662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/httpd                            0000755 0000000 0000000 00000006364 11524347665 024714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/ntpd                             0000755 0000000 0000000 00000003603 11524347670 024523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/smartd                           0000755 0000000 0000000 00000005672 11524347671 025061  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/nslcd                            0000755 0000000 0000000 00000003213 11524347670 024656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/ntpdate                          0000755 0000000 0000000 00000003512 11524347670 025214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile04/etc/rc.d/init.d/microcode_ctl                    0000755 0000000 0000000 00000002221 11524347667 026365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile04/etc/hosts                                        0000644 0000000 0000000 00000000052 11524347662 022674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1	localhost.localdomain	localhost
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile04/etc/iproute2/                                    0000777 0000000 0000000 00000000000 11524347663 023372  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/etc/iproute2/rt_dsfield                          0000644 0000000 0000000 00000000672 11524347663 025435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client02/tile04/etc/iproute2/rt_realms                           0000644 0000000 0000000 00000000160 11524347663 025276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/tile04/etc/iproute2/rt_scopes                           0000644 0000000 0000000 00000000134 11524347663 025310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile04/etc/iproute2/ematch_map                          0000644 0000000 0000000 00000000073 11524347663 025407  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile04/etc/iproute2/rt_tables                           0000644 0000000 0000000 00000000127 11524347663 025270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile04/etc/iproute2/rt_protos                           0000644 0000000 0000000 00000000475 11524347663 025352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/etc/nsswitch.conf                                0000644 0000000 0000000 00000003230 11524347663 024324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile04/etc/fstab                                        0000644 0000000 0000000 00000001307 11524347662 022637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Thu Aug  5 09:23:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=008a3418-d80b-4815-9722-db5af2fba6da /                       ext3    defaults        1 1
UUID=171fffed-b6b4-4161-b8cd-a688d195da49 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile04/etc/sysctl.conf                                  0000644 0000000 0000000 00000001466 11524347701 024005  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile04/etc/inittab                                      0000644 0000000 0000000 00000001564 11524347663 023200  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile04/var/                                             0000777 0000000 0000000 00000000000 11524347702 021630  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/var/log/                                         0000777 0000000 0000000 00000000000 11524347702 022411  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/var/log/dmesg                                    0000644 0000000 0000000 00000041752 11524347702 023440  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009cc00 (usable)
 BIOS-e820: 000000000009cc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
RAMDISK: 372ca000 - 37fef973
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffdc0 00040
ACPI: SSDT 00000000dfffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000000dfffd000
Bootmem setup node 0 0000000000000000-00000000dfffd000
  NODE_DATA [000000000000c000 - 000000000003ffff]
  bootmap [0000000000040000 -  000000000005bfff] pages 1c
(7 early reservations) ==> bootmem [0000000000 - 00dfffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [00372ca000 - 0037fef973]          RAMDISK ==> [00372ca000 - 0037fef973]
  #4 [000009cc00 - 0000100000]    BIOS reserved ==> [000009cc00 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00031fffff] PMD -> [ffff880002200000-ffff8800053fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009c
    0: 0x00000100 -> 0x000dfffd
On node 0 totalpages: 917400
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3833 pages, LIFO batch:0
  DMA32 zone: 12488 pages used for memmap
  DMA32 zone: 900917 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009c000 - 000000000009d000
PM: Registered nosave memory: 000000000009d000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 904750
Policy zone: DMA32
Kernel command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us 
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 3591248k/3670004k available (4935k kernel code, 404k absent, 78352k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 36700160 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 2266.548 MHz processor.
Calibrating delay loop (skipped) preset value.. 4533.09 BogoMIPS (lpj=2266548)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Setting APIC routing to flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (9066.19 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13462k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297092524.441:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 7040
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 15:28:43 UTC (1297092523)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
dracut: Mounted root filesystem /dev/vda1
dracut: Loading SELinux policy
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1297092527.209:2): selinux=0 auid=4294967295 ses=4294967295
dracut: /sbin/load_policy: Can't load policy: No such file or directory
dracut: Switching root
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 27 for MSI/MSI-X
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT3 FS on vda1, internal journal
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                      Physical_Configuration/Clients/tb3-client02/tile04/boot/                                            0000777 0000000 0000000 00000000000 11524347662 022010  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/boot/grub/                                       0000777 0000000 0000000 00000000000 11524347662 022747  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile04/boot/grub/grub.conf                              0000644 0000000 0000000 00000002637 11524347662 024561  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux Server (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-70.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-70.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-70.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-59.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-59.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-59.el6.x86_64.img
                                                                                                 Physical_Configuration/Clients/tb3-client02/tile04/rpmpkgs.txt                                      0000644 0000000 0000000 00000105007 11524347702 023263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rhnsd-4.9.3-2.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
pycairo-1.8.6-2.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
polkit-devel-0.96-2.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
popt-devel-1.13-7.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
basesystem-10.0-4.el6.noarch
libgnomeui-devel-2.24.1-4.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libhbalinux-1.0.10-1.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-Newt-1.08-26.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
system-icon-theme-6.0.0-2.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
libjpeg-6b-46.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
gettext-0.17-16.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
NetworkManager-glib-0.8.1-5.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
sed-4.2.1-5.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
libXext-1.1-3.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
libcap-2.16-5.2.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
hwdata-0.233-1.el6.noarch
pcre-7.8-3.1.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
fuse-2.8.3-1.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
python-decorator-3.0.1-3.1.el6.noarch
report-plugin-scp-0.18-7.el6.x86_64
rsync-3.0.6-5.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
ModemManager-0.4.0-3.git20100628.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
device-mapper-event-libs-1.02.53-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
nc-1.84-22.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
dracut-004-32.el6.noarch
psmisc-22.6-15.el6.x86_64
vino-2.28.1-3.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
kernel-2.6.32-70.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
mtools-4.0.12-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
mod_wsgi-3.2-1.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
jna-3.2.4-2.el6.x86_64
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
php-pdo-5.3.2-6.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
postfix-2.6.6-2.el6.x86_64
patch-2.6-6.el6.x86_64
elfutils-0.148-1.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
xorg-x11-xkb-utils-7.4-6.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
xvattr-1.3-18.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
boost-regex-1.41.0-11.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
pam-1.1.1-4.el6.x86_64
setserial-2.17-25.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
python-slip-0.2.11-1.el6.noarch
gvfs-1.4.3-9.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
libhbaapi-2.2-10.el6.x86_64
gnome-applets-2.28.0-7.el6.x86_64
grub-0.97-68.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
setup-2.8.14-10.el6.noarch
hal-devel-0.5.14-8.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
autoconf-2.63-5.1.el6.noarch
fontpackages-filesystem-1.41-1.1.el6.noarch
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libXtst-devel-1.0.99.2-3.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
libX11-common-1.3-2.el6.noarch
sos-2.2-2.el6.noarch
php-pear-1.9.0-2.el6.noarch
avahi-autoipd-0.6.25-8.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
bash-4.1.2-3.el6.x86_64
libcap-ng-devel-0.6.4-3.el6.x86_64
festival-1.96-18.el6.x86_64
libICE-1.0.6-1.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
rootfiles-8.1-6.1.el6.noarch
libldb-0.9.10-23.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
libpng-1.2.44-1.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
gd-2.0.35-10.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
man-pages-3.22-12.el6.noarch
libcroco-devel-0.6.2-5.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
numactl-2.0.3-9.el6.x86_64
yum-3.2.27-14.el6.noarch
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
iproute-2.6.32-10.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
boost-1.41.0-11.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
gstreamer-tools-0.10.29-1.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
libXdamage-1.1.2-1.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
binutils-2.20.51.0.2-5.11.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
gcc-4.4.4-13.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
libtheora-1.1.0-2.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
gnome-power-manager-2.28.3-3.el6.x86_64
totem-mozplugin-2.28.6-2.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-Log-Message-0.02-115.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
libXdmcp-1.0.3-1.el6.x86_64
parted-2.1-10.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libevent-1.4.13-1.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
psacct-6.3.2-63.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
checkpolicy-2.0.22-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
flex-2.5.35-8.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
selinux-policy-3.7.19-54.el6.noarch
ltrace-0.5-16.45svn.1.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
crontabs-1.10-32.1.el6.noarch
coreutils-libs-8.4-9.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
mtr-0.75-5.el6.x86_64
openssl-1.0.0-4.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
libgudev1-147-2.29.el6.x86_64
ctags-5.8-2.el6.x86_64
redhat-bookmarks-6-1.el6.noarch
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
passwd-0.77-4.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
orca-2.28.2-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
slang-2.2.1-1.el6.x86_64
subversion-1.6.11-2.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
openswan-2.6.24-8.el6.x86_64
gtk-doc-1.11-5.1.el6.noarch
libdaemon-0.14-1.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
xml-common-0.6.3-32.el6.noarch
gtk2-devel-2.18.9-4.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
notification-daemon-0.5.0-1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
libgcc-4.4.4-13.el6.i686
ncurses-libs-5.7-3.20090208.el6.x86_64
ppp-2.4.5-5.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
info-4.13a-8.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
docbook-style-dsssl-1.79-10.el6.noarch
pam_ldap-185-5.el6.x86_64
glib2-2.22.5-5.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
readline-6.0-3.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
at-3.1.10-42.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
samba-winbind-clients-3.5.4-68.el6.x86_64
gmp-4.3.1-7.el6.x86_64
gnome-panel-libs-2.30.2-5.el6.x86_64
perl-version-0.77-115.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
perl-5.10.1-115.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
curl-7.19.7-16.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
httpd-tools-2.2.15-5.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
libavc1394-0.5.3-9.1.el6.x86_64
which-2.19-5.1.el6.x86_64
perl-BSD-Resource-1.29.03-3.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
keyutils-libs-1.4-1.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
iso-codes-3.16-2.el6.noarch
libxslt-1.1.26-2.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-1.0.5-1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
giflib-4.1.6-3.1.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
report-0.18-7.el6.x86_64
libX11-1.3-2.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
grubby-7.0.15-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
eggdbus-0.6-3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
httpd-2.2.15-5.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
ppl-0.10.2-11.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
file-libs-5.04-5.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
bc-1.06.95-1.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
NetworkManager-0.8.1-5.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
dracut-kernel-004-32.el6.noarch
cpio-2.10-9.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
unzip-6.0-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
check-0.9.8-1.1.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
libgssglue-0.1-8.1.el6.x86_64
db4-cxx-4.7.25-16.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
libnih-1.0.1-6.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
fcoe-utils-1.0.14-9.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
zip-3.0-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
usermode-1.102-3.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
php-xml-5.3.2-6.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
crash-5.0.0-23.el6.x86_64
libthai-0.1.12-3.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
zenity-2.28.0-1.el6.x86_64
report-newt-0.18-7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
boost-test-1.41.0-11.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
tzdata-2010l-1.el6.noarch
ncurses-5.7-3.20090208.el6.x86_64
nspr-4.8.6-1.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
dnsmasq-2.48-4.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
nss-3.12.7-2.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
udev-147-2.29.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
postgresql-libs-8.4.4-2.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
avahi-ui-0.6.25-8.el6.x86_64
device-mapper-multipath-libs-0.4.9-31.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
udisks-1.0.1-2.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
libaio-0.3.107-10.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
evolution-data-server-devel-2.28.3-10.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
elfutils-devel-0.148-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
cas-0.15-1.el6.1.noarch
libgnome-devel-2.28.0-11.el6.x86_64
kernel-devel-2.6.32-59.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
dstat-0.7.0-1.el6.noarch
perl-XML-Dumper-0.81-6.el6.noarch
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
zd1211-firmware-1.4-4.el6.noarch
ivtv-firmware-20080701-20.2.noarch
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
libnl-1.1-12.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
mysql-5.1.47-4.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
iptables-1.4.7-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
perl-Time-HiRes-1.9721-115.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
systemtap-1.2-9.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
eog-2.28.2-4.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
postgresql-server-8.4.4-2.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
gnome-settings-daemon-2.28.2-11.el6.x86_64
usbutils-0.86-2.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
python-psycopg2-2.0.13-2.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
tcsh-6.17-8.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
kernel-devel-2.6.32-70.el6.x86_64
bison-2.4.1-5.el6.x86_64
busybox-1.15.1-10.el6.x86_64
lsof-4.82-1.2.el6.x86_64
swig-1.3.40-5.el6.x86_64
hal-0.5.14-8.el6.x86_64
powertop-1.11-3.1.el6.x86_64
rdate-1.4-16.el6.x86_64
kernel-2.6.32-59.el6.x86_64
libtopology-0.3-7.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
openldap-devel-2.4.19-15.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
kernel-2.6.32-71.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
libxml2-python-2.7.6-1.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
libcanberra-0.22-1.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
python-gudev-147.1-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
mailcap-2.1.31-1.1.el6.noarch
wpa_supplicant-0.6.8-10.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
cracklib-python-2.8.16-2.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
gnome-python2-libwnck-2.28.0-4.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
openjade-1.3.2-36.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
popt-1.13-7.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
system-gnome-theme-60.0.2-1.el6.noarch
db4-4.7.25-16.el6.x86_64
wget-1.12-1.4.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
fipscheck-1.2.0-4.1.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
gawk-3.1.7-6.el6.x86_64
cvs-1.11.23-11.el6.x86_64
php-common-5.3.2-6.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
tcp_wrappers-libs-7.6-56.3.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
atk-1.28.0-2.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
libacl-2.2.49-4.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
findutils-4.4.2-6.el6.x86_64
libiec61883-1.2.0-4.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
grep-2.6.3-2.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
libgcrypt-1.4.5-3.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
pixman-0.16.6-1.el6.x86_64
iw-0.9.17-4.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
libxcb-1.5-1.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
comps-extras-17.8-1.el6.noarch
libsoup-2.28.2-1.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
xfsprogs-3.1.1-4.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
libXv-1.0.5-1.el6.x86_64
polkit-0.96-2.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
rtkit-0.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
libIDL-0.8.13-2.1.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
ed-1.1-3.3.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
tar-1.23-3.el6.x86_64
libconfig-1.3.2-1.1.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
pciutils-libs-3.1.4-9.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
mod_ssl-2.2.15-5.el6.x86_64
kbd-misc-1.15-11.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
rng-tools-2-8.el6.x86_64
pax-3.4-10.1.el6.x86_64
control-center-2.28.1-25.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
php-gd-5.3.2-6.el6.x86_64
libtasn1-2.3-3.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
irqbalance-0.55-27.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
yajl-1.0.7-3.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libXpm-3.5.8-2.el6.x86_64
pango-1.28.1-3.el6.x86_64
gucharmap-2.28.2-2.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
net-tools-1.60-102.el6.x86_64
exempi-2.1.0-5.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
DeviceKit-power-014-1.el6.x86_64
make-3.81-19.el6.x86_64
unique-1.1.4-2.el6.x86_64
rhn-setup-1.0.0-38.el6.noarch
boost-signals-1.41.0-11.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
cronie-1.4.4-2.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
libcollection-0.5.0-28.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
libudev-147-2.29.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
libuser-0.56.13-4.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
device-mapper-multipath-0.4.9-31.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
perl-URI-1.40-2.el6.noarch
dbus-glib-devel-0.86-5.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
seekwatcher-0.12-4.1.el6.noarch
perf-2.6.32-71.el6.noarch
libglade2-devel-2.6.4-3.1.el6.x86_64
glibc-2.12-1.7.el6.i686
polkit-docs-0.96-2.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
libXi-devel-1.3-3.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
mysql-devel-5.1.47-4.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
iotop-0.3.2-3.el6.noarch
python-meh-0.9-1.el6.noarch
bzip2-devel-1.0.5-6.1.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
atmel-firmware-1.3-7.el6.noarch
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
libstdc++-4.4.4-13.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
libXi-1.3-3.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
nautilus-extensions-2.28.4-15.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
libss-1.41.12-3.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
glx-utils-7.7-2.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
cpp-4.4.4-13.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
ipa-client-2.0-9.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
gnome-vfs2-smb-2.24.2-6.el6.x86_64
xdg-user-dirs-0.12-4.el6.x86_64
gdb-7.1-29.el6.x86_64
gok-2.28.1-5.el6.x86_64
SDL-1.2.14-2.el6.x86_64
postgresql-docs-8.4.4-2.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mod_perl-2.0.4-10.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
prelink-0.4.3-4.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
gnome-session-xsession-2.28.0-15.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
crypto-utils-2.4.1-24.2.el6.x86_64
PyGreSQL-3.8.1-2.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
postgresql-odbc-08.04.0200-1.el6.x86_64
git-1.7.1-2.el6.x86_64
report-gtk-0.18-7.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
libvirt-devel-0.8.1-27.el6.x86_64
audit-2.0.4-1.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
attr-2.4.44-4.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
latrace-0.5.9-2.el6.x86_64
byacc-1.9.20070509-6.1.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
nscd-2.12-1.7.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
vte-0.25.1-5.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
gcc-c++-4.4.4-13.el6.x86_64
firefox-3.6.9-2.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
libgnomecanvas-devel-2.26.0-4.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
perl-XML-Grove-0.46alpha-40.el6.noarch
automake-1.11.1-1.2.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
system-config-services-docs-1.1.8-1.el6.noarch
pyOpenSSL-0.10-2.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
zlib-1.2.3-25.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
audit-libs-devel-2.0.4-1.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
libstdc++-4.4.4-13.el6.i686
libdrm-2.4.20-2.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
docbook-utils-0.6.14-24.el6.noarch
freetype-2.3.11-5.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
gnome-python2-desktop-2.28.0-4.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
words-3.0-17.el6.noarch
libselinux-utils-2.0.94-2.el6.x86_64
gamin-0.1.10-9.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
mailx-12.4-6.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
keyutils-1.4-1.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
openssh-5.3p1-20.el6.x86_64
m4-1.4.13-5.el6.x86_64
autofs-5.0.5-23.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
gvfs-archive-1.4.3-9.el6.x86_64
man-1.6f-29.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
gdm-2.30.4-21.el6.x86_64
libusb-0.1.12-23.el6.x86_64
webalizer-2.21_02-3.3.el6.x86_64
time-1.7-37.1.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
less-436-4.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
gettext-libs-0.17-16.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
NetworkManager-gnome-0.8.1-5.el6.x86_64
readahead-1.5.6-1.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
php-5.3.2-6.el6.x86_64
libical-0.43-5.1.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-panel-2.30.2-5.el6.x86_64
latencytop-0.5-3.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
kbd-1.15-11.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
rcs-5.7-37.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
boost-program-options-1.41.0-11.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
iputils-20071127-13.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
glibc-2.12-1.7.el6.x86_64
gzip-1.3.12-18.el6.x86_64
cscope-15.6-6.el6.x86_64
certmonger-0.24-4.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
openldap-2.4.19-15.el6.x86_64
eject-2.1.5-17.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
qt-4.6.2-16.el6.x86_64
diffstat-1.51-2.el6.x86_64
libgail-gnome-1.20.1-4.1.el6.x86_64
sssd-1.2.1-28.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
newt-0.52.11-2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
nspluginwrapper-1.3.0-14.el6.x86_64
mysql-server-5.1.47-4.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
rhn-setup-gnome-1.0.0-38.el6.noarch
atk-devel-1.28.0-2.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
filesystem-2.4.30-2.1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
libcom_err-devel-1.41.12-3.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
m2crypto-0.20.2-7.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
screen-4.0.3-15.el6.x86_64
alsa-lib-devel-1.0.21-3.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
mobile-broadband-provider-info-1.20100122-1.el6.noarch
xorg-x11-docs-1.3-6.1.el6.noarch
gnome-themes-2.28.1-6.el6.noarch
libselinux-2.0.94-2.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
libxcb-devel-1.5-1.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
pam_krb5-2.3.11-1.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
pytz-2010h-2.el6.noarch
libidn-1.18-2.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
acl-2.2.49-4.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
jline-0.9.94-0.8.el6.noarch
libXt-1.0.7-1.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
procps-3.2.8-14.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
gnome-screensaver-2.28.3-8.el6.x86_64
rpm-4.8.0-12.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
quota-3.17-10.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
rpm-build-4.8.0-12.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
nano-2.0.9-7.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
system-config-services-0.99.45-1.el6.3.noarch
perl-parent-0.221-115.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
hal-info-20090716-3.1.el6.noarch
mlocate-0.22.2-3.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
libicu-4.2.1-9.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
yp-tools-2.9-10.el6.x86_64
coreutils-8.4-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
rfkill-0.3-4.el6.x86_64
at-spi-1.28.1-2.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
lldpad-0.9.38-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
gnome-python2-bonobo-2.28.0-3.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
evolution-data-server-doc-2.28.3-10.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
yelp-2.28.1-8.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
python-2.6.5-3.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile04/ifconfig.txt                                     0000644 0000000 0000000 00000001637 11524347701 023367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:90:00:04  
          inet addr:10.1.216.154  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe90:4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512843624 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160596855 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:730102710616 (679.9 GiB)  TX bytes:16155214127 (15.0 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:255463 errors:0 dropped:0 overruns:0 frame:0
          TX packets:255463 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:326379824 (311.2 MiB)  TX bytes:326379824 (311.2 MiB)

                                                                                                 Physical_Configuration/Clients/tb3-client02/tile04/chkconfig.txt                                    0000644 0000000 0000000 00000006556 11524347662 023551  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:off	4:on	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
fcoe           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:off	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:off	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lldpad         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
multipathd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
mysqld         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postgresql     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/tile05/                                                 0000777 0000000 0000000 00000000000 11524347723 021044  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/proc/                                            0000777 0000000 0000000 00000000000 11524347723 022007  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/proc/cpuinfo                                     0000644 0000000 0000000 00000002012 11524347722 023363  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.548
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.548
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile05/proc/swaps                                       0000644 0000000 0000000 00000000150 11524347723 023057  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	79668	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile05/proc/devices                                     0000644 0000000 0000000 00000000567 11524347722 023357  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile05/proc/modules                                     0000644 0000000 0000000 00000002547 11524347722 023405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa0259000
stp 2107 1 bridge, Live 0xffffffffa0253000
llc 5608 2 bridge,stp, Live 0xffffffffa024b000
autofs4 27683 3 - Live 0xffffffffa023e000
sunrpc 241630 1 - Live 0xffffffffa01eb000
ipv6 321209 577 - Live 0xffffffffa0156000
dm_mirror 14003 0 - Live 0xffffffffa012a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0121000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0118000
ppdev 8695 0 - Live 0xffffffffa010a000
parport_pc 22944 0 - Live 0xffffffffa00fd000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa00eb000
sg 30186 0 - Live 0xffffffffa00dc000
virtio_net 15665 0 - Live 0xffffffffa00d2000
i2c_piix4 12574 0 - Live 0xffffffffa00c9000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00b9000
ext3 133830 1 - Live 0xffffffffa008d000
jbd 54576 1 ext3, Live 0xffffffffa0076000
mbcache 7918 1 ext3, Live 0xffffffffa006e000
virtio_blk 5087 3 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
ata_generic 3611 0 - Live 0xffffffffa0030000
pata_acpi 3667 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile05/proc/partitions                                  0000644 0000000 0000000 00000000165 11524347723 024124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile05/proc/meminfo                                     0000644 0000000 0000000 00000002222 11524347722 023355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        3605932 kB
MemFree:         3362092 kB
Buffers:            2788 kB
Cached:            26204 kB
SwapCached:         5116 kB
Active:            87136 kB
Inactive:          23668 kB
Active(anon):      71652 kB
Inactive(anon):     9984 kB
Active(file):      15484 kB
Inactive(file):    13684 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        1968324 kB
Dirty:               460 kB
Writeback:             0 kB
AnonPages:         78500 kB
Mapped:             7432 kB
Shmem:                 0 kB
Slab:             104692 kB
SReclaimable:      23872 kB
SUnreclaim:        80820 kB
KernelStack:        1648 kB
PageTables:         3488 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3850956 kB
Committed_AS:     767000 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19136 kB
VmallocChunk:   34359715008 kB
HardwareCorrupted:     0 kB
AnonHugePages:     53248 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     3661824 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile05/lspci.txt                                        0000644 0000000 0000000 00000000744 11524347722 022717  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
                            Physical_Configuration/Clients/tb3-client02/tile05/df.txt                                           0000644 0000000 0000000 00000000276 11524347703 022175  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8186476   4594460  65% /
tmpfs                  1802964         0   1802964   0% /dev/shm
                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/tile05/mount.txt                                        0000644 0000000 0000000 00000000434 11524347722 022743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile05/etc/                                             0000777 0000000 0000000 00000000000 11524347722 021616  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/                                        0000777 0000000 0000000 00000000000 11524347713 022444  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/                                  0000777 0000000 0000000 00000000000 11524347722 023355  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K02libvirt-guests                 0000755 0000000 0000000 00000017172 11524347714 026550  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K02oddjobd                        0000755 0000000 0000000 00000004325 11524347714 025166  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K69rpcsvcgssd                     0000755 0000000 0000000 00000006014 11524347715 025755  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K95cgconfig                       0000755 0000000 0000000 00000012327 11524347717 025360  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S55sshd                           0000755 0000000 0000000 00000010671 11524347721 024541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K80fcoe                           0000755 0000000 0000000 00000005775 11524347716 024517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K15httpd                          0000755 0000000 0000000 00000006364 11524347715 024716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K92ip6tables                      0000755 0000000 0000000 00000020716 11524347717 025470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K80sssd                           0000755 0000000 0000000 00000004731 11524347716 024546  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S58ntpd                           0000755 0000000 0000000 00000003603 11524347721 024545  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K02avahi-daemon                   0000755 0000000 0000000 00000004754 11524347714 026120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K89rdisc                          0000755 0000000 0000000 00000003027 11524347717 024705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K76ipsec                          0000755 0000000 0000000 00000010777 11524347716 024711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S22messagebus                     0000755 0000000 0000000 00000004230 11524347720 025721  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K95firstboot                      0000755 0000000 0000000 00000005341 11524347717 025612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K86cgred                          0000755 0000000 0000000 00000006302 11524347716 024660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S13rpcbind                        0000755 0000000 0000000 00000004031 11524347720 025203  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S13irqbalance                     0000755 0000000 0000000 00000003521 11524347720 025666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K84NetworkManager                 0000755 0000000 0000000 00000004235 11524347716 026521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K99sysstat                        0000755 0000000 0000000 00000002363 11524347717 025316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K50dnsmasq                        0000755 0000000 0000000 00000002577 11524347715 025242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K01certmonger                     0000755 0000000 0000000 00000004054 11524347713 025723  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K85mdmonitor                      0000755 0000000 0000000 00000005013 11524347716 025601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K36mysqld                         0000755 0000000 0000000 00000012460 11524347715 025101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K80lldpad                         0000755 0000000 0000000 00000014323 11524347716 025030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K88nslcd                          0000755 0000000 0000000 00000003213 11524347717 024700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K75ntpdate                        0000755 0000000 0000000 00000003512 11524347716 025231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K89iscsid                         0000755 0000000 0000000 00000007127 11524347717 025064  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K73ypbind                         0000755 0000000 0000000 00000011277 11524347715 025063  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S10network                        0000755 0000000 0000000 00000014466 11524347720 025265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S12rsyslog                        0000755 0000000 0000000 00000004326 11524347720 025272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S11auditd                         0000755 0000000 0000000 00000006462 11524347720 025044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K84wpa_supplicant                 0000755 0000000 0000000 00000003512 11524347716 026623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S20kdump                          0000755 0000000 0000000 00000027662 11524347720 024717  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K87multipathd                     0000755 0000000 0000000 00000004473 11524347716 025757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S26haldaemon                      0000755 0000000 0000000 00000003245 11524347721 025525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K60crond                          0000755 0000000 0000000 00000005445 11524347715 024677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K03rhnsd                          0000755 0000000 0000000 00000005522 11524347714 024700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K36postgresql                     0000755 0000000 0000000 00000012406 11524347715 025773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S00microcode_ctl                  0000755 0000000 0000000 00000002221 11524347717 026371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K10saslauthd                      0000755 0000000 0000000 00000004010 11524347714 025537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K88iscsi                          0000755 0000000 0000000 00000007315 11524347717 024716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K60nfs                            0000755 0000000 0000000 00000013536 11524347715 024360  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S30nscd                           0000755 0000000 0000000 00000004723 11524347721 024521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S24rpcgssd                        0000755 0000000 0000000 00000006050 11524347721 025235  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K10psacct                         0000755 0000000 0000000 00000003024 11524347714 025030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S26acpid                          0000755 0000000 0000000 00000003275 11524347721 024660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S13cpuspeed                       0000755 0000000 0000000 00000025442 11524347720 025403  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S26udev-post                      0000755 0000000 0000000 00000004370 11524347721 025523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S99local                          0000755 0000000 0000000 00000000334 11524347722 024676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K50netconsole                     0000755 0000000 0000000 00000005650 11524347715 025740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S24rpcidmapd                      0000755 0000000 0000000 00000005222 11524347721 025533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S02lvm2-monitor                   0000555 0000000 0000000 00000004612 11524347720 026130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S28autofs                         0000755 0000000 0000000 00000007234 11524347721 025102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K01smartd                         0000755 0000000 0000000 00000005672 11524347714 025060  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S55autobench                      0000755 0000000 0000000 00000005063 11524347721 025547  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S25netfs                          0000755 0000000 0000000 00000012432 11524347721 024711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K30postfix                        0000755 0000000 0000000 00000007414 11524347715 025261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/S24nfslock                        0000755 0000000 0000000 00000006675 11524347720 025243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K92iptables                       0000755 0000000 0000000 00000020557 11524347717 025405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K87restorecond                    0000755 0000000 0000000 00000003427 11524347716 026131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/rc3.d/K05atd                            0000755 0000000 0000000 00000004112 11524347714 024326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/                                 0000777 0000000 0000000 00000000000 11524347713 023631  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/network                          0000755 0000000 0000000 00000014466 11524347711 025255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/sysstat                          0000755 0000000 0000000 00000002363 11524347713 025271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/saslauthd                        0000755 0000000 0000000 00000004010 11524347712 025535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/messagebus                       0000755 0000000 0000000 00000004230 11524347710 025705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/autobench                        0000755 0000000 0000000 00000005063 11524347705 025530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/atd                              0000755 0000000 0000000 00000004112 11524347705 024322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/mcelogd                          0000755 0000000 0000000 00000003535 11524347710 025170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/auditd                           0000755 0000000 0000000 00000006462 11524347705 025036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/certmonger                       0000755 0000000 0000000 00000004054 11524347705 025724  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/mysqld                           0000755 0000000 0000000 00000012460 11524347710 025064  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/irqbalance                       0000755 0000000 0000000 00000003521 11524347707 025660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/acpid                            0000755 0000000 0000000 00000003275 11524347705 024643  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/iscsid                           0000755 0000000 0000000 00000007127 11524347707 025043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/nscd                             0000755 0000000 0000000 00000004723 11524347711 024506  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/rpcidmapd                        0000755 0000000 0000000 00000005222 11524347712 025516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/nfs                              0000755 0000000 0000000 00000013536 11524347711 024347  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/sssd                             0000755 0000000 0000000 00000004731 11524347713 024534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/crond                            0000755 0000000 0000000 00000005445 11524347706 024672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/ip6tables                        0000755 0000000 0000000 00000020716 11524347707 025455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/firstboot                        0000755 0000000 0000000 00000005341 11524347706 025573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/autofs                           0000755 0000000 0000000 00000007234 11524347705 025063  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/sshd                             0000755 0000000 0000000 00000010671 11524347713 024521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/libvirt-guests                   0000755 0000000 0000000 00000017172 11524347707 026551  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/avahi-daemon                     0000755 0000000 0000000 00000004754 11524347705 026117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/iscsi                            0000755 0000000 0000000 00000007315 11524347707 024676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/ypbind                           0000755 0000000 0000000 00000011277 11524347713 025050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/psacct                           0000755 0000000 0000000 00000003024 11524347711 025025  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/fcoe                             0000755 0000000 0000000 00000005775 11524347706 024507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/nfslock                          0000755 0000000 0000000 00000006675 11524347711 025226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/cgred                            0000755 0000000 0000000 00000006302 11524347706 024642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/udev-post                        0000755 0000000 0000000 00000004370 11524347713 025505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/haldaemon                        0000755 0000000 0000000 00000003245 11524347706 025511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/ipsec                            0000755 0000000 0000000 00000010777 11524347707 024675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/rpcbind                          0000755 0000000 0000000 00000004031 11524347712 025171  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/rhnsd                            0000755 0000000 0000000 00000005522 11524347712 024674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/dnsmasq                          0000755 0000000 0000000 00000002577 11524347706 025236  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/functions                        0000644 0000000 0000000 00000042767 11524347706 025602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/kdump                            0000755 0000000 0000000 00000027662 11524347707 024713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/lldpad                           0000755 0000000 0000000 00000014323 11524347710 025013  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/postfix                          0000755 0000000 0000000 00000007414 11524347711 025253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/iptables                         0000755 0000000 0000000 00000020557 11524347707 025372  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/multipathd                       0000755 0000000 0000000 00000004473 11524347710 025733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/rsyslog                          0000755 0000000 0000000 00000004326 11524347712 025261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/NetworkManager                   0000755 0000000 0000000 00000004235 11524347705 026504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/netconsole                       0000755 0000000 0000000 00000005650 11524347710 025727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/rpcgssd                          0000755 0000000 0000000 00000006050 11524347712 025220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/lvm2-monitor                     0000555 0000000 0000000 00000004612 11524347710 026116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/halt                             0000755 0000000 0000000 00000012723 11524347706 024512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/cgconfig                         0000755 0000000 0000000 00000012327 11524347705 025340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/single                           0000755 0000000 0000000 00000001207 11524347713 025034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/postgresql                       0000755 0000000 0000000 00000012406 11524347711 025757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/mdmonitor                        0000755 0000000 0000000 00000005013 11524347710 025557  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/restorecond                      0000755 0000000 0000000 00000003427 11524347712 026107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/wpa_supplicant                   0000755 0000000 0000000 00000003512 11524347713 026605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/cpuspeed                         0000755 0000000 0000000 00000025442 11524347706 025374  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/netfs                            0000755 0000000 0000000 00000012432 11524347710 024671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/rpcsvcgssd                       0000755 0000000 0000000 00000006014 11524347712 025734  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/oddjobd                          0000755 0000000 0000000 00000004325 11524347711 025162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/sandbox                          0000755 0000000 0000000 00000003242 11524347712 025211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/killall                          0000755 0000000 0000000 00000001214 11524347707 025200  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/rdisc                            0000755 0000000 0000000 00000003027 11524347712 024660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/httpd                            0000755 0000000 0000000 00000006364 11524347707 024712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/ntpd                             0000755 0000000 0000000 00000003603 11524347711 024520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/smartd                           0000755 0000000 0000000 00000005672 11524347713 025057  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/nslcd                            0000755 0000000 0000000 00000003213 11524347711 024653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/ntpdate                          0000755 0000000 0000000 00000003512 11524347711 025211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile05/etc/rc.d/init.d/microcode_ctl                    0000755 0000000 0000000 00000002221 11524347710 026353  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client02/tile05/etc/hosts                                        0000644 0000000 0000000 00000000052 11524347703 022671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1	localhost.localdomain	localhost
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client02/tile05/etc/iproute2/                                    0000777 0000000 0000000 00000000000 11524347704 023367  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/etc/iproute2/rt_dsfield                          0000644 0000000 0000000 00000000672 11524347704 025432  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client02/tile05/etc/iproute2/rt_realms                           0000644 0000000 0000000 00000000160 11524347704 025273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client02/tile05/etc/iproute2/rt_scopes                           0000644 0000000 0000000 00000000134 11524347704 025305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/tile05/etc/iproute2/ematch_map                          0000644 0000000 0000000 00000000073 11524347704 025404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client02/tile05/etc/iproute2/rt_tables                           0000644 0000000 0000000 00000000127 11524347704 025265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile05/etc/iproute2/rt_protos                           0000644 0000000 0000000 00000000475 11524347704 025347  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/etc/nsswitch.conf                                0000644 0000000 0000000 00000003230 11524347704 024321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client02/tile05/etc/fstab                                        0000644 0000000 0000000 00000001307 11524347703 022634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Thu Aug  5 09:23:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=008a3418-d80b-4815-9722-db5af2fba6da /                       ext3    defaults        1 1
UUID=171fffed-b6b4-4161-b8cd-a688d195da49 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile05/etc/sysctl.conf                                  0000644 0000000 0000000 00000001466 11524347722 024011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client02/tile05/etc/inittab                                      0000644 0000000 0000000 00000001564 11524347704 023175  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client02/tile05/var/                                             0000777 0000000 0000000 00000000000 11524347723 021634  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/var/log/                                         0000777 0000000 0000000 00000000000 11524347723 022415  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/var/log/dmesg                                    0000644 0000000 0000000 00000041752 11524347723 023444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009cc00 (usable)
 BIOS-e820: 000000000009cc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
RAMDISK: 372ca000 - 37fef973
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffdc0 00040
ACPI: SSDT 00000000dfffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000000dfffd000
Bootmem setup node 0 0000000000000000-00000000dfffd000
  NODE_DATA [000000000000c000 - 000000000003ffff]
  bootmap [0000000000040000 -  000000000005bfff] pages 1c
(7 early reservations) ==> bootmem [0000000000 - 00dfffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [00372ca000 - 0037fef973]          RAMDISK ==> [00372ca000 - 0037fef973]
  #4 [000009cc00 - 0000100000]    BIOS reserved ==> [000009cc00 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00031fffff] PMD -> [ffff880002200000-ffff8800053fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009c
    0: 0x00000100 -> 0x000dfffd
On node 0 totalpages: 917400
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3833 pages, LIFO batch:0
  DMA32 zone: 12488 pages used for memmap
  DMA32 zone: 900917 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009c000 - 000000000009d000
PM: Registered nosave memory: 000000000009d000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 904750
Policy zone: DMA32
Kernel command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us 
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 3591248k/3670004k available (4935k kernel code, 404k absent, 78352k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 36700160 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 2266.548 MHz processor.
Calibrating delay loop (skipped) preset value.. 4533.09 BogoMIPS (lpj=2266548)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Setting APIC routing to flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (9066.19 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13462k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297092530.434:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 7040
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 15:28:49 UTC (1297092529)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
dracut: Mounted root filesystem /dev/vda1
dracut: Loading SELinux policy
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1297092531.372:2): selinux=0 auid=4294967295 ses=4294967295
dracut: /sbin/load_policy: Can't load policy: No such file or directory
dracut: Switching root
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 27 for MSI/MSI-X
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT3 FS on vda1, internal journal
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                      Physical_Configuration/Clients/tb3-client02/tile05/boot/                                            0000777 0000000 0000000 00000000000 11524347703 022005  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/boot/grub/                                       0000777 0000000 0000000 00000000000 11524347703 022744  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client02/tile05/boot/grub/grub.conf                              0000644 0000000 0000000 00000002637 11524347703 024556  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux Server (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-70.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-70.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-70.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-59.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-59.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-59.el6.x86_64.img
                                                                                                 Physical_Configuration/Clients/tb3-client02/tile05/rpmpkgs.txt                                      0000644 0000000 0000000 00000105007 11524347723 023267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rhnsd-4.9.3-2.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
pycairo-1.8.6-2.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
polkit-devel-0.96-2.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
popt-devel-1.13-7.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
basesystem-10.0-4.el6.noarch
libgnomeui-devel-2.24.1-4.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libhbalinux-1.0.10-1.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-Newt-1.08-26.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
system-icon-theme-6.0.0-2.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
libjpeg-6b-46.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
gettext-0.17-16.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
NetworkManager-glib-0.8.1-5.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
sed-4.2.1-5.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
libXext-1.1-3.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
libcap-2.16-5.2.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
hwdata-0.233-1.el6.noarch
pcre-7.8-3.1.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
fuse-2.8.3-1.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
python-decorator-3.0.1-3.1.el6.noarch
report-plugin-scp-0.18-7.el6.x86_64
rsync-3.0.6-5.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
ModemManager-0.4.0-3.git20100628.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
device-mapper-event-libs-1.02.53-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
nc-1.84-22.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
dracut-004-32.el6.noarch
psmisc-22.6-15.el6.x86_64
vino-2.28.1-3.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
kernel-2.6.32-70.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
mtools-4.0.12-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
mod_wsgi-3.2-1.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
jna-3.2.4-2.el6.x86_64
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
php-pdo-5.3.2-6.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
postfix-2.6.6-2.el6.x86_64
patch-2.6-6.el6.x86_64
elfutils-0.148-1.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
xorg-x11-xkb-utils-7.4-6.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
xvattr-1.3-18.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
boost-regex-1.41.0-11.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
pam-1.1.1-4.el6.x86_64
setserial-2.17-25.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
python-slip-0.2.11-1.el6.noarch
gvfs-1.4.3-9.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
libhbaapi-2.2-10.el6.x86_64
gnome-applets-2.28.0-7.el6.x86_64
grub-0.97-68.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
setup-2.8.14-10.el6.noarch
hal-devel-0.5.14-8.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
autoconf-2.63-5.1.el6.noarch
fontpackages-filesystem-1.41-1.1.el6.noarch
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libXtst-devel-1.0.99.2-3.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
libX11-common-1.3-2.el6.noarch
sos-2.2-2.el6.noarch
php-pear-1.9.0-2.el6.noarch
avahi-autoipd-0.6.25-8.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
bash-4.1.2-3.el6.x86_64
libcap-ng-devel-0.6.4-3.el6.x86_64
festival-1.96-18.el6.x86_64
libICE-1.0.6-1.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
rootfiles-8.1-6.1.el6.noarch
libldb-0.9.10-23.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
libpng-1.2.44-1.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
gd-2.0.35-10.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
man-pages-3.22-12.el6.noarch
libcroco-devel-0.6.2-5.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
numactl-2.0.3-9.el6.x86_64
yum-3.2.27-14.el6.noarch
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
iproute-2.6.32-10.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
boost-1.41.0-11.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
gstreamer-tools-0.10.29-1.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
libXdamage-1.1.2-1.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
binutils-2.20.51.0.2-5.11.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
gcc-4.4.4-13.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
libtheora-1.1.0-2.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
gnome-power-manager-2.28.3-3.el6.x86_64
totem-mozplugin-2.28.6-2.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-Log-Message-0.02-115.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
libXdmcp-1.0.3-1.el6.x86_64
parted-2.1-10.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libevent-1.4.13-1.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
psacct-6.3.2-63.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
checkpolicy-2.0.22-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
flex-2.5.35-8.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
selinux-policy-3.7.19-54.el6.noarch
ltrace-0.5-16.45svn.1.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
crontabs-1.10-32.1.el6.noarch
coreutils-libs-8.4-9.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
mtr-0.75-5.el6.x86_64
openssl-1.0.0-4.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
libgudev1-147-2.29.el6.x86_64
ctags-5.8-2.el6.x86_64
redhat-bookmarks-6-1.el6.noarch
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
passwd-0.77-4.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
orca-2.28.2-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
slang-2.2.1-1.el6.x86_64
subversion-1.6.11-2.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
openswan-2.6.24-8.el6.x86_64
gtk-doc-1.11-5.1.el6.noarch
libdaemon-0.14-1.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
xml-common-0.6.3-32.el6.noarch
gtk2-devel-2.18.9-4.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
notification-daemon-0.5.0-1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
libgcc-4.4.4-13.el6.i686
ncurses-libs-5.7-3.20090208.el6.x86_64
ppp-2.4.5-5.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
info-4.13a-8.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
docbook-style-dsssl-1.79-10.el6.noarch
pam_ldap-185-5.el6.x86_64
glib2-2.22.5-5.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
readline-6.0-3.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
at-3.1.10-42.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
samba-winbind-clients-3.5.4-68.el6.x86_64
gmp-4.3.1-7.el6.x86_64
gnome-panel-libs-2.30.2-5.el6.x86_64
perl-version-0.77-115.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
perl-5.10.1-115.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
curl-7.19.7-16.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
httpd-tools-2.2.15-5.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
libavc1394-0.5.3-9.1.el6.x86_64
which-2.19-5.1.el6.x86_64
perl-BSD-Resource-1.29.03-3.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
keyutils-libs-1.4-1.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
iso-codes-3.16-2.el6.noarch
libxslt-1.1.26-2.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-1.0.5-1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
giflib-4.1.6-3.1.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
report-0.18-7.el6.x86_64
libX11-1.3-2.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
grubby-7.0.15-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
eggdbus-0.6-3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
httpd-2.2.15-5.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
ppl-0.10.2-11.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
file-libs-5.04-5.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
bc-1.06.95-1.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
NetworkManager-0.8.1-5.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
dracut-kernel-004-32.el6.noarch
cpio-2.10-9.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
unzip-6.0-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
check-0.9.8-1.1.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
libgssglue-0.1-8.1.el6.x86_64
db4-cxx-4.7.25-16.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
libnih-1.0.1-6.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
fcoe-utils-1.0.14-9.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
zip-3.0-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
usermode-1.102-3.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
php-xml-5.3.2-6.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
crash-5.0.0-23.el6.x86_64
libthai-0.1.12-3.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
zenity-2.28.0-1.el6.x86_64
report-newt-0.18-7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
boost-test-1.41.0-11.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
tzdata-2010l-1.el6.noarch
ncurses-5.7-3.20090208.el6.x86_64
nspr-4.8.6-1.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
dnsmasq-2.48-4.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
nss-3.12.7-2.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
udev-147-2.29.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
postgresql-libs-8.4.4-2.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
avahi-ui-0.6.25-8.el6.x86_64
device-mapper-multipath-libs-0.4.9-31.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
udisks-1.0.1-2.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
libaio-0.3.107-10.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
evolution-data-server-devel-2.28.3-10.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
elfutils-devel-0.148-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
cas-0.15-1.el6.1.noarch
libgnome-devel-2.28.0-11.el6.x86_64
kernel-devel-2.6.32-59.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
dstat-0.7.0-1.el6.noarch
perl-XML-Dumper-0.81-6.el6.noarch
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
zd1211-firmware-1.4-4.el6.noarch
ivtv-firmware-20080701-20.2.noarch
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
libnl-1.1-12.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
mysql-5.1.47-4.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
iptables-1.4.7-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
perl-Time-HiRes-1.9721-115.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
systemtap-1.2-9.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
eog-2.28.2-4.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
postgresql-server-8.4.4-2.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
gnome-settings-daemon-2.28.2-11.el6.x86_64
usbutils-0.86-2.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
python-psycopg2-2.0.13-2.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
tcsh-6.17-8.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
kernel-devel-2.6.32-70.el6.x86_64
bison-2.4.1-5.el6.x86_64
busybox-1.15.1-10.el6.x86_64
lsof-4.82-1.2.el6.x86_64
swig-1.3.40-5.el6.x86_64
hal-0.5.14-8.el6.x86_64
powertop-1.11-3.1.el6.x86_64
rdate-1.4-16.el6.x86_64
kernel-2.6.32-59.el6.x86_64
libtopology-0.3-7.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
openldap-devel-2.4.19-15.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
kernel-2.6.32-71.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
libxml2-python-2.7.6-1.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
libcanberra-0.22-1.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
python-gudev-147.1-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
mailcap-2.1.31-1.1.el6.noarch
wpa_supplicant-0.6.8-10.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
cracklib-python-2.8.16-2.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
gnome-python2-libwnck-2.28.0-4.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
openjade-1.3.2-36.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
popt-1.13-7.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
system-gnome-theme-60.0.2-1.el6.noarch
db4-4.7.25-16.el6.x86_64
wget-1.12-1.4.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
fipscheck-1.2.0-4.1.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
gawk-3.1.7-6.el6.x86_64
cvs-1.11.23-11.el6.x86_64
php-common-5.3.2-6.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
tcp_wrappers-libs-7.6-56.3.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
atk-1.28.0-2.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
libacl-2.2.49-4.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
findutils-4.4.2-6.el6.x86_64
libiec61883-1.2.0-4.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
grep-2.6.3-2.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
libgcrypt-1.4.5-3.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
pixman-0.16.6-1.el6.x86_64
iw-0.9.17-4.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
libxcb-1.5-1.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
comps-extras-17.8-1.el6.noarch
libsoup-2.28.2-1.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
xfsprogs-3.1.1-4.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
libXv-1.0.5-1.el6.x86_64
polkit-0.96-2.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
rtkit-0.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
libIDL-0.8.13-2.1.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
ed-1.1-3.3.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
tar-1.23-3.el6.x86_64
libconfig-1.3.2-1.1.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
pciutils-libs-3.1.4-9.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
mod_ssl-2.2.15-5.el6.x86_64
kbd-misc-1.15-11.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
rng-tools-2-8.el6.x86_64
pax-3.4-10.1.el6.x86_64
control-center-2.28.1-25.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
php-gd-5.3.2-6.el6.x86_64
libtasn1-2.3-3.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
irqbalance-0.55-27.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
yajl-1.0.7-3.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libXpm-3.5.8-2.el6.x86_64
pango-1.28.1-3.el6.x86_64
gucharmap-2.28.2-2.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
net-tools-1.60-102.el6.x86_64
exempi-2.1.0-5.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
DeviceKit-power-014-1.el6.x86_64
make-3.81-19.el6.x86_64
unique-1.1.4-2.el6.x86_64
rhn-setup-1.0.0-38.el6.noarch
boost-signals-1.41.0-11.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
cronie-1.4.4-2.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
libcollection-0.5.0-28.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
libudev-147-2.29.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
libuser-0.56.13-4.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
device-mapper-multipath-0.4.9-31.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
perl-URI-1.40-2.el6.noarch
dbus-glib-devel-0.86-5.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
seekwatcher-0.12-4.1.el6.noarch
perf-2.6.32-71.el6.noarch
libglade2-devel-2.6.4-3.1.el6.x86_64
glibc-2.12-1.7.el6.i686
polkit-docs-0.96-2.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
libXi-devel-1.3-3.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
mysql-devel-5.1.47-4.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
iotop-0.3.2-3.el6.noarch
python-meh-0.9-1.el6.noarch
bzip2-devel-1.0.5-6.1.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
atmel-firmware-1.3-7.el6.noarch
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
libstdc++-4.4.4-13.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
libXi-1.3-3.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
nautilus-extensions-2.28.4-15.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
libss-1.41.12-3.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
glx-utils-7.7-2.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
cpp-4.4.4-13.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
ipa-client-2.0-9.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
gnome-vfs2-smb-2.24.2-6.el6.x86_64
xdg-user-dirs-0.12-4.el6.x86_64
gdb-7.1-29.el6.x86_64
gok-2.28.1-5.el6.x86_64
SDL-1.2.14-2.el6.x86_64
postgresql-docs-8.4.4-2.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mod_perl-2.0.4-10.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
prelink-0.4.3-4.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
gnome-session-xsession-2.28.0-15.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
crypto-utils-2.4.1-24.2.el6.x86_64
PyGreSQL-3.8.1-2.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
postgresql-odbc-08.04.0200-1.el6.x86_64
git-1.7.1-2.el6.x86_64
report-gtk-0.18-7.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
libvirt-devel-0.8.1-27.el6.x86_64
audit-2.0.4-1.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
attr-2.4.44-4.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
latrace-0.5.9-2.el6.x86_64
byacc-1.9.20070509-6.1.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
nscd-2.12-1.7.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
vte-0.25.1-5.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
gcc-c++-4.4.4-13.el6.x86_64
firefox-3.6.9-2.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
libgnomecanvas-devel-2.26.0-4.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
perl-XML-Grove-0.46alpha-40.el6.noarch
automake-1.11.1-1.2.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
system-config-services-docs-1.1.8-1.el6.noarch
pyOpenSSL-0.10-2.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
zlib-1.2.3-25.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
audit-libs-devel-2.0.4-1.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
libstdc++-4.4.4-13.el6.i686
libdrm-2.4.20-2.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
docbook-utils-0.6.14-24.el6.noarch
freetype-2.3.11-5.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
gnome-python2-desktop-2.28.0-4.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
words-3.0-17.el6.noarch
libselinux-utils-2.0.94-2.el6.x86_64
gamin-0.1.10-9.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
mailx-12.4-6.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
keyutils-1.4-1.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
openssh-5.3p1-20.el6.x86_64
m4-1.4.13-5.el6.x86_64
autofs-5.0.5-23.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
gvfs-archive-1.4.3-9.el6.x86_64
man-1.6f-29.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
gdm-2.30.4-21.el6.x86_64
libusb-0.1.12-23.el6.x86_64
webalizer-2.21_02-3.3.el6.x86_64
time-1.7-37.1.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
less-436-4.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
gettext-libs-0.17-16.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
NetworkManager-gnome-0.8.1-5.el6.x86_64
readahead-1.5.6-1.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
php-5.3.2-6.el6.x86_64
libical-0.43-5.1.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-panel-2.30.2-5.el6.x86_64
latencytop-0.5-3.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
kbd-1.15-11.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
rcs-5.7-37.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
boost-program-options-1.41.0-11.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
iputils-20071127-13.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
glibc-2.12-1.7.el6.x86_64
gzip-1.3.12-18.el6.x86_64
cscope-15.6-6.el6.x86_64
certmonger-0.24-4.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
openldap-2.4.19-15.el6.x86_64
eject-2.1.5-17.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
qt-4.6.2-16.el6.x86_64
diffstat-1.51-2.el6.x86_64
libgail-gnome-1.20.1-4.1.el6.x86_64
sssd-1.2.1-28.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
newt-0.52.11-2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
nspluginwrapper-1.3.0-14.el6.x86_64
mysql-server-5.1.47-4.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
rhn-setup-gnome-1.0.0-38.el6.noarch
atk-devel-1.28.0-2.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
filesystem-2.4.30-2.1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
libcom_err-devel-1.41.12-3.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
m2crypto-0.20.2-7.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
screen-4.0.3-15.el6.x86_64
alsa-lib-devel-1.0.21-3.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
mobile-broadband-provider-info-1.20100122-1.el6.noarch
xorg-x11-docs-1.3-6.1.el6.noarch
gnome-themes-2.28.1-6.el6.noarch
libselinux-2.0.94-2.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
libxcb-devel-1.5-1.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
pam_krb5-2.3.11-1.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
pytz-2010h-2.el6.noarch
libidn-1.18-2.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
acl-2.2.49-4.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
jline-0.9.94-0.8.el6.noarch
libXt-1.0.7-1.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
procps-3.2.8-14.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
gnome-screensaver-2.28.3-8.el6.x86_64
rpm-4.8.0-12.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
quota-3.17-10.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
rpm-build-4.8.0-12.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
nano-2.0.9-7.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
system-config-services-0.99.45-1.el6.3.noarch
perl-parent-0.221-115.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
hal-info-20090716-3.1.el6.noarch
mlocate-0.22.2-3.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
libicu-4.2.1-9.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
yp-tools-2.9-10.el6.x86_64
coreutils-8.4-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
rfkill-0.3-4.el6.x86_64
at-spi-1.28.1-2.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
lldpad-0.9.38-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
gnome-python2-bonobo-2.28.0-3.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
evolution-data-server-doc-2.28.3-10.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
yelp-2.28.1-8.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
python-2.6.5-3.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client02/tile05/ifconfig.txt                                     0000644 0000000 0000000 00000001637 11524347722 023373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:90:00:05  
          inet addr:10.1.216.155  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe90:5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512743093 errors:0 dropped:0 overruns:0 frame:0
          TX packets:159586247 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:728778606511 (678.7 GiB)  TX bytes:16079077210 (14.9 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:255763 errors:0 dropped:0 overruns:0 frame:0
          TX packets:255763 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:326398835 (311.2 MiB)  TX bytes:326398835 (311.2 MiB)

                                                                                                 Physical_Configuration/Clients/tb3-client02/tile05/chkconfig.txt                                    0000644 0000000 0000000 00000006556 11524347703 023546  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:off	4:on	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
fcoe           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:off	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:off	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lldpad         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
multipathd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
mysqld         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postgresql     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                  Physical_Configuration/Clients/tb3-client02/running-vms.txt                                         0000644 0000000 0000000 00000004103 11524347577 022767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   root      5500 53.3 11.2 4062384 3714276 ?     Sl   10:28 335:28 /usr/libexec/qemu-kvm -name rh6-vct01 -drive file=/var/lib/libvirt/images/rh6-vct01.img,if=virtio,boot=on,cache=writeback -net nic,model=virtio,vlan=0,macaddr=00:50:56:90:00:01 -net tap,vlan=0,ifname=vct01,script=/etc/kvm/qemu-ifup-br1 -m 3584 -vnc :6101 -cpu qemu64 -smp 2 -monitor telnet::13001,server,nowait -serial telnet::14001,server,nowait -daemonize
root      5544 57.7 11.2 4052140 3703856 ?     Sl   10:28 363:42 /usr/libexec/qemu-kvm -name rh6-vct02 -drive file=/var/lib/libvirt/images/rh6-vct02.img,if=virtio,boot=on,cache=writeback -net nic,model=virtio,vlan=0,macaddr=00:50:56:90:00:02 -net tap,vlan=0,ifname=vct02,script=/etc/kvm/qemu-ifup-br2 -m 3584 -vnc :6102 -cpu qemu64 -smp 2 -monitor telnet::13002,server,nowait -serial telnet::14002,server,nowait -daemonize
root      5585 59.7 11.2 4128116 3707108 ?     Sl   10:28 375:43 /usr/libexec/qemu-kvm -name rh6-vct03 -drive file=/var/lib/libvirt/images/rh6-vct03.img,if=virtio,boot=on,cache=writeback -net nic,model=virtio,vlan=0,macaddr=00:50:56:90:00:03 -net tap,vlan=0,ifname=vct03,script=/etc/kvm/qemu-ifup-br3 -m 3584 -vnc :6103 -cpu qemu64 -smp 3 -monitor telnet::13003,server,nowait -serial telnet::14003,server,nowait -daemonize
root      5642 57.4 11.2 4082872 3716280 ?     Sl   10:28 361:17 /usr/libexec/qemu-kvm -name rh6-vct04 -drive file=/var/lib/libvirt/images/rh6-vct04.img,if=virtio,boot=on,cache=writeback -net nic,model=virtio,vlan=0,macaddr=00:50:56:90:00:04 -net tap,vlan=0,ifname=vct04,script=/etc/kvm/qemu-ifup-br4 -m 3584 -vnc :6104 -cpu qemu64 -smp 2 -monitor telnet::13004,server,nowait -serial telnet::14004,server,nowait -daemonize
root      5711 56.5 11.2 4062384 3708044 ?     Sl   10:28 356:01 /usr/libexec/qemu-kvm -name rh6-vct05 -drive file=/var/lib/libvirt/images/rh6-vct05.img,if=virtio,boot=on,cache=writeback -net nic,model=virtio,vlan=0,macaddr=00:50:56:90:00:05 -net tap,vlan=0,ifname=vct05,script=/etc/kvm/qemu-ifup-br5 -m 3584 -vnc :6105 -cpu qemu64 -smp 2 -monitor telnet::13005,server,nowait -serial telnet::14005,server,nowait -daemonize
                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client02/rpmpkgs.txt                                             0000644 0000000 0000000 00000106575 11524347577 022207  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   system-config-date-1.9.60-1.el6.noarch
perl-Digest-SHA-5.47-115.el6.x86_64
liberation-serif-fonts-1.05.1.20090721-4.el6.noarch
poppler-0.12.4-3.el6.x86_64
xml-common-0.6.3-32.el6.noarch
media-player-info-6-1.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
lohit-gujarati-fonts-2.4.4-3.el6.noarch
libX11-common-1.3-2.el6.noarch
mailcap-2.1.31-1.1.el6.noarch
gnote-0.6.3-3.el6.x86_64
eggdbus-0.6-3.el6.x86_64
lohit-oriya-fonts-2.4.3-4.el6.noarch
startup-notification-0.10-2.1.el6.x86_64
freetype-2.3.11-5.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
lsof-4.82-1.2.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
libXinerama-1.1-1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
eog-2.28.2-4.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
libXft-2.1.13-4.1.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
mousetweaks-2.28.2-1.el6.x86_64
mtools-4.0.12-1.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
gstreamer-plugins-base-0.10.29-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
xorg-x11-fonts-misc-7.2-9.1.el6.noarch
libgweather-2.28.0-4.el6.x86_64
glib2-2.22.5-5.el6.x86_64
virt-top-1.0.4-3.1.el6.x86_64
m17n-lib-1.5.5-2.el6.x86_64
brasero-libs-2.28.3-6.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
libburn-0.7.0-1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
PackageKit-gstreamer-plugin-0.5.8-13.el6.x86_64
libvpx-0.9.0-7.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
usbutils-0.86-2.el6.x86_64
lzo-2.03-3.1.el6.x86_64
festival-1.96-18.el6.x86_64
findutils-4.4.2-6.el6.x86_64
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
python-2.6.5-3.el6.x86_64
gstreamer-plugins-bad-free-0.10.19-2.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
gnome-utils-libs-2.28.1-10.el6.x86_64
bluez-libs-4.66-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
gmp-4.3.1-7.el6.x86_64
mtr-0.75-5.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
eject-2.1.5-17.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
xorg-x11-drv-void-1.3.0-4.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
xorg-x11-server-common-1.7.7-26.el6.x86_64
perl-5.10.1-115.el6.x86_64
gnome-bluetooth-2.28.6-8.el6.x86_64
python-slip-0.2.11-1.el6.noarch
util-linux-ng-2.17.2-6.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
parted-2.1-10.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
openldap-2.4.19-15.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
nfs-utils-1.2.2-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
cdrdao-1.2.3-4.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
fuse-2.8.3-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
hal-0.5.14-8.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
m17n-db-punjabi-1.5.5-1.1.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
NetworkManager-glib-0.8.1-5.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
m17n-db-telugu-1.5.5-1.1.el6.noarch
gfs2-utils-3.0.12-23.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
gdm-2.30.4-21.el6.x86_64
m17n-db-gujarati-1.5.5-1.1.el6.noarch
libbonoboui-2.24.2-3.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
sos-2.2-2.el6.noarch
gnome-settings-daemon-2.28.2-11.el6.x86_64
libiptcdata-1.0.4-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
python-decorator-3.0.1-3.1.el6.noarch
gvfs-obexftp-1.4.3-9.el6.x86_64
avahi-autoipd-0.6.25-8.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
python-nose-0.10.4-3.1.el6.noarch
xulrunner-1.9.2.9-1.el6.x86_64
dvd+rw-tools-7.1-5.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
perl-parent-0.221-115.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
compat-db-4.6.21-15.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
system-config-services-docs-1.1.8-1.el6.noarch
libavc1394-0.5.3-9.1.el6.x86_64
thai-scalable-fonts-common-0.4.12-2.1.el6.noarch
m17n-db-1.5.5-1.1.el6.noarch
authconfig-gtk-6.1.4-6.el6.x86_64
paktype-tehreer-fonts-2.0-8.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
NetworkManager-gnome-0.8.1-5.el6.x86_64
lohit-punjabi-fonts-2.4.4-1.el6.noarch
ModemManager-0.4.0-3.git20100628.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
ibus-hangul-1.3.0.20100329-1.el6.x86_64
gnome-backgrounds-2.28.0-2.el6.noarch
nc-1.84-22.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
file-roller-2.28.2-6.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
rpm-4.8.0-12.el6.x86_64
libXt-1.0.7-1.el6.x86_64
libjpeg-6b-46.el6.x86_64
gvfs-gphoto2-1.4.3-9.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
make-3.81-19.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
seahorse-2.28.1-4.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
gcalctool-5.28.2-3.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
pangomm-2.26.0-1.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
rng-tools-2-8.el6.x86_64
ecj-3.4.2-6.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
poppler-glib-0.12.4-3.el6.x86_64
libcap-2.16-5.2.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
gtk-vnc-0.3.10-3.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
compat-glibc-2.5-46.2.x86_64
libdiscid-0.2.2-4.1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
newt-0.52.11-2.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
procps-3.2.8-14.el6.x86_64
psacct-6.3.2-63.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
webkitgtk-1.2.3-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
kasumi-2.5-1.1.el6.x86_64
libxcb-1.5-1.el6.x86_64
unzip-6.0-1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
zip-3.0-1.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
libtopology-0.3-7.el6.x86_64
SDL-1.2.14-2.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
keyutils-libs-1.4-1.el6.x86_64
dracut-004-32.el6.noarch
hicolor-icon-theme-0.11-1.1.el6.noarch
imsettings-0.108.0-3.4.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
busybox-1.15.1-10.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
usermode-1.102-3.el6.x86_64
usbmuxd-1.0.2-1.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
cyrus-sasl-2.1.23-8.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
zenity-2.28.0-1.el6.x86_64
passwd-0.77-4.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
lvm2-2.02.72-8.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
grub-0.97-68.el6.x86_64
libmtp-1.0.1-2.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
compiz-gnome-0.8.2-24.el6.x86_64
m17n-contrib-oriya-1.1.10-3.el6.noarch
cronie-anacron-1.4.4-2.el6.x86_64
bc-1.06.95-1.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
m17n-contrib-tamil-1.1.10-3.el6.noarch
samba-common-3.5.4-68.el6.x86_64
libicu-4.2.1-9.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
gvfs-1.4.3-9.el6.x86_64
libXdmcp-1.0.3-1.el6.x86_64
abrt-desktop-1.1.13-4.el6.x86_64
python-mako-0.3.4-1.el6.noarch
nautilus-extensions-2.28.4-15.el6.x86_64
libdaemon-0.14-1.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
neon-0.29.3-1.2.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
khmeros-base-fonts-5.0-9.el6.noarch
rhino-1.7-0.7.r2.2.el6.noarch
fakeroot-1.12.2-22.2.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
m17n-contrib-urdu-1.1.10-3.el6.noarch
perl-libwww-perl-5.833-2.el6.noarch
gnome-panel-2.30.2-5.el6.x86_64
cvs-1.11.23-11.el6.x86_64
wqy-zenhei-fonts-0.9.45-3.el6.noarch
smc-fonts-common-04.2-11.el6.noarch
libiec61883-1.2.0-4.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
python-virtinst-0.500.3-7.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
keyutils-1.4-1.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
kernel-headers-2.6.32-71.el6.x86_64
crash-5.0.0-23.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
seabios-0.5.1-3.el6.x86_64
iw-0.9.17-4.el6.x86_64
basesystem-10.0-4.el6.noarch
libXext-1.1-3.el6.x86_64
lockdev-1.0.1-18.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
bash-4.1.2-3.el6.x86_64
libcanberra-0.22-1.el6.x86_64
dbus-c++-0.5.0-0.10.20090203git13281b3.1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
popt-1.13-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
abrt-1.1.13-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
libopenraw-0.0.5-4.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
unique-1.1.4-2.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
readline-6.0-3.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
libchewing-0.3.2-27.el6.x86_64
atk-1.28.0-2.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
scrub-2.2-1.el6.x86_64
sed-4.2.1-5.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
pax-3.4-10.1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
obex-data-server-0.4.3-4.el6.x86_64
gsm-1.0.13-4.el6.x86_64
libnl-1.1-12.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
grep-2.6.3-2.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
glibmm24-2.22.1-1.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
file-libs-5.04-5.el6.x86_64
pygtksourceview-2.8.0-1.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXau-1.0.5-1.el6.x86_64
geoclue-0.11.1.1-0.13.20091026git73b6729.el6.x86_64
report-0.18-7.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
libopenraw-gnome-0.0.5-4.1.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
python-gudev-147.1-4.el6.x86_64
apr-1.3.9-3.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
wpa_supplicant-0.6.8-10.el6.x86_64
libtasn1-2.3-3.el6.x86_64
evince-libs-2.28.2-14.el6.x86_64
cracklib-python-2.8.16-2.el6.x86_64
file-5.04-5.el6.x86_64
libXres-1.0.4-1.el6.x86_64
python-markupsafe-0.9.2-4.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
notify-python-0.1.1-10.el6.x86_64
gdb-7.1-29.el6.x86_64
libatasmart-0.17-3.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
libaio-0.3.107-10.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
xdg-user-dirs-0.12-4.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
redhat-menus-14.0.0-3.el6.noarch
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
udev-147-2.29.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
kbd-1.15-11.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
vte-0.25.1-5.el6.x86_64
yum-3.2.27-14.el6.noarch
libsndfile-1.0.20-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
perl-URI-1.40-2.el6.noarch
libsmbclient-3.5.4-68.el6.x86_64
udisks-1.0.1-2.el6.x86_64
icedax-1.1.9-11.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
libplist-1.2-1.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libgpod-0.7.2-6.el6.x86_64
m17n-db-bengali-1.5.5-1.1.el6.noarch
openobex-1.4-7.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
m17n-db-assamese-1.5.5-1.1.el6.noarch
libcurl-7.19.7-16.el6.x86_64
crontabs-1.10-32.1.el6.noarch
m17n-db-kannada-1.5.5-1.1.el6.noarch
mailx-12.4-6.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
m17n-db-hindi-1.5.5-1.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
ebtables-2.0.9-5.el6.x86_64
m17n-db-malayalam-1.5.5-1.1.el6.noarch
boost-system-1.41.0-11.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
m17n-db-sinhala-1.5.5-1.1.el6.noarch
libnih-1.0.1-6.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
dosfstools-3.0.9-3.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
report-newt-0.18-7.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
anthy-9100h-10.1.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
control-center-2.28.1-25.el6.x86_64
libmusicbrainz3-3.0.2-7.el6.x86_64
xorg-x11-font-utils-7.2-10.el6.x86_64
ibus-1.3.4-3.el6.x86_64
ghostscript-fonts-5.50-23.1.el6.noarch
libimobiledevice-0.9.7-4.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
perl-CPANPLUS-0.88-115.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
gnome-session-xsession-2.28.0-15.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
at-3.1.10-42.el6.x86_64
yelp-2.28.1-8.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
wodim-1.1.9-11.el6.x86_64
lklug-fonts-0.6-4.20090803cvs.el6.noarch
lohit-kannada-fonts-2.4.5-2.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
liberation-mono-fonts-1.05.1.20090721-4.el6.noarch
mobile-broadband-provider-info-1.20100122-1.el6.noarch
sil-padauk-fonts-2.6.1-1.el6.noarch
rhythmbox-0.12.8-1.el6.x86_64
lohit-telugu-fonts-2.4.5-4.el6.noarch
ibus-pinyin-1.3.8-1.el6.x86_64
scenery-backgrounds-6.0.0-1.el6.noarch
ibus-rawcode-1.3.0.20100421-2.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
nautilus-sendto-2.28.2-3.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
brasero-nautilus-2.28.3-6.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
gvfs-smb-1.4.3-9.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
gthumb-2.10.11-8.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
gnome-terminal-2.31.3-4.el6.x86_64
words-3.0-17.el6.noarch
samba-client-3.5.4-68.el6.x86_64
libgcc-4.4.4-13.el6.i686
gedit-2.28.4-3.el6.x86_64
tigervnc-1.0.90-0.10.20100115svn3945.el6.x86_64
sound-juicer-2.28.1-6.el6.x86_64
libobjc-4.4.4-13.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
sinjdoc-0.5-9.1.el6.x86_64
readahead-1.5.6-1.el6.x86_64
libgcj-devel-4.4.4-13.el6.x86_64
openswan-2.6.24-8.el6.x86_64
gcc-objc-4.4.4-13.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
gtk2-immodule-xim-2.18.9-4.el6.x86_64
abrt-cli-1.1.13-4.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
wget-1.12-1.4.el6.x86_64
tcsh-6.17-8.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
nano-2.0.9-7.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
rfkill-0.3-4.el6.x86_64
latrace-0.5.9-2.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
dracut-kernel-004-32.el6.noarch
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
pulseaudio-module-bluetooth-0.9.21-13.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
totem-2.28.6-2.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
glx-utils-7.7-2.el6.x86_64
ibus-qt-1.3.0-2.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
libguestfs-1.2.7-1.24.el6.x86_64
orca-2.28.2-1.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
plymouth-system-theme-0.8.3-17.el6.noarch
un-core-dotum-fonts-1.0.2-0.15.080608.el6.noarch
perl-XML-Grove-0.46alpha-40.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
iotop-0.3.2-3.el6.noarch
perl-XML-Dumper-0.81-6.el6.noarch
dejavu-serif-fonts-2.30-2.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
perl-Time-HiRes-1.9721-115.el6.x86_64
vlgothic-fonts-common-20091202-2.el6.noarch
setup-2.8.14-10.el6.noarch
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
mozilla-filesystem-1.9-5.1.el6.x86_64
iso-codes-3.16-2.el6.noarch
btrfs-progs-0.19-11.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
control-center-filesystem-2.28.1-25.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libX11-1.3-2.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
libgphoto2-2.4.7-4.el6.x86_64
libXi-1.3-3.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
info-4.13a-8.el6.x86_64
db4-utils-4.7.25-16.el6.x86_64
libXv-1.0.5-1.el6.x86_64
libpng-1.2.44-1.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
cairomm-1.8.0-2.1.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
ed-1.1-3.3.el6.x86_64
pango-1.28.1-3.el6.x86_64
db4-4.7.25-16.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
kpathsea-2007-56.el6.x86_64
at-spi-1.28.1-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gamin-0.1.10-9.el6.x86_64
libhangul-0.0.10-1.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
desktop-file-utils-0.15-9.el6.x86_64
libevent-1.4.13-1.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
dbus-1.2.24-3.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libsigc++20-2.2.4.2-1.el6.x86_64
libmpcdec-1.2.6-6.1.el6.x86_64
imsettings-libs-0.108.0-3.4.el6.x86_64
pcre-7.8-3.1.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
xorg-x11-xkb-utils-7.4-6.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
libidn-1.18-2.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
iok-1.3.10-2.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
gstreamer-python-0.10.16-1.1.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
gtkspell-2.0.16-1.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
gettext-0.17-16.el6.x86_64
libspectre-0.2.4-1.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
tar-1.23-3.el6.x86_64
python-crypto-2.0.1-22.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-python2-gnomekeyring-2.28.0-4.el6.x86_64
yajl-1.0.7-3.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
perl-version-0.77-115.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
report-gtk-0.18-7.el6.x86_64
numactl-2.0.3-9.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
perl-DBI-1.609-4.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
openssh-5.3p1-20.el6.x86_64
gzip-1.3.12-18.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
pam-1.1.1-4.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
dnsmasq-2.48-4.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
libvirt-python-0.8.1-27.el6.x86_64
qt-4.6.2-16.el6.x86_64
gconfmm26-2.28.0-1.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
libao-0.8.8-7.1.el6.x86_64
gucharmap-2.28.2-2.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
DeviceKit-power-014-1.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
m17n-contrib-bengali-1.1.10-3.el6.noarch
setuptool-1.19.9-3.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
m17n-contrib-assamese-1.1.10-3.el6.noarch
rsyslog-4.6.2-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
m17n-contrib-kannada-1.1.10-3.el6.noarch
dhclient-4.1.1-12.P1.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
m17n-contrib-hindi-1.1.10-3.el6.noarch
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
enchant-1.5.0-4.el6.x86_64
m17n-contrib-malayalam-1.1.10-3.el6.noarch
avahi-glib-0.6.25-8.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
m17n-contrib-sinhala-1.1.10-3.el6.noarch
gnome-panel-libs-2.30.2-5.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
pyxdg-0.18-1.el6.noarch
avahi-ui-0.6.25-8.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
pytz-2010h-2.el6.noarch
gnome-python2-libegg-2.25.3-20.el6.x86_64
openjpeg-libs-1.3-7.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
libgail-gnome-1.20.1-4.1.el6.x86_64
cdparanoia-10.2-5.1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
ibus-gtk-1.3.4-3.el6.x86_64
obexd-0.19-2.el6.x86_64
urw-fonts-2.4-10.el6.noarch
ntpdate-4.2.4p8-2.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
yum-rhn-plugin-0.9.1-5.el6.noarch
cyrus-sasl-md5-2.1.23-8.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
ibus-table-1.2.0.20100111-4.el6.noarch
httpd-tools-2.2.15-5.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
gnome-user-docs-2.28.0-4.el6.noarch
rpcbind-0.2.0-8.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
system-config-users-1.2.104-1.el6.noarch
lohit-bengali-fonts-2.4.3-5.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
abyssinica-fonts-1.0-5.1.el6.noarch
firstboot-1.110.8-1.el6.x86_64
tibetan-machine-uni-fonts-1.901-5.el6.noarch
NetworkManager-0.8.1-5.el6.x86_64
paktype-naqsh-fonts-2.0-8.el6.noarch
gnome-applets-2.28.0-7.el6.x86_64
stix-fonts-0.9-13.1.el6.noarch
ibus-m17n-1.3.0-1.el6.x86_64
m17n-db-thai-1.5.5-1.1.el6.noarch
ibus-anthy-1.2.1-1.el6.x86_64
redhat-lsb-printing-4.0-2.1.el6.x86_64
gnome-user-share-2.28.2-3.el6.x86_64
rootfiles-8.1-6.1.el6.noarch
gnome-screensaver-2.28.3-8.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
gvfs-archive-1.4.3-9.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
gnome-power-manager-2.28.3-3.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
gnome-vfs2-smb-2.24.2-6.el6.x86_64
man-pages-3.22-12.el6.noarch
libvirt-0.8.1-27.el6.x86_64
glibc-2.12-1.7.el6.i686
gok-2.28.1-5.el6.x86_64
tigervnc-server-1.0.90-0.10.20100115svn3945.el6.x86_64
virt-viewer-0.2.1-2.el6.x86_64
cpp-4.4.4-13.el6.x86_64
quota-3.17-10.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
prelink-0.4.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
evince-dvi-2.28.2-14.el6.x86_64
gcc-objc++-4.4.4-13.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
audit-2.0.4-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
irqbalance-0.55-27.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
setserial-2.17-25.el6.x86_64
rdate-1.4-16.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
libdrm-2.4.20-2.el6.x86_64
kernel-2.6.32-71.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
bluez-4.66-1.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
compiz-0.8.2-24.el6.x86_64
totem-nautilus-2.28.6-2.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
cjkuni-uming-fonts-0.2.20080216.1-34.el6.noarch
ibus-table-additional-1.2.0.20100111-4.el6.noarch
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
b43-openfwwf-5.2-4.el6.noarch
seekwatcher-0.12-4.1.el6.noarch
thai-scalable-waree-fonts-0.4.12-2.1.el6.noarch
perl-XML-Twig-3.34-1.el6.noarch
m17n-contrib-maithili-1.1.10-3.el6.noarch
dstat-0.7.0-1.el6.noarch
perf-2.6.32-71.el6.noarch
lohit-assamese-fonts-2.4.3-4.el6.noarch
un-core-fonts-common-1.0.2-0.15.080608.el6.noarch
ca-certificates-2010.63-3.el6.noarch
python-meh-0.9-1.el6.noarch
mod_dnssd-0.6-2.el6.x86_64
kurdit-unikurd-web-fonts-20020502-6.el6.noarch
comps-extras-17.8-1.el6.noarch
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
kernel-firmware-2.6.32-71.el6.noarch
acl-2.2.49-4.el6.x86_64
lohit-tamil-fonts-2.4.5-3.el6.noarch
cairo-1.8.8-3.1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
ibus-chewing-1.3.5.20100714-1.el6.x86_64
rtkit-0.5-1.el6.x86_64
redhat-lsb-graphics-4.0-2.1.el6.x86_64
ibus-libs-1.3.4-3.el6.x86_64
libICE-1.0.6-1.el6.x86_64
nautilus-open-terminal-0.17-3.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
dbus-x11-1.2.24-3.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
gvfs-afc-1.4.3-9.el6.x86_64
time-1.7-37.1.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
gnome-keyring-2.28.2-6.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
vino-2.28.1-3.el6.x86_64
libtar-1.2.11-16.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
librsvg2-2.26.0-5.el6.x86_64
libusb-0.1.12-23.el6.x86_64
gnome-system-monitor-2.28.0-7.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gtkmm24-2.18.2-1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
gtksourceview2-2.8.2-4.el6.x86_64
libacl-2.2.49-4.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
libgxim-0.3.3-3.1.el6.x86_64
which-2.19-5.1.el6.x86_64
xvattr-1.3-18.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
slang-2.2.1-1.el6.x86_64
gtk-vnc-python-0.3.10-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
pywebkitgtk-1.1.6-3.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
pinentry-gtk-0.7.6-5.el6.x86_64
psmisc-22.6-15.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
ghostscript-8.70-6.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
net-tools-1.60-102.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
m17n-contrib-1.1.10-3.el6.noarch
system-icon-theme-6.0.0-2.el6.noarch
perl-libs-5.10.1-115.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
kbd-misc-1.15-11.el6.noarch
libraw1394-2.0.4-1.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
iproute-2.6.32-10.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
coreutils-8.4-9.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
libvirt-client-0.8.1-27.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
nss-3.12.7-2.el6.x86_64
desktop-effects-0.8.4-7.el6.x86_64
m17n-db-oriya-1.5.5-1.1.el6.noarch
cronie-1.4.4-2.el6.x86_64
libss-1.41.12-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
m17n-db-tamil-1.5.5-1.1.el6.noarch
avahi-0.6.25-8.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
fakechroot-2.9-24.1.el6.x86_64
gnome-python2-bonobo-2.28.0-3.el6.x86_64
libical-0.43-5.1.el6.x86_64
rhn-setup-gnome-1.0.0-38.el6.noarch
python-beaker-1.3.1-6.el6.noarch
nautilus-2.28.4-15.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
libproxy-bin-0.3.0-2.el6.x86_64
im-chooser-1.3.1-2.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
smc-meera-fonts-04.2-11.el6.noarch
jline-0.9.94-0.8.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
m17n-contrib-marathi-1.1.10-3.el6.noarch
perl-HTML-Parser-3.64-2.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
jomolhari-fonts-0.003-8.1.el6.noarch
khmeros-fonts-common-5.0-9.el6.noarch
system-config-date-docs-1.0.9-1.el6.noarch
dejavu-sans-mono-fonts-2.30-2.el6.noarch
perl-Time-Piece-1.15-115.el6.x86_64
poppler-data-0.4.0-1.el6.noarch
tzdata-2010l-1.el6.noarch
cjkuni-fonts-common-0.2.20080216.1-34.el6.noarch
lohit-devanagari-fonts-2.4.3-6.el6.noarch
gstreamer-0.10.29-1.el6.x86_64
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
paktype-fonts-common-2.0-8.el6.noarch
ibus-sayura-1.2.99.20100209-3.el6.x86_64
madan-fonts-2.000-3.el6.noarch
polkit-0.96-2.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
evince-2.28.2-14.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
patch-2.6-6.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
cheese-2.28.1-7.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
man-1.6f-29.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
gnome-utils-2.28.1-10.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
libudev-147-2.29.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
ethtool-2.6.33-0.3.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
ppl-0.10.2-11.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
brasero-2.28.3-6.el6.x86_64
libgudev1-147-2.29.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
libisofs-0.6.32-1.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
latencytop-0.5-3.el6.x86_64
screen-4.0.3-15.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
lzop-1.02-0.9.rc1.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
shared-mime-info-0.70-4.el6.x86_64
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
attr-2.4.44-4.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
cpio-2.10-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
gnome-python2-libwnck-2.28.0-4.el6.x86_64
exempi-2.1.0-5.el6.x86_64
compat-libcap1-1.10-1.x86_64
pakchois-0.4-3.2.el6.x86_64
gnome-python2-desktop-2.28.0-4.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
perl-Pod-Simple-3.13-115.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
iputils-20071127-13.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
less-436-4.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
openssl-1.0.0-4.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
libuser-0.56.13-4.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
vorbis-tools-1.2.0-7.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
hal-info-20090716-3.1.el6.noarch
checkpolicy-2.0.22-1.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
m17n-contrib-punjabi-1.1.10-3.el6.noarch
wireless-tools-29-5.1.1.el6.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
m17n-contrib-telugu-1.1.10-3.el6.noarch
httpd-2.2.15-5.el6.x86_64
m4-1.4.13-5.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
m17n-contrib-gujarati-1.1.10-3.el6.noarch
libgnome-2.28.0-11.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
virt-manager-0.8.4-8.el6.noarch
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
gnome-desktop-2.28.2-8.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
python-slip-dbus-0.2.11-1.el6.noarch
abrt-gui-1.1.13-4.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
vlgothic-fonts-20091202-2.el6.noarch
numpy-1.3.0-6.2.el6.x86_64
libpanelappletmm-2.26.0-3.el6.x86_64
ppp-2.4.5-5.el6.x86_64
cas-0.15-1.el6.1.noarch
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
rhnsd-4.9.3-2.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
system-config-services-0.99.45-1.el6.3.noarch
elfutils-0.148-1.el6.x86_64
                                                                                                                                   Physical_Configuration/Clients/tb3-client02/ifconfig.txt                                            0000644 0000000 0000000 00000021234 11524347576 022273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   br0       Link encap:Ethernet  HWaddr E4:1F:13:32:51:0C  
          inet addr:10.1.216.12  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::e61f:13ff:fe32:510c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:79984 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4953 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5846892 (5.5 MiB)  TX bytes:1949260 (1.8 MiB)

br1       Link encap:Ethernet  HWaddr AA:34:1C:B6:C6:0E  
          inet addr:10.1.2.1  Bcast:10.1.2.1  Mask:255.255.255.255
          inet6 addr: fe80::e61f:13ff:fe32:510e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:77325 errors:0 dropped:0 overruns:0 frame:0
          TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5213848 (4.9 MiB)  TX bytes:6987 (6.8 KiB)

br2       Link encap:Ethernet  HWaddr 00:15:17:D1:2F:4E  
          inet addr:10.1.2.2  Bcast:10.1.2.2  Mask:255.255.255.255
          inet6 addr: fe80::215:17ff:fed1:2f4e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:77321 errors:0 dropped:0 overruns:0 frame:0
          TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5214327 (4.9 MiB)  TX bytes:7033 (6.8 KiB)

br3       Link encap:Ethernet  HWaddr 00:15:17:D1:2F:4F  
          inet addr:10.1.2.3  Bcast:10.1.2.3  Mask:255.255.255.255
          inet6 addr: fe80::215:17ff:fed1:2f4f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:77317 errors:0 dropped:0 overruns:0 frame:0
          TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5212923 (4.9 MiB)  TX bytes:6941 (6.7 KiB)

br4       Link encap:Ethernet  HWaddr 00:15:17:D1:4F:B2  
          inet addr:10.1.2.4  Bcast:10.1.2.4  Mask:255.255.255.255
          inet6 addr: fe80::215:17ff:fed1:4fb2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:77312 errors:0 dropped:0 overruns:0 frame:0
          TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5213237 (4.9 MiB)  TX bytes:7105 (6.9 KiB)

br5       Link encap:Ethernet  HWaddr 00:15:17:D1:4F:B3  
          inet addr:10.1.2.5  Bcast:10.1.2.5  Mask:255.255.255.255
          inet6 addr: fe80::215:17ff:fed1:4fb3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:77308 errors:0 dropped:0 overruns:0 frame:0
          TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5212357 (4.9 MiB)  TX bytes:7181 (7.0 KiB)

eth0      Link encap:Ethernet  HWaddr E4:1F:13:32:51:0C  
          inet6 addr: fe80::e61f:13ff:fe32:510c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:79942 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5631 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7276272 (6.9 MiB)  TX bytes:2009265 (1.9 MiB)
          Interrupt:28 Memory:92000000-92012800 

eth1      Link encap:Ethernet  HWaddr E4:1F:13:32:51:0E  
          inet6 addr: fe80::e61f:13ff:fe32:510e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:513457204 errors:0 dropped:0 overruns:0 frame:0
          TX packets:161129481 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:731855316521 (681.5 GiB)  TX bytes:16840698354 (15.6 GiB)
          Interrupt:40 Memory:94000000-94012800 

eth2      Link encap:Ethernet  HWaddr 00:15:17:D1:2F:4E  
          inet6 addr: fe80::215:17ff:fed1:2f4e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:513323728 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160878298 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:730681386375 (680.5 GiB)  TX bytes:16183376413 (15.0 GiB)
          Memory:97b60000-97b80000 

eth3      Link encap:Ethernet  HWaddr 00:15:17:D1:2F:4F  
          inet6 addr: fe80::215:17ff:fed1:2f4f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512257169 errors:0 dropped:0 overruns:0 frame:0
          TX packets:162446722 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:728008640267 (678.0 GiB)  TX bytes:16269268460 (15.1 GiB)
          Memory:97b20000-97b40000 

eth4      Link encap:Ethernet  HWaddr 00:15:17:D1:4F:B2  
          inet6 addr: fe80::215:17ff:fed1:4fb2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512870332 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160596317 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:730104738999 (679.9 GiB)  TX bytes:16154549476 (15.0 GiB)
          Memory:97a60000-97a80000 

eth5      Link encap:Ethernet  HWaddr 00:15:17:D1:4F:B3  
          inet6 addr: fe80::215:17ff:fed1:4fb3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512769808 errors:0 dropped:0 overruns:0 frame:0
          TX packets:159585722 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:728780634698 (678.7 GiB)  TX bytes:16078413279 (14.9 GiB)
          Memory:97a20000-97a40000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:65 errors:0 dropped:0 overruns:0 frame:0
          TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:6220 (6.0 KiB)  TX bytes:6220 (6.0 KiB)

usb0      Link encap:Ethernet  HWaddr E6:1F:13:2B:A1:0F  
          inet addr:169.254.95.120  Bcast:169.254.95.255  Mask:255.255.255.0
          inet6 addr: fe80::e41f:13ff:fe2b:a10f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15416 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7817 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1040326 (1015.9 KiB)  TX bytes:376185 (367.3 KiB)

vct01     Link encap:Ethernet  HWaddr AA:34:1C:B6:C6:0E  
          inet6 addr: fe80::a834:1cff:feb6:c60e/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:161129408 errors:0 dropped:0 overruns:0 frame:0
          TX packets:513456012 errors:0 dropped:0 overruns:11998 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:16196157507 (15.0 GiB)  TX bytes:729801389590 (679.6 GiB)

vct02     Link encap:Ethernet  HWaddr 66:AE:ED:EB:0D:F3  
          inet6 addr: fe80::64ae:edff:feeb:df3/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:160878224 errors:0 dropped:0 overruns:0 frame:0
          TX packets:513322530 errors:0 dropped:0 overruns:8208 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:16183368778 (15.0 GiB)  TX bytes:730681287489 (680.4 GiB)

vct03     Link encap:Ethernet  HWaddr E6:6D:4F:C9:01:BD  
          inet6 addr: fe80::e46d:4fff:fec9:1bd/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:162446649 errors:0 dropped:0 overruns:0 frame:0
          TX packets:512255962 errors:0 dropped:0 overruns:14953 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:16269260871 (15.1 GiB)  TX bytes:728008540129 (678.0 GiB)

vct04     Link encap:Ethernet  HWaddr 36:DF:0C:CF:9E:1E  
          inet6 addr: fe80::34df:cff:fecf:9e1e/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:160596241 errors:0 dropped:0 overruns:0 frame:0
          TX packets:512869121 errors:0 dropped:0 overruns:10438 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:16154541723 (15.0 GiB)  TX bytes:730104638444 (679.9 GiB)

vct05     Link encap:Ethernet  HWaddr 7E:BC:8C:76:E8:0E  
          inet6 addr: fe80::7cbc:8cff:fe76:e80e/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:159585646 errors:0 dropped:0 overruns:0 frame:0
          TX packets:512768585 errors:0 dropped:0 overruns:9861 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:16078405496 (14.9 GiB)  TX bytes:728780533269 (678.7 GiB)

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client02/chkconfig.txt                                           0000644 0000000 0000000 00000006242 11524347556 022442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:on	4:on	5:on	6:off
abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:off	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:on	4:on	5:on	6:off
bluetooth      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
cgconfig       	0:off	1:off	2:on	3:on	4:on	5:on	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ebtables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirtd       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sysstat        	0:off	1:on	2:on	3:on	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
vncserver      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/                                                        0000777 0000000 0000000 00000000000 11524350220 017726  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/proc/                                                   0000777 0000000 0000000 00000000000 11524350114 020673  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/proc/cpuinfo                                            0000644 0000000 0000000 00000031266 11524350114 022265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 0
cpu cores	: 4
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4533.85
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 1
cpu cores	: 4
apicid		: 2
initial apicid	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.64
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 2
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 2
cpu cores	: 4
apicid		: 4
initial apicid	: 4
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.64
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 6
initial apicid	: 6
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.64
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 4
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 0
cpu cores	: 4
apicid		: 16
initial apicid	: 16
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 5
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 1
cpu cores	: 4
apicid		: 18
initial apicid	: 18
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 6
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 2
cpu cores	: 4
apicid		: 20
initial apicid	: 20
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.67
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 7
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 22
initial apicid	: 22
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 8
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 0
cpu cores	: 4
apicid		: 1
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.69
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 9
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 1
cpu cores	: 4
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.67
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 10
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 2
cpu cores	: 4
apicid		: 5
initial apicid	: 5
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.67
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 11
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 7
initial apicid	: 7
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 12
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 0
cpu cores	: 4
apicid		: 17
initial apicid	: 17
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.69
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 13
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 1
cpu cores	: 4
apicid		: 19
initial apicid	: 19
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.67
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 14
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 2
cpu cores	: 4
apicid		: 21
initial apicid	: 21
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 15
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 23
initial apicid	: 23
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.67
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/proc/swaps                                              0000644 0000000 0000000 00000000144 11524350114 021746  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/dm-1                               partition	4194296	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/proc/devices                                            0000644 0000000 0000000 00000000721 11524350114 022234  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  8 sd
  9 md
 11 sr
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
253 device-mapper
254 mdp
                                               Physical_Configuration/Clients/tb3-client04/proc/modules                                            0000644 0000000 0000000 00000006237 11524350114 022272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   tun 16825 8 - Live 0xffffffffa0228000
ip6table_filter 2855 0 - Live 0xffffffffa019a000
ip6_tables 19392 1 ip6table_filter, Live 0xffffffffa0214000
fuse 66138 2 - Live 0xffffffffa026b000
ebtable_nat 1975 0 - Live 0xffffffffa0082000
ebtables 18101 1 ebtable_nat, Live 0xffffffffa0205000
xt_CHECKSUM 1269 1 - Live 0xffffffffa0197000
iptable_mangle 3283 1 - Live 0xffffffffa00cb000
ipt_MASQUERADE 2400 3 - Live 0xffffffffa007f000
iptable_nat 6124 1 - Live 0xffffffffa0068000
nf_nat 22788 2 ipt_MASQUERADE,iptable_nat, Live 0xffffffffa03ee000
nf_conntrack_ipv4 9440 4 iptable_nat,nf_nat, Live 0xffffffffa03e5000
nf_defrag_ipv4 1449 1 nf_conntrack_ipv4, Live 0xffffffffa03df000
xt_state 1458 1 - Live 0xffffffffa03d9000
nf_conntrack 79643 5 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4,xt_state, Live 0xffffffffa03b8000
ipt_REJECT 2349 2 - Live 0xffffffffa03b2000
iptable_filter 2759 1 - Live 0xffffffffa03ac000
ip_tables 17733 3 iptable_mangle,iptable_nat,iptable_filter, Live 0xffffffffa03a1000
autofs4 27683 3 - Live 0xffffffffa0394000
sunrpc 241630 1 - Live 0xffffffffa0341000
cpufreq_ondemand 10382 16 - Live 0xffffffffa0338000
acpi_cpufreq 8593 0 - Live 0xffffffffa032f000
freq_table 4847 2 cpufreq_ondemand,acpi_cpufreq, Live 0xffffffffa0328000
bridge 74113 0 - Live 0xffffffffa0303000
stp 2107 1 bridge, Live 0xffffffffa02fd000
llc 5608 2 bridge,stp, Live 0xffffffffa02f5000
ipv6 321209 54 - Live 0xffffffffa0290000
vfat 10646 1 - Live 0xffffffffa0266000
fat 55086 1 vfat, Live 0xffffffffa0250000
dm_mirror 14003 0 - Live 0xffffffffa0246000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa023d000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0234000
kvm_intel 45674 16 - Live 0xffffffffa021a000
kvm 291811 1 kvm_intel, Live 0xffffffffa01bb000
uinput 8182 0 - Live 0xffffffffa01b4000
sg 30186 0 - Live 0xffffffffa01a5000
cdc_ether 8332 0 - Live 0xffffffffa019c000
usbnet 19001 1 cdc_ether, Live 0xffffffffa0151000
mii 5205 1 usbnet, Live 0xffffffffa0136000
serio_raw 4816 0 - Live 0xffffffffa00c4000
i2c_i801 11190 0 - Live 0xffffffffa0020000
i2c_core 31274 1 i2c_i801, Live 0xffffffffa018d000
iTCO_wdt 11708 0 - Live 0xffffffffa0090000
iTCO_vendor_support 3022 1 iTCO_wdt, Live 0xffffffffa0065000
shpchp 33448 0 - Live 0xffffffffa009b000
ioatdma 57872 152 - Live 0xffffffffa017c000
dca 7099 1 ioatdma, Live 0xffffffffa0051000
i7core_edac 17543 0 - Live 0xffffffffa00bd000
edac_core 46055 4 i7core_edac, Live 0xffffffffa0128000
e1000e 140051 0 - Live 0xffffffffa0157000
bnx2 75826 0 - Live 0xffffffffa013c000
ext4 353979 2 - Live 0xffffffffa00cf000
mbcache 7918 1 ext4, Live 0xffffffffa00c7000
jbd2 89033 1 ext4, Live 0xffffffffa00a5000
sr_mod 16162 0 - Live 0xffffffffa0095000
cdrom 39769 1 sr_mod, Live 0xffffffffa0084000
sd_mod 37221 4 - Live 0xffffffffa0073000
crc_t10dif 1507 1 sd_mod, Live 0xffffffffa006d000
ata_generic 3611 0 - Live 0xffffffffa0054000
pata_acpi 3667 0 - Live 0xffffffffa0024000
ata_piix 22588 0 - Live 0xffffffffa003f000
mptsas 51510 3 - Live 0xffffffffa0056000
mptscsih 35302 1 mptsas, Live 0xffffffffa0046000
mptbase 91106 2 mptsas,mptscsih, Live 0xffffffffa0026000
scsi_transport_sas 35036 1 mptsas, Live 0xffffffffa0015000
dm_mod 76856 8 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/proc/partitions                                         0000644 0000000 0000000 00000000317 11524350114 023007  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

   8        0  140623872 sda
   8        1     204800 sda1
   8        2     512000 sda2
   8        3  139905024 sda3
 253        0  135708672 dm-0
 253        1    4194304 dm-1
                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/proc/meminfo                                            0000644 0000000 0000000 00000002222 11524350114 022242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:       33003228 kB
MemFree:        12886052 kB
Buffers:           73864 kB
Cached:          4005788 kB
SwapCached:            0 kB
Active:         16970788 kB
Inactive:        2111668 kB
Active(anon):   14999756 kB
Inactive(anon):     6588 kB
Active(file):    1971032 kB
Inactive(file):  2105080 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       4194296 kB
SwapFree:        4194296 kB
Dirty:                32 kB
Writeback:             0 kB
AnonPages:      15002804 kB
Mapped:            52912 kB
Shmem:              3544 kB
Slab:             714288 kB
SReclaimable:     113356 kB
SUnreclaim:       600932 kB
KernelStack:        3928 kB
PageTables:        60732 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    20695908 kB
Committed_AS:   15791968 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      371632 kB
VmallocChunk:   34340908364 kB
HardwareCorrupted:     0 kB
AnonHugePages:  14833664 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8192 kB
DirectMap2M:    33538048 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/vgdisplay.txt                                           0000644 0000000 0000000 00000001172 11524350220 022466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                     --- Volume group ---
  VG Name               vg_tb3client04
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               133.42 GiB
  PE Size               4.00 MiB
  Total PE              34156
  Alloc PE / Size       34156 / 133.42 GiB
  Free  PE / Size       0 / 0   
  VG UUID               j6zw3I-NAdH-HgZH-AlyB-Ozjm-FwT1-qntZtW
   
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile11/                                                 0000777 0000000 0000000 00000000000 11524350134 021031  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/proc/                                            0000777 0000000 0000000 00000000000 11524350134 021774  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/proc/cpuinfo                                     0000644 0000000 0000000 00000002012 11524350134 023351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.928
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.85
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.928
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.85
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile11/proc/swaps                                       0000644 0000000 0000000 00000000150 11524350134 023044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	63624	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile11/proc/devices                                     0000644 0000000 0000000 00000000567 11524350134 023345  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile11/proc/modules                                     0000644 0000000 0000000 00000002547 11524350134 023373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa0259000
stp 2107 1 bridge, Live 0xffffffffa0253000
llc 5608 2 bridge,stp, Live 0xffffffffa024b000
autofs4 27683 3 - Live 0xffffffffa023e000
sunrpc 241630 1 - Live 0xffffffffa01eb000
ipv6 321209 582 - Live 0xffffffffa0156000
dm_mirror 14003 0 - Live 0xffffffffa012a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0121000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0118000
ppdev 8695 0 - Live 0xffffffffa010a000
parport_pc 22944 0 - Live 0xffffffffa00fd000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa00eb000
sg 30186 0 - Live 0xffffffffa00dc000
virtio_net 15665 0 - Live 0xffffffffa00d2000
i2c_piix4 12574 0 - Live 0xffffffffa00c9000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00b9000
ext3 133830 1 - Live 0xffffffffa008d000
jbd 54576 1 ext3, Live 0xffffffffa0076000
mbcache 7918 1 ext3, Live 0xffffffffa006e000
virtio_blk 5087 3 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
ata_generic 3611 0 - Live 0xffffffffa0030000
pata_acpi 3667 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile11/proc/partitions                                  0000644 0000000 0000000 00000000165 11524350134 024111  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile11/proc/meminfo                                     0000644 0000000 0000000 00000002222 11524350134 023343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        3605932 kB
MemFree:         3331708 kB
Buffers:            5428 kB
Cached:            27724 kB
SwapCached:         5516 kB
Active:            96896 kB
Inactive:          31496 kB
Active(anon):      81020 kB
Inactive(anon):    14216 kB
Active(file):      15876 kB
Inactive(file):    17280 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        1984364 kB
Dirty:               344 kB
Writeback:             8 kB
AnonPages:         91480 kB
Mapped:             7624 kB
Shmem:                 0 kB
Slab:             117416 kB
SReclaimable:      35828 kB
SUnreclaim:        81588 kB
KernelStack:        1632 kB
PageTables:         3360 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3850956 kB
Committed_AS:     768184 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19136 kB
VmallocChunk:   34359715008 kB
HardwareCorrupted:     0 kB
AnonHugePages:     51200 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     3661824 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile11/lspci.txt                                        0000644 0000000 0000000 00000000744 11524350133 022704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
                            Physical_Configuration/Clients/tb3-client04/tile11/df.txt                                           0000644 0000000 0000000 00000000276 11524350115 022163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8183648   4597288  65% /
tmpfs                  1802964         0   1802964   0% /dev/shm
                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/tile11/mount.txt                                        0000644 0000000 0000000 00000000434 11524350133 022730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile11/etc/                                             0000777 0000000 0000000 00000000000 11524350133 021603  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/                                        0000777 0000000 0000000 00000000000 11524350125 022432  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/                                  0000777 0000000 0000000 00000000000 11524350133 023342  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K02libvirt-guests                 0000755 0000000 0000000 00000017172 11524350125 026535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K02oddjobd                        0000755 0000000 0000000 00000004325 11524350125 025153  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K69rpcsvcgssd                     0000755 0000000 0000000 00000006014 11524350127 025743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K95cgconfig                       0000755 0000000 0000000 00000012327 11524350130 025336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S55sshd                           0000755 0000000 0000000 00000010671 11524350133 024527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K80fcoe                           0000755 0000000 0000000 00000005775 11524350127 024504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K15httpd                          0000755 0000000 0000000 00000006364 11524350126 024703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K92ip6tables                      0000755 0000000 0000000 00000020716 11524350130 025446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K80sssd                           0000755 0000000 0000000 00000004731 11524350127 024533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S58ntpd                           0000755 0000000 0000000 00000003603 11524350133 024533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K02avahi-daemon                   0000755 0000000 0000000 00000004754 11524350125 026105  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K89rdisc                          0000755 0000000 0000000 00000003027 11524350130 024663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K76ipsec                          0000755 0000000 0000000 00000010777 11524350127 024676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S22messagebus                     0000755 0000000 0000000 00000004230 11524350132 025707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K95firstboot                      0000755 0000000 0000000 00000005341 11524350131 025571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K86cgred                          0000755 0000000 0000000 00000006302 11524350130 024637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S13rpcbind                        0000755 0000000 0000000 00000004031 11524350131 025170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S13irqbalance                     0000755 0000000 0000000 00000003521 11524350131 025653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K84NetworkManager                 0000755 0000000 0000000 00000004235 11524350127 026506  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K99sysstat                        0000755 0000000 0000000 00000002363 11524350131 025275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K50dnsmasq                        0000755 0000000 0000000 00000002577 11524350126 025227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K01certmonger                     0000755 0000000 0000000 00000004054 11524350125 025711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K85mdmonitor                      0000755 0000000 0000000 00000005013 11524350127 025566  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K36mysqld                         0000755 0000000 0000000 00000012460 11524350126 025066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K80lldpad                         0000755 0000000 0000000 00000014323 11524350127 025015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K88nslcd                          0000755 0000000 0000000 00000003213 11524350130 024656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K75ntpdate                        0000755 0000000 0000000 00000003512 11524350127 025216  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K89iscsid                         0000755 0000000 0000000 00000007127 11524350130 025042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K73ypbind                         0000755 0000000 0000000 00000011277 11524350127 025051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S10network                        0000755 0000000 0000000 00000014466 11524350131 025252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S12rsyslog                        0000755 0000000 0000000 00000004326 11524350131 025257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S11auditd                         0000755 0000000 0000000 00000006462 11524350131 025031  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K84wpa_supplicant                 0000755 0000000 0000000 00000003512 11524350127 026610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S20kdump                          0000755 0000000 0000000 00000027662 11524350131 024704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K87multipathd                     0000755 0000000 0000000 00000004473 11524350130 025736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S26haldaemon                      0000755 0000000 0000000 00000003245 11524350132 025512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K60crond                          0000755 0000000 0000000 00000005445 11524350126 024664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K03rhnsd                          0000755 0000000 0000000 00000005522 11524350126 024666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K36postgresql                     0000755 0000000 0000000 00000012406 11524350126 025760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S00microcode_ctl                  0000755 0000000 0000000 00000002221 11524350131 026350  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K10saslauthd                      0000755 0000000 0000000 00000004010 11524350126 025525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K88iscsi                          0000755 0000000 0000000 00000007315 11524350130 024674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K60nfs                            0000755 0000000 0000000 00000013536 11524350127 024346  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S30nscd                           0000755 0000000 0000000 00000004723 11524350133 024507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S24rpcgssd                        0000755 0000000 0000000 00000006050 11524350132 025222  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K10psacct                         0000755 0000000 0000000 00000003024 11524350126 025016  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S26acpid                          0000755 0000000 0000000 00000003275 11524350132 024645  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S13cpuspeed                       0000755 0000000 0000000 00000025442 11524350131 025370  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S26udev-post                      0000755 0000000 0000000 00000004370 11524350132 025510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S99local                          0000755 0000000 0000000 00000000334 11524350133 024663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K50netconsole                     0000755 0000000 0000000 00000005650 11524350126 025725  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S24rpcidmapd                      0000755 0000000 0000000 00000005222 11524350132 025520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S02lvm2-monitor                   0000555 0000000 0000000 00000004612 11524350131 026115  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S28autofs                         0000755 0000000 0000000 00000007234 11524350132 025067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K01smartd                         0000755 0000000 0000000 00000005672 11524350125 025045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S55autobench                      0000755 0000000 0000000 00000005063 11524350133 025535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S25netfs                          0000755 0000000 0000000 00000012432 11524350132 024676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K30postfix                        0000755 0000000 0000000 00000007414 11524350126 025246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/S24nfslock                        0000755 0000000 0000000 00000006675 11524350132 025231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K92iptables                       0000755 0000000 0000000 00000020557 11524350130 025363  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K87restorecond                    0000755 0000000 0000000 00000003427 11524350130 026110  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/rc3.d/K05atd                            0000755 0000000 0000000 00000004112 11524350126 024314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/                                 0000777 0000000 0000000 00000000000 11524350125 023617  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/network                          0000755 0000000 0000000 00000014466 11524350122 025242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/sysstat                          0000755 0000000 0000000 00000002363 11524350124 025256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/saslauthd                        0000755 0000000 0000000 00000004010 11524350124 025523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/messagebus                       0000755 0000000 0000000 00000004230 11524350121 025672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/autobench                        0000755 0000000 0000000 00000005063 11524350117 025516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/atd                              0000755 0000000 0000000 00000004112 11524350116 024307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/mcelogd                          0000755 0000000 0000000 00000003535 11524350121 025155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/auditd                           0000755 0000000 0000000 00000006462 11524350116 025023  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/certmonger                       0000755 0000000 0000000 00000004054 11524350117 025712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/mysqld                           0000755 0000000 0000000 00000012460 11524350122 025052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/irqbalance                       0000755 0000000 0000000 00000003521 11524350120 025636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/acpid                            0000755 0000000 0000000 00000003275 11524350116 024630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/iscsid                           0000755 0000000 0000000 00000007127 11524350121 025022  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/nscd                             0000755 0000000 0000000 00000004723 11524350122 024473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/rpcidmapd                        0000755 0000000 0000000 00000005222 11524350124 025504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/nfs                              0000755 0000000 0000000 00000013536 11524350122 024334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/sssd                             0000755 0000000 0000000 00000004731 11524350124 024521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/crond                            0000755 0000000 0000000 00000005445 11524350117 024657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/ip6tables                        0000755 0000000 0000000 00000020716 11524350120 025433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/firstboot                        0000755 0000000 0000000 00000005341 11524350120 025552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/autofs                           0000755 0000000 0000000 00000007234 11524350117 025051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/sshd                             0000755 0000000 0000000 00000010671 11524350124 024506  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/libvirt-guests                   0000755 0000000 0000000 00000017172 11524350121 026530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/avahi-daemon                     0000755 0000000 0000000 00000004754 11524350117 026105  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/iscsi                            0000755 0000000 0000000 00000007315 11524350121 024655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/ypbind                           0000755 0000000 0000000 00000011277 11524350125 025036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/psacct                           0000755 0000000 0000000 00000003024 11524350123 025013  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/fcoe                             0000755 0000000 0000000 00000005775 11524350117 024474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/nfslock                          0000755 0000000 0000000 00000006675 11524350122 025213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/cgred                            0000755 0000000 0000000 00000006302 11524350117 024627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/udev-post                        0000755 0000000 0000000 00000004370 11524350125 025473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/haldaemon                        0000755 0000000 0000000 00000003245 11524350120 025470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/ipsec                            0000755 0000000 0000000 00000010777 11524350120 024653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/rpcbind                          0000755 0000000 0000000 00000004031 11524350123 025156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/rhnsd                            0000755 0000000 0000000 00000005522 11524350123 024661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/dnsmasq                          0000755 0000000 0000000 00000002577 11524350117 025223  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/functions                        0000644 0000000 0000000 00000042767 11524350120 025561  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/kdump                            0000755 0000000 0000000 00000027662 11524350121 024672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/lldpad                           0000755 0000000 0000000 00000014323 11524350121 025000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/postfix                          0000755 0000000 0000000 00000007414 11524350123 025241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/iptables                         0000755 0000000 0000000 00000020557 11524350120 025350  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/multipathd                       0000755 0000000 0000000 00000004473 11524350122 025721  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/rsyslog                          0000755 0000000 0000000 00000004326 11524350124 025247  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/NetworkManager                   0000755 0000000 0000000 00000004235 11524350116 026471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/netconsole                       0000755 0000000 0000000 00000005650 11524350122 025715  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/rpcgssd                          0000755 0000000 0000000 00000006050 11524350124 025206  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/lvm2-monitor                     0000555 0000000 0000000 00000004612 11524350121 026103  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/halt                             0000755 0000000 0000000 00000012723 11524350120 024471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/cgconfig                         0000755 0000000 0000000 00000012327 11524350117 025326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/single                           0000755 0000000 0000000 00000001207 11524350124 025021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/postgresql                       0000755 0000000 0000000 00000012406 11524350123 025745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/mdmonitor                        0000755 0000000 0000000 00000005013 11524350121 025544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/restorecond                      0000755 0000000 0000000 00000003427 11524350123 026074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/wpa_supplicant                   0000755 0000000 0000000 00000003512 11524350125 026573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/cpuspeed                         0000755 0000000 0000000 00000025442 11524350117 025361  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/netfs                            0000755 0000000 0000000 00000012432 11524350122 024657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/rpcsvcgssd                       0000755 0000000 0000000 00000006014 11524350124 025722  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/oddjobd                          0000755 0000000 0000000 00000004325 11524350123 025150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/sandbox                          0000755 0000000 0000000 00000003242 11524350124 025177  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/killall                          0000755 0000000 0000000 00000001214 11524350121 025157  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/rdisc                            0000755 0000000 0000000 00000003027 11524350123 024645  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/httpd                            0000755 0000000 0000000 00000006364 11524350120 024670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/ntpd                             0000755 0000000 0000000 00000003603 11524350123 024506  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/smartd                           0000755 0000000 0000000 00000005672 11524350124 025044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/nslcd                            0000755 0000000 0000000 00000003213 11524350122 024640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/ntpdate                          0000755 0000000 0000000 00000003512 11524350123 025177  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile11/etc/rc.d/init.d/microcode_ctl                    0000755 0000000 0000000 00000002221 11524350122 026341  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile11/etc/hosts                                        0000644 0000000 0000000 00000000052 11524350115 022657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1	localhost.localdomain	localhost
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile11/etc/iproute2/                                    0000777 0000000 0000000 00000000000 11524350116 023355  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/etc/iproute2/rt_dsfield                          0000644 0000000 0000000 00000000672 11524350115 025417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client04/tile11/etc/iproute2/rt_realms                           0000644 0000000 0000000 00000000160 11524350116 025261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/tile11/etc/iproute2/rt_scopes                           0000644 0000000 0000000 00000000134 11524350116 025273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile11/etc/iproute2/ematch_map                          0000644 0000000 0000000 00000000073 11524350115 025371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile11/etc/iproute2/rt_tables                           0000644 0000000 0000000 00000000127 11524350116 025253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile11/etc/iproute2/rt_protos                           0000644 0000000 0000000 00000000475 11524350116 025335  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/etc/nsswitch.conf                                0000644 0000000 0000000 00000003230 11524350116 024307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile11/etc/fstab                                        0000644 0000000 0000000 00000001307 11524350115 022622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Thu Aug  5 09:23:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=008a3418-d80b-4815-9722-db5af2fba6da /                       ext3    defaults        1 1
UUID=171fffed-b6b4-4161-b8cd-a688d195da49 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile11/etc/sysctl.conf                                  0000644 0000000 0000000 00000001466 11524350133 023776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile11/etc/inittab                                      0000644 0000000 0000000 00000001564 11524350115 023162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile11/var/                                             0000777 0000000 0000000 00000000000 11524350134 021621  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/var/log/                                         0000777 0000000 0000000 00000000000 11524350134 022402  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/var/log/dmesg                                    0000644 0000000 0000000 00000041752 11524350135 023432  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009cc00 (usable)
 BIOS-e820: 000000000009cc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
RAMDISK: 372ca000 - 37fef973
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffdc0 00040
ACPI: SSDT 00000000dfffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000000dfffd000
Bootmem setup node 0 0000000000000000-00000000dfffd000
  NODE_DATA [000000000000c000 - 000000000003ffff]
  bootmap [0000000000040000 -  000000000005bfff] pages 1c
(7 early reservations) ==> bootmem [0000000000 - 00dfffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [00372ca000 - 0037fef973]          RAMDISK ==> [00372ca000 - 0037fef973]
  #4 [000009cc00 - 0000100000]    BIOS reserved ==> [000009cc00 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00031fffff] PMD -> [ffff880002200000-ffff8800053fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009c
    0: 0x00000100 -> 0x000dfffd
On node 0 totalpages: 917400
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3833 pages, LIFO batch:0
  DMA32 zone: 12488 pages used for memmap
  DMA32 zone: 900917 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009c000 - 000000000009d000
PM: Registered nosave memory: 000000000009d000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 904750
Policy zone: DMA32
Kernel command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us 
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 3591248k/3670004k available (4935k kernel code, 404k absent, 78352k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 36700160 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 2266.928 MHz processor.
Calibrating delay loop (skipped) preset value.. 4533.85 BogoMIPS (lpj=2266928)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Setting APIC routing to flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (9067.71 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13462k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297092614.409:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 7040
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 15:30:14 UTC (1297092614)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
dracut: Mounted root filesystem /dev/vda1
dracut: Loading SELinux policy
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1297092615.734:2): selinux=0 auid=4294967295 ses=4294967295
dracut: /sbin/load_policy: Can't load policy: No such file or directory
dracut: Switching root
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 27 for MSI/MSI-X
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT3 FS on vda1, internal journal
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                      Physical_Configuration/Clients/tb3-client04/tile11/boot/                                            0000777 0000000 0000000 00000000000 11524350114 021772  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/boot/grub/                                       0000777 0000000 0000000 00000000000 11524350114 022731  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile11/boot/grub/grub.conf                              0000644 0000000 0000000 00000002637 11524350115 024544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux Server (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-70.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-70.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-70.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-59.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-59.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-59.el6.x86_64.img
                                                                                                 Physical_Configuration/Clients/tb3-client04/tile11/rpmpkgs.txt                                      0000644 0000000 0000000 00000105007 11524350134 023254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rhnsd-4.9.3-2.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
pycairo-1.8.6-2.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
polkit-devel-0.96-2.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
popt-devel-1.13-7.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
basesystem-10.0-4.el6.noarch
libgnomeui-devel-2.24.1-4.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libhbalinux-1.0.10-1.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-Newt-1.08-26.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
system-icon-theme-6.0.0-2.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
libjpeg-6b-46.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
gettext-0.17-16.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
NetworkManager-glib-0.8.1-5.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
sed-4.2.1-5.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
libXext-1.1-3.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
libcap-2.16-5.2.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
hwdata-0.233-1.el6.noarch
pcre-7.8-3.1.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
fuse-2.8.3-1.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
python-decorator-3.0.1-3.1.el6.noarch
report-plugin-scp-0.18-7.el6.x86_64
rsync-3.0.6-5.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
ModemManager-0.4.0-3.git20100628.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
device-mapper-event-libs-1.02.53-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
nc-1.84-22.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
dracut-004-32.el6.noarch
psmisc-22.6-15.el6.x86_64
vino-2.28.1-3.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
kernel-2.6.32-70.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
mtools-4.0.12-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
mod_wsgi-3.2-1.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
jna-3.2.4-2.el6.x86_64
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
php-pdo-5.3.2-6.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
postfix-2.6.6-2.el6.x86_64
patch-2.6-6.el6.x86_64
elfutils-0.148-1.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
xorg-x11-xkb-utils-7.4-6.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
xvattr-1.3-18.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
boost-regex-1.41.0-11.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
pam-1.1.1-4.el6.x86_64
setserial-2.17-25.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
python-slip-0.2.11-1.el6.noarch
gvfs-1.4.3-9.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
libhbaapi-2.2-10.el6.x86_64
gnome-applets-2.28.0-7.el6.x86_64
grub-0.97-68.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
setup-2.8.14-10.el6.noarch
hal-devel-0.5.14-8.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
autoconf-2.63-5.1.el6.noarch
fontpackages-filesystem-1.41-1.1.el6.noarch
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libXtst-devel-1.0.99.2-3.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
libX11-common-1.3-2.el6.noarch
sos-2.2-2.el6.noarch
php-pear-1.9.0-2.el6.noarch
avahi-autoipd-0.6.25-8.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
bash-4.1.2-3.el6.x86_64
libcap-ng-devel-0.6.4-3.el6.x86_64
festival-1.96-18.el6.x86_64
libICE-1.0.6-1.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
rootfiles-8.1-6.1.el6.noarch
libldb-0.9.10-23.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
libpng-1.2.44-1.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
gd-2.0.35-10.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
man-pages-3.22-12.el6.noarch
libcroco-devel-0.6.2-5.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
numactl-2.0.3-9.el6.x86_64
yum-3.2.27-14.el6.noarch
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
iproute-2.6.32-10.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
boost-1.41.0-11.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
gstreamer-tools-0.10.29-1.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
libXdamage-1.1.2-1.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
binutils-2.20.51.0.2-5.11.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
gcc-4.4.4-13.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
libtheora-1.1.0-2.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
gnome-power-manager-2.28.3-3.el6.x86_64
totem-mozplugin-2.28.6-2.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-Log-Message-0.02-115.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
libXdmcp-1.0.3-1.el6.x86_64
parted-2.1-10.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libevent-1.4.13-1.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
psacct-6.3.2-63.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
checkpolicy-2.0.22-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
flex-2.5.35-8.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
selinux-policy-3.7.19-54.el6.noarch
ltrace-0.5-16.45svn.1.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
crontabs-1.10-32.1.el6.noarch
coreutils-libs-8.4-9.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
mtr-0.75-5.el6.x86_64
openssl-1.0.0-4.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
libgudev1-147-2.29.el6.x86_64
ctags-5.8-2.el6.x86_64
redhat-bookmarks-6-1.el6.noarch
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
passwd-0.77-4.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
orca-2.28.2-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
slang-2.2.1-1.el6.x86_64
subversion-1.6.11-2.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
openswan-2.6.24-8.el6.x86_64
gtk-doc-1.11-5.1.el6.noarch
libdaemon-0.14-1.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
xml-common-0.6.3-32.el6.noarch
gtk2-devel-2.18.9-4.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
notification-daemon-0.5.0-1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
libgcc-4.4.4-13.el6.i686
ncurses-libs-5.7-3.20090208.el6.x86_64
ppp-2.4.5-5.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
info-4.13a-8.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
docbook-style-dsssl-1.79-10.el6.noarch
pam_ldap-185-5.el6.x86_64
glib2-2.22.5-5.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
readline-6.0-3.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
at-3.1.10-42.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
samba-winbind-clients-3.5.4-68.el6.x86_64
gmp-4.3.1-7.el6.x86_64
gnome-panel-libs-2.30.2-5.el6.x86_64
perl-version-0.77-115.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
perl-5.10.1-115.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
curl-7.19.7-16.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
httpd-tools-2.2.15-5.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
libavc1394-0.5.3-9.1.el6.x86_64
which-2.19-5.1.el6.x86_64
perl-BSD-Resource-1.29.03-3.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
keyutils-libs-1.4-1.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
iso-codes-3.16-2.el6.noarch
libxslt-1.1.26-2.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-1.0.5-1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
giflib-4.1.6-3.1.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
report-0.18-7.el6.x86_64
libX11-1.3-2.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
grubby-7.0.15-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
eggdbus-0.6-3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
httpd-2.2.15-5.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
ppl-0.10.2-11.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
file-libs-5.04-5.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
bc-1.06.95-1.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
NetworkManager-0.8.1-5.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
dracut-kernel-004-32.el6.noarch
cpio-2.10-9.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
unzip-6.0-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
check-0.9.8-1.1.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
libgssglue-0.1-8.1.el6.x86_64
db4-cxx-4.7.25-16.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
libnih-1.0.1-6.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
fcoe-utils-1.0.14-9.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
zip-3.0-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
usermode-1.102-3.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
php-xml-5.3.2-6.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
crash-5.0.0-23.el6.x86_64
libthai-0.1.12-3.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
zenity-2.28.0-1.el6.x86_64
report-newt-0.18-7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
boost-test-1.41.0-11.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
tzdata-2010l-1.el6.noarch
ncurses-5.7-3.20090208.el6.x86_64
nspr-4.8.6-1.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
dnsmasq-2.48-4.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
nss-3.12.7-2.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
udev-147-2.29.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
postgresql-libs-8.4.4-2.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
avahi-ui-0.6.25-8.el6.x86_64
device-mapper-multipath-libs-0.4.9-31.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
udisks-1.0.1-2.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
libaio-0.3.107-10.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
evolution-data-server-devel-2.28.3-10.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
elfutils-devel-0.148-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
cas-0.15-1.el6.1.noarch
libgnome-devel-2.28.0-11.el6.x86_64
kernel-devel-2.6.32-59.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
dstat-0.7.0-1.el6.noarch
perl-XML-Dumper-0.81-6.el6.noarch
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
zd1211-firmware-1.4-4.el6.noarch
ivtv-firmware-20080701-20.2.noarch
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
libnl-1.1-12.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
mysql-5.1.47-4.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
iptables-1.4.7-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
perl-Time-HiRes-1.9721-115.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
systemtap-1.2-9.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
eog-2.28.2-4.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
postgresql-server-8.4.4-2.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
gnome-settings-daemon-2.28.2-11.el6.x86_64
usbutils-0.86-2.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
python-psycopg2-2.0.13-2.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
tcsh-6.17-8.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
kernel-devel-2.6.32-70.el6.x86_64
bison-2.4.1-5.el6.x86_64
busybox-1.15.1-10.el6.x86_64
lsof-4.82-1.2.el6.x86_64
swig-1.3.40-5.el6.x86_64
hal-0.5.14-8.el6.x86_64
powertop-1.11-3.1.el6.x86_64
rdate-1.4-16.el6.x86_64
kernel-2.6.32-59.el6.x86_64
libtopology-0.3-7.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
openldap-devel-2.4.19-15.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
kernel-2.6.32-71.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
libxml2-python-2.7.6-1.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
libcanberra-0.22-1.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
python-gudev-147.1-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
mailcap-2.1.31-1.1.el6.noarch
wpa_supplicant-0.6.8-10.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
cracklib-python-2.8.16-2.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
gnome-python2-libwnck-2.28.0-4.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
openjade-1.3.2-36.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
popt-1.13-7.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
system-gnome-theme-60.0.2-1.el6.noarch
db4-4.7.25-16.el6.x86_64
wget-1.12-1.4.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
fipscheck-1.2.0-4.1.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
gawk-3.1.7-6.el6.x86_64
cvs-1.11.23-11.el6.x86_64
php-common-5.3.2-6.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
tcp_wrappers-libs-7.6-56.3.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
atk-1.28.0-2.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
libacl-2.2.49-4.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
findutils-4.4.2-6.el6.x86_64
libiec61883-1.2.0-4.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
grep-2.6.3-2.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
libgcrypt-1.4.5-3.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
pixman-0.16.6-1.el6.x86_64
iw-0.9.17-4.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
libxcb-1.5-1.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
comps-extras-17.8-1.el6.noarch
libsoup-2.28.2-1.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
xfsprogs-3.1.1-4.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
libXv-1.0.5-1.el6.x86_64
polkit-0.96-2.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
rtkit-0.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
libIDL-0.8.13-2.1.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
ed-1.1-3.3.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
tar-1.23-3.el6.x86_64
libconfig-1.3.2-1.1.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
pciutils-libs-3.1.4-9.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
mod_ssl-2.2.15-5.el6.x86_64
kbd-misc-1.15-11.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
rng-tools-2-8.el6.x86_64
pax-3.4-10.1.el6.x86_64
control-center-2.28.1-25.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
php-gd-5.3.2-6.el6.x86_64
libtasn1-2.3-3.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
irqbalance-0.55-27.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
yajl-1.0.7-3.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libXpm-3.5.8-2.el6.x86_64
pango-1.28.1-3.el6.x86_64
gucharmap-2.28.2-2.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
net-tools-1.60-102.el6.x86_64
exempi-2.1.0-5.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
DeviceKit-power-014-1.el6.x86_64
make-3.81-19.el6.x86_64
unique-1.1.4-2.el6.x86_64
rhn-setup-1.0.0-38.el6.noarch
boost-signals-1.41.0-11.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
cronie-1.4.4-2.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
libcollection-0.5.0-28.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
libudev-147-2.29.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
libuser-0.56.13-4.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
device-mapper-multipath-0.4.9-31.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
perl-URI-1.40-2.el6.noarch
dbus-glib-devel-0.86-5.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
seekwatcher-0.12-4.1.el6.noarch
perf-2.6.32-71.el6.noarch
libglade2-devel-2.6.4-3.1.el6.x86_64
glibc-2.12-1.7.el6.i686
polkit-docs-0.96-2.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
libXi-devel-1.3-3.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
mysql-devel-5.1.47-4.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
iotop-0.3.2-3.el6.noarch
python-meh-0.9-1.el6.noarch
bzip2-devel-1.0.5-6.1.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
atmel-firmware-1.3-7.el6.noarch
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
libstdc++-4.4.4-13.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
libXi-1.3-3.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
nautilus-extensions-2.28.4-15.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
libss-1.41.12-3.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
glx-utils-7.7-2.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
cpp-4.4.4-13.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
ipa-client-2.0-9.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
gnome-vfs2-smb-2.24.2-6.el6.x86_64
xdg-user-dirs-0.12-4.el6.x86_64
gdb-7.1-29.el6.x86_64
gok-2.28.1-5.el6.x86_64
SDL-1.2.14-2.el6.x86_64
postgresql-docs-8.4.4-2.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mod_perl-2.0.4-10.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
prelink-0.4.3-4.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
gnome-session-xsession-2.28.0-15.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
crypto-utils-2.4.1-24.2.el6.x86_64
PyGreSQL-3.8.1-2.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
postgresql-odbc-08.04.0200-1.el6.x86_64
git-1.7.1-2.el6.x86_64
report-gtk-0.18-7.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
libvirt-devel-0.8.1-27.el6.x86_64
audit-2.0.4-1.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
attr-2.4.44-4.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
latrace-0.5.9-2.el6.x86_64
byacc-1.9.20070509-6.1.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
nscd-2.12-1.7.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
vte-0.25.1-5.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
gcc-c++-4.4.4-13.el6.x86_64
firefox-3.6.9-2.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
libgnomecanvas-devel-2.26.0-4.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
perl-XML-Grove-0.46alpha-40.el6.noarch
automake-1.11.1-1.2.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
system-config-services-docs-1.1.8-1.el6.noarch
pyOpenSSL-0.10-2.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
zlib-1.2.3-25.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
audit-libs-devel-2.0.4-1.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
libstdc++-4.4.4-13.el6.i686
libdrm-2.4.20-2.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
docbook-utils-0.6.14-24.el6.noarch
freetype-2.3.11-5.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
gnome-python2-desktop-2.28.0-4.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
words-3.0-17.el6.noarch
libselinux-utils-2.0.94-2.el6.x86_64
gamin-0.1.10-9.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
mailx-12.4-6.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
keyutils-1.4-1.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
openssh-5.3p1-20.el6.x86_64
m4-1.4.13-5.el6.x86_64
autofs-5.0.5-23.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
gvfs-archive-1.4.3-9.el6.x86_64
man-1.6f-29.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
gdm-2.30.4-21.el6.x86_64
libusb-0.1.12-23.el6.x86_64
webalizer-2.21_02-3.3.el6.x86_64
time-1.7-37.1.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
less-436-4.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
gettext-libs-0.17-16.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
NetworkManager-gnome-0.8.1-5.el6.x86_64
readahead-1.5.6-1.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
php-5.3.2-6.el6.x86_64
libical-0.43-5.1.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-panel-2.30.2-5.el6.x86_64
latencytop-0.5-3.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
kbd-1.15-11.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
rcs-5.7-37.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
boost-program-options-1.41.0-11.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
iputils-20071127-13.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
glibc-2.12-1.7.el6.x86_64
gzip-1.3.12-18.el6.x86_64
cscope-15.6-6.el6.x86_64
certmonger-0.24-4.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
openldap-2.4.19-15.el6.x86_64
eject-2.1.5-17.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
qt-4.6.2-16.el6.x86_64
diffstat-1.51-2.el6.x86_64
libgail-gnome-1.20.1-4.1.el6.x86_64
sssd-1.2.1-28.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
newt-0.52.11-2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
nspluginwrapper-1.3.0-14.el6.x86_64
mysql-server-5.1.47-4.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
rhn-setup-gnome-1.0.0-38.el6.noarch
atk-devel-1.28.0-2.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
filesystem-2.4.30-2.1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
libcom_err-devel-1.41.12-3.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
m2crypto-0.20.2-7.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
screen-4.0.3-15.el6.x86_64
alsa-lib-devel-1.0.21-3.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
mobile-broadband-provider-info-1.20100122-1.el6.noarch
xorg-x11-docs-1.3-6.1.el6.noarch
gnome-themes-2.28.1-6.el6.noarch
libselinux-2.0.94-2.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
libxcb-devel-1.5-1.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
pam_krb5-2.3.11-1.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
pytz-2010h-2.el6.noarch
libidn-1.18-2.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
acl-2.2.49-4.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
jline-0.9.94-0.8.el6.noarch
libXt-1.0.7-1.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
procps-3.2.8-14.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
gnome-screensaver-2.28.3-8.el6.x86_64
rpm-4.8.0-12.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
quota-3.17-10.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
rpm-build-4.8.0-12.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
nano-2.0.9-7.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
system-config-services-0.99.45-1.el6.3.noarch
perl-parent-0.221-115.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
hal-info-20090716-3.1.el6.noarch
mlocate-0.22.2-3.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
libicu-4.2.1-9.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
yp-tools-2.9-10.el6.x86_64
coreutils-8.4-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
rfkill-0.3-4.el6.x86_64
at-spi-1.28.1-2.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
lldpad-0.9.38-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
gnome-python2-bonobo-2.28.0-3.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
evolution-data-server-doc-2.28.3-10.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
yelp-2.28.1-8.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
python-2.6.5-3.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile11/ifconfig.txt                                     0000644 0000000 0000000 00000001637 11524350133 023360  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:90:00:0B  
          inet addr:10.1.216.161  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe90:b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:515211006 errors:0 dropped:0 overruns:0 frame:0
          TX packets:158516303 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:727202613357 (677.2 GiB)  TX bytes:15974638540 (14.8 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:255334 errors:0 dropped:0 overruns:0 frame:0
          TX packets:255334 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:326372186 (311.2 MiB)  TX bytes:326372186 (311.2 MiB)

                                                                                                 Physical_Configuration/Clients/tb3-client04/tile11/chkconfig.txt                                    0000644 0000000 0000000 00000006556 11524350115 023534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:off	4:on	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
fcoe           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:off	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:off	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lldpad         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
multipathd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
mysqld         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postgresql     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/brctl-show.txt                                          0000644 0000000 0000000 00000000502 11524350073 022552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge name	bridge id		STP enabled	interfaces
br0		8000.e41f13325d6c	no		eth0
br1		8000.e41f13325d6e	no		eth1
							vct11
br2		8000.001517d12de6	no		eth2
							vct12
br3		8000.001517d12de7	no		eth3
							vct13
br4		8000.001517d1521c	no		eth4
							vct14
br5		8000.001517d1521d	no		eth5
virbr0		8000.000000000000	yes		
                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile14/                                                 0000777 0000000 0000000 00000000000 11524350217 021036  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/proc/                                            0000777 0000000 0000000 00000000000 11524350217 022001  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/proc/cpuinfo                                     0000644 0000000 0000000 00000002012 11524350216 023355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.928
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.85
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.928
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.85
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile14/proc/swaps                                       0000644 0000000 0000000 00000000150 11524350217 023051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	69592	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile14/proc/devices                                     0000644 0000000 0000000 00000000567 11524350216 023351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile14/proc/modules                                     0000644 0000000 0000000 00000002546 11524350216 023376  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa0259000
stp 2107 1 bridge, Live 0xffffffffa0253000
llc 5608 2 bridge,stp, Live 0xffffffffa024b000
autofs4 27683 3 - Live 0xffffffffa023e000
sunrpc 241630 1 - Live 0xffffffffa01eb000
ipv6 321209 77 - Live 0xffffffffa0156000
dm_mirror 14003 0 - Live 0xffffffffa012a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0121000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0118000
ppdev 8695 0 - Live 0xffffffffa010a000
parport_pc 22944 0 - Live 0xffffffffa00fd000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa00eb000
sg 30186 0 - Live 0xffffffffa00dc000
virtio_net 15665 0 - Live 0xffffffffa00d2000
i2c_piix4 12574 0 - Live 0xffffffffa00c9000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00b9000
ext3 133830 1 - Live 0xffffffffa008d000
jbd 54576 1 ext3, Live 0xffffffffa0076000
mbcache 7918 1 ext3, Live 0xffffffffa006e000
sr_mod 16162 0 - Live 0xffffffffa0064000
cdrom 39769 1 sr_mod, Live 0xffffffffa0053000
virtio_blk 5087 3 - Live 0xffffffffa004c000
ata_generic 3611 0 - Live 0xffffffffa0046000
pata_acpi 3667 0 - Live 0xffffffffa0040000
ata_piix 22588 0 - Live 0xffffffffa0034000
virtio_pci 6733 0 - Live 0xffffffffa002c000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0025000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile14/proc/partitions                                  0000644 0000000 0000000 00000000165 11524350217 024116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile14/proc/meminfo                                     0000644 0000000 0000000 00000002222 11524350216 023347  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        3605932 kB
MemFree:         3339424 kB
Buffers:            6840 kB
Cached:            26864 kB
SwapCached:         3820 kB
Active:            97384 kB
Inactive:          23732 kB
Active(anon):      81704 kB
Inactive(anon):     5552 kB
Active(file):      15680 kB
Inactive(file):    18180 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        1978400 kB
Dirty:                44 kB
Writeback:             0 kB
AnonPages:         85316 kB
Mapped:             7432 kB
Shmem:                 0 kB
Slab:             116936 kB
SReclaimable:      35532 kB
SUnreclaim:        81404 kB
KernelStack:        1656 kB
PageTables:         3540 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3850956 kB
Committed_AS:     767188 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19136 kB
VmallocChunk:   34359715016 kB
HardwareCorrupted:     0 kB
AnonHugePages:     47104 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     3661824 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile14/lspci.txt                                        0000644 0000000 0000000 00000000744 11524350216 022711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
                            Physical_Configuration/Clients/tb3-client04/tile14/df.txt                                           0000644 0000000 0000000 00000000276 11524350177 022176  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8181064   4599872  65% /
tmpfs                  1802964         0   1802964   0% /dev/shm
                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/tile14/mount.txt                                        0000644 0000000 0000000 00000000434 11524350216 022735  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile14/etc/                                             0000777 0000000 0000000 00000000000 11524350216 021610  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/                                        0000777 0000000 0000000 00000000000 11524350207 022436  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/                                  0000777 0000000 0000000 00000000000 11524350215 023346  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K02libvirt-guests                 0000755 0000000 0000000 00000017172 11524350210 026533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K02oddjobd                        0000755 0000000 0000000 00000004325 11524350210 025151  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K69rpcsvcgssd                     0000755 0000000 0000000 00000006014 11524350211 025740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K95cgconfig                       0000755 0000000 0000000 00000012327 11524350213 025343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S55sshd                           0000755 0000000 0000000 00000010671 11524350215 024533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K80fcoe                           0000755 0000000 0000000 00000005775 11524350212 024502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K15httpd                          0000755 0000000 0000000 00000006364 11524350210 024700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K92ip6tables                      0000755 0000000 0000000 00000020716 11524350213 025453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K80sssd                           0000755 0000000 0000000 00000004731 11524350212 024531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S58ntpd                           0000755 0000000 0000000 00000003603 11524350215 024537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K02avahi-daemon                   0000755 0000000 0000000 00000004754 11524350210 026103  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K89rdisc                          0000755 0000000 0000000 00000003027 11524350213 024670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K76ipsec                          0000755 0000000 0000000 00000010777 11524350212 024674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S22messagebus                     0000755 0000000 0000000 00000004230 11524350214 025713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K95firstboot                      0000755 0000000 0000000 00000005341 11524350213 025575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K86cgred                          0000755 0000000 0000000 00000006302 11524350212 024643  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S13rpcbind                        0000755 0000000 0000000 00000004031 11524350214 025175  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S13irqbalance                     0000755 0000000 0000000 00000003521 11524350214 025660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K84NetworkManager                 0000755 0000000 0000000 00000004235 11524350212 026504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K99sysstat                        0000755 0000000 0000000 00000002363 11524350213 025301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K50dnsmasq                        0000755 0000000 0000000 00000002577 11524350211 025225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K01certmonger                     0000755 0000000 0000000 00000004054 11524350207 025715  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K85mdmonitor                      0000755 0000000 0000000 00000005013 11524350212 025564  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K36mysqld                         0000755 0000000 0000000 00000012460 11524350211 025064  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K80lldpad                         0000755 0000000 0000000 00000014323 11524350212 025013  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K88nslcd                          0000755 0000000 0000000 00000003213 11524350213 024663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K75ntpdate                        0000755 0000000 0000000 00000003512 11524350211 025213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K89iscsid                         0000755 0000000 0000000 00000007127 11524350213 025047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K73ypbind                         0000755 0000000 0000000 00000011277 11524350211 025046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S10network                        0000755 0000000 0000000 00000014466 11524350214 025257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S12rsyslog                        0000755 0000000 0000000 00000004326 11524350214 025264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S11auditd                         0000755 0000000 0000000 00000006462 11524350214 025036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K84wpa_supplicant                 0000755 0000000 0000000 00000003512 11524350212 026606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S20kdump                          0000755 0000000 0000000 00000027662 11524350214 024711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K87multipathd                     0000755 0000000 0000000 00000004473 11524350212 025742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S26haldaemon                      0000755 0000000 0000000 00000003245 11524350215 025517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K60crond                          0000755 0000000 0000000 00000005445 11524350211 024662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K03rhnsd                          0000755 0000000 0000000 00000005522 11524350210 024663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K36postgresql                     0000755 0000000 0000000 00000012406 11524350211 025756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S00microcode_ctl                  0000755 0000000 0000000 00000002221 11524350213 026354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K10saslauthd                      0000755 0000000 0000000 00000004010 11524350210 025522  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K88iscsi                          0000755 0000000 0000000 00000007315 11524350212 024700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K60nfs                            0000755 0000000 0000000 00000013536 11524350211 024343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S30nscd                           0000755 0000000 0000000 00000004723 11524350215 024513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S24rpcgssd                        0000755 0000000 0000000 00000006050 11524350215 025227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K10psacct                         0000755 0000000 0000000 00000003024 11524350210 025013  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S26acpid                          0000755 0000000 0000000 00000003275 11524350215 024652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S13cpuspeed                       0000755 0000000 0000000 00000025442 11524350214 025375  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S26udev-post                      0000755 0000000 0000000 00000004370 11524350215 025515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S99local                          0000755 0000000 0000000 00000000334 11524350216 024670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K50netconsole                     0000755 0000000 0000000 00000005650 11524350211 025723  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S24rpcidmapd                      0000755 0000000 0000000 00000005222 11524350215 025525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S02lvm2-monitor                   0000555 0000000 0000000 00000004612 11524350213 026121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S28autofs                         0000755 0000000 0000000 00000007234 11524350215 025074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K01smartd                         0000755 0000000 0000000 00000005672 11524350210 025043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S55autobench                      0000755 0000000 0000000 00000005063 11524350215 025541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S25netfs                          0000755 0000000 0000000 00000012432 11524350215 024703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K30postfix                        0000755 0000000 0000000 00000007414 11524350210 025243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/S24nfslock                        0000755 0000000 0000000 00000006675 11524350214 025235  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K92iptables                       0000755 0000000 0000000 00000020557 11524350213 025370  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K87restorecond                    0000755 0000000 0000000 00000003427 11524350212 026114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/rc3.d/K05atd                            0000755 0000000 0000000 00000004112 11524350210 024311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/                                 0000777 0000000 0000000 00000000000 11524350207 023623  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/network                          0000755 0000000 0000000 00000014466 11524350204 025246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/sysstat                          0000755 0000000 0000000 00000002363 11524350207 025263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/saslauthd                        0000755 0000000 0000000 00000004010 11524350206 025527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/messagebus                       0000755 0000000 0000000 00000004230 11524350204 025677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/autobench                        0000755 0000000 0000000 00000005063 11524350201 025513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/atd                              0000755 0000000 0000000 00000004112 11524350201 024305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/mcelogd                          0000755 0000000 0000000 00000003535 11524350203 025161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/auditd                           0000755 0000000 0000000 00000006462 11524350201 025021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/certmonger                       0000755 0000000 0000000 00000004054 11524350201 025707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/mysqld                           0000755 0000000 0000000 00000012460 11524350204 025056  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/irqbalance                       0000755 0000000 0000000 00000003521 11524350203 025643  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/acpid                            0000755 0000000 0000000 00000003275 11524350201 024626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/iscsid                           0000755 0000000 0000000 00000007127 11524350203 025026  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/nscd                             0000755 0000000 0000000 00000004723 11524350205 024500  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/rpcidmapd                        0000755 0000000 0000000 00000005222 11524350206 025510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/nfs                              0000755 0000000 0000000 00000013536 11524350205 024341  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/sssd                             0000755 0000000 0000000 00000004731 11524350207 024526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/crond                            0000755 0000000 0000000 00000005445 11524350201 024654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/ip6tables                        0000755 0000000 0000000 00000020716 11524350202 025437  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/firstboot                        0000755 0000000 0000000 00000005341 11524350202 025556  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/autofs                           0000755 0000000 0000000 00000007234 11524350201 025046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/sshd                             0000755 0000000 0000000 00000010671 11524350207 024513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/libvirt-guests                   0000755 0000000 0000000 00000017172 11524350203 026534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/avahi-daemon                     0000755 0000000 0000000 00000004754 11524350201 026102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/iscsi                            0000755 0000000 0000000 00000007315 11524350203 024661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/ypbind                           0000755 0000000 0000000 00000011277 11524350207 025042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/psacct                           0000755 0000000 0000000 00000003024 11524350205 025017  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/fcoe                             0000755 0000000 0000000 00000005775 11524350202 024472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/nfslock                          0000755 0000000 0000000 00000006675 11524350205 025220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/cgred                            0000755 0000000 0000000 00000006302 11524350201 024624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/udev-post                        0000755 0000000 0000000 00000004370 11524350207 025477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/haldaemon                        0000755 0000000 0000000 00000003245 11524350202 025474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/ipsec                            0000755 0000000 0000000 00000010777 11524350202 024657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/rpcbind                          0000755 0000000 0000000 00000004031 11524350206 025163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/rhnsd                            0000755 0000000 0000000 00000005522 11524350206 024666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/dnsmasq                          0000755 0000000 0000000 00000002577 11524350202 025221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/functions                        0000644 0000000 0000000 00000042767 11524350202 025565  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/kdump                            0000755 0000000 0000000 00000027662 11524350203 024676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/lldpad                           0000755 0000000 0000000 00000014323 11524350203 025004  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/postfix                          0000755 0000000 0000000 00000007414 11524350205 025245  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/iptables                         0000755 0000000 0000000 00000020557 11524350203 025355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/multipathd                       0000755 0000000 0000000 00000004473 11524350204 025725  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/rsyslog                          0000755 0000000 0000000 00000004326 11524350206 025253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/NetworkManager                   0000755 0000000 0000000 00000004235 11524350200 026466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/netconsole                       0000755 0000000 0000000 00000005650 11524350204 025721  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/rpcgssd                          0000755 0000000 0000000 00000006050 11524350206 025212  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/lvm2-monitor                     0000555 0000000 0000000 00000004612 11524350203 026107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/halt                             0000755 0000000 0000000 00000012723 11524350202 024475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/cgconfig                         0000755 0000000 0000000 00000012327 11524350201 025323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/single                           0000755 0000000 0000000 00000001207 11524350207 025026  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/postgresql                       0000755 0000000 0000000 00000012406 11524350205 025751  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/mdmonitor                        0000755 0000000 0000000 00000005013 11524350204 025551  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/restorecond                      0000755 0000000 0000000 00000003427 11524350206 026101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/wpa_supplicant                   0000755 0000000 0000000 00000003512 11524350207 026577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/cpuspeed                         0000755 0000000 0000000 00000025442 11524350201 025356  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/netfs                            0000755 0000000 0000000 00000012432 11524350204 024663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/rpcsvcgssd                       0000755 0000000 0000000 00000006014 11524350206 025726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/oddjobd                          0000755 0000000 0000000 00000004325 11524350205 025154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/sandbox                          0000755 0000000 0000000 00000003242 11524350206 025203  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/killall                          0000755 0000000 0000000 00000001214 11524350203 025163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/rdisc                            0000755 0000000 0000000 00000003027 11524350206 024652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/httpd                            0000755 0000000 0000000 00000006364 11524350202 024674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/ntpd                             0000755 0000000 0000000 00000003603 11524350205 024512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/smartd                           0000755 0000000 0000000 00000005672 11524350207 025051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/nslcd                            0000755 0000000 0000000 00000003213 11524350205 024645  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/ntpdate                          0000755 0000000 0000000 00000003512 11524350205 025203  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile14/etc/rc.d/init.d/microcode_ctl                    0000755 0000000 0000000 00000002221 11524350204 026345  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile14/etc/hosts                                        0000644 0000000 0000000 00000000052 11524350177 022672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1	localhost.localdomain	localhost
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile14/etc/iproute2/                                    0000777 0000000 0000000 00000000000 11524350200 023352  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/etc/iproute2/rt_dsfield                          0000644 0000000 0000000 00000000672 11524350200 025415  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client04/tile14/etc/iproute2/rt_realms                           0000644 0000000 0000000 00000000160 11524350200 025256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/tile14/etc/iproute2/rt_scopes                           0000644 0000000 0000000 00000000134 11524350200 025270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile14/etc/iproute2/ematch_map                          0000644 0000000 0000000 00000000073 11524350200 025367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile14/etc/iproute2/rt_tables                           0000644 0000000 0000000 00000000127 11524350200 025250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile14/etc/iproute2/rt_protos                           0000644 0000000 0000000 00000000475 11524350200 025332  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/etc/nsswitch.conf                                0000644 0000000 0000000 00000003230 11524350200 024304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile14/etc/fstab                                        0000644 0000000 0000000 00000001307 11524350177 022635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Thu Aug  5 09:23:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=008a3418-d80b-4815-9722-db5af2fba6da /                       ext3    defaults        1 1
UUID=171fffed-b6b4-4161-b8cd-a688d195da49 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile14/etc/sysctl.conf                                  0000644 0000000 0000000 00000001466 11524350216 024003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile14/etc/inittab                                      0000644 0000000 0000000 00000001564 11524350200 023160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile14/var/                                             0000777 0000000 0000000 00000000000 11524350217 021626  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/var/log/                                         0000777 0000000 0000000 00000000000 11524350217 022407  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/var/log/dmesg                                    0000644 0000000 0000000 00000041752 11524350217 023436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009cc00 (usable)
 BIOS-e820: 000000000009cc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
RAMDISK: 372ca000 - 37fef973
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffdc0 00040
ACPI: SSDT 00000000dfffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000000dfffd000
Bootmem setup node 0 0000000000000000-00000000dfffd000
  NODE_DATA [000000000000c000 - 000000000003ffff]
  bootmap [0000000000040000 -  000000000005bfff] pages 1c
(7 early reservations) ==> bootmem [0000000000 - 00dfffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [00372ca000 - 0037fef973]          RAMDISK ==> [00372ca000 - 0037fef973]
  #4 [000009cc00 - 0000100000]    BIOS reserved ==> [000009cc00 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00031fffff] PMD -> [ffff880002200000-ffff8800053fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009c
    0: 0x00000100 -> 0x000dfffd
On node 0 totalpages: 917400
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3833 pages, LIFO batch:0
  DMA32 zone: 12488 pages used for memmap
  DMA32 zone: 900917 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009c000 - 000000000009d000
PM: Registered nosave memory: 000000000009d000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 904750
Policy zone: DMA32
Kernel command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us 
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 3591248k/3670004k available (4935k kernel code, 404k absent, 78352k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 36700160 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 2266.928 MHz processor.
Calibrating delay loop (skipped) preset value.. 4533.85 BogoMIPS (lpj=2266928)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Setting APIC routing to flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (9067.71 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13462k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297092628.423:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 7040
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 15:30:27 UTC (1297092627)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
dracut: Mounted root filesystem /dev/vda1
dracut: Loading SELinux policy
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1297092629.992:2): selinux=0 auid=4294967295 ses=4294967295
dracut: /sbin/load_policy: Can't load policy: No such file or directory
dracut: Switching root
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 27 for MSI/MSI-X
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT3 FS on vda1, internal journal
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                      Physical_Configuration/Clients/tb3-client04/tile14/boot/                                            0000777 0000000 0000000 00000000000 11524350177 022006  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/boot/grub/                                       0000777 0000000 0000000 00000000000 11524350177 022745  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile14/boot/grub/grub.conf                              0000644 0000000 0000000 00000002637 11524350177 024557  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux Server (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-70.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-70.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-70.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-59.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-59.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-59.el6.x86_64.img
                                                                                                 Physical_Configuration/Clients/tb3-client04/tile14/rpmpkgs.txt                                      0000644 0000000 0000000 00000105007 11524350217 023261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rhnsd-4.9.3-2.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
pycairo-1.8.6-2.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
polkit-devel-0.96-2.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
popt-devel-1.13-7.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
basesystem-10.0-4.el6.noarch
libgnomeui-devel-2.24.1-4.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libhbalinux-1.0.10-1.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-Newt-1.08-26.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
system-icon-theme-6.0.0-2.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
libjpeg-6b-46.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
gettext-0.17-16.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
NetworkManager-glib-0.8.1-5.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
sed-4.2.1-5.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
libXext-1.1-3.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
libcap-2.16-5.2.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
hwdata-0.233-1.el6.noarch
pcre-7.8-3.1.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
fuse-2.8.3-1.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
python-decorator-3.0.1-3.1.el6.noarch
report-plugin-scp-0.18-7.el6.x86_64
rsync-3.0.6-5.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
ModemManager-0.4.0-3.git20100628.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
device-mapper-event-libs-1.02.53-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
nc-1.84-22.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
dracut-004-32.el6.noarch
psmisc-22.6-15.el6.x86_64
vino-2.28.1-3.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
kernel-2.6.32-70.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
mtools-4.0.12-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
mod_wsgi-3.2-1.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
jna-3.2.4-2.el6.x86_64
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
php-pdo-5.3.2-6.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
postfix-2.6.6-2.el6.x86_64
patch-2.6-6.el6.x86_64
elfutils-0.148-1.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
xorg-x11-xkb-utils-7.4-6.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
xvattr-1.3-18.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
boost-regex-1.41.0-11.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
pam-1.1.1-4.el6.x86_64
setserial-2.17-25.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
python-slip-0.2.11-1.el6.noarch
gvfs-1.4.3-9.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
libhbaapi-2.2-10.el6.x86_64
gnome-applets-2.28.0-7.el6.x86_64
grub-0.97-68.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
setup-2.8.14-10.el6.noarch
hal-devel-0.5.14-8.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
autoconf-2.63-5.1.el6.noarch
fontpackages-filesystem-1.41-1.1.el6.noarch
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libXtst-devel-1.0.99.2-3.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
libX11-common-1.3-2.el6.noarch
sos-2.2-2.el6.noarch
php-pear-1.9.0-2.el6.noarch
avahi-autoipd-0.6.25-8.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
bash-4.1.2-3.el6.x86_64
libcap-ng-devel-0.6.4-3.el6.x86_64
festival-1.96-18.el6.x86_64
libICE-1.0.6-1.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
rootfiles-8.1-6.1.el6.noarch
libldb-0.9.10-23.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
libpng-1.2.44-1.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
gd-2.0.35-10.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
man-pages-3.22-12.el6.noarch
libcroco-devel-0.6.2-5.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
numactl-2.0.3-9.el6.x86_64
yum-3.2.27-14.el6.noarch
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
iproute-2.6.32-10.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
boost-1.41.0-11.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
gstreamer-tools-0.10.29-1.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
libXdamage-1.1.2-1.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
binutils-2.20.51.0.2-5.11.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
gcc-4.4.4-13.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
libtheora-1.1.0-2.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
gnome-power-manager-2.28.3-3.el6.x86_64
totem-mozplugin-2.28.6-2.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-Log-Message-0.02-115.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
libXdmcp-1.0.3-1.el6.x86_64
parted-2.1-10.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libevent-1.4.13-1.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
psacct-6.3.2-63.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
checkpolicy-2.0.22-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
flex-2.5.35-8.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
selinux-policy-3.7.19-54.el6.noarch
ltrace-0.5-16.45svn.1.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
crontabs-1.10-32.1.el6.noarch
coreutils-libs-8.4-9.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
mtr-0.75-5.el6.x86_64
openssl-1.0.0-4.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
libgudev1-147-2.29.el6.x86_64
ctags-5.8-2.el6.x86_64
redhat-bookmarks-6-1.el6.noarch
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
passwd-0.77-4.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
orca-2.28.2-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
slang-2.2.1-1.el6.x86_64
subversion-1.6.11-2.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
openswan-2.6.24-8.el6.x86_64
gtk-doc-1.11-5.1.el6.noarch
libdaemon-0.14-1.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
xml-common-0.6.3-32.el6.noarch
gtk2-devel-2.18.9-4.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
notification-daemon-0.5.0-1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
libgcc-4.4.4-13.el6.i686
ncurses-libs-5.7-3.20090208.el6.x86_64
ppp-2.4.5-5.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
info-4.13a-8.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
docbook-style-dsssl-1.79-10.el6.noarch
pam_ldap-185-5.el6.x86_64
glib2-2.22.5-5.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
readline-6.0-3.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
at-3.1.10-42.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
samba-winbind-clients-3.5.4-68.el6.x86_64
gmp-4.3.1-7.el6.x86_64
gnome-panel-libs-2.30.2-5.el6.x86_64
perl-version-0.77-115.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
perl-5.10.1-115.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
curl-7.19.7-16.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
httpd-tools-2.2.15-5.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
libavc1394-0.5.3-9.1.el6.x86_64
which-2.19-5.1.el6.x86_64
perl-BSD-Resource-1.29.03-3.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
keyutils-libs-1.4-1.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
iso-codes-3.16-2.el6.noarch
libxslt-1.1.26-2.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-1.0.5-1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
giflib-4.1.6-3.1.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
report-0.18-7.el6.x86_64
libX11-1.3-2.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
grubby-7.0.15-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
eggdbus-0.6-3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
httpd-2.2.15-5.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
ppl-0.10.2-11.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
file-libs-5.04-5.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
bc-1.06.95-1.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
NetworkManager-0.8.1-5.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
dracut-kernel-004-32.el6.noarch
cpio-2.10-9.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
unzip-6.0-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
check-0.9.8-1.1.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
libgssglue-0.1-8.1.el6.x86_64
db4-cxx-4.7.25-16.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
libnih-1.0.1-6.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
fcoe-utils-1.0.14-9.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
zip-3.0-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
usermode-1.102-3.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
php-xml-5.3.2-6.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
crash-5.0.0-23.el6.x86_64
libthai-0.1.12-3.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
zenity-2.28.0-1.el6.x86_64
report-newt-0.18-7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
boost-test-1.41.0-11.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
tzdata-2010l-1.el6.noarch
ncurses-5.7-3.20090208.el6.x86_64
nspr-4.8.6-1.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
dnsmasq-2.48-4.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
nss-3.12.7-2.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
udev-147-2.29.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
postgresql-libs-8.4.4-2.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
avahi-ui-0.6.25-8.el6.x86_64
device-mapper-multipath-libs-0.4.9-31.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
udisks-1.0.1-2.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
libaio-0.3.107-10.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
evolution-data-server-devel-2.28.3-10.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
elfutils-devel-0.148-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
cas-0.15-1.el6.1.noarch
libgnome-devel-2.28.0-11.el6.x86_64
kernel-devel-2.6.32-59.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
dstat-0.7.0-1.el6.noarch
perl-XML-Dumper-0.81-6.el6.noarch
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
zd1211-firmware-1.4-4.el6.noarch
ivtv-firmware-20080701-20.2.noarch
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
libnl-1.1-12.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
mysql-5.1.47-4.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
iptables-1.4.7-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
perl-Time-HiRes-1.9721-115.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
systemtap-1.2-9.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
eog-2.28.2-4.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
postgresql-server-8.4.4-2.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
gnome-settings-daemon-2.28.2-11.el6.x86_64
usbutils-0.86-2.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
python-psycopg2-2.0.13-2.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
tcsh-6.17-8.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
kernel-devel-2.6.32-70.el6.x86_64
bison-2.4.1-5.el6.x86_64
busybox-1.15.1-10.el6.x86_64
lsof-4.82-1.2.el6.x86_64
swig-1.3.40-5.el6.x86_64
hal-0.5.14-8.el6.x86_64
powertop-1.11-3.1.el6.x86_64
rdate-1.4-16.el6.x86_64
kernel-2.6.32-59.el6.x86_64
libtopology-0.3-7.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
openldap-devel-2.4.19-15.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
kernel-2.6.32-71.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
libxml2-python-2.7.6-1.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
libcanberra-0.22-1.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
python-gudev-147.1-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
mailcap-2.1.31-1.1.el6.noarch
wpa_supplicant-0.6.8-10.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
cracklib-python-2.8.16-2.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
gnome-python2-libwnck-2.28.0-4.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
openjade-1.3.2-36.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
popt-1.13-7.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
system-gnome-theme-60.0.2-1.el6.noarch
db4-4.7.25-16.el6.x86_64
wget-1.12-1.4.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
fipscheck-1.2.0-4.1.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
gawk-3.1.7-6.el6.x86_64
cvs-1.11.23-11.el6.x86_64
php-common-5.3.2-6.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
tcp_wrappers-libs-7.6-56.3.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
atk-1.28.0-2.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
libacl-2.2.49-4.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
findutils-4.4.2-6.el6.x86_64
libiec61883-1.2.0-4.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
grep-2.6.3-2.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
libgcrypt-1.4.5-3.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
pixman-0.16.6-1.el6.x86_64
iw-0.9.17-4.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
libxcb-1.5-1.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
comps-extras-17.8-1.el6.noarch
libsoup-2.28.2-1.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
xfsprogs-3.1.1-4.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
libXv-1.0.5-1.el6.x86_64
polkit-0.96-2.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
rtkit-0.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
libIDL-0.8.13-2.1.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
ed-1.1-3.3.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
tar-1.23-3.el6.x86_64
libconfig-1.3.2-1.1.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
pciutils-libs-3.1.4-9.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
mod_ssl-2.2.15-5.el6.x86_64
kbd-misc-1.15-11.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
rng-tools-2-8.el6.x86_64
pax-3.4-10.1.el6.x86_64
control-center-2.28.1-25.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
php-gd-5.3.2-6.el6.x86_64
libtasn1-2.3-3.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
irqbalance-0.55-27.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
yajl-1.0.7-3.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libXpm-3.5.8-2.el6.x86_64
pango-1.28.1-3.el6.x86_64
gucharmap-2.28.2-2.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
net-tools-1.60-102.el6.x86_64
exempi-2.1.0-5.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
DeviceKit-power-014-1.el6.x86_64
make-3.81-19.el6.x86_64
unique-1.1.4-2.el6.x86_64
rhn-setup-1.0.0-38.el6.noarch
boost-signals-1.41.0-11.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
cronie-1.4.4-2.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
libcollection-0.5.0-28.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
libudev-147-2.29.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
libuser-0.56.13-4.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
device-mapper-multipath-0.4.9-31.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
perl-URI-1.40-2.el6.noarch
dbus-glib-devel-0.86-5.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
seekwatcher-0.12-4.1.el6.noarch
perf-2.6.32-71.el6.noarch
libglade2-devel-2.6.4-3.1.el6.x86_64
glibc-2.12-1.7.el6.i686
polkit-docs-0.96-2.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
libXi-devel-1.3-3.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
mysql-devel-5.1.47-4.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
iotop-0.3.2-3.el6.noarch
python-meh-0.9-1.el6.noarch
bzip2-devel-1.0.5-6.1.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
atmel-firmware-1.3-7.el6.noarch
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
libstdc++-4.4.4-13.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
libXi-1.3-3.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
nautilus-extensions-2.28.4-15.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
libss-1.41.12-3.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
glx-utils-7.7-2.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
cpp-4.4.4-13.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
ipa-client-2.0-9.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
gnome-vfs2-smb-2.24.2-6.el6.x86_64
xdg-user-dirs-0.12-4.el6.x86_64
gdb-7.1-29.el6.x86_64
gok-2.28.1-5.el6.x86_64
SDL-1.2.14-2.el6.x86_64
postgresql-docs-8.4.4-2.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mod_perl-2.0.4-10.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
prelink-0.4.3-4.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
gnome-session-xsession-2.28.0-15.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
crypto-utils-2.4.1-24.2.el6.x86_64
PyGreSQL-3.8.1-2.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
postgresql-odbc-08.04.0200-1.el6.x86_64
git-1.7.1-2.el6.x86_64
report-gtk-0.18-7.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
libvirt-devel-0.8.1-27.el6.x86_64
audit-2.0.4-1.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
attr-2.4.44-4.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
latrace-0.5.9-2.el6.x86_64
byacc-1.9.20070509-6.1.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
nscd-2.12-1.7.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
vte-0.25.1-5.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
gcc-c++-4.4.4-13.el6.x86_64
firefox-3.6.9-2.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
libgnomecanvas-devel-2.26.0-4.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
perl-XML-Grove-0.46alpha-40.el6.noarch
automake-1.11.1-1.2.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
system-config-services-docs-1.1.8-1.el6.noarch
pyOpenSSL-0.10-2.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
zlib-1.2.3-25.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
audit-libs-devel-2.0.4-1.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
libstdc++-4.4.4-13.el6.i686
libdrm-2.4.20-2.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
docbook-utils-0.6.14-24.el6.noarch
freetype-2.3.11-5.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
gnome-python2-desktop-2.28.0-4.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
words-3.0-17.el6.noarch
libselinux-utils-2.0.94-2.el6.x86_64
gamin-0.1.10-9.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
mailx-12.4-6.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
keyutils-1.4-1.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
openssh-5.3p1-20.el6.x86_64
m4-1.4.13-5.el6.x86_64
autofs-5.0.5-23.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
gvfs-archive-1.4.3-9.el6.x86_64
man-1.6f-29.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
gdm-2.30.4-21.el6.x86_64
libusb-0.1.12-23.el6.x86_64
webalizer-2.21_02-3.3.el6.x86_64
time-1.7-37.1.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
less-436-4.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
gettext-libs-0.17-16.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
NetworkManager-gnome-0.8.1-5.el6.x86_64
readahead-1.5.6-1.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
php-5.3.2-6.el6.x86_64
libical-0.43-5.1.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-panel-2.30.2-5.el6.x86_64
latencytop-0.5-3.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
kbd-1.15-11.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
rcs-5.7-37.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
boost-program-options-1.41.0-11.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
iputils-20071127-13.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
glibc-2.12-1.7.el6.x86_64
gzip-1.3.12-18.el6.x86_64
cscope-15.6-6.el6.x86_64
certmonger-0.24-4.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
openldap-2.4.19-15.el6.x86_64
eject-2.1.5-17.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
qt-4.6.2-16.el6.x86_64
diffstat-1.51-2.el6.x86_64
libgail-gnome-1.20.1-4.1.el6.x86_64
sssd-1.2.1-28.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
newt-0.52.11-2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
nspluginwrapper-1.3.0-14.el6.x86_64
mysql-server-5.1.47-4.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
rhn-setup-gnome-1.0.0-38.el6.noarch
atk-devel-1.28.0-2.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
filesystem-2.4.30-2.1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
libcom_err-devel-1.41.12-3.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
m2crypto-0.20.2-7.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
screen-4.0.3-15.el6.x86_64
alsa-lib-devel-1.0.21-3.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
mobile-broadband-provider-info-1.20100122-1.el6.noarch
xorg-x11-docs-1.3-6.1.el6.noarch
gnome-themes-2.28.1-6.el6.noarch
libselinux-2.0.94-2.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
libxcb-devel-1.5-1.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
pam_krb5-2.3.11-1.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
pytz-2010h-2.el6.noarch
libidn-1.18-2.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
acl-2.2.49-4.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
jline-0.9.94-0.8.el6.noarch
libXt-1.0.7-1.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
procps-3.2.8-14.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
gnome-screensaver-2.28.3-8.el6.x86_64
rpm-4.8.0-12.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
quota-3.17-10.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
rpm-build-4.8.0-12.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
nano-2.0.9-7.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
system-config-services-0.99.45-1.el6.3.noarch
perl-parent-0.221-115.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
hal-info-20090716-3.1.el6.noarch
mlocate-0.22.2-3.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
libicu-4.2.1-9.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
yp-tools-2.9-10.el6.x86_64
coreutils-8.4-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
rfkill-0.3-4.el6.x86_64
at-spi-1.28.1-2.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
lldpad-0.9.38-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
gnome-python2-bonobo-2.28.0-3.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
evolution-data-server-doc-2.28.3-10.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
yelp-2.28.1-8.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
python-2.6.5-3.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile14/ifconfig.txt                                     0000644 0000000 0000000 00000001637 11524350216 023365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:90:00:0E  
          inet addr:10.1.216.164  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe90:e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512015388 errors:0 dropped:0 overruns:0 frame:0
          TX packets:174908368 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:728389722740 (678.3 GiB)  TX bytes:17123539751 (15.9 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:255492 errors:0 dropped:0 overruns:0 frame:0
          TX packets:255492 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:326382612 (311.2 MiB)  TX bytes:326382612 (311.2 MiB)

                                                                                                 Physical_Configuration/Clients/tb3-client04/tile14/chkconfig.txt                                    0000644 0000000 0000000 00000006556 11524350177 023547  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:off	4:on	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
fcoe           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:off	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:off	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lldpad         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
multipathd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
mysqld         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postgresql     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/lspci.txt                                               0000644 0000000 0000000 00000021512 11524350113 021577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 5520 I/O Hub to ESI Port (rev 13)
00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 13)
00:02.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 2 (rev 13)
00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 13)
00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 13)
00:10.0 PIC: Intel Corporation 5520/5500/X58 Physical and Link Layer Registers Port 0 (rev 13)
00:10.1 PIC: Intel Corporation 5520/5500/X58 Routing and Protocol Layer Registers Port 0 (rev 13)
00:11.0 PIC: Intel Corporation 5520/5500 Physical and Link Layer Registers Port 1 (rev 13)
00:11.1 PIC: Intel Corporation 5520/5500 Routing & Protocol Layer Register Port 1 (rev 13)
00:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers (rev 13)
00:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 13)
00:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 13)
00:14.3 PIC: Intel Corporation 5520/5500/X58 I/O Hub Throttle Registers (rev 13)
00:15.0 PIC: Intel Corporation 5520/5500/X58 Trusted Execution Technology Registers (rev 13)
00:16.0 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.1 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.2 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.3 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.4 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.5 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.6 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.7 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:1a.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
00:1a.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5
00:1a.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1
00:1c.4 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 5
00:1d.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
00:1d.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
00:1d.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
00:1d.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller
00:1f.2 IDE interface: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1
00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
00:1f.5 IDE interface: Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller #2
01:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068E PCI-Express Fusion-MPT SAS (rev 08)
06:00.0 PCI bridge: Vitesse Semiconductor VSC452 [SuperBMC] (rev 01)
07:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200EV
0b:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
0b:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
15:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
15:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
1a:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
1a:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
fe:00.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture Generic Non-Core Registers (rev 05)
fe:00.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture System Address Decoder (rev 05)
fe:02.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Link 0 (rev 05)
fe:02.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Physical 0 (rev 05)
fe:02.4 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Link 1 (rev 05)
fe:02.5 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Physical 1 (rev 05)
fe:03.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller (rev 05)
fe:03.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Target Address Decoder (rev 05)
fe:03.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller RAS Registers (rev 05)
fe:03.4 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Test Registers (rev 05)
fe:04.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Control Registers (rev 05)
fe:04.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Address Registers (rev 05)
fe:04.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Rank Registers (rev 05)
fe:04.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Thermal Control Registers (rev 05)
fe:05.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Control Registers (rev 05)
fe:05.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Address Registers (rev 05)
fe:05.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Rank Registers (rev 05)
fe:05.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Thermal Control Registers (rev 05)
fe:06.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Control Registers (rev 05)
fe:06.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Address Registers (rev 05)
fe:06.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Rank Registers (rev 05)
fe:06.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Thermal Control Registers (rev 05)
ff:00.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture Generic Non-Core Registers (rev 05)
ff:00.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture System Address Decoder (rev 05)
ff:02.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Link 0 (rev 05)
ff:02.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Physical 0 (rev 05)
ff:02.4 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Link 1 (rev 05)
ff:02.5 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Physical 1 (rev 05)
ff:03.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller (rev 05)
ff:03.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Target Address Decoder (rev 05)
ff:03.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller RAS Registers (rev 05)
ff:03.4 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Test Registers (rev 05)
ff:04.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Control Registers (rev 05)
ff:04.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Address Registers (rev 05)
ff:04.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Rank Registers (rev 05)
ff:04.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Thermal Control Registers (rev 05)
ff:05.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Control Registers (rev 05)
ff:05.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Address Registers (rev 05)
ff:05.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Rank Registers (rev 05)
ff:05.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Thermal Control Registers (rev 05)
ff:06.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Control Registers (rev 05)
ff:06.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Address Registers (rev 05)
ff:06.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Rank Registers (rev 05)
ff:06.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Thermal Control Registers (rev 05)
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/df.txt                                                  0000644 0000000 0000000 00000000541 11524350073 021062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg_tb3client04-lv_root
                     133578056  97021796  29770828  77% /
tmpfs                 16501612       188  16501424   1% /dev/shm
/dev/sda2               495844     35173    435071   8% /boot
/dev/sda1               204580       240    204340   1% /boot/efi
                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/lvdisplay.txt                                           0000644 0000000 0000000 00000001747 11524350113 022504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                     --- Logical volume ---
  LV Name                /dev/vg_tb3client04/lv_root
  VG Name                vg_tb3client04
  LV UUID                cfv20K-kMiM-FY4a-cfv7-7p2D-VFk0-zrbZWO
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                129.42 GiB
  Current LE             33132
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/vg_tb3client04/lv_swap
  VG Name                vg_tb3client04
  LV UUID                vvRsMf-Y8vm-2civ-8cah-qJxG-aPWn-Emu3Xd
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                4.00 GiB
  Current LE             1024
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
                         Physical_Configuration/Clients/tb3-client04/mount.txt                                               0000644 0000000 0000000 00000001020 11524350113 021617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/mapper/vg_tb3client04-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda2 on /boot type ext4 (rw)
/dev/sda1 on /boot/efi type vfat (rw,umask=0077,shortname=winnt)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/etc/                                                    0000777 0000000 0000000 00000000000 11524350113 020502  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/etc/rc.d/                                               0000777 0000000 0000000 00000000000 11524350104 021330  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/                                         0000777 0000000 0000000 00000000000 11524350113 022241  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S23NetworkManager                        0000755 0000000 0000000 00000004235 11524350110 025400  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S80postfix                               0000755 0000000 0000000 00000007414 11524350112 024157  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K69rpcsvcgssd                            0000755 0000000 0000000 00000006014 11524350105 024640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S07iscsid                                0000755 0000000 0000000 00000007127 11524350107 023745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S55sshd                                  0000755 0000000 0000000 00000010671 11524350112 023425  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K15httpd                                 0000755 0000000 0000000 00000006364 11524350105 023601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K92ip6tables                             0000755 0000000 0000000 00000020716 11524350107 024353  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K89rdisc                                 0000755 0000000 0000000 00000003027 11524350107 023570  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K76ipsec                                 0000755 0000000 0000000 00000010777 11524350106 023574  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S22messagebus                            0000755 0000000 0000000 00000004230 11524350110 024604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K95firstboot                             0000755 0000000 0000000 00000005341 11524350107 024475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K86cgred                                 0000755 0000000 0000000 00000006302 11524350106 023543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S84ksm                                   0000755 0000000 0000000 00000004236 11524350112 023260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S13rpcbind                               0000755 0000000 0000000 00000004031 11524350110 024066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S13irqbalance                            0000755 0000000 0000000 00000003521 11524350110 024551  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S91vncserver                             0000755 0000000 0000000 00000006066 11524350112 024504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 91 35
# description: Starts and stops vncserver. \
#	       used to provide remote X administration services.

### BEGIN INIT INFO
# Provides: vncserver
# Required-Start: $network $named
# Required-Stop: $network $named
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: start|stop|restart|try-restart|status|force-reload vncserver
# Description: control vncserver which exports your desktop
### END INIT INFO

# Source function library.
. /etc/init.d/functions

[ -r /etc/sysconfig/vncservers ] && . /etc/sysconfig/vncservers

prog=$"VNC server"

RETVAL=0

start() {
    [ "$EUID" != "0" ] && exit 4
    
    # Source networking configuration.
    . /etc/sysconfig/network

    # Check that networking is up.
    [ ${NETWORKING} = "no" ] && exit 1

    [ -x /usr/bin/vncserver ] || exit 5
    [ -x /usr/bin/Xvnc ] || exit 5

    echo -n $"Starting $prog: "
    RETVAL=0
    if [ ! -d /tmp/.X11-unix ]
    then
        mkdir -m 1777 /tmp/.X11-unix || :
        restorecon /tmp/.X11-unix 2>/dev/null || :
    fi

    for display in ${VNCSERVERS}
    do
        SERVS=1
        echo -n "${display} "
	DISP="${display%%:*}"
	USER="${display##*:}"
	VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
        runuser -l ${USER} -c "cd ~${USER} && [ -r .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
        RETVAL=$?
        [ "$RETVAL" -eq 0 ] || break
    done
    if [ -z "$SERVS" ]; then
        echo -n "no displays configured "
        failure
        RETVAL=6
    else
        if [ "$RETVAL" -eq 0 ]; then
	    success $"vncserver startup"
	    touch /var/lock/subsys/Xvnc
        else 
            failure $"vncserver start"
        fi
    fi
    echo

# As written in https://bugzilla.redhat.com/show_bug.cgi?id=523974 (LSB
# compliance) start of already running service is OK.
    [ "$RETVAL" -eq 98 ] && RETVAL=0

    return "$RETVAL"
}

stop() {
    [ "$EUID" != "0" ] && exit 4

    echo -n $"Shutting down $prog: "

    status Xvnc > /dev/null 2>&1
    RETVAL=$?

    # 3 means service is already stopped
    if ! [ "$RETVAL" -eq 3 ]; then
	for display in ${VNCSERVERS}; do
	    echo -n "${display} "
	    export USER="${display##*:}"
	    runuser ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
	done
	RETVAL=$?
    else
	let RETVAL=0
    fi

    [ "$RETVAL" -eq 0 ] && success $"vncserver shutdown" || \
	failure $"vncserver shutdown"
    echo
    [ "$RETVAL" -eq 0 ] && rm -f /var/lock/subsys/Xvnc
    return "$RETVAL"
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|force-reload)
	stop
	sleep 3
	start
	;;
  condrestart)
#	https://bugzilla.redhat.com/show_bug.cgi?id=508367
#	echo "condrestart is obsolete, use try-restart instead"
	if [ -e /var/lock/subsys/Xvnc ]; then
	    stop
	    sleep 3
	    start
	fi
	;;
  try-restart)
        if [ -e /var/lock/subsys/Xvnc ]; then
            stop
            sleep 3
            start
        fi
        ;;
  status)
	status Xvnc
	RETVAL=$?
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|try-restart|status|force-reload}"
	exit 2
esac

exit "$RETVAL"

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S97libvirtd                              0000755 0000000 0000000 00000004765 11524350112 024320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: libvirtd
# Required-Start: $network messagebus
# Should-Start: $named
# Should-Start: xend
# Should-Start: hal
# Should-Start: avahi
# Required-Stop: $network messagebus
# Should-Stop: $named
# Default-Start: 3 4 5
# Short-Description: daemon for libvirt virtualization API
# Description: This is a daemon for managing guest instances
#              and libvirt virtual networks
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirtd:   guest and virtual network management daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon for managing guest instances
#               and libvirt virtual networks
#               See http://libvirt.org
#
# processname: libvirtd
# pidfile: /var/run/libvirtd.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

SERVICE=libvirtd
PROCESS=libvirtd
PIDFILE=/var/run/$SERVICE.pid

LIBVIRTD_CONFIG=
LIBVIRTD_ARGS=
KRB5_KTNAME=/etc/libvirt/krb5.tab

test -f /etc/sysconfig/libvirtd && . /etc/sysconfig/libvirtd

LIBVIRTD_CONFIG_ARGS=
if [ -n "$LIBVIRTD_CONFIG" ]
then
    LIBVIRTD_CONFIG_ARGS="--config $LIBVIRTD_CONFIG"
fi

RETVAL=0

start() {
    echo -n $"Starting $SERVICE daemon: "
    mkdir -p /var/cache/libvirt
    rm -rf /var/cache/libvirt/*
    KRB5_KTNAME=$KRB5_KTNAME daemon --pidfile $PIDFILE --check $SERVICE $PROCESS --daemon $LIBVIRTD_CONFIG_ARGS $LIBVIRTD_ARGS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SERVICE
}

stop() {
    echo -n $"Stopping $SERVICE daemon: "

    killproc -p $PIDFILE $PROCESS
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$SERVICE
        rm -f $PIDFILE
        rm -rf /var/cache/libvirt/*
    fi
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading $SERVICE configuration: "

    killproc -p $PIDFILE $PROCESS -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

# See how we were called.
case "$1" in
    start|stop|restart|reload)
        $1
        ;;
    status)
        status -p $PIDFILE $PROCESS
        RETVAL=$?
        ;;
    force-reload)
        reload
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$SERVICE ] && restart || :
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload|try-restart}"
        exit 2
        ;;
esac
exit $RETVAL
           Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K50dnsmasq                               0000755 0000000 0000000 00000002577 11524350105 024125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S05cgconfig                              0000755 0000000 0000000 00000012327 11524350107 024242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S95atd                                   0000755 0000000 0000000 00000004112 11524350112 023231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K85ebtables                              0000755 0000000 0000000 00000007106 11524350106 024242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# init script for the Ethernet Bridge filter tables
#
# Written by Dag Wieers <dag@wieers.com>
# Modified by Rok Papez <rok.papez@arnes.si>
#             Bart De Schuymer <bdschuym@pandora.be>
#
# chkconfig: - 15 85
# description: Ethernet Bridge filtering tables
#
# config: /etc/sysconfig/ebtables         (text)
#         /etc/sysconfig/ebtables.<table> (binary)

source /etc/init.d/functions
source /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -x /sbin/ebtables ] || exit 5
[ -x /sbin/ebtables-save ] || exit 5
[ -x /sbin/ebtables-restore ] || exit 5

RETVAL=0
prog="ebtables"
desc="Ethernet bridge filtering"
umask 0077

#default configuration
EBTABLES_TEXT_FORMAT="yes"
EBTABLES_BINARY_FORMAT="yes"
EBTABLES_MODULES_UNLOAD="yes"
EBTABLES_SAVE_ON_STOP="no"
EBTABLES_SAVE_ON_RESTART="no"
EBTABLES_SAVE_COUNTER="no"

config=/etc/sysconfig/$prog-config
[ -f "$config" ] && . "$config"

start() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Starting $desc ($prog): "
	if [ "$EBTABLES_BINARY_FORMAT" = "yes" ]; then
		for table in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | sed -e 's/.*ebtables\.//' -e '/save/d' ); do
			/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-commit || RETVAL=1
		done
	else
		/sbin/ebtables-restore < /etc/sysconfig/ebtables || RETVAL=1
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog startup"
		touch "/var/lock/subsys/$prog"
	else
		failure "$prog startup"
	fi
	echo
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Stopping $desc ($prog): "
	for table in $(grep '^ebtable_' /proc/modules | sed -e 's/ebtable_\([^ ]*\).*/\1/'); do
		/sbin/ebtables -t $table --init-table || RETVAL=1
	done

	if [ "$EBTABLES_MODULES_UNLOAD" = "yes" ]; then
		for mod in $(grep -E '^(ebt|ebtable)_' /proc/modules | cut -f1 -d' ') ebtables; do
			rmmod $mod 2> /dev/null
		done
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog shutdown"
		rm -f "/var/lock/subsys/$prog"
	else
		failure "$prog shutdown"
	fi
	echo
}

restart() {
	[ "$EBTABLES_SAVE_ON_RESTART" = "yes" ] && save
	stop
	start
}

save() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Saving $desc ($prog): "
	if [ "$EBTABLES_TEXT_FORMAT" = "yes" ]; then
		if [ -e /etc/sysconfig/ebtables ]; then
			chmod 0600 /etc/sysconfig/ebtables
			mv -f /etc/sysconfig/ebtables /etc/sysconfig/ebtables.save
		fi
		/sbin/ebtables-save > /etc/sysconfig/ebtables || RETVAL=1
	fi
	if [ "$EBTABLES_BINARY_FORMAT" = "yes" ]; then
		rm -f /etc/sysconfig/ebtables.*.save
		for oldtable in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | grep -vF 'ebtables.save'); do
			chmod 0600 $oldtable
			mv -f $oldtable $oldtable.save
		done
		for table in $(grep '^ebtable_' /proc/modules | sed -e 's/ebtable_\([^ ]*\).*/\1/'); do
			/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-save || RETVAL=1
			if [ "$EBTABLES_SAVE_COUNTER" = "no" ]; then
				/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table -Z || RETVAL=1
			fi
		done
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog saved"
	else
		failure "$prog saved"
	fi
	echo
}

case "$1" in
  start)
	[ -f "/var/lock/subsys/$prog" ] && exit 0
	start
	;;
  stop)
	[ "$EBTABLES_SAVE_ON_STOP" = "yes" ] && save
	stop
	;;
  restart|force-reload)
	restart
	;;
  reload)
	[ ! -f "/var/lock/subsys/$prog" ] && exit 7
	restart
	;;
  condrestart|try-restart)
	[ ! -e "/var/lock/subsys/$prog" ] && exit 0
	restart
	;;
  save)
	save
	;;
  status)
	[ -f "/var/lock/subsys/$prog" ] && RETVAL=0 || RETVAL=3
	/sbin/ebtables-save
	;;
  *)
	echo $"Usage $0 {start|stop|restart|condrestart|save|status}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S13iscsi                                 0000755 0000000 0000000 00000007315 11524350110 023567  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S15mdmonitor                             0000755 0000000 0000000 00000005013 11524350110 024460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K75ntpdate                               0000755 0000000 0000000 00000003512 11524350106 024114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S97rhnsd                                 0000755 0000000 0000000 00000005522 11524350112 023607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K74ntpd                                  0000755 0000000 0000000 00000003603 11524350105 023421  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K80kdump                                 0000755 0000000 0000000 00000027662 11524350106 023605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S10network                               0000755 0000000 0000000 00000014466 11524350110 024150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S90crond                                 0000755 0000000 0000000 00000005445 11524350112 023573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S12rsyslog                               0000755 0000000 0000000 00000004326 11524350110 024155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S11auditd                                0000755 0000000 0000000 00000006462 11524350110 023727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K84wpa_supplicant                        0000755 0000000 0000000 00000003512 11524350106 025506  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S01sysstat                               0000755 0000000 0000000 00000002363 11524350107 024170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K74gfs2                                  0000755 0000000 0000000 00000006445 11524350105 023324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S24avahi-daemon                          0000755 0000000 0000000 00000004754 11524350111 025015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S26haldaemon                             0000755 0000000 0000000 00000003245 11524350111 024410  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S00microcode_ctl                         0000755 0000000 0000000 00000002221 11524350107 025254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K10saslauthd                             0000755 0000000 0000000 00000004010 11524350105 024423  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K60nfs                                   0000755 0000000 0000000 00000013536 11524350105 023243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S24rpcgssd                               0000755 0000000 0000000 00000006050 11524350111 024120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S50bluetooth                             0000755 0000000 0000000 00000001306 11524350111 024456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 345 50 83
# description: Turn HID adapters into Bluetooth ones
#
### BEGIN INIT INFO
# Short-Description: Trigger bluetoothd start-up
# Description: Trigger bluetoothd start-up
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth

start()
{
	echo -n $"Enabling Bluetooth devices:"
	udevadm trigger --subsystem-match=bluetooth
	echo ""
	return 0
}

stop()
{
	# FIXME If somebody figures out how to disable the K* script
	echo -n "Stopping Bluetooth services:"
	echo ""
	return 0
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  *)
	echo $"Usage: $0 {start|stop}"
	exit 3
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K10psacct                                0000755 0000000 0000000 00000003024 11524350105 023714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S26acpid                                 0000755 0000000 0000000 00000003275 11524350111 023543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S13cpuspeed                              0000755 0000000 0000000 00000025442 11524350110 024266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S26udev-post                             0000755 0000000 0000000 00000004370 11524350111 024406  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S99local                                 0000755 0000000 0000000 00000000334 11524350113 023562  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K50netconsole                            0000755 0000000 0000000 00000005650 11524350105 024623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S24rpcidmapd                             0000755 0000000 0000000 00000005222 11524350111 024416  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S02lvm2-monitor                          0000555 0000000 0000000 00000004612 11524350107 025021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S28autofs                                0000755 0000000 0000000 00000007234 11524350111 023765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S85ksmtuned                              0000755 0000000 0000000 00000003433 11524350112 024317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K01smartd                                0000755 0000000 0000000 00000005672 11524350104 023743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S98libvirt-guests                        0000755 0000000 0000000 00000017172 11524350113 025462  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S82abrtd                                 0000755 0000000 0000000 00000003254 11524350112 023557  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S55autobench                             0000755 0000000 0000000 00000005063 11524350112 024433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S25netfs                                 0000755 0000000 0000000 00000012432 11524350111 023574  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/S24nfslock                               0000755 0000000 0000000 00000006675 11524350111 024127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K92iptables                              0000755 0000000 0000000 00000020557 11524350107 024270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/etc/rc.d/rc3.d/K87restorecond                           0000755 0000000 0000000 00000003427 11524350106 025014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/                                        0000777 0000000 0000000 00000000000 11524350104 022515  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/network                                 0000755 0000000 0000000 00000014466 11524350102 024141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/gfs2                                    0000755 0000000 0000000 00000006445 11524350100 023305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/sysstat                                 0000755 0000000 0000000 00000002363 11524350104 024155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/saslauthd                               0000755 0000000 0000000 00000004010 11524350104 024422  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/messagebus                              0000755 0000000 0000000 00000004230 11524350101 024571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/autobench                               0000755 0000000 0000000 00000005063 11524350076 024423  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/atd                                     0000755 0000000 0000000 00000004112 11524350076 023215  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/mcelogd                                 0000755 0000000 0000000 00000003535 11524350101 024054  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/auditd                                  0000755 0000000 0000000 00000006462 11524350076 023731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/irqbalance                              0000755 0000000 0000000 00000003521 11524350100 024535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/acpid                                   0000755 0000000 0000000 00000003275 11524350076 023536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/iscsid                                  0000755 0000000 0000000 00000007127 11524350100 023720  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/rpcidmapd                               0000755 0000000 0000000 00000005222 11524350103 024402  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/nfs                                     0000755 0000000 0000000 00000013536 11524350102 023233  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/crond                                   0000755 0000000 0000000 00000005445 11524350077 023565  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/ip6tables                               0000755 0000000 0000000 00000020716 11524350100 024332  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/firstboot                               0000755 0000000 0000000 00000005341 11524350077 024466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/autofs                                  0000755 0000000 0000000 00000007234 11524350076 023756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/sshd                                    0000755 0000000 0000000 00000010671 11524350104 023405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/ksm                                     0000755 0000000 0000000 00000004236 11524350101 023233  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/libvirtd                                0000755 0000000 0000000 00000004765 11524350101 024267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: libvirtd
# Required-Start: $network messagebus
# Should-Start: $named
# Should-Start: xend
# Should-Start: hal
# Should-Start: avahi
# Required-Stop: $network messagebus
# Should-Stop: $named
# Default-Start: 3 4 5
# Short-Description: daemon for libvirt virtualization API
# Description: This is a daemon for managing guest instances
#              and libvirt virtual networks
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirtd:   guest and virtual network management daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon for managing guest instances
#               and libvirt virtual networks
#               See http://libvirt.org
#
# processname: libvirtd
# pidfile: /var/run/libvirtd.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

SERVICE=libvirtd
PROCESS=libvirtd
PIDFILE=/var/run/$SERVICE.pid

LIBVIRTD_CONFIG=
LIBVIRTD_ARGS=
KRB5_KTNAME=/etc/libvirt/krb5.tab

test -f /etc/sysconfig/libvirtd && . /etc/sysconfig/libvirtd

LIBVIRTD_CONFIG_ARGS=
if [ -n "$LIBVIRTD_CONFIG" ]
then
    LIBVIRTD_CONFIG_ARGS="--config $LIBVIRTD_CONFIG"
fi

RETVAL=0

start() {
    echo -n $"Starting $SERVICE daemon: "
    mkdir -p /var/cache/libvirt
    rm -rf /var/cache/libvirt/*
    KRB5_KTNAME=$KRB5_KTNAME daemon --pidfile $PIDFILE --check $SERVICE $PROCESS --daemon $LIBVIRTD_CONFIG_ARGS $LIBVIRTD_ARGS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SERVICE
}

stop() {
    echo -n $"Stopping $SERVICE daemon: "

    killproc -p $PIDFILE $PROCESS
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$SERVICE
        rm -f $PIDFILE
        rm -rf /var/cache/libvirt/*
    fi
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading $SERVICE configuration: "

    killproc -p $PIDFILE $PROCESS -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

# See how we were called.
case "$1" in
    start|stop|restart|reload)
        $1
        ;;
    status)
        status -p $PIDFILE $PROCESS
        RETVAL=$?
        ;;
    force-reload)
        reload
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$SERVICE ] && restart || :
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload|try-restart}"
        exit 2
        ;;
esac
exit $RETVAL
           Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/libvirt-guests                          0000755 0000000 0000000 00000017172 11524350101 025427  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/avahi-daemon                            0000755 0000000 0000000 00000004754 11524350076 025012  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/iscsi                                   0000755 0000000 0000000 00000007315 11524350100 023553  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/psacct                                  0000755 0000000 0000000 00000003024 11524350102 023711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/nfslock                                 0000755 0000000 0000000 00000006675 11524350102 024112  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/ebtables                                0000755 0000000 0000000 00000007106 11524350077 024235  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# init script for the Ethernet Bridge filter tables
#
# Written by Dag Wieers <dag@wieers.com>
# Modified by Rok Papez <rok.papez@arnes.si>
#             Bart De Schuymer <bdschuym@pandora.be>
#
# chkconfig: - 15 85
# description: Ethernet Bridge filtering tables
#
# config: /etc/sysconfig/ebtables         (text)
#         /etc/sysconfig/ebtables.<table> (binary)

source /etc/init.d/functions
source /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -x /sbin/ebtables ] || exit 5
[ -x /sbin/ebtables-save ] || exit 5
[ -x /sbin/ebtables-restore ] || exit 5

RETVAL=0
prog="ebtables"
desc="Ethernet bridge filtering"
umask 0077

#default configuration
EBTABLES_TEXT_FORMAT="yes"
EBTABLES_BINARY_FORMAT="yes"
EBTABLES_MODULES_UNLOAD="yes"
EBTABLES_SAVE_ON_STOP="no"
EBTABLES_SAVE_ON_RESTART="no"
EBTABLES_SAVE_COUNTER="no"

config=/etc/sysconfig/$prog-config
[ -f "$config" ] && . "$config"

start() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Starting $desc ($prog): "
	if [ "$EBTABLES_BINARY_FORMAT" = "yes" ]; then
		for table in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | sed -e 's/.*ebtables\.//' -e '/save/d' ); do
			/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-commit || RETVAL=1
		done
	else
		/sbin/ebtables-restore < /etc/sysconfig/ebtables || RETVAL=1
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog startup"
		touch "/var/lock/subsys/$prog"
	else
		failure "$prog startup"
	fi
	echo
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Stopping $desc ($prog): "
	for table in $(grep '^ebtable_' /proc/modules | sed -e 's/ebtable_\([^ ]*\).*/\1/'); do
		/sbin/ebtables -t $table --init-table || RETVAL=1
	done

	if [ "$EBTABLES_MODULES_UNLOAD" = "yes" ]; then
		for mod in $(grep -E '^(ebt|ebtable)_' /proc/modules | cut -f1 -d' ') ebtables; do
			rmmod $mod 2> /dev/null
		done
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog shutdown"
		rm -f "/var/lock/subsys/$prog"
	else
		failure "$prog shutdown"
	fi
	echo
}

restart() {
	[ "$EBTABLES_SAVE_ON_RESTART" = "yes" ] && save
	stop
	start
}

save() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Saving $desc ($prog): "
	if [ "$EBTABLES_TEXT_FORMAT" = "yes" ]; then
		if [ -e /etc/sysconfig/ebtables ]; then
			chmod 0600 /etc/sysconfig/ebtables
			mv -f /etc/sysconfig/ebtables /etc/sysconfig/ebtables.save
		fi
		/sbin/ebtables-save > /etc/sysconfig/ebtables || RETVAL=1
	fi
	if [ "$EBTABLES_BINARY_FORMAT" = "yes" ]; then
		rm -f /etc/sysconfig/ebtables.*.save
		for oldtable in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | grep -vF 'ebtables.save'); do
			chmod 0600 $oldtable
			mv -f $oldtable $oldtable.save
		done
		for table in $(grep '^ebtable_' /proc/modules | sed -e 's/ebtable_\([^ ]*\).*/\1/'); do
			/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-save || RETVAL=1
			if [ "$EBTABLES_SAVE_COUNTER" = "no" ]; then
				/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table -Z || RETVAL=1
			fi
		done
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog saved"
	else
		failure "$prog saved"
	fi
	echo
}

case "$1" in
  start)
	[ -f "/var/lock/subsys/$prog" ] && exit 0
	start
	;;
  stop)
	[ "$EBTABLES_SAVE_ON_STOP" = "yes" ] && save
	stop
	;;
  restart|force-reload)
	restart
	;;
  reload)
	[ ! -f "/var/lock/subsys/$prog" ] && exit 7
	restart
	;;
  condrestart|try-restart)
	[ ! -e "/var/lock/subsys/$prog" ] && exit 0
	restart
	;;
  save)
	save
	;;
  status)
	[ -f "/var/lock/subsys/$prog" ] && RETVAL=0 || RETVAL=3
	/sbin/ebtables-save
	;;
  *)
	echo $"Usage $0 {start|stop|restart|condrestart|save|status}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/cgred                                   0000755 0000000 0000000 00000006302 11524350077 023535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/udev-post                               0000755 0000000 0000000 00000004370 11524350104 024371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/haldaemon                               0000755 0000000 0000000 00000003245 11524350100 024367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/ipsec                                   0000755 0000000 0000000 00000010777 11524350100 023552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/rpcbind                                 0000755 0000000 0000000 00000004031 11524350103 024055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/rhnsd                                   0000755 0000000 0000000 00000005522 11524350103 023560  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/dnsmasq                                 0000755 0000000 0000000 00000002577 11524350077 024131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/functions                               0000644 0000000 0000000 00000042767 11524350077 024475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/kdump                                   0000755 0000000 0000000 00000027662 11524350100 023570  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/postfix                                 0000755 0000000 0000000 00000007414 11524350102 024137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/iptables                                0000755 0000000 0000000 00000020557 11524350100 024247  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/rsyslog                                 0000755 0000000 0000000 00000004326 11524350103 024145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/NetworkManager                          0000755 0000000 0000000 00000004235 11524350076 025377  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/netconsole                              0000755 0000000 0000000 00000005650 11524350102 024614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/rpcgssd                                 0000755 0000000 0000000 00000006050 11524350103 024104  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/abrtd                                   0000755 0000000 0000000 00000003254 11524350076 023547  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/lvm2-monitor                            0000555 0000000 0000000 00000004612 11524350101 025002  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/halt                                    0000755 0000000 0000000 00000012723 11524350100 023370  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/cgconfig                                0000755 0000000 0000000 00000012327 11524350077 024234  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/vncserver                               0000755 0000000 0000000 00000006066 11524350104 024464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 91 35
# description: Starts and stops vncserver. \
#	       used to provide remote X administration services.

### BEGIN INIT INFO
# Provides: vncserver
# Required-Start: $network $named
# Required-Stop: $network $named
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: start|stop|restart|try-restart|status|force-reload vncserver
# Description: control vncserver which exports your desktop
### END INIT INFO

# Source function library.
. /etc/init.d/functions

[ -r /etc/sysconfig/vncservers ] && . /etc/sysconfig/vncservers

prog=$"VNC server"

RETVAL=0

start() {
    [ "$EUID" != "0" ] && exit 4
    
    # Source networking configuration.
    . /etc/sysconfig/network

    # Check that networking is up.
    [ ${NETWORKING} = "no" ] && exit 1

    [ -x /usr/bin/vncserver ] || exit 5
    [ -x /usr/bin/Xvnc ] || exit 5

    echo -n $"Starting $prog: "
    RETVAL=0
    if [ ! -d /tmp/.X11-unix ]
    then
        mkdir -m 1777 /tmp/.X11-unix || :
        restorecon /tmp/.X11-unix 2>/dev/null || :
    fi

    for display in ${VNCSERVERS}
    do
        SERVS=1
        echo -n "${display} "
	DISP="${display%%:*}"
	USER="${display##*:}"
	VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
        runuser -l ${USER} -c "cd ~${USER} && [ -r .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
        RETVAL=$?
        [ "$RETVAL" -eq 0 ] || break
    done
    if [ -z "$SERVS" ]; then
        echo -n "no displays configured "
        failure
        RETVAL=6
    else
        if [ "$RETVAL" -eq 0 ]; then
	    success $"vncserver startup"
	    touch /var/lock/subsys/Xvnc
        else 
            failure $"vncserver start"
        fi
    fi
    echo

# As written in https://bugzilla.redhat.com/show_bug.cgi?id=523974 (LSB
# compliance) start of already running service is OK.
    [ "$RETVAL" -eq 98 ] && RETVAL=0

    return "$RETVAL"
}

stop() {
    [ "$EUID" != "0" ] && exit 4

    echo -n $"Shutting down $prog: "

    status Xvnc > /dev/null 2>&1
    RETVAL=$?

    # 3 means service is already stopped
    if ! [ "$RETVAL" -eq 3 ]; then
	for display in ${VNCSERVERS}; do
	    echo -n "${display} "
	    export USER="${display##*:}"
	    runuser ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
	done
	RETVAL=$?
    else
	let RETVAL=0
    fi

    [ "$RETVAL" -eq 0 ] && success $"vncserver shutdown" || \
	failure $"vncserver shutdown"
    echo
    [ "$RETVAL" -eq 0 ] && rm -f /var/lock/subsys/Xvnc
    return "$RETVAL"
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|force-reload)
	stop
	sleep 3
	start
	;;
  condrestart)
#	https://bugzilla.redhat.com/show_bug.cgi?id=508367
#	echo "condrestart is obsolete, use try-restart instead"
	if [ -e /var/lock/subsys/Xvnc ]; then
	    stop
	    sleep 3
	    start
	fi
	;;
  try-restart)
        if [ -e /var/lock/subsys/Xvnc ]; then
            stop
            sleep 3
            start
        fi
        ;;
  status)
	status Xvnc
	RETVAL=$?
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|try-restart|status|force-reload}"
	exit 2
esac

exit "$RETVAL"

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/single                                  0000755 0000000 0000000 00000001207 11524350104 023720  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/mdmonitor                               0000755 0000000 0000000 00000005013 11524350101 024443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/restorecond                             0000755 0000000 0000000 00000003427 11524350103 024773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/bluetooth                               0000755 0000000 0000000 00000001306 11524350076 024454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 345 50 83
# description: Turn HID adapters into Bluetooth ones
#
### BEGIN INIT INFO
# Short-Description: Trigger bluetoothd start-up
# Description: Trigger bluetoothd start-up
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth

start()
{
	echo -n $"Enabling Bluetooth devices:"
	udevadm trigger --subsystem-match=bluetooth
	echo ""
	return 0
}

stop()
{
	# FIXME If somebody figures out how to disable the K* script
	echo -n "Stopping Bluetooth services:"
	echo ""
	return 0
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  *)
	echo $"Usage: $0 {start|stop}"
	exit 3
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/wpa_supplicant                          0000755 0000000 0000000 00000003512 11524350104 025471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/cpuspeed                                0000755 0000000 0000000 00000025442 11524350077 024267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/netfs                                   0000755 0000000 0000000 00000012432 11524350102 023556  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/rpcsvcgssd                              0000755 0000000 0000000 00000006014 11524350103 024620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/ksmtuned                                0000755 0000000 0000000 00000003433 11524350101 024271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/sandbox                                 0000755 0000000 0000000 00000003242 11524350104 024076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/killall                                 0000755 0000000 0000000 00000001214 11524350101 024056  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/rdisc                                   0000755 0000000 0000000 00000003027 11524350102 023543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/httpd                                   0000755 0000000 0000000 00000006364 11524350100 023567  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/ntpd                                    0000755 0000000 0000000 00000003603 11524350102 023404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/smartd                                  0000755 0000000 0000000 00000005672 11524350104 023743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/ntpdate                                 0000755 0000000 0000000 00000003512 11524350102 024075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/etc/rc.d/init.d/microcode_ctl                           0000755 0000000 0000000 00000002221 11524350102 025240  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/etc/hosts                                               0000644 0000000 0000000 00000033400 11524350073 021566  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1	tb3-client04	localhost.localdomain	localhost
::1	tb3-client04	localhost6.localdomain6	localhost6

10.1.216.100	autobench tb3-autobench tb3-autobench.linuxperf9025.net
10.1.216.150	tb3-master
10.1.216.246	tb3-mako18

10.1.216.11		tb3-client01
10.1.216.12		tb3-client02
10.1.216.13		tb3-client03
10.1.216.14		tb3-client04

10.1.216.151		tb3-vct01	tb3-vct01.linuxperf9025.net
10.1.216.152		tb3-vct02	tb3-vct02.linuxperf9025.net
10.1.216.153		tb3-vct03	tb3-vct03.linuxperf9025.net
10.1.216.154		tb3-vct04	tb3-vct04.linuxperf9025.net
10.1.216.155		tb3-vct05	tb3-vct05.linuxperf9025.net
10.1.216.156		tb3-vct06	tb3-vct06.linuxperf9025.net
10.1.216.157		tb3-vct07	tb3-vct07.linuxperf9025.net
10.1.216.158		tb3-vct08	tb3-vct08.linuxperf9025.net
10.1.216.159		tb3-vct09	tb3-vct09.linuxperf9025.net
10.1.216.160		tb3-vct10	tb3-vct10.linuxperf9025.net
10.1.216.161		tb3-vct11	tb3-vct11.linuxperf9025.net
10.1.216.162		tb3-vct12	tb3-vct12.linuxperf9025.net
10.1.216.163		tb3-vct13	tb3-vct13.linuxperf9025.net
10.1.216.164		tb3-vct14	tb3-vct14.linuxperf9025.net
10.1.216.165		tb3-vct15	tb3-vct15.linuxperf9025.net
10.1.216.166		tb3-vct16	tb3-vct16.linuxperf9025.net
10.1.216.167		tb3-vct17	tb3-vct17.linuxperf9025.net
10.1.216.168		tb3-vct18	tb3-vct18.linuxperf9025.net
10.1.216.169		tb3-vct19	tb3-vct19.linuxperf9025.net
10.1.216.170		tb3-vct20	tb3-vct20.linuxperf9025.net
10.1.216.171		tb3-vct21	tb3-vct21.linuxperf9025.net
10.1.216.172		tb3-vct22	tb3-vct22.linuxperf9025.net
10.1.216.173		tb3-vct23	tb3-vct23.linuxperf9025.net
10.1.216.174		tb3-vct24	tb3-vct24.linuxperf9025.net
10.1.216.175		tb3-vct25	tb3-vct25.linuxperf9025.net
10.1.216.176		tb3-vct26	tb3-vct26.linuxperf9025.net
10.1.216.177		tb3-vct27	tb3-vct27.linuxperf9025.net
10.1.216.178		tb3-vct28	tb3-vct28.linuxperf9025.net
10.1.216.179		tb3-vct29	tb3-vct29.linuxperf9025.net
10.1.216.180		tb3-vct30	tb3-vct30.linuxperf9025.net
10.1.216.181		tb3-vct31	tb3-vct31.linuxperf9025.net
10.1.216.182		tb3-vct32	tb3-vct32.linuxperf9025.net
10.1.216.183		tb3-vct33	tb3-vct33.linuxperf9025.net
10.1.216.184		tb3-vct34	tb3-vct34.linuxperf9025.net
10.1.216.185		tb3-vct35	tb3-vct35.linuxperf9025.net
10.1.216.186		tb3-vct36	tb3-vct36.linuxperf9025.net

10.1.217.1		tb3-webt01	tb3-webt01.linuxperf9025.net
10.1.217.2		tb3-appt01	tb3-appt01.linuxperf9025.net
10.1.217.3		tb3-dbt01	tb3-dbt01.linuxperf9025.net
10.1.217.4		tb3-idlet01	tb3-idlet01.linuxperf9025.net
10.1.217.5		tb3-infrat01	tb3-infrat01.linuxperf9025.net
10.1.217.6		tb3-mailt01	tb3-mailt01.linuxperf9025.net
10.1.217.7		tb3-webt02	tb3-webt02.linuxperf9025.net
10.1.217.8		tb3-appt02	tb3-appt02.linuxperf9025.net
10.1.217.9		tb3-dbt02	tb3-dbt02.linuxperf9025.net
10.1.217.10		tb3-idlet02	tb3-idlet02.linuxperf9025.net
10.1.217.11		tb3-infrat02	tb3-infrat02.linuxperf9025.net
10.1.217.12		tb3-mailt02	tb3-mailt02.linuxperf9025.net
10.1.217.13		tb3-webt03	tb3-webt03.linuxperf9025.net
10.1.217.14		tb3-appt03	tb3-appt03.linuxperf9025.net
10.1.217.15		tb3-dbt03	tb3-dbt03.linuxperf9025.net
10.1.217.16		tb3-idlet03	tb3-idlet03.linuxperf9025.net
10.1.217.17		tb3-infrat03	tb3-infrat03.linuxperf9025.net
10.1.217.18		tb3-mailt03	tb3-mailt03.linuxperf9025.net
10.1.217.19		tb3-webt04	tb3-webt04.linuxperf9025.net
10.1.217.20		tb3-appt04	tb3-appt04.linuxperf9025.net
10.1.217.21		tb3-dbt04	tb3-dbt04.linuxperf9025.net
10.1.217.22		tb3-idlet04	tb3-idlet04.linuxperf9025.net
10.1.217.23		tb3-infrat04	tb3-infrat04.linuxperf9025.net
10.1.217.24		tb3-mailt04	tb3-mailt04.linuxperf9025.net
10.1.217.25		tb3-webt05	tb3-webt05.linuxperf9025.net
10.1.217.26		tb3-appt05	tb3-appt05.linuxperf9025.net
10.1.217.27		tb3-dbt05	tb3-dbt05.linuxperf9025.net
10.1.217.28		tb3-idlet05	tb3-idlet05.linuxperf9025.net
10.1.217.29		tb3-infrat05	tb3-infrat05.linuxperf9025.net
10.1.217.30		tb3-mailt05	tb3-mailt05.linuxperf9025.net
10.1.217.31		tb3-webt06	tb3-webt06.linuxperf9025.net
10.1.217.32		tb3-appt06	tb3-appt06.linuxperf9025.net
10.1.217.33		tb3-dbt06	tb3-dbt06.linuxperf9025.net
10.1.217.34		tb3-idlet06	tb3-idlet06.linuxperf9025.net
10.1.217.35		tb3-infrat06	tb3-infrat06.linuxperf9025.net
10.1.217.36		tb3-mailt06	tb3-mailt06.linuxperf9025.net
10.1.217.37		tb3-webt07	tb3-webt07.linuxperf9025.net
10.1.217.38		tb3-appt07	tb3-appt07.linuxperf9025.net
10.1.217.39		tb3-dbt07	tb3-dbt07.linuxperf9025.net
10.1.217.40		tb3-idlet07	tb3-idlet07.linuxperf9025.net
10.1.217.41		tb3-infrat07	tb3-infrat07.linuxperf9025.net
10.1.217.42		tb3-mailt07	tb3-mailt07.linuxperf9025.net
10.1.217.43		tb3-webt08	tb3-webt08.linuxperf9025.net
10.1.217.44		tb3-appt08	tb3-appt08.linuxperf9025.net
10.1.217.45		tb3-dbt08	tb3-dbt08.linuxperf9025.net
10.1.217.46		tb3-idlet08	tb3-idlet08.linuxperf9025.net
10.1.217.47		tb3-infrat08	tb3-infrat08.linuxperf9025.net
10.1.217.48		tb3-mailt08	tb3-mailt08.linuxperf9025.net
10.1.217.49		tb3-webt09	tb3-webt09.linuxperf9025.net
10.1.217.50		tb3-appt09	tb3-appt09.linuxperf9025.net
10.1.217.51		tb3-dbt09	tb3-dbt09.linuxperf9025.net
10.1.217.52		tb3-idlet09	tb3-idlet09.linuxperf9025.net
10.1.217.53		tb3-infrat09	tb3-infrat09.linuxperf9025.net
10.1.217.54		tb3-mailt09	tb3-mailt09.linuxperf9025.net
10.1.217.55		tb3-webt10	tb3-webt10.linuxperf9025.net
10.1.217.56		tb3-appt10	tb3-appt10.linuxperf9025.net
10.1.217.57		tb3-dbt10	tb3-dbt10.linuxperf9025.net
10.1.217.58		tb3-idlet10	tb3-idlet10.linuxperf9025.net
10.1.217.59		tb3-infrat10	tb3-infrat10.linuxperf9025.net
10.1.217.60		tb3-mailt10	tb3-mailt10.linuxperf9025.net
10.1.217.61		tb3-webt11	tb3-webt11.linuxperf9025.net
10.1.217.62		tb3-appt11	tb3-appt11.linuxperf9025.net
10.1.217.63		tb3-dbt11	tb3-dbt11.linuxperf9025.net
10.1.217.64		tb3-idlet11	tb3-idlet11.linuxperf9025.net
10.1.217.65		tb3-infrat11	tb3-infrat11.linuxperf9025.net
10.1.217.66		tb3-mailt11	tb3-mailt11.linuxperf9025.net
10.1.217.67		tb3-webt12	tb3-webt12.linuxperf9025.net
10.1.217.68		tb3-appt12	tb3-appt12.linuxperf9025.net
10.1.217.69		tb3-dbt12	tb3-dbt12.linuxperf9025.net
10.1.217.70		tb3-idlet12	tb3-idlet12.linuxperf9025.net
10.1.217.71		tb3-infrat12	tb3-infrat12.linuxperf9025.net
10.1.217.72		tb3-mailt12	tb3-mailt12.linuxperf9025.net
10.1.217.73		tb3-webt13	tb3-webt13.linuxperf9025.net
10.1.217.74		tb3-appt13	tb3-appt13.linuxperf9025.net
10.1.217.75		tb3-dbt13	tb3-dbt13.linuxperf9025.net
10.1.217.76		tb3-idlet13	tb3-idlet13.linuxperf9025.net
10.1.217.77		tb3-infrat13	tb3-infrat13.linuxperf9025.net
10.1.217.78		tb3-mailt13	tb3-mailt13.linuxperf9025.net
10.1.217.79		tb3-webt14	tb3-webt14.linuxperf9025.net
10.1.217.80		tb3-appt14	tb3-appt14.linuxperf9025.net
10.1.217.81		tb3-dbt14	tb3-dbt14.linuxperf9025.net
10.1.217.82		tb3-idlet14	tb3-idlet14.linuxperf9025.net
10.1.217.83		tb3-infrat14	tb3-infrat14.linuxperf9025.net
10.1.217.84		tb3-mailt14	tb3-mailt14.linuxperf9025.net
10.1.217.85		tb3-webt15	tb3-webt15.linuxperf9025.net
10.1.217.86		tb3-appt15	tb3-appt15.linuxperf9025.net
10.1.217.87		tb3-dbt15	tb3-dbt15.linuxperf9025.net
10.1.217.88		tb3-idlet15	tb3-idlet15.linuxperf9025.net
10.1.217.89		tb3-infrat15	tb3-infrat15.linuxperf9025.net
10.1.217.90		tb3-mailt15	tb3-mailt15.linuxperf9025.net
10.1.217.91		tb3-webt16	tb3-webt16.linuxperf9025.net
10.1.217.92		tb3-appt16	tb3-appt16.linuxperf9025.net
10.1.217.93		tb3-dbt16	tb3-dbt16.linuxperf9025.net
10.1.217.94		tb3-idlet16	tb3-idlet16.linuxperf9025.net
10.1.217.95		tb3-infrat16	tb3-infrat16.linuxperf9025.net
10.1.217.96		tb3-mailt16	tb3-mailt16.linuxperf9025.net
10.1.217.97		tb3-webt17	tb3-webt17.linuxperf9025.net
10.1.217.98		tb3-appt17	tb3-appt17.linuxperf9025.net
10.1.217.99		tb3-dbt17	tb3-dbt17.linuxperf9025.net
10.1.217.100		tb3-idlet17	tb3-idlet17.linuxperf9025.net
10.1.217.101		tb3-infrat17	tb3-infrat17.linuxperf9025.net
10.1.217.102		tb3-mailt17	tb3-mailt17.linuxperf9025.net
10.1.217.103		tb3-webt18	tb3-webt18.linuxperf9025.net
10.1.217.104		tb3-appt18	tb3-appt18.linuxperf9025.net
10.1.217.105		tb3-dbt18	tb3-dbt18.linuxperf9025.net
10.1.217.106		tb3-idlet18	tb3-idlet18.linuxperf9025.net
10.1.217.107		tb3-infrat18	tb3-infrat18.linuxperf9025.net
10.1.217.108		tb3-mailt18	tb3-mailt18.linuxperf9025.net
10.1.217.109		tb3-webt19	tb3-webt19.linuxperf9025.net
10.1.217.110		tb3-appt19	tb3-appt19.linuxperf9025.net
10.1.217.111		tb3-dbt19	tb3-dbt19.linuxperf9025.net
10.1.217.112		tb3-idlet19	tb3-idlet19.linuxperf9025.net
10.1.217.113		tb3-infrat19	tb3-infrat19.linuxperf9025.net
10.1.217.114		tb3-mailt19	tb3-mailt19.linuxperf9025.net
10.1.217.115		tb3-webt20	tb3-webt20.linuxperf9025.net
10.1.217.116		tb3-appt20	tb3-appt20.linuxperf9025.net
10.1.217.117		tb3-dbt20	tb3-dbt20.linuxperf9025.net
10.1.217.118		tb3-idlet20	tb3-idlet20.linuxperf9025.net
10.1.217.119		tb3-infrat20	tb3-infrat20.linuxperf9025.net
10.1.217.120		tb3-mailt20	tb3-mailt20.linuxperf9025.net
10.1.217.121		tb3-webt21	tb3-webt21.linuxperf9025.net
10.1.217.122		tb3-appt21	tb3-appt21.linuxperf9025.net
10.1.217.123		tb3-dbt21	tb3-dbt21.linuxperf9025.net
10.1.217.124		tb3-idlet21	tb3-idlet21.linuxperf9025.net
10.1.217.125		tb3-infrat21	tb3-infrat21.linuxperf9025.net
10.1.217.126		tb3-mailt21	tb3-mailt21.linuxperf9025.net
10.1.217.127		tb3-webt22	tb3-webt22.linuxperf9025.net
10.1.217.128		tb3-appt22	tb3-appt22.linuxperf9025.net
10.1.217.129		tb3-dbt22	tb3-dbt22.linuxperf9025.net
10.1.217.130		tb3-idlet22	tb3-idlet22.linuxperf9025.net
10.1.217.131		tb3-infrat22	tb3-infrat22.linuxperf9025.net
10.1.217.132		tb3-mailt22	tb3-mailt22.linuxperf9025.net
10.1.217.133		tb3-webt23	tb3-webt23.linuxperf9025.net
10.1.217.134		tb3-appt23	tb3-appt23.linuxperf9025.net
10.1.217.135		tb3-dbt23	tb3-dbt23.linuxperf9025.net
10.1.217.136		tb3-idlet23	tb3-idlet23.linuxperf9025.net
10.1.217.137		tb3-infrat23	tb3-infrat23.linuxperf9025.net
10.1.217.138		tb3-mailt23	tb3-mailt23.linuxperf9025.net
10.1.217.139		tb3-webt24	tb3-webt24.linuxperf9025.net
10.1.217.140		tb3-appt24	tb3-appt24.linuxperf9025.net
10.1.217.141		tb3-dbt24	tb3-dbt24.linuxperf9025.net
10.1.217.142		tb3-idlet24	tb3-idlet24.linuxperf9025.net
10.1.217.143		tb3-infrat24	tb3-infrat24.linuxperf9025.net
10.1.217.144		tb3-mailt24	tb3-mailt24.linuxperf9025.net
10.1.217.145		tb3-webt25	tb3-webt25.linuxperf9025.net
10.1.217.146		tb3-appt25	tb3-appt25.linuxperf9025.net
10.1.217.147		tb3-dbt25	tb3-dbt25.linuxperf9025.net
10.1.217.148		tb3-idlet25	tb3-idlet25.linuxperf9025.net
10.1.217.149		tb3-infrat25	tb3-infrat25.linuxperf9025.net
10.1.217.150		tb3-mailt25	tb3-mailt25.linuxperf9025.net
10.1.217.151		tb3-webt26	tb3-webt26.linuxperf9025.net
10.1.217.152		tb3-appt26	tb3-appt26.linuxperf9025.net
10.1.217.153		tb3-dbt26	tb3-dbt26.linuxperf9025.net
10.1.217.154		tb3-idlet26	tb3-idlet26.linuxperf9025.net
10.1.217.155		tb3-infrat26	tb3-infrat26.linuxperf9025.net
10.1.217.156		tb3-mailt26	tb3-mailt26.linuxperf9025.net
10.1.217.157		tb3-webt27	tb3-webt27.linuxperf9025.net
10.1.217.158		tb3-appt27	tb3-appt27.linuxperf9025.net
10.1.217.159		tb3-dbt27	tb3-dbt27.linuxperf9025.net
10.1.217.160		tb3-idlet27	tb3-idlet27.linuxperf9025.net
10.1.217.161		tb3-infrat27	tb3-infrat27.linuxperf9025.net
10.1.217.162		tb3-mailt27	tb3-mailt27.linuxperf9025.net
10.1.217.163		tb3-webt28	tb3-webt28.linuxperf9025.net
10.1.217.164		tb3-appt28	tb3-appt28.linuxperf9025.net
10.1.217.165		tb3-dbt28	tb3-dbt28.linuxperf9025.net
10.1.217.166		tb3-idlet28	tb3-idlet28.linuxperf9025.net
10.1.217.167		tb3-infrat28	tb3-infrat28.linuxperf9025.net
10.1.217.168		tb3-mailt28	tb3-mailt28.linuxperf9025.net
10.1.217.169		tb3-webt29	tb3-webt29.linuxperf9025.net
10.1.217.170		tb3-appt29	tb3-appt29.linuxperf9025.net
10.1.217.171		tb3-dbt29	tb3-dbt29.linuxperf9025.net
10.1.217.172		tb3-idlet29	tb3-idlet29.linuxperf9025.net
10.1.217.173		tb3-infrat29	tb3-infrat29.linuxperf9025.net
10.1.217.174		tb3-mailt29	tb3-mailt29.linuxperf9025.net
10.1.217.175		tb3-webt30	tb3-webt30.linuxperf9025.net
10.1.217.176		tb3-appt30	tb3-appt30.linuxperf9025.net
10.1.217.177		tb3-dbt30	tb3-dbt30.linuxperf9025.net
10.1.217.178		tb3-idlet30	tb3-idlet30.linuxperf9025.net
10.1.217.179		tb3-infrat30	tb3-infrat30.linuxperf9025.net
10.1.217.180		tb3-mailt30	tb3-mailt30.linuxperf9025.net
10.1.217.181		tb3-webt31	tb3-webt31.linuxperf9025.net
10.1.217.182		tb3-appt31	tb3-appt31.linuxperf9025.net
10.1.217.183		tb3-dbt31	tb3-dbt31.linuxperf9025.net
10.1.217.184		tb3-idlet31	tb3-idlet31.linuxperf9025.net
10.1.217.185		tb3-infrat31	tb3-infrat31.linuxperf9025.net
10.1.217.186		tb3-mailt31	tb3-mailt31.linuxperf9025.net
10.1.217.187		tb3-webt32	tb3-webt32.linuxperf9025.net
10.1.217.188		tb3-appt32	tb3-appt32.linuxperf9025.net
10.1.217.189		tb3-dbt32	tb3-dbt32.linuxperf9025.net
10.1.217.190		tb3-idlet32	tb3-idlet32.linuxperf9025.net
10.1.217.191		tb3-infrat32	tb3-infrat32.linuxperf9025.net
10.1.217.192		tb3-mailt32	tb3-mailt32.linuxperf9025.net
10.1.217.193		tb3-webt33	tb3-webt33.linuxperf9025.net
10.1.217.194		tb3-appt33	tb3-appt33.linuxperf9025.net
10.1.217.195		tb3-dbt33	tb3-dbt33.linuxperf9025.net
10.1.217.196		tb3-idlet33	tb3-idlet33.linuxperf9025.net
10.1.217.197		tb3-infrat33	tb3-infrat33.linuxperf9025.net
10.1.217.198		tb3-mailt33	tb3-mailt33.linuxperf9025.net
10.1.217.199		tb3-webt34	tb3-webt34.linuxperf9025.net
10.1.217.200		tb3-appt34	tb3-appt34.linuxperf9025.net
10.1.217.201		tb3-dbt34	tb3-dbt34.linuxperf9025.net
10.1.217.202		tb3-idlet34	tb3-idlet34.linuxperf9025.net
10.1.217.203		tb3-infrat34	tb3-infrat34.linuxperf9025.net
10.1.217.204		tb3-mailt34	tb3-mailt34.linuxperf9025.net
10.1.217.205		tb3-webt35	tb3-webt35.linuxperf9025.net
10.1.217.206		tb3-appt35	tb3-appt35.linuxperf9025.net
10.1.217.207		tb3-dbt35	tb3-dbt35.linuxperf9025.net
10.1.217.208		tb3-idlet35	tb3-idlet35.linuxperf9025.net
10.1.217.209		tb3-infrat35	tb3-infrat35.linuxperf9025.net
10.1.217.210		tb3-mailt35	tb3-mailt35.linuxperf9025.net
10.1.217.211		tb3-webt36	tb3-webt36.linuxperf9025.net
10.1.217.212		tb3-appt36	tb3-appt36.linuxperf9025.net
10.1.217.213		tb3-dbt36	tb3-dbt36.linuxperf9025.net
10.1.217.214		tb3-idlet36	tb3-idlet36.linuxperf9025.net
10.1.217.215		tb3-infrat36	tb3-infrat36.linuxperf9025.net
10.1.217.216		tb3-mailt36	tb3-mailt36.linuxperf9025.net
                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/etc/iproute2/                                           0000777 0000000 0000000 00000000000 11524350074 022261  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/etc/iproute2/rt_dsfield                                 0000644 0000000 0000000 00000000672 11524350074 024324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client04/etc/iproute2/rt_realms                                  0000644 0000000 0000000 00000000160 11524350074 024165  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/etc/iproute2/rt_scopes                                  0000644 0000000 0000000 00000000134 11524350074 024177  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/etc/iproute2/ematch_map                                 0000644 0000000 0000000 00000000073 11524350073 024275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/etc/iproute2/rt_tables                                  0000644 0000000 0000000 00000000127 11524350074 024157  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/etc/iproute2/rt_protos                                  0000644 0000000 0000000 00000000475 11524350074 024241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/etc/nsswitch.conf                                       0000644 0000000 0000000 00000003230 11524350075 023214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/etc/kvm/                                                0000777 0000000 0000000 00000000000 11524350075 021306  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/etc/kvm/qemu-ifup-br7                                   0000755 0000000 0000000 00000000145 11524350075 023630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br7


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/etc/kvm/qemu-ifup-br8                                   0000755 0000000 0000000 00000000145 11524350075 023631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br8


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/etc/kvm/qemu-ifup-br2                                   0000755 0000000 0000000 00000000145 11524350075 023623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br2


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/etc/kvm/qemu-ifup-2                                     0000755 0000000 0000000 00000000126 11524350074 023275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash


ifconfig $1 0.0.0.0. promisc up
brctl addif br3 $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/etc/kvm/qemu-ifup                                       0000755 0000000 0000000 00000001103 11524350074 023132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

ID=`echo $1 | sed -e s/tap//`
if [ $ID -ge 0 -a $ID -lt 1000 ]; then
    BRIF=br0
fi
if [ $ID -ge 1000 -a $ID -lt 2000 ]; then
    BRIF=br1
fi
if [ $ID -ge 2000 -a $ID -lt 3000 ]; then
    BRIF=br2
fi
if [ $ID -ge 3000 -a $ID -lt 4000 ]; then
    BRIF=br3
fi
if [ $ID -ge 4000 -a $ID -lt 5000 ]; then
    BRIF=br4
fi
if [ $ID -ge 5000 -a $ID -lt 6000 ]; then
    BRIF=br5
fi
if [ $ID -ge 6000 -a $ID -lt 7000 ]; then
    BRIF=br6
fi
if [ $ID -ge 7000 -a $ID -lt 8000 ]; then
    BRIF=br7
fi

ifconfig $1 0.0.0.0. promisc up
brctl addif $BRIF $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/etc/kvm/qemu-ifup-br5                                   0000755 0000000 0000000 00000000145 11524350075 023626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br5


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/etc/kvm/qemu-ifup-br6                                   0000755 0000000 0000000 00000000145 11524350075 023627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br6


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/etc/kvm/qemu-ifup-br9                                   0000755 0000000 0000000 00000000145 11524350075 023632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br9


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/etc/kvm/qemu-ifup-br0                                   0000755 0000000 0000000 00000000143 11524350074 023616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br0
ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/etc/kvm/qemu-ifup-br3                                   0000755 0000000 0000000 00000000145 11524350075 023624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br3


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/etc/kvm/qemu-ifup-1                                     0000755 0000000 0000000 00000000126 11524350074 023274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash


ifconfig $1 0.0.0.0. promisc up
brctl addif br3 $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/etc/kvm/qemu-ifup-3                                     0000755 0000000 0000000 00000000126 11524350074 023276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash


ifconfig $1 0.0.0.0. promisc up
brctl addif br3 $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/etc/kvm/qemu-ifup-br4                                   0000755 0000000 0000000 00000000145 11524350075 023625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br4


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/etc/kvm/qemu-ifup-br1                                   0000755 0000000 0000000 00000000143 11524350075 023620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br1
ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/etc/fstab                                               0000644 0000000 0000000 00000001556 11524350073 021534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Fri Nov 12 01:53:35 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_tb3client04-lv_root /                       ext4    defaults        1 1
UUID=dbf541b6-a671-4ae0-affc-872c2c8fb0de /boot                   ext4    defaults        1 2
UUID=3DDC-F16B          /boot/efi               vfat    umask=0077,shortname=winnt 0 0
/dev/mapper/vg_tb3client04-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/etc/sysctl.conf                                         0000644 0000000 0000000 00000001466 11524350113 022675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/etc/inittab                                             0000644 0000000 0000000 00000001564 11524350073 022066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:5:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client04/var/                                                    0000777 0000000 0000000 00000000000 11524350217 020524  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/var/log/                                                0000777 0000000 0000000 00000000000 11524350217 021305  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/var/log/dmesg                                           0000644 0000000 0000000 00000204140 11524350220 022316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=/dev/mapper/vg_tb3client04-lv_root rd_LVM_LV=vg_tb3client04/lv_root rd_LVM_LV=vg_tb3client04/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000006c000 (usable)
 BIOS-e820: 000000000006c000 - 000000000006d000 (ACPI NVS)
 BIOS-e820: 000000000006d000 - 000000000009f000 (usable)
 BIOS-e820: 000000000009f000 - 00000000000a0000 (ACPI NVS)
 BIOS-e820: 0000000000100000 - 000000007d3f3000 (usable)
 BIOS-e820: 000000007d3f3000 - 000000007d41d000 (reserved)
 BIOS-e820: 000000007d41d000 - 000000007d447000 (usable)
 BIOS-e820: 000000007d447000 - 000000007d471000 (reserved)
 BIOS-e820: 000000007d471000 - 000000007d84d000 (usable)
 BIOS-e820: 000000007d84d000 - 000000007d8fd000 (reserved)
 BIOS-e820: 000000007d8fd000 - 000000007f5ef000 (usable)
 BIOS-e820: 000000007f5ef000 - 000000007f6df000 (reserved)
 BIOS-e820: 000000007f6df000 - 000000007f7df000 (ACPI NVS)
 BIOS-e820: 000000007f7df000 - 000000007f7ff000 (ACPI data)
 BIOS-e820: 000000007f7ff000 - 000000007f800000 (usable)
 BIOS-e820: 0000000080000000 - 0000000090000000 (reserved)
 BIOS-e820: 00000000fed1c000 - 00000000fed20000 (reserved)
 BIOS-e820: 00000000ff800000 - 0000000100000000 (reserved)
 BIOS-e820: 0000000100000000 - 0000000880000000 (usable)
EFI v2.10 by IBM
 ACPI 2.0=0x7f7fe014  SMBIOS=0x7f6be000 
Kernel-defined memdesc doesn't match the one from EFI!
EFI: mem00: type=3, attr=0xf, range=[0x0000000000000000-0x0000000000001000) (0MB)
EFI: mem01: type=7, attr=0xf, range=[0x0000000000001000-0x000000000001e000) (0MB)
EFI: mem02: type=2, attr=0xf, range=[0x000000000001e000-0x0000000000020000) (0MB)
EFI: mem03: type=3, attr=0xf, range=[0x0000000000020000-0x000000000006c000) (0MB)
EFI: mem04: type=10, attr=0xf, range=[0x000000000006c000-0x000000000006d000) (0MB)
EFI: mem05: type=4, attr=0xf, range=[0x000000000006d000-0x000000000006e000) (0MB)
EFI: mem06: type=3, attr=0xf, range=[0x000000000006e000-0x000000000009f000) (0MB)
EFI: mem07: type=10, attr=0xf, range=[0x000000000009f000-0x00000000000a0000) (0MB)
EFI: mem08: type=7, attr=0xf, range=[0x0000000000100000-0x0000000000400000) (3MB)
EFI: mem09: type=3, attr=0xf, range=[0x0000000000400000-0x000000000044c000) (0MB)
EFI: mem10: type=7, attr=0xf, range=[0x000000000044c000-0x0000000000800000) (3MB)
EFI: mem11: type=3, attr=0xf, range=[0x0000000000800000-0x0000000001000000) (8MB)
EFI: mem12: type=7, attr=0xf, range=[0x0000000001000000-0x000000007a074000) (1936MB)
EFI: mem13: type=2, attr=0xf, range=[0x000000007a074000-0x000000007b4cf000) (20MB)
EFI: mem14: type=4, attr=0xf, range=[0x000000007b4cf000-0x000000007bed1000) (10MB)
EFI: mem15: type=2, attr=0xf, range=[0x000000007bed1000-0x000000007c2d1000) (4MB)
EFI: mem16: type=1, attr=0xf, range=[0x000000007c2d1000-0x000000007c30d000) (0MB)
EFI: mem17: type=7, attr=0xf, range=[0x000000007c30d000-0x000000007c33d000) (0MB)
EFI: mem18: type=2, attr=0xf, range=[0x000000007c33d000-0x000000007c346000) (0MB)
EFI: mem19: type=4, attr=0xf, range=[0x000000007c346000-0x000000007c357000) (0MB)
EFI: mem20: type=2, attr=0xf, range=[0x000000007c357000-0x000000007c52c000) (1MB)
EFI: mem21: type=4, attr=0xf, range=[0x000000007c52c000-0x000000007c52e000) (0MB)
EFI: mem22: type=2, attr=0xf, range=[0x000000007c52e000-0x000000007c52f000) (0MB)
EFI: mem23: type=4, attr=0xf, range=[0x000000007c52f000-0x000000007c6fd000) (1MB)
EFI: mem24: type=3, attr=0xf, range=[0x000000007c6fd000-0x000000007c6fe000) (0MB)
EFI: mem25: type=4, attr=0xf, range=[0x000000007c6fe000-0x000000007d3bb000) (12MB)
EFI: mem26: type=2, attr=0xf, range=[0x000000007d3bb000-0x000000007d3bc000) (0MB)
EFI: mem27: type=4, attr=0xf, range=[0x000000007d3bc000-0x000000007d3c3000) (0MB)
EFI: mem28: type=2, attr=0xf, range=[0x000000007d3c3000-0x000000007d3c4000) (0MB)
EFI: mem29: type=4, attr=0xf, range=[0x000000007d3c4000-0x000000007d3d8000) (0MB)
EFI: mem30: type=3, attr=0xf, range=[0x000000007d3d8000-0x000000007d3e5000) (0MB)
EFI: mem31: type=4, attr=0xf, range=[0x000000007d3e5000-0x000000007d3f3000) (0MB)
EFI: mem32: type=5, attr=0x800000000000000f, range=[0x000000007d3f3000-0x000000007d41d000) (0MB)
EFI: mem33: type=4, attr=0xf, range=[0x000000007d41d000-0x000000007d447000) (0MB)
EFI: mem34: type=5, attr=0x800000000000000f, range=[0x000000007d447000-0x000000007d471000) (0MB)
EFI: mem35: type=4, attr=0xf, range=[0x000000007d471000-0x000000007d523000) (0MB)
EFI: mem36: type=2, attr=0xf, range=[0x000000007d523000-0x000000007d524000) (0MB)
EFI: mem37: type=4, attr=0xf, range=[0x000000007d524000-0x000000007d52f000) (0MB)
EFI: mem38: type=3, attr=0xf, range=[0x000000007d52f000-0x000000007d531000) (0MB)
EFI: mem39: type=4, attr=0xf, range=[0x000000007d531000-0x000000007d533000) (0MB)
EFI: mem40: type=3, attr=0xf, range=[0x000000007d533000-0x000000007d534000) (0MB)
EFI: mem41: type=4, attr=0xf, range=[0x000000007d534000-0x000000007d814000) (2MB)
EFI: mem42: type=3, attr=0xf, range=[0x000000007d814000-0x000000007d81a000) (0MB)
EFI: mem43: type=4, attr=0xf, range=[0x000000007d81a000-0x000000007d823000) (0MB)
EFI: mem44: type=3, attr=0xf, range=[0x000000007d823000-0x000000007d82b000) (0MB)
EFI: mem45: type=4, attr=0xf, range=[0x000000007d82b000-0x000000007d84d000) (0MB)
EFI: mem46: type=0, attr=0xf, range=[0x000000007d84d000-0x000000007d8fd000) (0MB)
EFI: mem47: type=4, attr=0xf, range=[0x000000007d8fd000-0x000000007d917000) (0MB)
EFI: mem48: type=3, attr=0xf, range=[0x000000007d917000-0x000000007d91e000) (0MB)
EFI: mem49: type=4, attr=0xf, range=[0x000000007d91e000-0x000000007d984000) (0MB)
EFI: mem50: type=3, attr=0xf, range=[0x000000007d984000-0x000000007d98a000) (0MB)
EFI: mem51: type=4, attr=0xf, range=[0x000000007d98a000-0x000000007d991000) (0MB)
EFI: mem52: type=3, attr=0xf, range=[0x000000007d991000-0x000000007d993000) (0MB)
EFI: mem53: type=4, attr=0xf, range=[0x000000007d993000-0x000000007dab0000) (1MB)
EFI: mem54: type=3, attr=0xf, range=[0x000000007dab0000-0x000000007dabb000) (0MB)
EFI: mem55: type=4, attr=0xf, range=[0x000000007dabb000-0x000000007dac3000) (0MB)
EFI: mem56: type=3, attr=0xf, range=[0x000000007dac3000-0x000000007dad1000) (0MB)
EFI: mem57: type=4, attr=0xf, range=[0x000000007dad1000-0x000000007dad7000) (0MB)
EFI: mem58: type=3, attr=0xf, range=[0x000000007dad7000-0x000000007dae1000) (0MB)
EFI: mem59: type=4, attr=0xf, range=[0x000000007dae1000-0x000000007dae3000) (0MB)
EFI: mem60: type=3, attr=0xf, range=[0x000000007dae3000-0x000000007dae7000) (0MB)
EFI: mem61: type=4, attr=0xf, range=[0x000000007dae7000-0x000000007daeb000) (0MB)
EFI: mem62: type=3, attr=0xf, range=[0x000000007daeb000-0x000000007dafc000) (0MB)
EFI: mem63: type=4, attr=0xf, range=[0x000000007dafc000-0x000000007daff000) (0MB)
EFI: mem64: type=3, attr=0xf, range=[0x000000007daff000-0x000000007db09000) (0MB)
EFI: mem65: type=4, attr=0xf, range=[0x000000007db09000-0x000000007db0a000) (0MB)
EFI: mem66: type=3, attr=0xf, range=[0x000000007db0a000-0x000000007db21000) (0MB)
EFI: mem67: type=4, attr=0xf, range=[0x000000007db21000-0x000000007db23000) (0MB)
EFI: mem68: type=3, attr=0xf, range=[0x000000007db23000-0x000000007db27000) (0MB)
EFI: mem69: type=4, attr=0xf, range=[0x000000007db27000-0x000000007db29000) (0MB)
EFI: mem70: type=3, attr=0xf, range=[0x000000007db29000-0x000000007db2d000) (0MB)
EFI: mem71: type=4, attr=0xf, range=[0x000000007db2d000-0x000000007db30000) (0MB)
EFI: mem72: type=3, attr=0xf, range=[0x000000007db30000-0x000000007db3b000) (0MB)
EFI: mem73: type=4, attr=0xf, range=[0x000000007db3b000-0x000000007db3c000) (0MB)
EFI: mem74: type=3, attr=0xf, range=[0x000000007db3c000-0x000000007db42000) (0MB)
EFI: mem75: type=4, attr=0xf, range=[0x000000007db42000-0x000000007db43000) (0MB)
EFI: mem76: type=3, attr=0xf, range=[0x000000007db43000-0x000000007db4a000) (0MB)
EFI: mem77: type=4, attr=0xf, range=[0x000000007db4a000-0x000000007db4c000) (0MB)
EFI: mem78: type=3, attr=0xf, range=[0x000000007db4c000-0x000000007db53000) (0MB)
EFI: mem79: type=2, attr=0xf, range=[0x000000007db53000-0x000000007dd26000) (1MB)
EFI: mem80: type=4, attr=0xf, range=[0x000000007dd26000-0x000000007defd000) (1MB)
EFI: mem81: type=3, attr=0xf, range=[0x000000007defd000-0x000000007df5a000) (0MB)
EFI: mem82: type=4, attr=0xf, range=[0x000000007df5a000-0x000000007df5c000) (0MB)
EFI: mem83: type=3, attr=0xf, range=[0x000000007df5c000-0x000000007df5d000) (0MB)
EFI: mem84: type=4, attr=0xf, range=[0x000000007df5d000-0x000000007df5e000) (0MB)
EFI: mem85: type=3, attr=0xf, range=[0x000000007df5e000-0x000000007df62000) (0MB)
EFI: mem86: type=4, attr=0xf, range=[0x000000007df62000-0x000000007df67000) (0MB)
EFI: mem87: type=3, attr=0xf, range=[0x000000007df67000-0x000000007df76000) (0MB)
EFI: mem88: type=4, attr=0xf, range=[0x000000007df76000-0x000000007df77000) (0MB)
EFI: mem89: type=3, attr=0xf, range=[0x000000007df77000-0x000000007df7f000) (0MB)
EFI: mem90: type=4, attr=0xf, range=[0x000000007df7f000-0x000000007df82000) (0MB)
EFI: mem91: type=3, attr=0xf, range=[0x000000007df82000-0x000000007df86000) (0MB)
EFI: mem92: type=4, attr=0xf, range=[0x000000007df86000-0x000000007df87000) (0MB)
EFI: mem93: type=3, attr=0xf, range=[0x000000007df87000-0x000000007df90000) (0MB)
EFI: mem94: type=4, attr=0xf, range=[0x000000007df90000-0x000000007df91000) (0MB)
EFI: mem95: type=3, attr=0xf, range=[0x000000007df91000-0x000000007df98000) (0MB)
EFI: mem96: type=4, attr=0xf, range=[0x000000007df98000-0x000000007df9f000) (0MB)
EFI: mem97: type=3, attr=0xf, range=[0x000000007df9f000-0x000000007dfa8000) (0MB)
EFI: mem98: type=4, attr=0xf, range=[0x000000007dfa8000-0x000000007dfab000) (0MB)
EFI: mem99: type=3, attr=0xf, range=[0x000000007dfab000-0x000000007dfb7000) (0MB)
EFI: mem100: type=4, attr=0xf, range=[0x000000007dfb7000-0x000000007e06e000) (0MB)
EFI: mem101: type=3, attr=0xf, range=[0x000000007e06e000-0x000000007e075000) (0MB)
EFI: mem102: type=4, attr=0xf, range=[0x000000007e075000-0x000000007e078000) (0MB)
EFI: mem103: type=3, attr=0xf, range=[0x000000007e078000-0x000000007e08f000) (0MB)
EFI: mem104: type=4, attr=0xf, range=[0x000000007e08f000-0x000000007e090000) (0MB)
EFI: mem105: type=3, attr=0xf, range=[0x000000007e090000-0x000000007e092000) (0MB)
EFI: mem106: type=4, attr=0xf, range=[0x000000007e092000-0x000000007e094000) (0MB)
EFI: mem107: type=3, attr=0xf, range=[0x000000007e094000-0x000000007e09d000) (0MB)
EFI: mem108: type=4, attr=0xf, range=[0x000000007e09d000-0x000000007e09e000) (0MB)
EFI: mem109: type=3, attr=0xf, range=[0x000000007e09e000-0x000000007e0a6000) (0MB)
EFI: mem110: type=4, attr=0xf, range=[0x000000007e0a6000-0x000000007e0e6000) (0MB)
EFI: mem111: type=3, attr=0xf, range=[0x000000007e0e6000-0x000000007e101000) (0MB)
EFI: mem112: type=4, attr=0xf, range=[0x000000007e101000-0x000000007e108000) (0MB)
EFI: mem113: type=3, attr=0xf, range=[0x000000007e108000-0x000000007e109000) (0MB)
EFI: mem114: type=4, attr=0xf, range=[0x000000007e109000-0x000000007e10a000) (0MB)
EFI: mem115: type=3, attr=0xf, range=[0x000000007e10a000-0x000000007e10d000) (0MB)
EFI: mem116: type=4, attr=0xf, range=[0x000000007e10d000-0x000000007e114000) (0MB)
EFI: mem117: type=3, attr=0xf, range=[0x000000007e114000-0x000000007e116000) (0MB)
EFI: mem118: type=4, attr=0xf, range=[0x000000007e116000-0x000000007e118000) (0MB)
EFI: mem119: type=3, attr=0xf, range=[0x000000007e118000-0x000000007e11b000) (0MB)
EFI: mem120: type=4, attr=0xf, range=[0x000000007e11b000-0x000000007e11e000) (0MB)
EFI: mem121: type=3, attr=0xf, range=[0x000000007e11e000-0x000000007e121000) (0MB)
EFI: mem122: type=4, attr=0xf, range=[0x000000007e121000-0x000000007e521000) (4MB)
EFI: mem123: type=3, attr=0xf, range=[0x000000007e521000-0x000000007e528000) (0MB)
EFI: mem124: type=4, attr=0xf, range=[0x000000007e528000-0x000000007e52d000) (0MB)
EFI: mem125: type=3, attr=0xf, range=[0x000000007e52d000-0x000000007e52f000) (0MB)
EFI: mem126: type=4, attr=0xf, range=[0x000000007e52f000-0x000000007e532000) (0MB)
EFI: mem127: type=3, attr=0xf, range=[0x000000007e532000-0x000000007e534000) (0MB)
EFI: mem128: type=4, attr=0xf, range=[0x000000007e534000-0x000000007e53f000) (0MB)
EFI: mem129: type=3, attr=0xf, range=[0x000000007e53f000-0x000000007e540000) (0MB)
EFI: mem130: type=4, attr=0xf, range=[0x000000007e540000-0x000000007e542000) (0MB)
EFI: mem131: type=3, attr=0xf, range=[0x000000007e542000-0x000000007e543000) (0MB)
EFI: mem132: type=4, attr=0xf, range=[0x000000007e543000-0x000000007e567000) (0MB)
EFI: mem133: type=3, attr=0xf, range=[0x000000007e567000-0x000000007e56e000) (0MB)
EFI: mem134: type=4, attr=0xf, range=[0x000000007e56e000-0x000000007e572000) (0MB)
EFI: mem135: type=3, attr=0xf, range=[0x000000007e572000-0x000000007e574000) (0MB)
EFI: mem136: type=4, attr=0xf, range=[0x000000007e574000-0x000000007e577000) (0MB)
EFI: mem137: type=3, attr=0xf, range=[0x000000007e577000-0x000000007e578000) (0MB)
EFI: mem138: type=4, attr=0xf, range=[0x000000007e578000-0x000000007e57c000) (0MB)
EFI: mem139: type=3, attr=0xf, range=[0x000000007e57c000-0x000000007e57e000) (0MB)
EFI: mem140: type=4, attr=0xf, range=[0x000000007e57e000-0x000000007e584000) (0MB)
EFI: mem141: type=3, attr=0xf, range=[0x000000007e584000-0x000000007e588000) (0MB)
EFI: mem142: type=4, attr=0xf, range=[0x000000007e588000-0x000000007e5d1000) (0MB)
EFI: mem143: type=3, attr=0xf, range=[0x000000007e5d1000-0x000000007e5df000) (0MB)
EFI: mem144: type=4, attr=0xf, range=[0x000000007e5df000-0x000000007e641000) (0MB)
EFI: mem145: type=3, attr=0xf, range=[0x000000007e641000-0x000000007e663000) (0MB)
EFI: mem146: type=4, attr=0xf, range=[0x000000007e663000-0x000000007e66b000) (0MB)
EFI: mem147: type=3, attr=0xf, range=[0x000000007e66b000-0x000000007e66f000) (0MB)
EFI: mem148: type=4, attr=0xf, range=[0x000000007e66f000-0x000000007e670000) (0MB)
EFI: mem149: type=3, attr=0xf, range=[0x000000007e670000-0x000000007e673000) (0MB)
EFI: mem150: type=4, attr=0xf, range=[0x000000007e673000-0x000000007e6be000) (0MB)
EFI: mem151: type=3, attr=0xf, range=[0x000000007e6be000-0x000000007e6dc000) (0MB)
EFI: mem152: type=4, attr=0xf, range=[0x000000007e6dc000-0x000000007e6e3000) (0MB)
EFI: mem153: type=3, attr=0xf, range=[0x000000007e6e3000-0x000000007e6e4000) (0MB)
EFI: mem154: type=4, attr=0xf, range=[0x000000007e6e4000-0x000000007e6ee000) (0MB)
EFI: mem155: type=3, attr=0xf, range=[0x000000007e6ee000-0x000000007e6f6000) (0MB)
EFI: mem156: type=4, attr=0xf, range=[0x000000007e6f6000-0x000000007e6fe000) (0MB)
EFI: mem157: type=3, attr=0xf, range=[0x000000007e6fe000-0x000000007e70a000) (0MB)
EFI: mem158: type=4, attr=0xf, range=[0x000000007e70a000-0x000000007e710000) (0MB)
EFI: mem159: type=3, attr=0xf, range=[0x000000007e710000-0x000000007e71c000) (0MB)
EFI: mem160: type=4, attr=0xf, range=[0x000000007e71c000-0x000000007e71e000) (0MB)
EFI: mem161: type=3, attr=0xf, range=[0x000000007e71e000-0x000000007e721000) (0MB)
EFI: mem162: type=4, attr=0xf, range=[0x000000007e721000-0x000000007e722000) (0MB)
EFI: mem163: type=3, attr=0xf, range=[0x000000007e722000-0x000000007e72b000) (0MB)
EFI: mem164: type=4, attr=0xf, range=[0x000000007e72b000-0x000000007e72c000) (0MB)
EFI: mem165: type=3, attr=0xf, range=[0x000000007e72c000-0x000000007e72d000) (0MB)
EFI: mem166: type=4, attr=0xf, range=[0x000000007e72d000-0x000000007e72e000) (0MB)
EFI: mem167: type=3, attr=0xf, range=[0x000000007e72e000-0x000000007e732000) (0MB)
EFI: mem168: type=4, attr=0xf, range=[0x000000007e732000-0x000000007e733000) (0MB)
EFI: mem169: type=3, attr=0xf, range=[0x000000007e733000-0x000000007e734000) (0MB)
EFI: mem170: type=4, attr=0xf, range=[0x000000007e734000-0x000000007e737000) (0MB)
EFI: mem171: type=3, attr=0xf, range=[0x000000007e737000-0x000000007e73c000) (0MB)
EFI: mem172: type=4, attr=0xf, range=[0x000000007e73c000-0x000000007e73e000) (0MB)
EFI: mem173: type=3, attr=0xf, range=[0x000000007e73e000-0x000000007e741000) (0MB)
EFI: mem174: type=4, attr=0xf, range=[0x000000007e741000-0x000000007e772000) (0MB)
EFI: mem175: type=3, attr=0xf, range=[0x000000007e772000-0x000000007e773000) (0MB)
EFI: mem176: type=4, attr=0xf, range=[0x000000007e773000-0x000000007f5ef000) (14MB)
EFI: mem177: type=6, attr=0x800000000000000f, range=[0x000000007f5ef000-0x000000007f5f5000) (0MB)
EFI: mem178: type=6, attr=0x800000000000000f, range=[0x000000007f5f5000-0x000000007f601000) (0MB)
EFI: mem179: type=5, attr=0x800000000000000f, range=[0x000000007f601000-0x000000007f60d000) (0MB)
EFI: mem180: type=6, attr=0x800000000000000f, range=[0x000000007f60d000-0x000000007f63f000) (0MB)
EFI: mem181: type=5, attr=0x800000000000000f, range=[0x000000007f63f000-0x000000007f68f000) (0MB)
EFI: mem182: type=0, attr=0xf, range=[0x000000007f68f000-0x000000007f6bd000) (0MB)
EFI: mem183: type=0, attr=0xf, range=[0x000000007f6bd000-0x000000007f6df000) (0MB)
EFI: mem184: type=10, attr=0xf, range=[0x000000007f6df000-0x000000007f72c000) (0MB)
EFI: mem185: type=10, attr=0xf, range=[0x000000007f72c000-0x000000007f7df000) (0MB)
EFI: mem186: type=9, attr=0xf, range=[0x000000007f7df000-0x000000007f7e9000) (0MB)
EFI: mem187: type=9, attr=0xf, range=[0x000000007f7e9000-0x000000007f7ff000) (0MB)
EFI: mem188: type=4, attr=0xf, range=[0x000000007f7ff000-0x000000007f800000) (0MB)
EFI: mem189: type=11, attr=0x8000000000000001, range=[0x00000000ff800000-0x0000000100000000) (8MB)
EFI: mem190: type=7, attr=0xf, range=[0x0000000100000000-0x0000000880000000) (30720MB)
EFI: mem191: type=11, attr=0x8000000000000001, range=[0x0000000080000000-0x0000000090000000) (256MB)
EFI: mem192: type=11, attr=0x8000000000000000, range=[0x00000000fed1c000-0x00000000fed20000) (0MB)
DMI 2.5 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x880000 max_arch_pfn = 0x400000000
MTRR default type: uncachable
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-FFFFF uncachable
MTRR variable ranges enabled:
  0 base 0000000000 mask FF80000000 write-back
  1 base 0100000000 mask FF00000000 write-back
  2 base 0200000000 mask FE00000000 write-back
  3 base 0400000000 mask FC00000000 write-back
  4 base 0800000000 mask F800000000 write-back
  5 disabled
  6 disabled
  7 disabled
x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
e820 update range: 0000000080000000 - 0000000100000000 (usable) ==> (reserved)
last_pfn = 0x7f800 max_arch_pfn = 0x400000000
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007f800000
 0000000000 - 007f800000 page 2M
kernel direct mapping tables up to 7f800000 @ 8000-b000
init_memory_mapping: 0000000100000000-0000000880000000
 0100000000 - 0880000000 page 2M
kernel direct mapping tables up to 880000000 @ 9000-2c000
RAMDISK: 7a074000 - 7adac778
ACPI: RSDP 000000007f7fe014 00024 (v02 IBM   )
ACPI: XSDT 000000007f7fe120 00094 (v01 IBM    THURLEY  00000000      01000013)
ACPI: FACP 000000007f7fb000 000F4 (v04 IBM    THURLEY  00000000 IBM  01000013)
ACPI Warning: Invalid length for Pm1aControlBlock: 32, using default 16 (20090903/tbfadt-607)
ACPI: DSDT 000000007f7f8000 02BF3 (v01 IBM    THURLEY  00000003 IBM  01000013)
ACPI: FACS 000000007f72c000 00040
ACPI: TCPA 000000007f7fd000 00064 (v00                 00000000      00000000)
ACPI: APIC 000000007f7f7000 000DE (v02 IBM    THURLEY  00000000 IBM  01000013)
ACPI: MCFG 000000007f7f6000 0003C (v01 IBM    THURLEY  00000001 IBM  01000013)
ACPI: SLIC 000000007f7f5000 00176 (v01 IBM    THURLEY  00000000 IBM  01000013)
ACPI: HPET 000000007f7f4000 00038 (v01 IBM    THURLEY  00000001 IBM  01000013)
ACPI: SRAT 000000007f7f3000 001A8 (v02 IBM    THURLEY  00000001 IBM  01000013)
ACPI: SLIT 000000007f7f2000 00030 (v01 IBM    THURLEY  00000000 IBM  01000013)
ACPI: SSDT 000000007f7f1000 00113 (v02 IBM    CPUSCOPE 00004000 IBM  01000013)
ACPI: SSDT 000000007f7f0000 00491 (v02 IBM    CPUWYVRN 00004000 IBM  01000013)
ACPI: SSDT 000000007f7ec000 037CC (v02 IBM    PSTATEPM 00004000 IBM  01000013)
ACPI: SSDT 000000007f7eb000 00832 (v02 IBM    CPUCSTAT 00004000 IBM  01000013)
ACPI: ERST 000000007f7ea000 00230 (v01 IBM    THURLEY  00000001 IBM  01000013)
ACPI: DMAR 000000007f7e9000 000C8 (v01 IBM    THURLEY  00000001 IBM  01000013)
ACPI: Local APIC address 0xfee00000
SRAT: PXM 0 -> APIC 0 -> Node 0
SRAT: PXM 0 -> APIC 2 -> Node 0
SRAT: PXM 0 -> APIC 4 -> Node 0
SRAT: PXM 0 -> APIC 6 -> Node 0
SRAT: PXM 1 -> APIC 16 -> Node 1
SRAT: PXM 1 -> APIC 18 -> Node 1
SRAT: PXM 1 -> APIC 20 -> Node 1
SRAT: PXM 1 -> APIC 22 -> Node 1
SRAT: PXM 0 -> APIC 1 -> Node 0
SRAT: PXM 0 -> APIC 3 -> Node 0
SRAT: PXM 0 -> APIC 5 -> Node 0
SRAT: PXM 0 -> APIC 7 -> Node 0
SRAT: PXM 1 -> APIC 17 -> Node 1
SRAT: PXM 1 -> APIC 19 -> Node 1
SRAT: PXM 1 -> APIC 21 -> Node 1
SRAT: PXM 1 -> APIC 23 -> Node 1
SRAT: Node 0 PXM 0 0-80000000
SRAT: Node 0 PXM 0 100000000-480000000
SRAT: Node 1 PXM 1 480000000-880000000
NUMA: Using 31 for the hash shift.
Bootmem setup node 0 0000000000000000-0000000480000000
  NODE_DATA [0000000000027000 - 000000000005afff]
  bootmap [0000000000100000 -  000000000018ffff] pages 90
(10 early reservations) ==> bootmem [0000000000 - 0480000000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [007a074000 - 007adac778]          RAMDISK ==> [007a074000 - 007adac778]
  #4 [000009d000 - 0000100000]    BIOS reserved ==> [000009d000 - 0000100000]
  #5 [007c342000 - 007c344430]       EFI memmap ==> [007c342000 - 007c344430]
  #6 [0001c9f000 - 0001c9f480]              BRK ==> [0001c9f000 - 0001c9f480]
  #7 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
  #8 [0000009000 - 0000027000]          PGTABLE ==> [0000009000 - 0000027000]
  #9 [0000001000 - 0000001030]        ACPI SLIT ==> [0000001000 - 0000001030]
Bootmem setup node 1 0000000480000000-0000000880000000
  NODE_DATA [0000000480000000 - 0000000480033fff]
  bootmap [0000000480034000 -  00000004800b3fff] pages 80
(10 early reservations) ==> bootmem [0480000000 - 0880000000]
  #0 [0000000000 - 0000001000]   BIOS data page
  #1 [0000006000 - 0000008000]       TRAMPOLINE
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS
  #3 [007a074000 - 007adac778]          RAMDISK
  #4 [000009d000 - 0000100000]    BIOS reserved
  #5 [007c342000 - 007c344430]       EFI memmap
  #6 [0001c9f000 - 0001c9f480]              BRK
  #7 [0000008000 - 0000009000]          PGTABLE
  #8 [0000009000 - 0000027000]          PGTABLE
  #9 [0000001000 - 0000001030]        ACPI SLIT
 [ffffea0000000000-ffffea000fbfffff] PMD -> [ffff880028600000-ffff8800365fffff] on node 0
 [ffffea000fc00000-ffffea001dbfffff] PMD -> [ffff880480200000-ffff88048e1fffff] on node 1
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00880000
Movable zone start PFN for each node
early_node_map[9] active PFN ranges
    0: 0x00000001 -> 0x0000006c
    0: 0x0000006d -> 0x0000009f
    0: 0x00000100 -> 0x0007d3f3
    0: 0x0007d41d -> 0x0007d447
    0: 0x0007d471 -> 0x0007d84d
    0: 0x0007d8fd -> 0x0007f5ef
    0: 0x0007f7ff -> 0x0007f800
    0: 0x00100000 -> 0x00480000
    1: 0x00480000 -> 0x00880000
On node 0 totalpages: 4191369
  DMA zone: 56 pages used for memmap
  DMA zone: 133 pages reserved
  DMA zone: 3808 pages, LIFO batch:0
  DMA32 zone: 14280 pages used for memmap
  DMA32 zone: 503076 pages, LIFO batch:31
  Normal zone: 50176 pages used for memmap
  Normal zone: 3619840 pages, LIFO batch:31
On node 1 totalpages: 4194304
  Normal zone: 57344 pages used for memmap
  Normal zone: 4136960 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0x588
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x02] enabled)
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x04] enabled)
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x06] enabled)
ACPI: LAPIC (acpi_id[0x04] lapic_id[0x10] enabled)
ACPI: LAPIC (acpi_id[0x05] lapic_id[0x12] enabled)
ACPI: LAPIC (acpi_id[0x06] lapic_id[0x14] enabled)
ACPI: LAPIC (acpi_id[0x07] lapic_id[0x16] enabled)
ACPI: LAPIC (acpi_id[0x08] lapic_id[0x01] enabled)
ACPI: LAPIC (acpi_id[0x09] lapic_id[0x03] enabled)
ACPI: LAPIC (acpi_id[0x0a] lapic_id[0x05] enabled)
ACPI: LAPIC (acpi_id[0x0b] lapic_id[0x07] enabled)
ACPI: LAPIC (acpi_id[0x0c] lapic_id[0x11] enabled)
ACPI: LAPIC (acpi_id[0x0d] lapic_id[0x13] enabled)
ACPI: LAPIC (acpi_id[0x0e] lapic_id[0x15] enabled)
ACPI: LAPIC (acpi_id[0x0f] lapic_id[0x17] enabled)
ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
ACPI: IOAPIC (id[0x08] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 8, version 32, address 0xfec00000, GSI 0-23
ACPI: IOAPIC (id[0x09] address[0xfec80000] gsi_base[24])
IOAPIC[1]: apic_id 9, version 32, address 0xfec80000, GSI 24-47
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Using ACPI (MADT) for SMP configuration information
ACPI: HPET id: 0x8086a301 base: 0xfed00000
SMP: Allowing 16 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 48
PM: Registered nosave memory: 000000000006c000 - 000000000006d000
PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
PM: Registered nosave memory: 000000007d3f3000 - 000000007d41d000
PM: Registered nosave memory: 000000007d447000 - 000000007d471000
PM: Registered nosave memory: 000000007d84d000 - 000000007d8fd000
PM: Registered nosave memory: 000000007f5ef000 - 000000007f6df000
PM: Registered nosave memory: 000000007f6df000 - 000000007f7df000
PM: Registered nosave memory: 000000007f7df000 - 000000007f7ff000
PM: Registered nosave memory: 000000007f800000 - 0000000080000000
PM: Registered nosave memory: 0000000080000000 - 0000000090000000
PM: Registered nosave memory: 0000000090000000 - 00000000fed1c000
PM: Registered nosave memory: 00000000fed1c000 - 00000000fed20000
PM: Registered nosave memory: 00000000fed20000 - 00000000ff800000
PM: Registered nosave memory: 00000000ff800000 - 0000000100000000
Allocating PCI resources starting at 90000000 (gap: 90000000:6ed1c000)
Booting paravirtualized kernel on bare hardware
NR_CPUS:4096 nr_cpumask_bits:16 nr_cpu_ids:16 nr_node_ids:2
PERCPU: Embedded 31 pages/cpu @ffff880028200000 s95064 r8192 d23720 u262144
pcpu-alloc: s95064 r8192 d23720 u262144 alloc=1*2097152
pcpu-alloc: [0] 00 01 02 03 08 09 10 11 [1] 04 05 06 07 12 13 14 15 
Built 2 zonelists in Zone order, mobility grouping on.  Total pages: 8263684
Policy zone: Normal
Kernel command line: ro root=/dev/mapper/vg_tb3client04-lv_root rd_LVM_LV=vg_tb3client04/lv_root rd_LVM_LV=vg_tb3client04/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing 64MB software IO TLB between ffff880020000000 - ffff880024000000
software IO TLB at phys 0x20000000 - 0x24000000
Memory: 32988468k/35651584k available (4935k kernel code, 2108892k absent, 554224k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:944
Extended CMOS year: 2000
Console: colour dummy device 80x25
console [tty0] enabled
allocated 335544320 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
hpet clockevent registered
HPET: 4 timers in total, 0 timers will be used for per-cpu timer
Fast TSC calibration using PIT
Detected 2266.929 MHz processor.
Calibrating delay loop (skipped), value calculated using timer frequency.. 4533.85 BogoMIPS (lpj=2266929)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 4194304 (order: 13, 33554432 bytes)
Inode-cache hash table entries: 2097152 (order: 12, 16777216 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
mce: CPU supports 9 MCE banks
CPU0: Thermal monitoring enabled (TM1)
using mwait in idle threads.
Performance Events: PEBS fmt1+, Nehalem events, Intel PMU driver.
... version:                3
... bit width:              48
... generic registers:      4
... value mask:             0000ffffffffffff
... max period:             000000007fffffff
... fixed-purpose events:   3
... event mask:             000000070000000f
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
DMAR: Host address width 40
DMAR: DRHD base: 0x000000fe710000 flags: 0x1
IOMMU fe710000: ver 1:0 cap c90780106f0462 ecap f020f6
DMAR: RMRR base: 0x0000007d870000 end: 0x0000007d8effff
DMAR: ATSR flags: 0x0
Setting APIC routing to physical flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
Booting Node   0, Processors  #1 #2 #3 Ok.
Booting Node   1, Processors  #4 #5 #6 #7 Ok.
Booting Node   0, Processors  #8 #9 #10 #11 Ok.
Booting Node   1, Processors  #12 #13 #14 #15 Ok.
Brought up 16 CPUs
Total of 16 processors activated (72523.97 BogoMIPS).
Testing NMI watchdog ... OK.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
ACPI: bus type pci registered
PCI: MCFG configuration 0: base 80000000 segment 0 buses 0 - 255
PCI: MCFG area at 80000000 reserved in E820
PCI: Using MMCONFIG at 80000000 - 8fffffff
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S1 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
pci 0000:00:00.0: PME# disabled
pci 0000:00:01.0: PME# supported from D0 D3hot D3cold
pci 0000:00:01.0: PME# disabled
pci 0000:00:02.0: PME# supported from D0 D3hot D3cold
pci 0000:00:02.0: PME# disabled
pci 0000:00:03.0: PME# supported from D0 D3hot D3cold
pci 0000:00:03.0: PME# disabled
pci 0000:00:07.0: PME# supported from D0 D3hot D3cold
pci 0000:00:07.0: PME# disabled
pci 0000:00:16.0: reg 10 64bit mmio: [0x97c00000-0x97c03fff]
pci 0000:00:16.1: reg 10 64bit mmio: [0x97c04000-0x97c07fff]
pci 0000:00:16.2: reg 10 64bit mmio: [0x97c08000-0x97c0bfff]
pci 0000:00:16.3: reg 10 64bit mmio: [0x97c0c000-0x97c0ffff]
pci 0000:00:16.4: reg 10 64bit mmio: [0x97c10000-0x97c13fff]
pci 0000:00:16.5: reg 10 64bit mmio: [0x97c14000-0x97c17fff]
pci 0000:00:16.6: reg 10 64bit mmio: [0x97c18000-0x97c1bfff]
pci 0000:00:16.7: reg 10 64bit mmio: [0x97c1c000-0x97c1ffff]
pci 0000:00:1a.0: reg 20 io port: [0x40a0-0x40bf]
pci 0000:00:1a.1: reg 20 io port: [0x4080-0x409f]
pci 0000:00:1a.7: reg 10 32bit mmio: [0x97c21000-0x97c213ff]
pci 0000:00:1a.7: PME# supported from D0 D3hot D3cold
pci 0000:00:1a.7: PME# disabled
pci 0000:00:1c.0: PME# supported from D0 D3hot D3cold
pci 0000:00:1c.0: PME# disabled
pci 0000:00:1c.4: PME# supported from D0 D3hot D3cold
pci 0000:00:1c.4: PME# disabled
pci 0000:00:1d.0: reg 20 io port: [0x4060-0x407f]
pci 0000:00:1d.1: reg 20 io port: [0x4040-0x405f]
pci 0000:00:1d.2: reg 20 io port: [0x4020-0x403f]
pci 0000:00:1d.7: reg 10 32bit mmio: [0x97c20000-0x97c203ff]
pci 0000:00:1d.7: PME# supported from D0 D3hot D3cold
pci 0000:00:1d.7: PME# disabled
pci 0000:00:1f.2: reg 10 io port: [0x4118-0x411f]
pci 0000:00:1f.2: reg 14 io port: [0x412c-0x412f]
pci 0000:00:1f.2: reg 18 io port: [0x4110-0x4117]
pci 0000:00:1f.2: reg 1c io port: [0x4128-0x412b]
pci 0000:00:1f.2: reg 20 io port: [0x40f0-0x40ff]
pci 0000:00:1f.2: reg 24 io port: [0x40e0-0x40ef]
pci 0000:00:1f.3: reg 10 64bit mmio: [0x97c22000-0x97c220ff]
pci 0000:00:1f.3: reg 20 io port: [0x4000-0x401f]
pci 0000:00:1f.5: reg 10 io port: [0x4108-0x410f]
pci 0000:00:1f.5: reg 14 io port: [0x4124-0x4127]
pci 0000:00:1f.5: reg 18 io port: [0x4100-0x4107]
pci 0000:00:1f.5: reg 1c io port: [0x4120-0x4123]
pci 0000:00:1f.5: reg 20 io port: [0x40d0-0x40df]
pci 0000:00:1f.5: reg 24 io port: [0x40c0-0x40cf]
pci 0000:0b:00.0: reg 10 64bit mmio: [0x92000000-0x93ffffff]
pci 0000:0b:00.0: PME# supported from D0 D3hot D3cold
pci 0000:0b:00.0: PME# disabled
pci 0000:0b:00.1: reg 10 64bit mmio: [0x94000000-0x95ffffff]
pci 0000:0b:00.1: PME# supported from D0 D3hot D3cold
pci 0000:0b:00.1: PME# disabled
pci 0000:00:01.0: bridge 32bit mmio: [0x92000000-0x95ffffff]
pci 0000:15:00.0: reg 10 32bit mmio: [0x97b60000-0x97b7ffff]
pci 0000:15:00.0: reg 14 32bit mmio: [0x97b40000-0x97b5ffff]
pci 0000:15:00.0: reg 18 io port: [0x3020-0x303f]
pci 0000:15:00.0: reg 30 32bit mmio pref: [0xfffe0000-0xffffffff]
pci 0000:15:00.0: PME# supported from D0 D3hot D3cold
pci 0000:15:00.0: PME# disabled
pci 0000:15:00.1: reg 10 32bit mmio: [0x97b20000-0x97b3ffff]
pci 0000:15:00.1: reg 14 32bit mmio: [0x97b00000-0x97b1ffff]
pci 0000:15:00.1: reg 18 io port: [0x3000-0x301f]
pci 0000:15:00.1: PME# supported from D0 D3hot D3cold
pci 0000:15:00.1: PME# disabled
pci 0000:15:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
pci 0000:00:03.0: bridge io port: [0x3000-0x3fff]
pci 0000:00:03.0: bridge 32bit mmio: [0x97b00000-0x97bfffff]
pci 0000:1a:00.0: reg 10 32bit mmio: [0x97a60000-0x97a7ffff]
pci 0000:1a:00.0: reg 14 32bit mmio: [0x97a40000-0x97a5ffff]
pci 0000:1a:00.0: reg 18 io port: [0x2020-0x203f]
pci 0000:1a:00.0: reg 30 32bit mmio pref: [0xfffe0000-0xffffffff]
pci 0000:1a:00.0: PME# supported from D0 D3hot D3cold
pci 0000:1a:00.0: PME# disabled
pci 0000:1a:00.1: reg 10 32bit mmio: [0x97a20000-0x97a3ffff]
pci 0000:1a:00.1: reg 14 32bit mmio: [0x97a00000-0x97a1ffff]
pci 0000:1a:00.1: reg 18 io port: [0x2000-0x201f]
pci 0000:1a:00.1: PME# supported from D0 D3hot D3cold
pci 0000:1a:00.1: PME# disabled
pci 0000:1a:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
pci 0000:00:07.0: bridge io port: [0x2000-0x2fff]
pci 0000:00:07.0: bridge 32bit mmio: [0x97a00000-0x97afffff]
pci 0000:01:00.0: reg 10 io port: [0x1000-0x10ff]
pci 0000:01:00.0: reg 14 64bit mmio: [0x97910000-0x97913fff]
pci 0000:01:00.0: reg 1c 64bit mmio: [0x97900000-0x9790ffff]
pci 0000:01:00.0: reg 30 32bit mmio pref: [0xffe00000-0xffffffff]
pci 0000:01:00.0: supports D1 D2
pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
pci 0000:00:1c.0: bridge io port: [0x1000-0x1fff]
pci 0000:00:1c.0: bridge 32bit mmio: [0x97900000-0x979fffff]
pci 0000:06:00.0: PME# supported from D0 D3hot D3cold
pci 0000:06:00.0: PME# disabled
pci 0000:00:1c.4: bridge 32bit mmio: [0x97000000-0x978fffff]
pci 0000:00:1c.4: bridge 64bit mmio pref: [0x96000000-0x96ffffff]
pci 0000:07:00.0: reg 10 32bit mmio pref: [0x96000000-0x96ffffff]
pci 0000:07:00.0: reg 14 32bit mmio: [0x97800000-0x97803fff]
pci 0000:07:00.0: reg 18 32bit mmio: [0x97000000-0x977fffff]
pci 0000:06:00.0: bridge 32bit mmio: [0x97000000-0x978fffff]
pci 0000:06:00.0: bridge 32bit mmio pref: [0x96000000-0x96ffffff]
pci 0000:00:1e.0: transparent bridge
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI3._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI7._PRT]
Firmware did not grant requested _OSC control
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
vgaarb: device added: PCI:0000:07:00.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0
hpet0: 4 comparators, 64-bit 14.318180 MHz counter
Switching to clocksource tsc
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
system 00:05: iomem range 0xfed00000-0xfed003ff has been reserved
system 00:06: ioport range 0x400-0x43f has been reserved
system 00:06: ioport range 0x440-0x45f has been reserved
system 00:06: ioport range 0x460-0x47f has been reserved
system 00:06: ioport range 0x580-0x5ff has been reserved
system 00:06: ioport range 0x5e0-0x5ff has been reserved
system 00:06: ioport range 0xcf9-0xcf9 could not be reserved
system 00:0a: iomem range 0xfed1c000-0xfed1ffff has been reserved
system 00:0a: iomem range 0xfec00000-0xfecfffff could not be reserved
system 00:0a: iomem range 0xfee00000-0xfeefffff has been reserved
system 00:0a: iomem range 0x80000000-0x8fffffff has been reserved
system 00:0a: iomem range 0xffc00000-0xffffffff has been reserved
system 00:0a: iomem range 0xfeb00000-0xfebfffff has been reserved
system 00:0a: iomem range 0xfe710000-0xfe711fff has been reserved
system 00:0a: iomem range 0xfe800000-0xfe9fffff has been reserved
system 00:0a: iomem range 0xfc000000-0xfcffffff has been reserved
system 00:0a: iomem range 0xfea00000-0xfeafffff has been reserved
system 00:0b: ioport range 0xca0-0xca1 has been reserved
system 00:0b: ioport range 0xca4-0xca9 has been reserved
system 00:0b: ioport range 0xcaa-0xcab has been reserved
system 00:0b: ioport range 0xcac-0xccb has been reserved
system 00:0c: ioport range 0xca2-0xca2 has been reserved
system 00:0c: ioport range 0xca3-0xca3 has been reserved
pci 0000:15:00.0: BAR 6: no parent found for of device [0xfffe0000-0xffffffff]
pci 0000:1a:00.0: BAR 6: no parent found for of device [0xfffe0000-0xffffffff]
pci 0000:01:00.0: BAR 6: no parent found for of device [0xffe00000-0xffffffff]
pci 0000:00:01.0: PCI bridge to [bus 0b-0f]
pci 0000:00:01.0: PCI bridge, secondary bus 0000:0b
pci 0000:00:01.0:   bridge window [io  disabled]
pci 0000:00:01.0:   bridge window [0x92000000-0x95ffffff]
pci 0000:00:01.0:   bridge window [mem pref disabled]
pci 0000:00:02.0: PCI bridge to [bus 10-14]
pci 0000:00:02.0: PCI bridge, secondary bus 0000:10
pci 0000:00:02.0:   bridge window [io  disabled]
pci 0000:00:02.0:   bridge window [mem disabled]
pci 0000:00:02.0:   bridge window [mem pref disabled]
pci 0000:00:03.0: PCI bridge to [bus 15-19]
pci 0000:00:03.0: PCI bridge, secondary bus 0000:15
pci 0000:00:03.0:   bridge window [0x3000-0x3fff]
pci 0000:00:03.0:   bridge window [0x97b00000-0x97bfffff]
pci 0000:00:03.0:   bridge window [0x90200000-0x902fffff]
pci 0000:00:07.0: PCI bridge to [bus 1a-1e]
pci 0000:00:07.0: PCI bridge, secondary bus 0000:1a
pci 0000:00:07.0:   bridge window [0x2000-0x2fff]
pci 0000:00:07.0:   bridge window [0x97a00000-0x97afffff]
pci 0000:00:07.0:   bridge window [0x90300000-0x903fffff]
pci 0000:00:1c.0: PCI bridge to [bus 01-05]
pci 0000:00:1c.0: PCI bridge, secondary bus 0000:01
pci 0000:00:1c.0:   bridge window [0x1000-0x1fff]
pci 0000:00:1c.0:   bridge window [0x97900000-0x979fffff]
pci 0000:00:1c.0:   bridge window [0x90000000-0x901fffff]
pci 0000:06:00.0: PCI bridge to [bus 07-07]
pci 0000:06:00.0: PCI bridge, secondary bus 0000:07
pci 0000:06:00.0:   bridge window [io  disabled]
pci 0000:06:00.0:   bridge window [0x97000000-0x978fffff]
pci 0000:06:00.0:   bridge window [0x96000000-0x96ffffff]
pci 0000:00:1c.4: PCI bridge to [bus 06-0a]
pci 0000:00:1c.4: PCI bridge, secondary bus 0000:06
pci 0000:00:1c.4:   bridge window [io  disabled]
pci 0000:00:1c.4:   bridge window [0x97000000-0x978fffff]
pci 0000:00:1c.4:   bridge window [0x96000000-0x96ffffff]
pci 0000:00:1e.0: PCI bridge to [bus 1f-23]
pci 0000:00:1e.0: PCI bridge, secondary bus 0000:1f
pci 0000:00:1e.0:   bridge window [io  disabled]
pci 0000:00:1e.0:   bridge window [mem disabled]
pci 0000:00:1e.0:   bridge window [mem pref disabled]
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
pci 0000:00:01.0: PCI INT A -> GSI 28 (level, low) -> IRQ 28
pci 0000:00:01.0: setting latency timer to 64
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
pci 0000:00:02.0: PCI INT A -> GSI 29 (level, low) -> IRQ 29
pci 0000:00:02.0: setting latency timer to 64
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
pci 0000:00:03.0: PCI INT A -> GSI 24 (level, low) -> IRQ 24
pci 0000:00:03.0: setting latency timer to 64
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
pci 0000:00:07.0: PCI INT A -> GSI 30 (level, low) -> IRQ 30
pci 0000:00:07.0: setting latency timer to 64
  alloc irq_desc for 16 on node -1
  alloc kstat_irqs on node -1
pci 0000:00:1c.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
pci 0000:00:1c.0: setting latency timer to 64
pci 0000:00:1c.4: PCI INT A -> GSI 16 (level, low) -> IRQ 16
pci 0000:00:1c.4: setting latency timer to 64
pci 0000:06:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
pci 0000:06:00.0: setting latency timer to 64
pci 0000:00:1e.0: setting latency timer to 64
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
pci_bus 0000:0b: resource 1 mem: [0x92000000-0x95ffffff]
pci_bus 0000:15: resource 0 io:  [0x3000-0x3fff]
pci_bus 0000:15: resource 1 mem: [0x97b00000-0x97bfffff]
pci_bus 0000:15: resource 2 pref mem [0x90200000-0x902fffff]
pci_bus 0000:1a: resource 0 io:  [0x2000-0x2fff]
pci_bus 0000:1a: resource 1 mem: [0x97a00000-0x97afffff]
pci_bus 0000:1a: resource 2 pref mem [0x90300000-0x903fffff]
pci_bus 0000:01: resource 0 io:  [0x1000-0x1fff]
pci_bus 0000:01: resource 1 mem: [0x97900000-0x979fffff]
pci_bus 0000:01: resource 2 pref mem [0x90000000-0x901fffff]
pci_bus 0000:06: resource 1 mem: [0x97000000-0x978fffff]
pci_bus 0000:06: resource 2 pref mem [0x96000000-0x96ffffff]
pci_bus 0000:07: resource 1 mem: [0x97000000-0x978fffff]
pci_bus 0000:07: resource 2 pref mem [0x96000000-0x96ffffff]
pci_bus 0000:1f: resource 3 io:  [0x00-0xffff]
pci_bus 0000:1f: resource 4 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 524288 (order: 10, 4194304 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:07:00.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13537k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297074072.747:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 32768
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
  alloc irq_desc for 48 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:01.0: irq 48 for MSI/MSI-X
pcieport 0000:00:01.0: setting latency timer to 64
  alloc irq_desc for 49 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:02.0: irq 49 for MSI/MSI-X
pcieport 0000:00:02.0: setting latency timer to 64
  alloc irq_desc for 50 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:03.0: irq 50 for MSI/MSI-X
pcieport 0000:00:03.0: setting latency timer to 64
  alloc irq_desc for 51 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:07.0: irq 51 for MSI/MSI-X
pcieport 0000:00:07.0: setting latency timer to 64
  alloc irq_desc for 52 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:1c.0: irq 52 for MSI/MSI-X
pcieport 0000:00:1c.0: setting latency timer to 64
  alloc irq_desc for 53 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:1c.4: irq 53 for MSI/MSI-X
pcieport 0000:00:1c.4: setting latency timer to 64
Firmware did not grant requested _OSC control
aer 0000:00:01.0:pcie02: AER service couldn't init device: no _OSC support
Firmware did not grant requested _OSC control
aer 0000:00:02.0:pcie02: AER service couldn't init device: no _OSC support
Firmware did not grant requested _OSC control
aer 0000:00:03.0:pcie02: AER service couldn't init device: no _OSC support
Firmware did not grant requested _OSC control
aer 0000:00:07.0:pcie02: AER service couldn't init device: no _OSC support
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Firmware did not grant requested _OSC control
Firmware did not grant requested _OSC control
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
pci-stub: invalid id string ""
efifb: probing for efifb
efifb: framebuffer at 0x96000000, mapped to 0xffffc90013e00000, using 10240k, total 16384k
efifb: mode is 1280x1024x32, linelength=5120, pages=1
efifb: scrolling: redraw
efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
Console: switching to colour frame buffer device 160x64
fb0: EFI VGA frame buffer device
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
Monitor-Mwait will be used to enter C-1 state
Monitor-Mwait will be used to enter C-3 state
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
processor LNXCPU:02: registered as cooling_device2
processor LNXCPU:03: registered as cooling_device3
processor LNXCPU:04: registered as cooling_device4
processor LNXCPU:05: registered as cooling_device5
processor LNXCPU:06: registered as cooling_device6
processor LNXCPU:07: registered as cooling_device7
processor LNXCPU:08: registered as cooling_device8
processor LNXCPU:09: registered as cooling_device9
processor LNXCPU:0a: registered as cooling_device10
processor LNXCPU:0b: registered as cooling_device11
processor LNXCPU:0c: registered as cooling_device12
processor LNXCPU:0d: registered as cooling_device13
processor LNXCPU:0e: registered as cooling_device14
processor LNXCPU:0f: registered as cooling_device15
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
tpm_tis 00:09: 1.2 TPM (device-id 0xFE, rev-id 70)
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:08: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  alloc irq_desc for 19 on node -1
  alloc kstat_irqs on node -1
ehci_hcd 0000:00:1a.7: PCI INT C -> GSI 19 (level, low) -> IRQ 19
ehci_hcd 0000:00:1a.7: setting latency timer to 64
ehci_hcd 0000:00:1a.7: EHCI Host Controller
ehci_hcd 0000:00:1a.7: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1a.7: debug port 1
ehci_hcd 0000:00:1a.7: cache line size of 64 is not supported
ehci_hcd 0000:00:1a.7: irq 19, io mem 0x97c21000
ehci_hcd 0000:00:1a.7: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.32-71.el6.x86_64 ehci_hcd
usb usb1: SerialNumber: 0000:00:1a.7
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
  alloc irq_desc for 17 on node -1
  alloc kstat_irqs on node -1
ehci_hcd 0000:00:1d.7: PCI INT A -> GSI 17 (level, low) -> IRQ 17
ehci_hcd 0000:00:1d.7: setting latency timer to 64
ehci_hcd 0000:00:1d.7: EHCI Host Controller
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 2
ehci_hcd 0000:00:1d.7: debug port 1
ehci_hcd 0000:00:1d.7: cache line size of 64 is not supported
ehci_hcd 0000:00:1d.7: irq 17, io mem 0x97c20000
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: EHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.32-71.el6.x86_64 ehci_hcd
usb usb2: SerialNumber: 0000:00:1d.7
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 6 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
uhci_hcd 0000:00:1a.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
uhci_hcd 0000:00:1a.0: setting latency timer to 64
uhci_hcd 0000:00:1a.0: UHCI Host Controller
uhci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1a.0: irq 17, io base 0x000040a0
usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb3: Product: UHCI Host Controller
usb usb3: Manufacturer: Linux 2.6.32-71.el6.x86_64 uhci_hcd
usb usb3: SerialNumber: 0000:00:1a.0
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
  alloc irq_desc for 18 on node -1
  alloc kstat_irqs on node -1
uhci_hcd 0000:00:1a.1: PCI INT B -> GSI 18 (level, low) -> IRQ 18
uhci_hcd 0000:00:1a.1: setting latency timer to 64
uhci_hcd 0000:00:1a.1: UHCI Host Controller
uhci_hcd 0000:00:1a.1: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:1a.1: irq 18, io base 0x00004080
usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb4: Product: UHCI Host Controller
usb usb4: Manufacturer: Linux 2.6.32-71.el6.x86_64 uhci_hcd
usb usb4: SerialNumber: 0000:00:1a.1
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
uhci_hcd 0000:00:1d.0: setting latency timer to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:1d.0: irq 17, io base 0x00004060
usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb5: Product: UHCI Host Controller
usb usb5: Manufacturer: Linux 2.6.32-71.el6.x86_64 uhci_hcd
usb usb5: SerialNumber: 0000:00:1d.0
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.1: PCI INT B -> GSI 18 (level, low) -> IRQ 18
uhci_hcd 0000:00:1d.1: setting latency timer to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 6
uhci_hcd 0000:00:1d.1: irq 18, io base 0x00004040
usb usb6: New USB device found, idVendor=1d6b, idProduct=0001
usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb6: Product: UHCI Host Controller
usb usb6: Manufacturer: Linux 2.6.32-71.el6.x86_64 uhci_hcd
usb usb6: SerialNumber: 0000:00:1d.1
usb usb6: configuration #1 chosen from 1 choice
hub 6-0:1.0: USB hub found
hub 6-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.2: PCI INT C -> GSI 19 (level, low) -> IRQ 19
uhci_hcd 0000:00:1d.2: setting latency timer to 64
uhci_hcd 0000:00:1d.2: UHCI Host Controller
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 7
uhci_hcd 0000:00:1d.2: irq 19, io base 0x00004020
usb usb7: New USB device found, idVendor=1d6b, idProduct=0001
usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb7: Product: UHCI Host Controller
usb usb7: Manufacturer: Linux 2.6.32-71.el6.x86_64 uhci_hcd
usb usb7: SerialNumber: 0000:00:1d.2
usb usb7: configuration #1 chosen from 1 choice
hub 7-0:1.0: USB hub found
hub 7-0:1.0: 2 ports detected
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
rtc_cmos 00:02: RTC can wake from S4
rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
cpuidle: using governor ladder
cpuidle: using governor menu
EFI Variables Facility v0.08 2004-May-17
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
usb 5-2: new full speed USB device using uhci_hcd and address 2
rtc_cmos 00:02: setting system clock to 2011-02-07 10:21:15 UTC (1297074075)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
usb 5-2: New USB device found, idVendor=04b3, idProduct=4010
usb 5-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 5-2: Product: RNDIS/CDC ETHER
usb 5-2: Manufacturer: IBM
usb 5-2: configuration #1 chosen from 2 choices
dracut: Starting plymouth daemon
usb 7-2: new low speed USB device using uhci_hcd and address 2
usb 7-2: New USB device found, idVendor=0624, idProduct=0296
usb 7-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 7-2: Product: IBM 73P5832
usb 7-2: Manufacturer: Avocent
usb 7-2: configuration #1 chosen from 1 choice
input: Avocent IBM 73P5832 as /devices/pci0000:00/0000:00:1d.2/usb7/7-2/7-2:1.0/input/input2
generic-usb 0003:0624:0296.0001: input,hidraw0: USB HID v1.10 Keyboard [Avocent IBM 73P5832] on usb-0000:00:1d.2-2/input0
input: Avocent IBM 73P5832 as /devices/pci0000:00/0000:00:1d.2/usb7/7-2/7-2:1.1/input/input3
generic-usb 0003:0624:0296.0002: input,hidraw1: USB HID v1.10 Mouse [Avocent IBM 73P5832] on usb-0000:00:1d.2-2/input1
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
Fusion MPT base driver 3.04.16
Copyright (c) 1999-2008 LSI Corporation
Fusion MPT SAS Host driver 3.04.16
mptsas 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
mptbase: ioc0: Initiating bringup
ioc0: LSISAS1068E B3: Capabilities={Initiator}
mptsas 0000:01:00.0: setting latency timer to 64
scsi0 : ioc0: LSISAS1068E B3, FwRev=011b5800h, Ports=1, MaxQ=277, IRQ=16
mptsas: ioc0: attaching ssp device: fw_channel 0, fw_id 3, phy 0, sas_addr 0x5000c5001cd00725
scsi 0:0:0:0: Direct-Access     IBM-ESXS ST973452SS       B624 PQ: 0 ANSI: 5
mptsas: ioc0: attaching ssp device: fw_channel 0, fw_id 2, phy 1, sas_addr 0x5000c5001cd00d7d
scsi 0:0:1:0: Direct-Access     IBM-ESXS ST973452SS       B624 PQ: 0 ANSI: 5
mptsas: ioc0: attaching raid volume, channel 1, id 1
scsi 0:1:1:0: Direct-Access     LSILOGIC Logical Volume   3000 PQ: 0 ANSI: 2
ata_piix 0000:00:1f.2: version 2.13
ata_piix 0000:00:1f.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
ata_piix 0000:00:1f.2: setting latency timer to 64
scsi1 : ata_piix
scsi2 : ata_piix
ata1: SATA max UDMA/133 cmd 0x4118 ctl 0x412c bmdma 0x40f0 irq 16
ata2: SATA max UDMA/133 cmd 0x4110 ctl 0x4128 bmdma 0x40f8 irq 16
  alloc irq_desc for 21 on node -1
  alloc kstat_irqs on node -1
ata_piix 0000:00:1f.5: PCI INT C -> GSI 21 (level, low) -> IRQ 21
ata_piix 0000:00:1f.5: MAP [ P0 -- P1 -- ]
ata_piix 0000:00:1f.5: setting latency timer to 64
scsi3 : ata_piix
scsi4 : ata_piix
ata3: SATA max UDMA/133 cmd 0x4108 ctl 0x4124 bmdma 0x40d0 irq 21
ata4: SATA max UDMA/133 cmd 0x4100 ctl 0x4120 bmdma 0x40d8 irq 21
ata4: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
ata2.00: SATA link down (SStatus 0 SControl 300)
ata2.01: SATA link down (SStatus 0 SControl 300)
ata1.00: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.01: SATA link down (SStatus 0 SControl 300)
ata1.01: link offline, clearing class 3 to NONE
ata1.00: ATAPI: UJDA782 DVD/CDRW, VA13, max UDMA/33
ata1.00: configured for UDMA/33
scsi 1:0:0:0: CD-ROM            MATSHITA UJDA782 DVD/CDRW VA13 PQ: 0 ANSI: 5
sd 0:1:1:0: [sda] 281247744 512-byte logical blocks: (143 GB/134 GiB)
sd 0:1:1:0: [sda] Write Protect is off
sd 0:1:1:0: [sda] Mode Sense: 03 00 00 08
sd 0:1:1:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3
sd 0:1:1:0: [sda] Attached SCSI disk
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
dracut: Scanning devices sda3  for LVM logical volumes vg_tb3client04/lv_root vg_tb3client04/lv_swap 
dracut: inactive '/dev/vg_tb3client04/lv_root' [129.42 GiB] inherit
dracut: inactive '/dev/vg_tb3client04/lv_swap' [4.00 GiB] inherit
EXT4-fs (dm-0): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/mapper/vg_tb3client04-lv_root
dracut: Loading SELinux policy
type=1404 audit(1297074092.310:2): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
SELinux: 2048 avtab hash slots, 199690 rules.
SELinux: 2048 avtab hash slots, 199690 rules.
SELinux:  9 users, 13 roles, 3323 types, 168 bools, 1 sens, 1024 cats
SELinux:  77 classes, 199690 rules
SELinux:  Completing initialization.
SELinux:  Setting up existing superblocks.
SELinux: initialized (dev dm-0, type ext4), uses xattr
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts
SELinux: initialized (dev securityfs, type securityfs), uses genfs_contexts
SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
SELinux: initialized (dev mqueue, type mqueue), uses transition SIDs
SELinux: initialized (dev hugetlbfs, type hugetlbfs), uses transition SIDs
SELinux: initialized (dev devpts, type devpts), uses transition SIDs
SELinux: initialized (dev inotifyfs, type inotifyfs), uses genfs_contexts
SELinux: initialized (dev anon_inodefs, type anon_inodefs), uses genfs_contexts
SELinux: initialized (dev pipefs, type pipefs), uses task SIDs
SELinux: initialized (dev debugfs, type debugfs), uses genfs_contexts
SELinux: initialized (dev sockfs, type sockfs), uses task SIDs
SELinux: initialized (dev devtmpfs, type devtmpfs), uses transition SIDs
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
SELinux: initialized (dev proc, type proc), uses genfs_contexts
SELinux: initialized (dev bdev, type bdev), uses genfs_contexts
SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
type=1403 audit(1297074092.632:3): policy loaded auid=4294967295 ses=4294967295
dracut: 
dracut: Switching root
readahead: starting
udev: starting version 147
Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v2.0.8-j15 (Feb 15, 2010)
bnx2 0000:0b:00.0: PCI INT A -> GSI 28 (level, low) -> IRQ 28
bnx2 0000:0b:00.0: setting latency timer to 64
bnx2 0000:0b:00.0: firmware: requesting bnx2/bnx2-mips-09-5.0.0.j15.fw
bnx2 0000:0b:00.0: firmware: requesting bnx2/bnx2-rv2p-09-5.0.0.j10.fw
eth0: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem 92000000, IRQ 28, node addr e4:1f:13:32:5d:6c
  alloc irq_desc for 40 on node -1
  alloc kstat_irqs on node -1
bnx2 0000:0b:00.1: PCI INT B -> GSI 40 (level, low) -> IRQ 40
bnx2 0000:0b:00.1: setting latency timer to 64
bnx2 0000:0b:00.1: firmware: requesting bnx2/bnx2-mips-09-5.0.0.j15.fw
bnx2 0000:0b:00.1: firmware: requesting bnx2/bnx2-rv2p-09-5.0.0.j10.fw
eth1: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem 94000000, IRQ 40, node addr e4:1f:13:32:5d:6e
e1000e: Intel(R) PRO/1000 Network Driver - 1.2.7-k2
e1000e: Copyright (c) 1999 - 2009 Intel Corporation.
e1000e 0000:15:00.0: enabling device (0040 -> 0042)
e1000e 0000:15:00.0: PCI INT A -> GSI 24 (level, low) -> IRQ 24
e1000e 0000:15:00.0: setting latency timer to 64
  alloc irq_desc for 54 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:15:00.0: irq 54 for MSI/MSI-X
0000:15:00.0: eth2: (PCI Express:2.5GB/s:Width x4) 00:15:17:d1:2d:e6
0000:15:00.0: eth2: Intel(R) PRO/1000 Network Connection
0000:15:00.0: eth2: MAC: 0, PHY: 4, PBA No: d56146-003
e1000e 0000:15:00.1: enabling device (0040 -> 0042)
  alloc irq_desc for 34 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:15:00.1: PCI INT B -> GSI 34 (level, low) -> IRQ 34
e1000e 0000:15:00.1: setting latency timer to 64
  alloc irq_desc for 55 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:15:00.1: irq 55 for MSI/MSI-X
0000:15:00.1: eth3: (PCI Express:2.5GB/s:Width x4) 00:15:17:d1:2d:e7
0000:15:00.1: eth3: Intel(R) PRO/1000 Network Connection
0000:15:00.1: eth3: MAC: 0, PHY: 4, PBA No: d56146-003
e1000e 0000:1a:00.0: enabling device (0040 -> 0042)
e1000e 0000:1a:00.0: PCI INT A -> GSI 30 (level, low) -> IRQ 30
e1000e 0000:1a:00.0: setting latency timer to 64
  alloc irq_desc for 56 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:1a:00.0: irq 56 for MSI/MSI-X
0000:1a:00.0: eth4: (PCI Express:2.5GB/s:Width x4) 00:15:17:d1:52:1c
0000:1a:00.0: eth4: Intel(R) PRO/1000 Network Connection
0000:1a:00.0: eth4: MAC: 0, PHY: 4, PBA No: d56146-003
e1000e 0000:1a:00.1: enabling device (0040 -> 0042)
  alloc irq_desc for 37 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:1a:00.1: PCI INT B -> GSI 37 (level, low) -> IRQ 37
e1000e 0000:1a:00.1: setting latency timer to 64
  alloc irq_desc for 57 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:1a:00.1: irq 57 for MSI/MSI-X
0000:1a:00.1: eth5: (PCI Express:2.5GB/s:Width x4) 00:15:17:d1:52:1d
0000:1a:00.1: eth5: Intel(R) PRO/1000 Network Connection
0000:1a:00.1: eth5: MAC: 0, PHY: 4, PBA No: d56146-003
EDAC MC: Ver: 2.1.0 Sep  1 2010
PCI: Discovered peer bus ff
PCI: Discovered peer bus fe
EDAC MC0: Giving out device to 'i7core_edac.c' 'i7 core #0': DEV 0000:ff:03.0
EDAC PCI0: Giving out device to module 'i7core_edac' controller 'EDAC PCI controller': DEV '0000:ff:03.0' (POLLED)
EDAC MC1: Giving out device to 'i7core_edac.c' 'i7 core #1': DEV 0000:fe:03.0
EDAC PCI1: Giving out device to module 'i7core_edac' controller 'EDAC PCI controller': DEV '0000:fe:03.0' (POLLED)
EDAC i7core: Driver loaded.
dca service started, version 1.12.1
ioatdma: Intel(R) QuickData Technology Driver 4.00
ioatdma 0000:00:16.0: enabling device (0000 -> 0002)
ioatdma 0000:00:16.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ioatdma 0000:00:16.0: setting latency timer to 64
  alloc irq_desc for 58 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.0: irq 58 for MSI/MSI-X
ioatdma 0000:00:16.1: enabling device (0000 -> 0002)
ioatdma 0000:00:16.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
ioatdma 0000:00:16.1: setting latency timer to 64
  alloc irq_desc for 59 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.1: irq 59 for MSI/MSI-X
ioatdma 0000:00:16.2: enabling device (0000 -> 0002)
ioatdma 0000:00:16.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
ioatdma 0000:00:16.2: setting latency timer to 64
  alloc irq_desc for 60 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.2: irq 60 for MSI/MSI-X
ioatdma 0000:00:16.3: enabling device (0000 -> 0002)
ioatdma 0000:00:16.3: PCI INT D -> GSI 19 (level, low) -> IRQ 19
ioatdma 0000:00:16.3: setting latency timer to 64
  alloc irq_desc for 61 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.3: irq 61 for MSI/MSI-X
ioatdma 0000:00:16.4: enabling device (0000 -> 0002)
ioatdma 0000:00:16.4: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ioatdma 0000:00:16.4: setting latency timer to 64
  alloc irq_desc for 62 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.4: irq 62 for MSI/MSI-X
ioatdma 0000:00:16.5: enabling device (0000 -> 0002)
ioatdma 0000:00:16.5: PCI INT B -> GSI 17 (level, low) -> IRQ 17
ioatdma 0000:00:16.5: setting latency timer to 64
  alloc irq_desc for 63 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.5: irq 63 for MSI/MSI-X
ioatdma 0000:00:16.6: enabling device (0000 -> 0002)
ioatdma 0000:00:16.6: PCI INT C -> GSI 18 (level, low) -> IRQ 18
ioatdma 0000:00:16.6: setting latency timer to 64
  alloc irq_desc for 64 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.6: irq 64 for MSI/MSI-X
ioatdma 0000:00:16.7: enabling device (0000 -> 0002)
ioatdma 0000:00:16.7: PCI INT D -> GSI 19 (level, low) -> IRQ 19
ioatdma 0000:00:16.7: setting latency timer to 64
  alloc irq_desc for 65 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.7: irq 65 for MSI/MSI-X
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
iTCO_vendor_support: vendor-support=0
iTCO_wdt: Intel TCO WatchDog Timer Driver v1.05
iTCO_wdt: Found a ICH10 TCO device (Version=2, TCOBASE=0x05e0)
iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
i801_smbus 0000:00:1f.3: enabling device (0140 -> 0143)
  alloc irq_desc for 22 on node -1
  alloc kstat_irqs on node -1
i801_smbus 0000:00:1f.3: PCI INT B -> GSI 22 (level, low) -> IRQ 22
usb0: register 'cdc_ether' at usb-0000:00:1d.0-2, CDC Ethernet Device, e6:1f:13:2b:ad:6f
usbcore: registered new interface driver cdc_ether
scsi 0:0:0:0: Attached scsi generic sg0 type 0
scsi 0:0:1:0: Attached scsi generic sg1 type 0
sd 0:1:1:0: Attached scsi generic sg2 type 0
sr 1:0:0:0: Attached scsi generic sg3 type 5
EXT4-fs (sda2): mounted filesystem with ordered data mode
SELinux: initialized (dev sda2, type ext4), uses xattr
SELinux: initialized (dev sda1, type vfat), uses genfs_contexts
Adding 4194296k swap on /dev/mapper/vg_tb3client04-lv_swap.  Priority:-1 extents:1 across:4194296k 
SELinux: initialized (dev binfmt_misc, type binfmt_misc), uses genfs_contexts
                                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/tile13/                                                 0000777 0000000 0000000 00000000000 11524350176 021041  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/proc/                                            0000777 0000000 0000000 00000000000 11524350176 022004  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/proc/cpuinfo                                     0000644 0000000 0000000 00000002012 11524350175 023360  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.928
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.85
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.928
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.85
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile13/proc/swaps                                       0000644 0000000 0000000 00000000150 11524350176 023054  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	76652	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile13/proc/devices                                     0000644 0000000 0000000 00000000567 11524350175 023354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile13/proc/modules                                     0000644 0000000 0000000 00000002546 11524350176 023402  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa0259000
stp 2107 1 bridge, Live 0xffffffffa0253000
llc 5608 2 bridge,stp, Live 0xffffffffa024b000
autofs4 27683 3 - Live 0xffffffffa023e000
sunrpc 241630 1 - Live 0xffffffffa01eb000
ipv6 321209 77 - Live 0xffffffffa0156000
dm_mirror 14003 0 - Live 0xffffffffa012a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0121000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0118000
ppdev 8695 0 - Live 0xffffffffa010a000
parport_pc 22944 0 - Live 0xffffffffa00fd000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa00eb000
sg 30186 0 - Live 0xffffffffa00dc000
virtio_net 15665 0 - Live 0xffffffffa00d2000
i2c_piix4 12574 0 - Live 0xffffffffa00c9000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00b9000
ext3 133830 1 - Live 0xffffffffa008d000
jbd 54576 1 ext3, Live 0xffffffffa0076000
mbcache 7918 1 ext3, Live 0xffffffffa006e000
virtio_blk 5087 3 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
ata_generic 3611 0 - Live 0xffffffffa0030000
pata_acpi 3667 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile13/proc/partitions                                  0000644 0000000 0000000 00000000165 11524350176 024121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile13/proc/meminfo                                     0000644 0000000 0000000 00000002222 11524350175 023352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        3605932 kB
MemFree:         3355200 kB
Buffers:            4176 kB
Cached:            26768 kB
SwapCached:         6916 kB
Active:            82756 kB
Inactive:          29676 kB
Active(anon):      67392 kB
Inactive(anon):    14100 kB
Active(file):      15364 kB
Inactive(file):    15576 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        1971340 kB
Dirty:               336 kB
Writeback:             0 kB
AnonPages:         76796 kB
Mapped:             7420 kB
Shmem:                 0 kB
Slab:             109744 kB
SReclaimable:      28836 kB
SUnreclaim:        80908 kB
KernelStack:        1656 kB
PageTables:         3372 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3850956 kB
Committed_AS:     768720 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19136 kB
VmallocChunk:   34359715008 kB
HardwareCorrupted:     0 kB
AnonHugePages:     47104 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     3661824 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile13/lspci.txt                                        0000644 0000000 0000000 00000000744 11524350175 022714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
                            Physical_Configuration/Clients/tb3-client04/tile13/df.txt                                           0000644 0000000 0000000 00000000276 11524350156 022172  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8186368   4594568  65% /
tmpfs                  1802964         0   1802964   0% /dev/shm
                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/tile13/mount.txt                                        0000644 0000000 0000000 00000000434 11524350175 022740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile13/etc/                                             0000777 0000000 0000000 00000000000 11524350175 021613  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/                                        0000777 0000000 0000000 00000000000 11524350166 022441  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/                                  0000777 0000000 0000000 00000000000 11524350175 023352  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K02libvirt-guests                 0000755 0000000 0000000 00000017172 11524350166 026544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K02oddjobd                        0000755 0000000 0000000 00000004325 11524350166 025162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K69rpcsvcgssd                     0000755 0000000 0000000 00000006014 11524350170 025743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K95cgconfig                       0000755 0000000 0000000 00000012327 11524350172 025346  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S55sshd                           0000755 0000000 0000000 00000010671 11524350175 024537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K80fcoe                           0000755 0000000 0000000 00000005775 11524350170 024504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K15httpd                          0000755 0000000 0000000 00000006364 11524350167 024712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K92ip6tables                      0000755 0000000 0000000 00000020716 11524350172 025456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K80sssd                           0000755 0000000 0000000 00000004731 11524350171 024534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S58ntpd                           0000755 0000000 0000000 00000003603 11524350175 024543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K02avahi-daemon                   0000755 0000000 0000000 00000004754 11524350166 026114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K89rdisc                          0000755 0000000 0000000 00000003027 11524350172 024673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K76ipsec                          0000755 0000000 0000000 00000010777 11524350170 024676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S22messagebus                     0000755 0000000 0000000 00000004230 11524350173 025716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K95firstboot                      0000755 0000000 0000000 00000005341 11524350172 025600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K86cgred                          0000755 0000000 0000000 00000006302 11524350171 024646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S13rpcbind                        0000755 0000000 0000000 00000004031 11524350173 025200  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S13irqbalance                     0000755 0000000 0000000 00000003521 11524350173 025663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K84NetworkManager                 0000755 0000000 0000000 00000004235 11524350171 026507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K99sysstat                        0000755 0000000 0000000 00000002363 11524350172 025304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K50dnsmasq                        0000755 0000000 0000000 00000002577 11524350167 025236  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K01certmonger                     0000755 0000000 0000000 00000004054 11524350166 025720  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K85mdmonitor                      0000755 0000000 0000000 00000005013 11524350171 025567  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K36mysqld                         0000755 0000000 0000000 00000012460 11524350167 025075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K80lldpad                         0000755 0000000 0000000 00000014323 11524350171 025016  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K88nslcd                          0000755 0000000 0000000 00000003213 11524350171 024665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K75ntpdate                        0000755 0000000 0000000 00000003512 11524350170 025216  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K89iscsid                         0000755 0000000 0000000 00000007127 11524350171 025051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K73ypbind                         0000755 0000000 0000000 00000011277 11524350170 025051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S10network                        0000755 0000000 0000000 00000014466 11524350173 025262  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S12rsyslog                        0000755 0000000 0000000 00000004326 11524350173 025267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S11auditd                         0000755 0000000 0000000 00000006462 11524350173 025041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K84wpa_supplicant                 0000755 0000000 0000000 00000003512 11524350171 026611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S20kdump                          0000755 0000000 0000000 00000027662 11524350173 024714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K87multipathd                     0000755 0000000 0000000 00000004473 11524350171 025745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S26haldaemon                      0000755 0000000 0000000 00000003245 11524350174 025522  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K60crond                          0000755 0000000 0000000 00000005445 11524350170 024665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K03rhnsd                          0000755 0000000 0000000 00000005522 11524350166 024674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K36postgresql                     0000755 0000000 0000000 00000012406 11524350167 025767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S00microcode_ctl                  0000755 0000000 0000000 00000002221 11524350172 026357  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K10saslauthd                      0000755 0000000 0000000 00000004010 11524350167 025534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K88iscsi                          0000755 0000000 0000000 00000007315 11524350171 024703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K60nfs                            0000755 0000000 0000000 00000013536 11524350170 024346  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S30nscd                           0000755 0000000 0000000 00000004723 11524350174 024516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S24rpcgssd                        0000755 0000000 0000000 00000006050 11524350174 025232  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K10psacct                         0000755 0000000 0000000 00000003024 11524350167 025025  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S26acpid                          0000755 0000000 0000000 00000003275 11524350174 024655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S13cpuspeed                       0000755 0000000 0000000 00000025442 11524350173 025400  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S26udev-post                      0000755 0000000 0000000 00000004370 11524350174 025520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S99local                          0000755 0000000 0000000 00000000334 11524350175 024673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K50netconsole                     0000755 0000000 0000000 00000005650 11524350170 025726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S24rpcidmapd                      0000755 0000000 0000000 00000005222 11524350174 025530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S02lvm2-monitor                   0000555 0000000 0000000 00000004612 11524350173 026125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S28autofs                         0000755 0000000 0000000 00000007234 11524350174 025077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K01smartd                         0000755 0000000 0000000 00000005672 11524350166 025054  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S55autobench                      0000755 0000000 0000000 00000005063 11524350174 025544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S25netfs                          0000755 0000000 0000000 00000012432 11524350174 024706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K30postfix                        0000755 0000000 0000000 00000007414 11524350167 025255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/S24nfslock                        0000755 0000000 0000000 00000006675 11524350174 025241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K92iptables                       0000755 0000000 0000000 00000020557 11524350172 025373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K87restorecond                    0000755 0000000 0000000 00000003427 11524350171 026117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/rc3.d/K05atd                            0000755 0000000 0000000 00000004112 11524350167 024323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/                                 0000777 0000000 0000000 00000000000 11524350166 023626  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/network                          0000755 0000000 0000000 00000014466 11524350163 025251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/sysstat                          0000755 0000000 0000000 00000002363 11524350166 025266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/saslauthd                        0000755 0000000 0000000 00000004010 11524350165 025532  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/messagebus                       0000755 0000000 0000000 00000004230 11524350162 025701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/autobench                        0000755 0000000 0000000 00000005063 11524350157 025524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/atd                              0000755 0000000 0000000 00000004112 11524350157 024316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/mcelogd                          0000755 0000000 0000000 00000003535 11524350162 025164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/auditd                           0000755 0000000 0000000 00000006462 11524350157 025032  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/certmonger                       0000755 0000000 0000000 00000004054 11524350160 025712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/mysqld                           0000755 0000000 0000000 00000012460 11524350163 025061  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/irqbalance                       0000755 0000000 0000000 00000003521 11524350161 025645  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/acpid                            0000755 0000000 0000000 00000003275 11524350157 024637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/iscsid                           0000755 0000000 0000000 00000007127 11524350161 025030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/nscd                             0000755 0000000 0000000 00000004723 11524350163 024502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/rpcidmapd                        0000755 0000000 0000000 00000005222 11524350164 025512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/nfs                              0000755 0000000 0000000 00000013536 11524350163 024343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/sssd                             0000755 0000000 0000000 00000004731 11524350165 024530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/crond                            0000755 0000000 0000000 00000005445 11524350160 024657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/ip6tables                        0000755 0000000 0000000 00000020716 11524350161 025442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/firstboot                        0000755 0000000 0000000 00000005341 11524350160 025560  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/autofs                           0000755 0000000 0000000 00000007234 11524350157 025057  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/sshd                             0000755 0000000 0000000 00000010671 11524350165 024515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/libvirt-guests                   0000755 0000000 0000000 00000017172 11524350162 026537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/avahi-daemon                     0000755 0000000 0000000 00000004754 11524350160 026105  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/iscsi                            0000755 0000000 0000000 00000007315 11524350161 024663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/ypbind                           0000755 0000000 0000000 00000011277 11524350166 025045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/psacct                           0000755 0000000 0000000 00000003024 11524350164 025022  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/fcoe                             0000755 0000000 0000000 00000005775 11524350160 024474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/nfslock                          0000755 0000000 0000000 00000006675 11524350163 025222  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/cgred                            0000755 0000000 0000000 00000006302 11524350160 024627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/udev-post                        0000755 0000000 0000000 00000004370 11524350166 025502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/haldaemon                        0000755 0000000 0000000 00000003245 11524350161 025477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/ipsec                            0000755 0000000 0000000 00000010777 11524350161 024662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/rpcbind                          0000755 0000000 0000000 00000004031 11524350164 025165  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/rhnsd                            0000755 0000000 0000000 00000005522 11524350164 024670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/dnsmasq                          0000755 0000000 0000000 00000002577 11524350160 025223  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/functions                        0000644 0000000 0000000 00000042767 11524350160 025567  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/kdump                            0000755 0000000 0000000 00000027662 11524350162 024701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/lldpad                           0000755 0000000 0000000 00000014323 11524350162 025007  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/postfix                          0000755 0000000 0000000 00000007414 11524350164 025250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/iptables                         0000755 0000000 0000000 00000020557 11524350161 025357  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/multipathd                       0000755 0000000 0000000 00000004473 11524350162 025727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/rsyslog                          0000755 0000000 0000000 00000004326 11524350165 025256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/NetworkManager                   0000755 0000000 0000000 00000004235 11524350157 026500  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/netconsole                       0000755 0000000 0000000 00000005650 11524350163 025724  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/rpcgssd                          0000755 0000000 0000000 00000006050 11524350164 025214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/lvm2-monitor                     0000555 0000000 0000000 00000004612 11524350162 026112  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/halt                             0000755 0000000 0000000 00000012723 11524350161 024500  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/cgconfig                         0000755 0000000 0000000 00000012327 11524350160 025326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/single                           0000755 0000000 0000000 00000001207 11524350165 025030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/postgresql                       0000755 0000000 0000000 00000012406 11524350164 025754  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/mdmonitor                        0000755 0000000 0000000 00000005013 11524350162 025553  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/restorecond                      0000755 0000000 0000000 00000003427 11524350164 026103  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/wpa_supplicant                   0000755 0000000 0000000 00000003512 11524350166 026602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/cpuspeed                         0000755 0000000 0000000 00000025442 11524350160 025361  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/netfs                            0000755 0000000 0000000 00000012432 11524350163 024666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/rpcsvcgssd                       0000755 0000000 0000000 00000006014 11524350165 025731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/oddjobd                          0000755 0000000 0000000 00000004325 11524350163 025156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/sandbox                          0000755 0000000 0000000 00000003242 11524350165 025206  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/killall                          0000755 0000000 0000000 00000001214 11524350162 025166  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/rdisc                            0000755 0000000 0000000 00000003027 11524350164 024654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/httpd                            0000755 0000000 0000000 00000006364 11524350161 024677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/ntpd                             0000755 0000000 0000000 00000003603 11524350163 024514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/smartd                           0000755 0000000 0000000 00000005672 11524350165 025053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/nslcd                            0000755 0000000 0000000 00000003213 11524350163 024647  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/ntpdate                          0000755 0000000 0000000 00000003512 11524350163 025205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile13/etc/rc.d/init.d/microcode_ctl                    0000755 0000000 0000000 00000002221 11524350162 026347  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile13/etc/hosts                                        0000644 0000000 0000000 00000000052 11524350156 022666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1	localhost.localdomain	localhost
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile13/etc/iproute2/                                    0000777 0000000 0000000 00000000000 11524350157 023364  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/etc/iproute2/rt_dsfield                          0000644 0000000 0000000 00000000672 11524350156 025426  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client04/tile13/etc/iproute2/rt_realms                           0000644 0000000 0000000 00000000160 11524350157 025270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/tile13/etc/iproute2/rt_scopes                           0000644 0000000 0000000 00000000134 11524350157 025302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile13/etc/iproute2/ematch_map                          0000644 0000000 0000000 00000000073 11524350156 025400  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile13/etc/iproute2/rt_tables                           0000644 0000000 0000000 00000000127 11524350157 025262  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile13/etc/iproute2/rt_protos                           0000644 0000000 0000000 00000000475 11524350156 025343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/etc/nsswitch.conf                                0000644 0000000 0000000 00000003230 11524350157 024316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile13/etc/fstab                                        0000644 0000000 0000000 00000001307 11524350156 022631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Thu Aug  5 09:23:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=008a3418-d80b-4815-9722-db5af2fba6da /                       ext3    defaults        1 1
UUID=171fffed-b6b4-4161-b8cd-a688d195da49 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile13/etc/sysctl.conf                                  0000644 0000000 0000000 00000001466 11524350175 024006  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile13/etc/inittab                                      0000644 0000000 0000000 00000001564 11524350156 023171  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile13/var/                                             0000777 0000000 0000000 00000000000 11524350176 021631  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/var/log/                                         0000777 0000000 0000000 00000000000 11524350176 022412  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/var/log/dmesg                                    0000644 0000000 0000000 00000041752 11524350176 023441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009cc00 (usable)
 BIOS-e820: 000000000009cc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
RAMDISK: 372ca000 - 37fef973
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffdc0 00040
ACPI: SSDT 00000000dfffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000000dfffd000
Bootmem setup node 0 0000000000000000-00000000dfffd000
  NODE_DATA [000000000000c000 - 000000000003ffff]
  bootmap [0000000000040000 -  000000000005bfff] pages 1c
(7 early reservations) ==> bootmem [0000000000 - 00dfffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [00372ca000 - 0037fef973]          RAMDISK ==> [00372ca000 - 0037fef973]
  #4 [000009cc00 - 0000100000]    BIOS reserved ==> [000009cc00 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00031fffff] PMD -> [ffff880002200000-ffff8800053fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009c
    0: 0x00000100 -> 0x000dfffd
On node 0 totalpages: 917400
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3833 pages, LIFO batch:0
  DMA32 zone: 12488 pages used for memmap
  DMA32 zone: 900917 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009c000 - 000000000009d000
PM: Registered nosave memory: 000000000009d000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 904750
Policy zone: DMA32
Kernel command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us 
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 3591248k/3670004k available (4935k kernel code, 404k absent, 78352k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 36700160 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 2266.928 MHz processor.
Calibrating delay loop (skipped) preset value.. 4533.85 BogoMIPS (lpj=2266928)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Setting APIC routing to flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (9067.71 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13462k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297092622.412:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 7040
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 15:30:22 UTC (1297092622)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
dracut: Mounted root filesystem /dev/vda1
dracut: Loading SELinux policy
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1297092624.734:2): selinux=0 auid=4294967295 ses=4294967295
dracut: /sbin/load_policy: Can't load policy: No such file or directory
dracut: Switching root
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 27 for MSI/MSI-X
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT3 FS on vda1, internal journal
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                      Physical_Configuration/Clients/tb3-client04/tile13/boot/                                            0000777 0000000 0000000 00000000000 11524350155 022001  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/boot/grub/                                       0000777 0000000 0000000 00000000000 11524350155 022740  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile13/boot/grub/grub.conf                              0000644 0000000 0000000 00000002637 11524350156 024553  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux Server (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-70.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-70.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-70.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-59.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-59.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-59.el6.x86_64.img
                                                                                                 Physical_Configuration/Clients/tb3-client04/tile13/rpmpkgs.txt                                      0000644 0000000 0000000 00000105007 11524350176 023264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rhnsd-4.9.3-2.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
pycairo-1.8.6-2.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
polkit-devel-0.96-2.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
popt-devel-1.13-7.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
basesystem-10.0-4.el6.noarch
libgnomeui-devel-2.24.1-4.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libhbalinux-1.0.10-1.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-Newt-1.08-26.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
system-icon-theme-6.0.0-2.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
libjpeg-6b-46.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
gettext-0.17-16.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
NetworkManager-glib-0.8.1-5.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
sed-4.2.1-5.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
libXext-1.1-3.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
libcap-2.16-5.2.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
hwdata-0.233-1.el6.noarch
pcre-7.8-3.1.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
fuse-2.8.3-1.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
python-decorator-3.0.1-3.1.el6.noarch
report-plugin-scp-0.18-7.el6.x86_64
rsync-3.0.6-5.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
ModemManager-0.4.0-3.git20100628.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
device-mapper-event-libs-1.02.53-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
nc-1.84-22.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
dracut-004-32.el6.noarch
psmisc-22.6-15.el6.x86_64
vino-2.28.1-3.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
kernel-2.6.32-70.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
mtools-4.0.12-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
mod_wsgi-3.2-1.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
jna-3.2.4-2.el6.x86_64
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
php-pdo-5.3.2-6.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
postfix-2.6.6-2.el6.x86_64
patch-2.6-6.el6.x86_64
elfutils-0.148-1.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
xorg-x11-xkb-utils-7.4-6.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
xvattr-1.3-18.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
boost-regex-1.41.0-11.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
pam-1.1.1-4.el6.x86_64
setserial-2.17-25.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
python-slip-0.2.11-1.el6.noarch
gvfs-1.4.3-9.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
libhbaapi-2.2-10.el6.x86_64
gnome-applets-2.28.0-7.el6.x86_64
grub-0.97-68.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
setup-2.8.14-10.el6.noarch
hal-devel-0.5.14-8.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
autoconf-2.63-5.1.el6.noarch
fontpackages-filesystem-1.41-1.1.el6.noarch
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libXtst-devel-1.0.99.2-3.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
libX11-common-1.3-2.el6.noarch
sos-2.2-2.el6.noarch
php-pear-1.9.0-2.el6.noarch
avahi-autoipd-0.6.25-8.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
bash-4.1.2-3.el6.x86_64
libcap-ng-devel-0.6.4-3.el6.x86_64
festival-1.96-18.el6.x86_64
libICE-1.0.6-1.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
rootfiles-8.1-6.1.el6.noarch
libldb-0.9.10-23.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
libpng-1.2.44-1.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
gd-2.0.35-10.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
man-pages-3.22-12.el6.noarch
libcroco-devel-0.6.2-5.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
numactl-2.0.3-9.el6.x86_64
yum-3.2.27-14.el6.noarch
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
iproute-2.6.32-10.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
boost-1.41.0-11.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
gstreamer-tools-0.10.29-1.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
libXdamage-1.1.2-1.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
binutils-2.20.51.0.2-5.11.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
gcc-4.4.4-13.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
libtheora-1.1.0-2.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
gnome-power-manager-2.28.3-3.el6.x86_64
totem-mozplugin-2.28.6-2.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-Log-Message-0.02-115.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
libXdmcp-1.0.3-1.el6.x86_64
parted-2.1-10.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libevent-1.4.13-1.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
psacct-6.3.2-63.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
checkpolicy-2.0.22-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
flex-2.5.35-8.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
selinux-policy-3.7.19-54.el6.noarch
ltrace-0.5-16.45svn.1.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
crontabs-1.10-32.1.el6.noarch
coreutils-libs-8.4-9.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
mtr-0.75-5.el6.x86_64
openssl-1.0.0-4.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
libgudev1-147-2.29.el6.x86_64
ctags-5.8-2.el6.x86_64
redhat-bookmarks-6-1.el6.noarch
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
passwd-0.77-4.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
orca-2.28.2-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
slang-2.2.1-1.el6.x86_64
subversion-1.6.11-2.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
openswan-2.6.24-8.el6.x86_64
gtk-doc-1.11-5.1.el6.noarch
libdaemon-0.14-1.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
xml-common-0.6.3-32.el6.noarch
gtk2-devel-2.18.9-4.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
notification-daemon-0.5.0-1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
libgcc-4.4.4-13.el6.i686
ncurses-libs-5.7-3.20090208.el6.x86_64
ppp-2.4.5-5.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
info-4.13a-8.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
docbook-style-dsssl-1.79-10.el6.noarch
pam_ldap-185-5.el6.x86_64
glib2-2.22.5-5.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
readline-6.0-3.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
at-3.1.10-42.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
samba-winbind-clients-3.5.4-68.el6.x86_64
gmp-4.3.1-7.el6.x86_64
gnome-panel-libs-2.30.2-5.el6.x86_64
perl-version-0.77-115.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
perl-5.10.1-115.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
curl-7.19.7-16.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
httpd-tools-2.2.15-5.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
libavc1394-0.5.3-9.1.el6.x86_64
which-2.19-5.1.el6.x86_64
perl-BSD-Resource-1.29.03-3.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
keyutils-libs-1.4-1.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
iso-codes-3.16-2.el6.noarch
libxslt-1.1.26-2.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-1.0.5-1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
giflib-4.1.6-3.1.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
report-0.18-7.el6.x86_64
libX11-1.3-2.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
grubby-7.0.15-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
eggdbus-0.6-3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
httpd-2.2.15-5.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
ppl-0.10.2-11.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
file-libs-5.04-5.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
bc-1.06.95-1.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
NetworkManager-0.8.1-5.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
dracut-kernel-004-32.el6.noarch
cpio-2.10-9.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
unzip-6.0-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
check-0.9.8-1.1.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
libgssglue-0.1-8.1.el6.x86_64
db4-cxx-4.7.25-16.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
libnih-1.0.1-6.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
fcoe-utils-1.0.14-9.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
zip-3.0-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
usermode-1.102-3.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
php-xml-5.3.2-6.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
crash-5.0.0-23.el6.x86_64
libthai-0.1.12-3.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
zenity-2.28.0-1.el6.x86_64
report-newt-0.18-7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
boost-test-1.41.0-11.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
tzdata-2010l-1.el6.noarch
ncurses-5.7-3.20090208.el6.x86_64
nspr-4.8.6-1.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
dnsmasq-2.48-4.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
nss-3.12.7-2.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
udev-147-2.29.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
postgresql-libs-8.4.4-2.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
avahi-ui-0.6.25-8.el6.x86_64
device-mapper-multipath-libs-0.4.9-31.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
udisks-1.0.1-2.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
libaio-0.3.107-10.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
evolution-data-server-devel-2.28.3-10.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
elfutils-devel-0.148-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
cas-0.15-1.el6.1.noarch
libgnome-devel-2.28.0-11.el6.x86_64
kernel-devel-2.6.32-59.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
dstat-0.7.0-1.el6.noarch
perl-XML-Dumper-0.81-6.el6.noarch
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
zd1211-firmware-1.4-4.el6.noarch
ivtv-firmware-20080701-20.2.noarch
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
libnl-1.1-12.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
mysql-5.1.47-4.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
iptables-1.4.7-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
perl-Time-HiRes-1.9721-115.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
systemtap-1.2-9.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
eog-2.28.2-4.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
postgresql-server-8.4.4-2.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
gnome-settings-daemon-2.28.2-11.el6.x86_64
usbutils-0.86-2.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
python-psycopg2-2.0.13-2.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
tcsh-6.17-8.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
kernel-devel-2.6.32-70.el6.x86_64
bison-2.4.1-5.el6.x86_64
busybox-1.15.1-10.el6.x86_64
lsof-4.82-1.2.el6.x86_64
swig-1.3.40-5.el6.x86_64
hal-0.5.14-8.el6.x86_64
powertop-1.11-3.1.el6.x86_64
rdate-1.4-16.el6.x86_64
kernel-2.6.32-59.el6.x86_64
libtopology-0.3-7.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
openldap-devel-2.4.19-15.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
kernel-2.6.32-71.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
libxml2-python-2.7.6-1.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
libcanberra-0.22-1.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
python-gudev-147.1-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
mailcap-2.1.31-1.1.el6.noarch
wpa_supplicant-0.6.8-10.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
cracklib-python-2.8.16-2.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
gnome-python2-libwnck-2.28.0-4.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
openjade-1.3.2-36.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
popt-1.13-7.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
system-gnome-theme-60.0.2-1.el6.noarch
db4-4.7.25-16.el6.x86_64
wget-1.12-1.4.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
fipscheck-1.2.0-4.1.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
gawk-3.1.7-6.el6.x86_64
cvs-1.11.23-11.el6.x86_64
php-common-5.3.2-6.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
tcp_wrappers-libs-7.6-56.3.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
atk-1.28.0-2.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
libacl-2.2.49-4.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
findutils-4.4.2-6.el6.x86_64
libiec61883-1.2.0-4.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
grep-2.6.3-2.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
libgcrypt-1.4.5-3.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
pixman-0.16.6-1.el6.x86_64
iw-0.9.17-4.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
libxcb-1.5-1.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
comps-extras-17.8-1.el6.noarch
libsoup-2.28.2-1.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
xfsprogs-3.1.1-4.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
libXv-1.0.5-1.el6.x86_64
polkit-0.96-2.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
rtkit-0.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
libIDL-0.8.13-2.1.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
ed-1.1-3.3.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
tar-1.23-3.el6.x86_64
libconfig-1.3.2-1.1.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
pciutils-libs-3.1.4-9.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
mod_ssl-2.2.15-5.el6.x86_64
kbd-misc-1.15-11.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
rng-tools-2-8.el6.x86_64
pax-3.4-10.1.el6.x86_64
control-center-2.28.1-25.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
php-gd-5.3.2-6.el6.x86_64
libtasn1-2.3-3.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
irqbalance-0.55-27.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
yajl-1.0.7-3.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libXpm-3.5.8-2.el6.x86_64
pango-1.28.1-3.el6.x86_64
gucharmap-2.28.2-2.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
net-tools-1.60-102.el6.x86_64
exempi-2.1.0-5.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
DeviceKit-power-014-1.el6.x86_64
make-3.81-19.el6.x86_64
unique-1.1.4-2.el6.x86_64
rhn-setup-1.0.0-38.el6.noarch
boost-signals-1.41.0-11.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
cronie-1.4.4-2.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
libcollection-0.5.0-28.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
libudev-147-2.29.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
libuser-0.56.13-4.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
device-mapper-multipath-0.4.9-31.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
perl-URI-1.40-2.el6.noarch
dbus-glib-devel-0.86-5.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
seekwatcher-0.12-4.1.el6.noarch
perf-2.6.32-71.el6.noarch
libglade2-devel-2.6.4-3.1.el6.x86_64
glibc-2.12-1.7.el6.i686
polkit-docs-0.96-2.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
libXi-devel-1.3-3.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
mysql-devel-5.1.47-4.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
iotop-0.3.2-3.el6.noarch
python-meh-0.9-1.el6.noarch
bzip2-devel-1.0.5-6.1.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
atmel-firmware-1.3-7.el6.noarch
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
libstdc++-4.4.4-13.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
libXi-1.3-3.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
nautilus-extensions-2.28.4-15.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
libss-1.41.12-3.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
glx-utils-7.7-2.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
cpp-4.4.4-13.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
ipa-client-2.0-9.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
gnome-vfs2-smb-2.24.2-6.el6.x86_64
xdg-user-dirs-0.12-4.el6.x86_64
gdb-7.1-29.el6.x86_64
gok-2.28.1-5.el6.x86_64
SDL-1.2.14-2.el6.x86_64
postgresql-docs-8.4.4-2.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mod_perl-2.0.4-10.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
prelink-0.4.3-4.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
gnome-session-xsession-2.28.0-15.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
crypto-utils-2.4.1-24.2.el6.x86_64
PyGreSQL-3.8.1-2.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
postgresql-odbc-08.04.0200-1.el6.x86_64
git-1.7.1-2.el6.x86_64
report-gtk-0.18-7.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
libvirt-devel-0.8.1-27.el6.x86_64
audit-2.0.4-1.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
attr-2.4.44-4.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
latrace-0.5.9-2.el6.x86_64
byacc-1.9.20070509-6.1.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
nscd-2.12-1.7.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
vte-0.25.1-5.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
gcc-c++-4.4.4-13.el6.x86_64
firefox-3.6.9-2.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
libgnomecanvas-devel-2.26.0-4.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
perl-XML-Grove-0.46alpha-40.el6.noarch
automake-1.11.1-1.2.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
system-config-services-docs-1.1.8-1.el6.noarch
pyOpenSSL-0.10-2.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
zlib-1.2.3-25.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
audit-libs-devel-2.0.4-1.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
libstdc++-4.4.4-13.el6.i686
libdrm-2.4.20-2.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
docbook-utils-0.6.14-24.el6.noarch
freetype-2.3.11-5.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
gnome-python2-desktop-2.28.0-4.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
words-3.0-17.el6.noarch
libselinux-utils-2.0.94-2.el6.x86_64
gamin-0.1.10-9.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
mailx-12.4-6.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
keyutils-1.4-1.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
openssh-5.3p1-20.el6.x86_64
m4-1.4.13-5.el6.x86_64
autofs-5.0.5-23.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
gvfs-archive-1.4.3-9.el6.x86_64
man-1.6f-29.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
gdm-2.30.4-21.el6.x86_64
libusb-0.1.12-23.el6.x86_64
webalizer-2.21_02-3.3.el6.x86_64
time-1.7-37.1.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
less-436-4.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
gettext-libs-0.17-16.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
NetworkManager-gnome-0.8.1-5.el6.x86_64
readahead-1.5.6-1.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
php-5.3.2-6.el6.x86_64
libical-0.43-5.1.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-panel-2.30.2-5.el6.x86_64
latencytop-0.5-3.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
kbd-1.15-11.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
rcs-5.7-37.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
boost-program-options-1.41.0-11.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
iputils-20071127-13.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
glibc-2.12-1.7.el6.x86_64
gzip-1.3.12-18.el6.x86_64
cscope-15.6-6.el6.x86_64
certmonger-0.24-4.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
openldap-2.4.19-15.el6.x86_64
eject-2.1.5-17.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
qt-4.6.2-16.el6.x86_64
diffstat-1.51-2.el6.x86_64
libgail-gnome-1.20.1-4.1.el6.x86_64
sssd-1.2.1-28.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
newt-0.52.11-2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
nspluginwrapper-1.3.0-14.el6.x86_64
mysql-server-5.1.47-4.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
rhn-setup-gnome-1.0.0-38.el6.noarch
atk-devel-1.28.0-2.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
filesystem-2.4.30-2.1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
libcom_err-devel-1.41.12-3.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
m2crypto-0.20.2-7.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
screen-4.0.3-15.el6.x86_64
alsa-lib-devel-1.0.21-3.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
mobile-broadband-provider-info-1.20100122-1.el6.noarch
xorg-x11-docs-1.3-6.1.el6.noarch
gnome-themes-2.28.1-6.el6.noarch
libselinux-2.0.94-2.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
libxcb-devel-1.5-1.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
pam_krb5-2.3.11-1.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
pytz-2010h-2.el6.noarch
libidn-1.18-2.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
acl-2.2.49-4.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
jline-0.9.94-0.8.el6.noarch
libXt-1.0.7-1.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
procps-3.2.8-14.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
gnome-screensaver-2.28.3-8.el6.x86_64
rpm-4.8.0-12.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
quota-3.17-10.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
rpm-build-4.8.0-12.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
nano-2.0.9-7.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
system-config-services-0.99.45-1.el6.3.noarch
perl-parent-0.221-115.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
hal-info-20090716-3.1.el6.noarch
mlocate-0.22.2-3.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
libicu-4.2.1-9.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
yp-tools-2.9-10.el6.x86_64
coreutils-8.4-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
rfkill-0.3-4.el6.x86_64
at-spi-1.28.1-2.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
lldpad-0.9.38-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
gnome-python2-bonobo-2.28.0-3.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
evolution-data-server-doc-2.28.3-10.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
yelp-2.28.1-8.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
python-2.6.5-3.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile13/ifconfig.txt                                     0000644 0000000 0000000 00000001637 11524350175 023370  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:90:00:0D  
          inet addr:10.1.216.163  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe90:d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:511988705 errors:0 dropped:0 overruns:0 frame:0
          TX packets:175187131 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:727942564639 (677.9 GiB)  TX bytes:17127673205 (15.9 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:255672 errors:0 dropped:0 overruns:0 frame:0
          TX packets:255672 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:326392607 (311.2 MiB)  TX bytes:326392607 (311.2 MiB)

                                                                                                 Physical_Configuration/Clients/tb3-client04/tile13/chkconfig.txt                                    0000644 0000000 0000000 00000006556 11524350156 023543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:off	4:on	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
fcoe           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:off	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:off	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lldpad         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
multipathd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
mysqld         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postgresql     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/tile12/                                                 0000777 0000000 0000000 00000000000 11524350155 021035  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/proc/                                            0000777 0000000 0000000 00000000000 11524350155 022000  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/proc/cpuinfo                                     0000644 0000000 0000000 00000002012 11524350154 023354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.928
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.85
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2266.928
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4533.85
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile12/proc/swaps                                       0000644 0000000 0000000 00000000150 11524350155 023050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	75836	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile12/proc/devices                                     0000644 0000000 0000000 00000000567 11524350154 023350  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile12/proc/modules                                     0000644 0000000 0000000 00000002547 11524350154 023376  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa0259000
stp 2107 1 bridge, Live 0xffffffffa0253000
llc 5608 2 bridge,stp, Live 0xffffffffa024b000
autofs4 27683 3 - Live 0xffffffffa023e000
sunrpc 241630 1 - Live 0xffffffffa01eb000
ipv6 321209 557 - Live 0xffffffffa0156000
dm_mirror 14003 0 - Live 0xffffffffa012a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0121000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0118000
ppdev 8695 0 - Live 0xffffffffa010a000
parport_pc 22944 0 - Live 0xffffffffa00fd000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa00eb000
sg 30186 0 - Live 0xffffffffa00dc000
virtio_net 15665 0 - Live 0xffffffffa00d2000
i2c_piix4 12574 0 - Live 0xffffffffa00c9000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00b9000
ext3 133830 1 - Live 0xffffffffa008d000
jbd 54576 1 ext3, Live 0xffffffffa0076000
mbcache 7918 1 ext3, Live 0xffffffffa006e000
virtio_blk 5087 3 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
ata_generic 3611 0 - Live 0xffffffffa0030000
pata_acpi 3667 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile12/proc/partitions                                  0000644 0000000 0000000 00000000165 11524350155 024115  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile12/proc/meminfo                                     0000644 0000000 0000000 00000002222 11524350154 023346  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        3605932 kB
MemFree:         3360984 kB
Buffers:            3704 kB
Cached:            26856 kB
SwapCached:         4480 kB
Active:            78508 kB
Inactive:          31788 kB
Active(anon):      63096 kB
Inactive(anon):    16616 kB
Active(file):      15412 kB
Inactive(file):    15172 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        1972156 kB
Dirty:               352 kB
Writeback:             0 kB
AnonPages:         77016 kB
Mapped:             7348 kB
Shmem:                 4 kB
Slab:             106216 kB
SReclaimable:      25380 kB
SUnreclaim:        80836 kB
KernelStack:        1688 kB
PageTables:         3380 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3850956 kB
Committed_AS:     767876 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19136 kB
VmallocChunk:   34359715008 kB
HardwareCorrupted:     0 kB
AnonHugePages:     47104 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     3661824 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile12/lspci.txt                                        0000644 0000000 0000000 00000000744 11524350154 022710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
                            Physical_Configuration/Clients/tb3-client04/tile12/df.txt                                           0000644 0000000 0000000 00000000276 11524350135 022166  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8183316   4597620  65% /
tmpfs                  1802964         0   1802964   0% /dev/shm
                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/tile12/mount.txt                                        0000644 0000000 0000000 00000000434 11524350154 022734  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile12/etc/                                             0000777 0000000 0000000 00000000000 11524350154 021607  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/                                        0000777 0000000 0000000 00000000000 11524350145 022435  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/                                  0000777 0000000 0000000 00000000000 11524350153 023345  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K02libvirt-guests                 0000755 0000000 0000000 00000017172 11524350146 026541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K02oddjobd                        0000755 0000000 0000000 00000004325 11524350146 025157  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K69rpcsvcgssd                     0000755 0000000 0000000 00000006014 11524350147 025746  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K95cgconfig                       0000755 0000000 0000000 00000012327 11524350151 025342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S55sshd                           0000755 0000000 0000000 00000010671 11524350153 024532  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K80fcoe                           0000755 0000000 0000000 00000005775 11524350150 024501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K15httpd                          0000755 0000000 0000000 00000006364 11524350146 024706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K92ip6tables                      0000755 0000000 0000000 00000020716 11524350151 025452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K80sssd                           0000755 0000000 0000000 00000004731 11524350150 024530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S58ntpd                           0000755 0000000 0000000 00000003603 11524350153 024536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K02avahi-daemon                   0000755 0000000 0000000 00000004754 11524350146 026111  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K89rdisc                          0000755 0000000 0000000 00000003027 11524350151 024667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K76ipsec                          0000755 0000000 0000000 00000010777 11524350150 024673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S22messagebus                     0000755 0000000 0000000 00000004230 11524350152 025712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K95firstboot                      0000755 0000000 0000000 00000005341 11524350151 025574  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K86cgred                          0000755 0000000 0000000 00000006302 11524350150 024642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S13rpcbind                        0000755 0000000 0000000 00000004031 11524350152 025174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S13irqbalance                     0000755 0000000 0000000 00000003521 11524350152 025657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K84NetworkManager                 0000755 0000000 0000000 00000004235 11524350150 026503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K99sysstat                        0000755 0000000 0000000 00000002363 11524350151 025300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K50dnsmasq                        0000755 0000000 0000000 00000002577 11524350147 025233  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K01certmonger                     0000755 0000000 0000000 00000004054 11524350145 025714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K85mdmonitor                      0000755 0000000 0000000 00000005013 11524350150 025563  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K36mysqld                         0000755 0000000 0000000 00000012460 11524350146 025071  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K80lldpad                         0000755 0000000 0000000 00000014323 11524350150 025012  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K88nslcd                          0000755 0000000 0000000 00000003213 11524350151 024662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K75ntpdate                        0000755 0000000 0000000 00000003512 11524350150 025213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K89iscsid                         0000755 0000000 0000000 00000007127 11524350151 025046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K73ypbind                         0000755 0000000 0000000 00000011277 11524350147 025054  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S10network                        0000755 0000000 0000000 00000014466 11524350152 025256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S12rsyslog                        0000755 0000000 0000000 00000004326 11524350152 025263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S11auditd                         0000755 0000000 0000000 00000006462 11524350152 025035  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K84wpa_supplicant                 0000755 0000000 0000000 00000003512 11524350150 026605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S20kdump                          0000755 0000000 0000000 00000027662 11524350152 024710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K87multipathd                     0000755 0000000 0000000 00000004473 11524350150 025741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S26haldaemon                      0000755 0000000 0000000 00000003245 11524350153 025516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K60crond                          0000755 0000000 0000000 00000005445 11524350147 024670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K03rhnsd                          0000755 0000000 0000000 00000005522 11524350146 024671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K36postgresql                     0000755 0000000 0000000 00000012406 11524350147 025764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S00microcode_ctl                  0000755 0000000 0000000 00000002221 11524350152 026354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K10saslauthd                      0000755 0000000 0000000 00000004010 11524350146 025530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K88iscsi                          0000755 0000000 0000000 00000007315 11524350151 024700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K60nfs                            0000755 0000000 0000000 00000013536 11524350147 024351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S30nscd                           0000755 0000000 0000000 00000004723 11524350153 024512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S24rpcgssd                        0000755 0000000 0000000 00000006050 11524350153 025226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K10psacct                         0000755 0000000 0000000 00000003024 11524350146 025021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S26acpid                          0000755 0000000 0000000 00000003275 11524350153 024651  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S13cpuspeed                       0000755 0000000 0000000 00000025442 11524350152 025374  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S26udev-post                      0000755 0000000 0000000 00000004370 11524350153 025514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S99local                          0000755 0000000 0000000 00000000334 11524350154 024667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K50netconsole                     0000755 0000000 0000000 00000005650 11524350147 025731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S24rpcidmapd                      0000755 0000000 0000000 00000005222 11524350153 025524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S02lvm2-monitor                   0000555 0000000 0000000 00000004612 11524350152 026121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S28autofs                         0000755 0000000 0000000 00000007234 11524350153 025073  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K01smartd                         0000755 0000000 0000000 00000005672 11524350145 025050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S55autobench                      0000755 0000000 0000000 00000005063 11524350153 025540  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S25netfs                          0000755 0000000 0000000 00000012432 11524350153 024702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K30postfix                        0000755 0000000 0000000 00000007414 11524350146 025251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/S24nfslock                        0000755 0000000 0000000 00000006675 11524350152 025234  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K92iptables                       0000755 0000000 0000000 00000020557 11524350151 025367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K87restorecond                    0000755 0000000 0000000 00000003427 11524350151 026114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/rc3.d/K05atd                            0000755 0000000 0000000 00000004112 11524350146 024317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/                                 0000777 0000000 0000000 00000000000 11524350145 023622  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/network                          0000755 0000000 0000000 00000014466 11524350142 025245  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/sysstat                          0000755 0000000 0000000 00000002363 11524350145 025262  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/saslauthd                        0000755 0000000 0000000 00000004010 11524350144 025526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/messagebus                       0000755 0000000 0000000 00000004230 11524350142 025676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/autobench                        0000755 0000000 0000000 00000005063 11524350137 025521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/atd                              0000755 0000000 0000000 00000004112 11524350137 024313  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/mcelogd                          0000755 0000000 0000000 00000003535 11524350142 025161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/auditd                           0000755 0000000 0000000 00000006462 11524350137 025027  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/certmonger                       0000755 0000000 0000000 00000004054 11524350137 025715  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/mysqld                           0000755 0000000 0000000 00000012460 11524350142 025055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/irqbalance                       0000755 0000000 0000000 00000003521 11524350141 025642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/acpid                            0000755 0000000 0000000 00000003275 11524350137 024634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/iscsid                           0000755 0000000 0000000 00000007127 11524350141 025025  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/nscd                             0000755 0000000 0000000 00000004723 11524350143 024477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/rpcidmapd                        0000755 0000000 0000000 00000005222 11524350144 025507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/nfs                              0000755 0000000 0000000 00000013536 11524350143 024340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/sssd                             0000755 0000000 0000000 00000004731 11524350145 024525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/crond                            0000755 0000000 0000000 00000005445 11524350140 024654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/ip6tables                        0000755 0000000 0000000 00000020716 11524350140 025436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/firstboot                        0000755 0000000 0000000 00000005341 11524350140 025555  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/autofs                           0000755 0000000 0000000 00000007234 11524350137 025054  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/sshd                             0000755 0000000 0000000 00000010671 11524350145 024512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/libvirt-guests                   0000755 0000000 0000000 00000017172 11524350141 026533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/avahi-daemon                     0000755 0000000 0000000 00000004754 11524350137 026110  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/iscsi                            0000755 0000000 0000000 00000007315 11524350141 024660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/ypbind                           0000755 0000000 0000000 00000011277 11524350145 025041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/psacct                           0000755 0000000 0000000 00000003024 11524350143 025016  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/fcoe                             0000755 0000000 0000000 00000005775 11524350140 024471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/nfslock                          0000755 0000000 0000000 00000006675 11524350143 025217  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/cgred                            0000755 0000000 0000000 00000006302 11524350137 024632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/udev-post                        0000755 0000000 0000000 00000004370 11524350145 025476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/haldaemon                        0000755 0000000 0000000 00000003245 11524350140 025473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/ipsec                            0000755 0000000 0000000 00000010777 11524350141 024657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/rpcbind                          0000755 0000000 0000000 00000004031 11524350144 025162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/rhnsd                            0000755 0000000 0000000 00000005522 11524350144 024665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/dnsmasq                          0000755 0000000 0000000 00000002577 11524350140 025220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/functions                        0000644 0000000 0000000 00000042767 11524350140 025564  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/kdump                            0000755 0000000 0000000 00000027662 11524350141 024675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/lldpad                           0000755 0000000 0000000 00000014323 11524350141 025003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/postfix                          0000755 0000000 0000000 00000007414 11524350143 025244  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/iptables                         0000755 0000000 0000000 00000020557 11524350141 025354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/multipathd                       0000755 0000000 0000000 00000004473 11524350142 025724  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/rsyslog                          0000755 0000000 0000000 00000004326 11524350144 025252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/NetworkManager                   0000755 0000000 0000000 00000004235 11524350137 026475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/netconsole                       0000755 0000000 0000000 00000005650 11524350142 025720  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/rpcgssd                          0000755 0000000 0000000 00000006050 11524350144 025211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/lvm2-monitor                     0000555 0000000 0000000 00000004612 11524350142 026107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/halt                             0000755 0000000 0000000 00000012723 11524350140 024474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/cgconfig                         0000755 0000000 0000000 00000012327 11524350137 025331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/single                           0000755 0000000 0000000 00000001207 11524350145 025025  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/postgresql                       0000755 0000000 0000000 00000012406 11524350143 025750  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/mdmonitor                        0000755 0000000 0000000 00000005013 11524350142 025550  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/restorecond                      0000755 0000000 0000000 00000003427 11524350144 026100  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/wpa_supplicant                   0000755 0000000 0000000 00000003512 11524350145 026576  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/cpuspeed                         0000755 0000000 0000000 00000025442 11524350140 025356  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/netfs                            0000755 0000000 0000000 00000012432 11524350142 024662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/rpcsvcgssd                       0000755 0000000 0000000 00000006014 11524350144 025725  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/oddjobd                          0000755 0000000 0000000 00000004325 11524350143 025153  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/sandbox                          0000755 0000000 0000000 00000003242 11524350144 025202  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/killall                          0000755 0000000 0000000 00000001214 11524350141 025162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/rdisc                            0000755 0000000 0000000 00000003027 11524350143 024650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/httpd                            0000755 0000000 0000000 00000006364 11524350140 024673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/ntpd                             0000755 0000000 0000000 00000003603 11524350143 024511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/smartd                           0000755 0000000 0000000 00000005672 11524350145 025050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/nslcd                            0000755 0000000 0000000 00000003213 11524350143 024644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/ntpdate                          0000755 0000000 0000000 00000003512 11524350143 025202  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile12/etc/rc.d/init.d/microcode_ctl                    0000755 0000000 0000000 00000002221 11524350142 026344  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client04/tile12/etc/hosts                                        0000644 0000000 0000000 00000000052 11524350135 022662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1	localhost.localdomain	localhost
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client04/tile12/etc/iproute2/                                    0000777 0000000 0000000 00000000000 11524350136 023360  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/etc/iproute2/rt_dsfield                          0000644 0000000 0000000 00000000672 11524350136 025423  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client04/tile12/etc/iproute2/rt_realms                           0000644 0000000 0000000 00000000160 11524350136 025264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/tile12/etc/iproute2/rt_scopes                           0000644 0000000 0000000 00000000134 11524350136 025276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/tile12/etc/iproute2/ematch_map                          0000644 0000000 0000000 00000000073 11524350136 025375  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client04/tile12/etc/iproute2/rt_tables                           0000644 0000000 0000000 00000000127 11524350136 025256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile12/etc/iproute2/rt_protos                           0000644 0000000 0000000 00000000475 11524350136 025340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/etc/nsswitch.conf                                0000644 0000000 0000000 00000003230 11524350136 024312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client04/tile12/etc/fstab                                        0000644 0000000 0000000 00000001307 11524350135 022625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Thu Aug  5 09:23:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=008a3418-d80b-4815-9722-db5af2fba6da /                       ext3    defaults        1 1
UUID=171fffed-b6b4-4161-b8cd-a688d195da49 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile12/etc/sysctl.conf                                  0000644 0000000 0000000 00000001466 11524350154 024002  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client04/tile12/etc/inittab                                      0000644 0000000 0000000 00000001564 11524350136 023166  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client04/tile12/var/                                             0000777 0000000 0000000 00000000000 11524350155 021625  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/var/log/                                         0000777 0000000 0000000 00000000000 11524350155 022406  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/var/log/dmesg                                    0000644 0000000 0000000 00000041752 11524350155 023435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009cc00 (usable)
 BIOS-e820: 000000000009cc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
RAMDISK: 372ca000 - 37fef973
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffdc0 00040
ACPI: SSDT 00000000dfffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000000dfffd000
Bootmem setup node 0 0000000000000000-00000000dfffd000
  NODE_DATA [000000000000c000 - 000000000003ffff]
  bootmap [0000000000040000 -  000000000005bfff] pages 1c
(7 early reservations) ==> bootmem [0000000000 - 00dfffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [00372ca000 - 0037fef973]          RAMDISK ==> [00372ca000 - 0037fef973]
  #4 [000009cc00 - 0000100000]    BIOS reserved ==> [000009cc00 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00031fffff] PMD -> [ffff880002200000-ffff8800053fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009c
    0: 0x00000100 -> 0x000dfffd
On node 0 totalpages: 917400
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3833 pages, LIFO batch:0
  DMA32 zone: 12488 pages used for memmap
  DMA32 zone: 900917 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009c000 - 000000000009d000
PM: Registered nosave memory: 000000000009d000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 904750
Policy zone: DMA32
Kernel command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us 
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 3591248k/3670004k available (4935k kernel code, 404k absent, 78352k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 36700160 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 2266.928 MHz processor.
Calibrating delay loop (skipped) preset value.. 4533.85 BogoMIPS (lpj=2266928)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Setting APIC routing to flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (9067.71 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13462k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297092619.412:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 7040
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 15:30:18 UTC (1297092618)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
dracut: Mounted root filesystem /dev/vda1
dracut: Loading SELinux policy
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1297092619.500:2): selinux=0 auid=4294967295 ses=4294967295
dracut: /sbin/load_policy: Can't load policy: No such file or directory
dracut: Switching root
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 27 for MSI/MSI-X
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT3 FS on vda1, internal journal
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                      Physical_Configuration/Clients/tb3-client04/tile12/boot/                                            0000777 0000000 0000000 00000000000 11524350135 021776  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/boot/grub/                                       0000777 0000000 0000000 00000000000 11524350135 022735  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client04/tile12/boot/grub/grub.conf                              0000644 0000000 0000000 00000002637 11524350135 024547  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux Server (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-70.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-70.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-70.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-59.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-59.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-59.el6.x86_64.img
                                                                                                 Physical_Configuration/Clients/tb3-client04/tile12/rpmpkgs.txt                                      0000644 0000000 0000000 00000105007 11524350155 023260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rhnsd-4.9.3-2.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
pycairo-1.8.6-2.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
polkit-devel-0.96-2.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
popt-devel-1.13-7.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
basesystem-10.0-4.el6.noarch
libgnomeui-devel-2.24.1-4.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libhbalinux-1.0.10-1.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-Newt-1.08-26.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
system-icon-theme-6.0.0-2.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
libjpeg-6b-46.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
gettext-0.17-16.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
NetworkManager-glib-0.8.1-5.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
sed-4.2.1-5.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
libXext-1.1-3.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
libcap-2.16-5.2.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
hwdata-0.233-1.el6.noarch
pcre-7.8-3.1.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
fuse-2.8.3-1.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
python-decorator-3.0.1-3.1.el6.noarch
report-plugin-scp-0.18-7.el6.x86_64
rsync-3.0.6-5.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
ModemManager-0.4.0-3.git20100628.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
device-mapper-event-libs-1.02.53-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
nc-1.84-22.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
dracut-004-32.el6.noarch
psmisc-22.6-15.el6.x86_64
vino-2.28.1-3.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
kernel-2.6.32-70.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
mtools-4.0.12-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
mod_wsgi-3.2-1.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
jna-3.2.4-2.el6.x86_64
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
php-pdo-5.3.2-6.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
postfix-2.6.6-2.el6.x86_64
patch-2.6-6.el6.x86_64
elfutils-0.148-1.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
xorg-x11-xkb-utils-7.4-6.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
xvattr-1.3-18.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
boost-regex-1.41.0-11.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
pam-1.1.1-4.el6.x86_64
setserial-2.17-25.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
python-slip-0.2.11-1.el6.noarch
gvfs-1.4.3-9.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
libhbaapi-2.2-10.el6.x86_64
gnome-applets-2.28.0-7.el6.x86_64
grub-0.97-68.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
setup-2.8.14-10.el6.noarch
hal-devel-0.5.14-8.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
autoconf-2.63-5.1.el6.noarch
fontpackages-filesystem-1.41-1.1.el6.noarch
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libXtst-devel-1.0.99.2-3.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
libX11-common-1.3-2.el6.noarch
sos-2.2-2.el6.noarch
php-pear-1.9.0-2.el6.noarch
avahi-autoipd-0.6.25-8.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
bash-4.1.2-3.el6.x86_64
libcap-ng-devel-0.6.4-3.el6.x86_64
festival-1.96-18.el6.x86_64
libICE-1.0.6-1.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
rootfiles-8.1-6.1.el6.noarch
libldb-0.9.10-23.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
libpng-1.2.44-1.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
gd-2.0.35-10.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
man-pages-3.22-12.el6.noarch
libcroco-devel-0.6.2-5.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
numactl-2.0.3-9.el6.x86_64
yum-3.2.27-14.el6.noarch
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
iproute-2.6.32-10.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
boost-1.41.0-11.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
gstreamer-tools-0.10.29-1.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
libXdamage-1.1.2-1.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
binutils-2.20.51.0.2-5.11.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
gcc-4.4.4-13.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
libtheora-1.1.0-2.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
gnome-power-manager-2.28.3-3.el6.x86_64
totem-mozplugin-2.28.6-2.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-Log-Message-0.02-115.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
libXdmcp-1.0.3-1.el6.x86_64
parted-2.1-10.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libevent-1.4.13-1.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
psacct-6.3.2-63.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
checkpolicy-2.0.22-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
flex-2.5.35-8.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
selinux-policy-3.7.19-54.el6.noarch
ltrace-0.5-16.45svn.1.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
crontabs-1.10-32.1.el6.noarch
coreutils-libs-8.4-9.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
mtr-0.75-5.el6.x86_64
openssl-1.0.0-4.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
libgudev1-147-2.29.el6.x86_64
ctags-5.8-2.el6.x86_64
redhat-bookmarks-6-1.el6.noarch
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
passwd-0.77-4.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
orca-2.28.2-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
slang-2.2.1-1.el6.x86_64
subversion-1.6.11-2.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
openswan-2.6.24-8.el6.x86_64
gtk-doc-1.11-5.1.el6.noarch
libdaemon-0.14-1.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
xml-common-0.6.3-32.el6.noarch
gtk2-devel-2.18.9-4.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
notification-daemon-0.5.0-1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
libgcc-4.4.4-13.el6.i686
ncurses-libs-5.7-3.20090208.el6.x86_64
ppp-2.4.5-5.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
info-4.13a-8.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
docbook-style-dsssl-1.79-10.el6.noarch
pam_ldap-185-5.el6.x86_64
glib2-2.22.5-5.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
readline-6.0-3.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
at-3.1.10-42.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
samba-winbind-clients-3.5.4-68.el6.x86_64
gmp-4.3.1-7.el6.x86_64
gnome-panel-libs-2.30.2-5.el6.x86_64
perl-version-0.77-115.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
perl-5.10.1-115.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
curl-7.19.7-16.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
httpd-tools-2.2.15-5.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
libavc1394-0.5.3-9.1.el6.x86_64
which-2.19-5.1.el6.x86_64
perl-BSD-Resource-1.29.03-3.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
keyutils-libs-1.4-1.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
iso-codes-3.16-2.el6.noarch
libxslt-1.1.26-2.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-1.0.5-1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
giflib-4.1.6-3.1.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
report-0.18-7.el6.x86_64
libX11-1.3-2.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
grubby-7.0.15-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
eggdbus-0.6-3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
httpd-2.2.15-5.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
ppl-0.10.2-11.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
file-libs-5.04-5.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
bc-1.06.95-1.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
NetworkManager-0.8.1-5.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
dracut-kernel-004-32.el6.noarch
cpio-2.10-9.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
unzip-6.0-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
check-0.9.8-1.1.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
libgssglue-0.1-8.1.el6.x86_64
db4-cxx-4.7.25-16.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
libnih-1.0.1-6.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
fcoe-utils-1.0.14-9.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
zip-3.0-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
usermode-1.102-3.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
php-xml-5.3.2-6.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
crash-5.0.0-23.el6.x86_64
libthai-0.1.12-3.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
zenity-2.28.0-1.el6.x86_64
report-newt-0.18-7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
boost-test-1.41.0-11.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
tzdata-2010l-1.el6.noarch
ncurses-5.7-3.20090208.el6.x86_64
nspr-4.8.6-1.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
dnsmasq-2.48-4.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
nss-3.12.7-2.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
udev-147-2.29.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
postgresql-libs-8.4.4-2.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
avahi-ui-0.6.25-8.el6.x86_64
device-mapper-multipath-libs-0.4.9-31.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
udisks-1.0.1-2.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
libaio-0.3.107-10.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
evolution-data-server-devel-2.28.3-10.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
elfutils-devel-0.148-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
cas-0.15-1.el6.1.noarch
libgnome-devel-2.28.0-11.el6.x86_64
kernel-devel-2.6.32-59.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
dstat-0.7.0-1.el6.noarch
perl-XML-Dumper-0.81-6.el6.noarch
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
zd1211-firmware-1.4-4.el6.noarch
ivtv-firmware-20080701-20.2.noarch
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
libnl-1.1-12.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
mysql-5.1.47-4.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
iptables-1.4.7-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
perl-Time-HiRes-1.9721-115.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
systemtap-1.2-9.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
eog-2.28.2-4.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
postgresql-server-8.4.4-2.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
gnome-settings-daemon-2.28.2-11.el6.x86_64
usbutils-0.86-2.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
python-psycopg2-2.0.13-2.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
tcsh-6.17-8.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
kernel-devel-2.6.32-70.el6.x86_64
bison-2.4.1-5.el6.x86_64
busybox-1.15.1-10.el6.x86_64
lsof-4.82-1.2.el6.x86_64
swig-1.3.40-5.el6.x86_64
hal-0.5.14-8.el6.x86_64
powertop-1.11-3.1.el6.x86_64
rdate-1.4-16.el6.x86_64
kernel-2.6.32-59.el6.x86_64
libtopology-0.3-7.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
openldap-devel-2.4.19-15.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
kernel-2.6.32-71.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
libxml2-python-2.7.6-1.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
libcanberra-0.22-1.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
python-gudev-147.1-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
mailcap-2.1.31-1.1.el6.noarch
wpa_supplicant-0.6.8-10.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
cracklib-python-2.8.16-2.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
gnome-python2-libwnck-2.28.0-4.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
openjade-1.3.2-36.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
popt-1.13-7.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
system-gnome-theme-60.0.2-1.el6.noarch
db4-4.7.25-16.el6.x86_64
wget-1.12-1.4.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
fipscheck-1.2.0-4.1.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
gawk-3.1.7-6.el6.x86_64
cvs-1.11.23-11.el6.x86_64
php-common-5.3.2-6.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
tcp_wrappers-libs-7.6-56.3.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
atk-1.28.0-2.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
libacl-2.2.49-4.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
findutils-4.4.2-6.el6.x86_64
libiec61883-1.2.0-4.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
grep-2.6.3-2.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
libgcrypt-1.4.5-3.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
pixman-0.16.6-1.el6.x86_64
iw-0.9.17-4.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
libxcb-1.5-1.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
comps-extras-17.8-1.el6.noarch
libsoup-2.28.2-1.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
xfsprogs-3.1.1-4.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
libXv-1.0.5-1.el6.x86_64
polkit-0.96-2.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
rtkit-0.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
libIDL-0.8.13-2.1.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
ed-1.1-3.3.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
tar-1.23-3.el6.x86_64
libconfig-1.3.2-1.1.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
pciutils-libs-3.1.4-9.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
mod_ssl-2.2.15-5.el6.x86_64
kbd-misc-1.15-11.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
rng-tools-2-8.el6.x86_64
pax-3.4-10.1.el6.x86_64
control-center-2.28.1-25.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
php-gd-5.3.2-6.el6.x86_64
libtasn1-2.3-3.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
irqbalance-0.55-27.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
yajl-1.0.7-3.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libXpm-3.5.8-2.el6.x86_64
pango-1.28.1-3.el6.x86_64
gucharmap-2.28.2-2.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
net-tools-1.60-102.el6.x86_64
exempi-2.1.0-5.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
DeviceKit-power-014-1.el6.x86_64
make-3.81-19.el6.x86_64
unique-1.1.4-2.el6.x86_64
rhn-setup-1.0.0-38.el6.noarch
boost-signals-1.41.0-11.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
cronie-1.4.4-2.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
libcollection-0.5.0-28.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
libudev-147-2.29.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
libuser-0.56.13-4.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
device-mapper-multipath-0.4.9-31.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
perl-URI-1.40-2.el6.noarch
dbus-glib-devel-0.86-5.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
seekwatcher-0.12-4.1.el6.noarch
perf-2.6.32-71.el6.noarch
libglade2-devel-2.6.4-3.1.el6.x86_64
glibc-2.12-1.7.el6.i686
polkit-docs-0.96-2.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
libXi-devel-1.3-3.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
mysql-devel-5.1.47-4.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
iotop-0.3.2-3.el6.noarch
python-meh-0.9-1.el6.noarch
bzip2-devel-1.0.5-6.1.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
atmel-firmware-1.3-7.el6.noarch
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
libstdc++-4.4.4-13.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
libXi-1.3-3.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
nautilus-extensions-2.28.4-15.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
libss-1.41.12-3.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
glx-utils-7.7-2.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
cpp-4.4.4-13.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
ipa-client-2.0-9.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
gnome-vfs2-smb-2.24.2-6.el6.x86_64
xdg-user-dirs-0.12-4.el6.x86_64
gdb-7.1-29.el6.x86_64
gok-2.28.1-5.el6.x86_64
SDL-1.2.14-2.el6.x86_64
postgresql-docs-8.4.4-2.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mod_perl-2.0.4-10.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
prelink-0.4.3-4.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
gnome-session-xsession-2.28.0-15.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
crypto-utils-2.4.1-24.2.el6.x86_64
PyGreSQL-3.8.1-2.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
postgresql-odbc-08.04.0200-1.el6.x86_64
git-1.7.1-2.el6.x86_64
report-gtk-0.18-7.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
libvirt-devel-0.8.1-27.el6.x86_64
audit-2.0.4-1.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
attr-2.4.44-4.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
latrace-0.5.9-2.el6.x86_64
byacc-1.9.20070509-6.1.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
nscd-2.12-1.7.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
vte-0.25.1-5.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
gcc-c++-4.4.4-13.el6.x86_64
firefox-3.6.9-2.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
libgnomecanvas-devel-2.26.0-4.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
perl-XML-Grove-0.46alpha-40.el6.noarch
automake-1.11.1-1.2.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
system-config-services-docs-1.1.8-1.el6.noarch
pyOpenSSL-0.10-2.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
zlib-1.2.3-25.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
audit-libs-devel-2.0.4-1.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
libstdc++-4.4.4-13.el6.i686
libdrm-2.4.20-2.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
docbook-utils-0.6.14-24.el6.noarch
freetype-2.3.11-5.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
gnome-python2-desktop-2.28.0-4.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
words-3.0-17.el6.noarch
libselinux-utils-2.0.94-2.el6.x86_64
gamin-0.1.10-9.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
mailx-12.4-6.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
keyutils-1.4-1.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
openssh-5.3p1-20.el6.x86_64
m4-1.4.13-5.el6.x86_64
autofs-5.0.5-23.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
gvfs-archive-1.4.3-9.el6.x86_64
man-1.6f-29.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
gdm-2.30.4-21.el6.x86_64
libusb-0.1.12-23.el6.x86_64
webalizer-2.21_02-3.3.el6.x86_64
time-1.7-37.1.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
less-436-4.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
gettext-libs-0.17-16.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
NetworkManager-gnome-0.8.1-5.el6.x86_64
readahead-1.5.6-1.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
php-5.3.2-6.el6.x86_64
libical-0.43-5.1.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-panel-2.30.2-5.el6.x86_64
latencytop-0.5-3.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
kbd-1.15-11.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
rcs-5.7-37.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
boost-program-options-1.41.0-11.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
iputils-20071127-13.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
glibc-2.12-1.7.el6.x86_64
gzip-1.3.12-18.el6.x86_64
cscope-15.6-6.el6.x86_64
certmonger-0.24-4.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
openldap-2.4.19-15.el6.x86_64
eject-2.1.5-17.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
qt-4.6.2-16.el6.x86_64
diffstat-1.51-2.el6.x86_64
libgail-gnome-1.20.1-4.1.el6.x86_64
sssd-1.2.1-28.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
newt-0.52.11-2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
nspluginwrapper-1.3.0-14.el6.x86_64
mysql-server-5.1.47-4.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
rhn-setup-gnome-1.0.0-38.el6.noarch
atk-devel-1.28.0-2.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
filesystem-2.4.30-2.1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
libcom_err-devel-1.41.12-3.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
m2crypto-0.20.2-7.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
screen-4.0.3-15.el6.x86_64
alsa-lib-devel-1.0.21-3.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
mobile-broadband-provider-info-1.20100122-1.el6.noarch
xorg-x11-docs-1.3-6.1.el6.noarch
gnome-themes-2.28.1-6.el6.noarch
libselinux-2.0.94-2.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
libxcb-devel-1.5-1.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
pam_krb5-2.3.11-1.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
pytz-2010h-2.el6.noarch
libidn-1.18-2.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
acl-2.2.49-4.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
jline-0.9.94-0.8.el6.noarch
libXt-1.0.7-1.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
procps-3.2.8-14.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
gnome-screensaver-2.28.3-8.el6.x86_64
rpm-4.8.0-12.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
quota-3.17-10.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
rpm-build-4.8.0-12.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
nano-2.0.9-7.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
system-config-services-0.99.45-1.el6.3.noarch
perl-parent-0.221-115.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
hal-info-20090716-3.1.el6.noarch
mlocate-0.22.2-3.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
libicu-4.2.1-9.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
yp-tools-2.9-10.el6.x86_64
coreutils-8.4-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
rfkill-0.3-4.el6.x86_64
at-spi-1.28.1-2.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
lldpad-0.9.38-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
gnome-python2-bonobo-2.28.0-3.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
evolution-data-server-doc-2.28.3-10.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
yelp-2.28.1-8.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
python-2.6.5-3.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client04/tile12/ifconfig.txt                                     0000644 0000000 0000000 00000001637 11524350154 023364  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:90:00:0C  
          inet addr:10.1.216.162  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe90:c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512124327 errors:0 dropped:0 overruns:0 frame:0
          TX packets:175452649 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:728569056436 (678.5 GiB)  TX bytes:17148204452 (15.9 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:255206 errors:0 dropped:0 overruns:0 frame:0
          TX packets:255206 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:326365241 (311.2 MiB)  TX bytes:326365241 (311.2 MiB)

                                                                                                 Physical_Configuration/Clients/tb3-client04/tile12/chkconfig.txt                                    0000644 0000000 0000000 00000006556 11524350135 023537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:off	4:on	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
fcoe           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:off	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:off	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lldpad         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
multipathd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
mysqld         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postgresql     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                  Physical_Configuration/Clients/tb3-client04/running-vms.txt                                         0000644 0000000 0000000 00000003234 11524350114 022752  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   root      5546 53.9 11.2 4041896 3708916 ?     Sl   10:30 338:44 /usr/libexec/qemu-kvm -name rh6-vct11 -drive file=/var/lib/libvirt/images/rh6-vct11.img,if=virtio,boot=on,cache=writeback -net nic,model=virtio,vlan=0,macaddr=00:50:56:90:00:0b -net tap,vlan=0,ifname=vct11,script=/etc/kvm/qemu-ifup-br1 -m 3584 -vnc :6111 -cpu qemu64 -smp 2 -monitor telnet::13011,server,nowait -serial telnet::14011,server,nowait -daemonize
root      5590 55.9 11.2 4052140 3709444 ?     Sl   10:30 351:12 /usr/libexec/qemu-kvm -name rh6-vct12 -drive file=/var/lib/libvirt/images/rh6-vct12.img,if=virtio,boot=on,cache=writeback -net nic,model=virtio,vlan=0,macaddr=00:50:56:90:00:0c -net tap,vlan=0,ifname=vct12,script=/etc/kvm/qemu-ifup-br2 -m 3584 -vnc :6112 -cpu qemu64 -smp 2 -monitor telnet::13012,server,nowait -serial telnet::14012,server,nowait -daemonize
root      5631 55.6 11.2 4041896 3706908 ?     Sl   10:30 349:45 /usr/libexec/qemu-kvm -name rh6-vct13 -drive file=/var/lib/libvirt/images/rh6-vct13.img,if=virtio,boot=on,cache=writeback -net nic,model=virtio,vlan=0,macaddr=00:50:56:90:00:0d -net tap,vlan=0,ifname=vct13,script=/etc/kvm/qemu-ifup-br3 -m 3584 -vnc :6113 -cpu qemu64 -smp 2 -monitor telnet::13013,server,nowait -serial telnet::14013,server,nowait -daemonize
root      5686 56.0 11.2 4041896 3705108 ?     Sl   10:30 351:55 /usr/libexec/qemu-kvm -name rh6-vct14 -drive file=/var/lib/libvirt/images/rh6-vct14.img,if=virtio,boot=on,cache=writeback -net nic,model=virtio,vlan=0,macaddr=00:50:56:90:00:0e -net tap,vlan=0,ifname=vct14,script=/etc/kvm/qemu-ifup-br4 -m 3584 -vnc :6114 -cpu qemu64 -smp 2 -monitor telnet::13014,server,nowait -serial telnet::14014,server,nowait -daemonize
                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client04/rpmpkgs.txt                                             0000644 0000000 0000000 00000106765 11524350114 022167  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   febootstrap-2.7-1.2.el6.x86_64
elfutils-0.148-1.el6.x86_64
dstat-0.7.0-1.el6.noarch
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
xml-common-0.6.3-32.el6.noarch
system-config-services-docs-1.1.8-1.el6.noarch
mod_dnssd-0.6-2.el6.x86_64
lohit-assamese-fonts-2.4.3-4.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
mailcap-2.1.31-1.1.el6.noarch
authconfig-gtk-6.1.4-6.el6.x86_64
acl-2.2.49-4.el6.x86_64
kurdit-unikurd-web-fonts-20020502-6.el6.noarch
seabios-0.5.1-3.el6.x86_64
freetype-2.3.11-5.el6.x86_64
NetworkManager-gnome-0.8.1-5.el6.x86_64
rtkit-0.5-1.el6.x86_64
lohit-tamil-fonts-2.4.5-3.el6.noarch
libXtst-1.0.99.2-3.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
ibus-hangul-1.3.0.20100329-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
redhat-lsb-graphics-4.0-2.1.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
file-roller-2.28.2-6.el6.x86_64
time-1.7-37.1.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
libXmu-1.0.5-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
gvfs-gphoto2-1.4.3-9.el6.x86_64
libtar-1.2.11-16.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
libgnomecanvas-2.26.0-4.el6.x86_64
glib2-2.22.5-5.el6.x86_64
seahorse-2.28.1-4.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
totem-pl-parser-2.28.3-1.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
gcalctool-5.28.2-3.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
rng-tools-2-8.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
findutils-4.4.2-6.el6.x86_64
compat-glibc-2.5-46.2.x86_64
slang-2.2.1-1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
pygtksourceview-2.8.0-1.el6.x86_64
bluez-libs-4.66-1.el6.x86_64
tcsh-6.17-8.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
gmp-4.3.1-7.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
nano-2.0.9-7.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
evince-libs-2.28.2-14.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
rfkill-0.3-4.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
notify-python-0.1.1-10.el6.x86_64
sysvinit-tools-2.87-3.dsf.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
m17n-contrib-1.1.10-3.el6.noarch
xorg-x11-xinit-1.0.9-13.el6.x86_64
perl-5.10.1-115.el6.x86_64
dracut-kernel-004-32.el6.noarch
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
pulseaudio-module-bluetooth-0.9.21-13.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
pam-1.1.1-4.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
kbd-1.15-11.el6.x86_64
qt-4.6.2-16.el6.x86_64
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
gconfmm26-2.28.0-1.el6.x86_64
postfix-2.6.6-2.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
perl-CPAN-1.9402-115.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
m17n-db-oriya-1.5.5-1.1.el6.noarch
setuptool-1.19.9-3.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
gdm-2.30.4-21.el6.x86_64
m17n-db-tamil-1.5.5-1.1.el6.noarch
dhclient-4.1.1-12.P1.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
virt-v2v-0.6.2-4.el6.x86_64
python-beaker-1.3.1-6.el6.noarch
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
openjpeg-libs-1.3-7.el6.x86_64
rhn-setup-gnome-1.0.0-38.el6.noarch
libproxy-bin-0.3.0-2.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
obexd-0.19-2.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
jline-0.9.94-0.8.el6.noarch
ibus-gtk-1.3.4-3.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
smc-meera-fonts-04.2-11.el6.noarch
perl-XML-RegExp-0.03-7.el6.noarch
yum-rhn-plugin-0.9.1-5.el6.noarch
groff-1.18.1.4-21.el6.x86_64
perl-XML-DOM-1.44-7.el6.noarch
m17n-db-1.5.5-1.1.el6.noarch
gnome-user-docs-2.28.0-4.el6.noarch
perl-XML-Dumper-0.81-6.el6.noarch
perl-Time-Piece-1.15-115.el6.x86_64
khmeros-fonts-common-5.0-9.el6.noarch
dejavu-fonts-common-2.30-2.el6.noarch
python-virtinst-0.500.3-7.el6.noarch
dejavu-sans-mono-fonts-2.30-2.el6.noarch
gstreamer-0.10.29-1.el6.x86_64
mozilla-filesystem-1.9-5.1.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
mobile-broadband-provider-info-1.20100122-1.el6.noarch
lohit-devanagari-fonts-2.4.3-6.el6.noarch
polkit-0.96-2.el6.x86_64
libX11-1.3-2.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
ibus-pinyin-1.3.8-1.el6.x86_64
madan-fonts-2.000-3.el6.noarch
patch-2.6-6.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
libjpeg-6b-46.el6.x86_64
nautilus-sendto-2.28.2-3.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
man-1.6f-29.el6.x86_64
libXv-1.0.5-1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
pango-1.28.1-3.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
ethtool-2.6.33-0.3.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
gedit-2.28.4-3.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
mingetty-1.08-4.1.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
libcap-2.16-5.2.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
libisofs-0.6.32-1.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
openswan-2.6.24-8.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
gtk2-immodule-xim-2.18.9-4.el6.x86_64
lzop-1.02-0.9.rc1.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
procps-3.2.8-14.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
wget-1.12-1.4.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
iok-1.3.10-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
gtkspell-2.0.16-1.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
setserial-2.17-25.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
libdrm-2.4.20-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
gnome-python2-gnomekeyring-2.28.0-4.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
report-gtk-0.18-7.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
perl-URI-1.40-2.el6.noarch
initscripts-9.03.17-1.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
openssh-5.3p1-20.el6.x86_64
openldap-2.4.19-15.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
dnsmasq-2.48-4.el6.x86_64
libuser-0.56.13-4.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
vorbis-tools-1.2.0-7.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
m17n-contrib-punjabi-1.1.10-3.el6.noarch
hal-0.5.14-8.el6.x86_64
NetworkManager-glib-0.8.1-5.el6.x86_64
compiz-0.8.2-24.el6.x86_64
m17n-contrib-telugu-1.1.10-3.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
compiz-gnome-0.8.2-24.el6.x86_64
m17n-contrib-gujarati-1.1.10-3.el6.noarch
gfs2-utils-3.0.12-23.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libiptcdata-1.0.4-2.1.el6.x86_64
virt-manager-0.8.4-8.el6.noarch
python-slip-dbus-0.2.11-1.el6.noarch
gnome-settings-daemon-2.28.2-11.el6.x86_64
avahi-autoipd-0.6.25-8.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
numpy-1.3.0-6.2.el6.x86_64
gvfs-obexftp-1.4.3-9.el6.x86_64
dvd+rw-tools-7.1-5.el6.x86_64
vlgothic-fonts-20091202-2.el6.noarch
perl-IO-String-1.08-9.el6.noarch
xulrunner-1.9.2.9-1.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
cas-0.15-1.el6.1.noarch
perl-XML-Parser-2.36-7.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
gnome-session-xsession-2.28.0-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
libiec61883-1.2.0-4.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
dejavu-sans-fonts-2.30-2.el6.noarch
keyutils-1.4-1.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
un-core-fonts-common-1.0.2-0.15.080608.el6.noarch
crash-5.0.0-23.el6.x86_64
basesystem-10.0-4.el6.noarch
poppler-0.12.4-3.el6.x86_64
iw-0.9.17-4.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
comps-extras-17.8-1.el6.noarch
lockdev-1.0.1-18.el6.x86_64
bash-4.1.2-3.el6.x86_64
libX11-common-1.3-2.el6.noarch
ConsoleKit-0.4.1-3.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
dbus-c++-0.5.0-0.10.20090203git13281b3.1.el6.x86_64
popt-1.13-7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
nspr-4.8.6-1.el6.x86_64
ibus-libs-1.3.4-3.el6.x86_64
abrt-1.1.13-4.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
libXinerama-1.1-1.el6.x86_64
libopenraw-0.0.5-4.1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
atk-1.28.0-2.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libchewing-0.3.2-27.el6.x86_64
sed-4.2.1-5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
scrub-2.2-1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
gtkmm24-2.18.2-1.el6.x86_64
pax-3.4-10.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
brasero-libs-2.28.3-6.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
libnl-1.1-12.el6.x86_64
gtksourceview2-2.8.2-4.el6.x86_64
gsm-1.0.13-4.el6.x86_64
grep-2.6.3-2.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
libgxim-0.3.3-3.1.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
glibmm24-2.22.1-1.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
file-libs-5.04-5.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
libXau-1.0.5-1.el6.x86_64
festival-1.96-18.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
gtk-vnc-python-0.3.10-3.el6.x86_64
report-0.18-7.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
gstreamer-plugins-bad-free-0.10.19-2.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
pywebkitgtk-1.1.6-3.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
apr-1.3.9-3.el6.x86_64
gnome-utils-libs-2.28.1-10.el6.x86_64
python-gudev-147.1-4.el6.x86_64
libtasn1-2.3-3.el6.x86_64
pinentry-gtk-0.7.6-5.el6.x86_64
wpa_supplicant-0.6.8-10.el6.x86_64
file-5.04-5.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
cracklib-python-2.8.16-2.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
ghostscript-8.70-6.el6.x86_64
python-markupsafe-0.9.2-4.el6.x86_64
libatasmart-0.17-3.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
gdb-7.1-29.el6.x86_64
libaio-0.3.107-10.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
smp_utils-0.94-4.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
redhat-menus-14.0.0-3.el6.noarch
hivex-1.2.2-1.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
kbd-misc-1.15-11.el6.noarch
plymouth-scripts-0.8.3-17.el6.x86_64
usbmuxd-1.0.2-1.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
less-436-4.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
parted-2.1-10.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
openssl-1.0.0-4.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
module-init-tools-3.9-17.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
genisoimage-1.1.9-11.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
passwd-0.77-4.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
icedax-1.1.9-11.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
metacity-2.28.0-20.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
libIDL-0.8.13-2.1.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
m17n-db-bengali-1.5.5-1.1.el6.noarch
nss-softokn-3.12.7-1.1.el6.x86_64
hal-info-20090716-3.1.el6.noarch
m17n-db-assamese-1.5.5-1.1.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
libmtp-1.0.1-2.el6.x86_64
m17n-db-kannada-1.5.5-1.1.el6.noarch
bc-1.06.95-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
m17n-db-hindi-1.5.5-1.1.el6.noarch
m4-1.4.13-5.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
m17n-db-malayalam-1.5.5-1.1.el6.noarch
libicu-4.2.1-9.el6.x86_64
httpd-2.2.15-5.el6.x86_64
m17n-db-sinhala-1.5.5-1.1.el6.noarch
upstart-0.6.5-6.1.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
report-newt-0.18-7.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
libdaemon-0.14-1.el6.x86_64
gnome-desktop-2.28.2-8.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
nautilus-extensions-2.28.4-15.el6.x86_64
libmusicbrainz3-3.0.2-7.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
abrt-gui-1.1.13-4.el6.x86_64
ghostscript-fonts-5.50-23.1.el6.noarch
ppp-2.4.5-5.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
libpanelappletmm-2.26.0-3.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
at-3.1.10-42.el6.x86_64
m17n-contrib-urdu-1.1.10-3.el6.noarch
man-pages-overrides-1.0-1.el6.noarch
yelp-2.28.1-8.el6.x86_64
wqy-zenhei-fonts-0.9.45-3.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
lklug-fonts-0.6-4.20090803cvs.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
lohit-kannada-fonts-2.4.5-2.el6.noarch
firstboot-1.110.8-1.el6.x86_64
liberation-mono-fonts-1.05.1.20090721-4.el6.noarch
NetworkManager-0.8.1-5.el6.x86_64
sil-padauk-fonts-2.6.1-1.el6.noarch
gnome-applets-2.28.0-7.el6.x86_64
lohit-telugu-fonts-2.4.5-4.el6.noarch
ibus-m17n-1.3.0-1.el6.x86_64
scenery-backgrounds-6.0.0-1.el6.noarch
ibus-anthy-1.2.1-1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
gnome-user-share-2.28.2-3.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
gnome-screensaver-2.28.3-8.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
gvfs-archive-1.4.3-9.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
gnome-power-manager-2.28.3-3.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
gnome-vfs2-smb-2.24.2-6.el6.x86_64
words-3.0-17.el6.noarch
libvirt-0.8.1-27.el6.x86_64
libgcc-4.4.4-13.el6.i686
gok-2.28.1-5.el6.x86_64
tigervnc-1.0.90-0.10.20100115svn3945.el6.x86_64
virt-viewer-0.2.1-2.el6.x86_64
cpp-4.4.4-13.el6.x86_64
quota-3.17-10.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
prelink-0.4.3-4.el6.x86_64
evince-dvi-2.28.2-14.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
rsync-3.0.6-5.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
mtr-0.75-5.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
eject-2.1.5-17.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
xorg-x11-drv-void-1.3.0-4.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
gnome-bluetooth-2.28.6-8.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
desktop-effects-0.8.4-7.el6.x86_64
libguestfs-1.2.7-1.24.el6.x86_64
ibus-qt-1.3.0-2.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
autofs-5.0.5-23.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
orca-2.28.2-1.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
plymouth-system-theme-0.8.3-17.el6.noarch
un-core-dotum-fonts-1.0.2-0.15.080608.el6.noarch
perl-XML-Grove-0.46alpha-40.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
wodim-1.1.9-11.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
setup-2.8.14-10.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
iso-codes-3.16-2.el6.noarch
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
thai-scalable-fonts-common-0.4.12-2.1.el6.noarch
control-center-filesystem-2.28.1-25.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
poppler-data-0.4.0-1.el6.noarch
ncurses-base-5.7-3.20090208.el6.x86_64
grubby-7.0.15-2.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
libgphoto2-2.4.7-4.el6.x86_64
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
zlib-1.2.3-25.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
info-4.13a-8.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
libpng-1.2.44-1.el6.x86_64
db4-utils-4.7.25-16.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
ed-1.1-3.3.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
readline-6.0-3.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
kpathsea-2007-56.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
gamin-0.1.10-9.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
desktop-file-utils-0.15-9.el6.x86_64
libhangul-0.0.10-1.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
libevent-1.4.13-1.el6.x86_64
pangomm-2.26.0-1.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
brasero-2.28.3-6.el6.x86_64
libsigc++20-2.2.4.2-1.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
poppler-glib-0.12.4-3.el6.x86_64
pcre-7.8-3.1.el6.x86_64
libmpcdec-1.2.6-6.1.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
gtk-vnc-0.3.10-3.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
libidn-1.18-2.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
libtiff-3.9.4-1.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
webkitgtk-1.2.3-1.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
kasumi-2.5-1.1.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
gettext-0.17-16.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
tar-1.23-3.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
python-crypto-2.0.1-22.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
gnome-python2-libwnck-2.28.0-4.el6.x86_64
yajl-1.0.7-3.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-icon-theme-2.28.0-2.el6.noarch
perl-version-0.77-115.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
gnome-python2-desktop-2.28.0-4.el6.x86_64
numactl-2.0.3-9.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
imsettings-0.108.0-3.4.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
cups-libs-1.4.2-35.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
busybox-1.15.1-10.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
usermode-1.102-3.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
yum-3.2.27-14.el6.noarch
libcgroup-0.36.1-6.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
libao-0.8.8-7.1.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
zenity-2.28.0-1.el6.x86_64
libplist-1.2-1.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
udisks-1.0.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
openobex-1.4-7.el6.x86_64
m17n-contrib-bengali-1.1.10-3.el6.noarch
pm-utils-1.2.5-9.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
m17n-contrib-assamese-1.1.10-3.el6.noarch
libgpod-0.7.2-6.el6.x86_64
mailx-12.4-6.el6.x86_64
m17n-contrib-kannada-1.1.10-3.el6.noarch
crda-1.1.1_2009.11.25-3.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
m17n-contrib-hindi-1.1.10-3.el6.noarch
crontabs-1.10-32.1.el6.noarch
boost-system-1.41.0-11.el6.x86_64
m17n-contrib-malayalam-1.1.10-3.el6.noarch
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libnih-1.0.1-6.el6.x86_64
m17n-contrib-sinhala-1.1.10-3.el6.noarch
ebtables-2.0.9-5.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
gnome-vfs2-2.24.2-6.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
pyxdg-0.18-1.el6.noarch
libgnomeui-2.24.1-4.el6.x86_64
anthy-9100h-10.1.el6.x86_64
pytz-2010h-2.el6.noarch
gnome-python2-gnome-2.28.0-3.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
xorg-x11-font-utils-7.2-10.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
gnome-python2-applet-2.28.0-4.el6.x86_64
libimobiledevice-0.9.7-4.el6.x86_64
urw-fonts-2.4-10.el6.noarch
control-center-2.28.1-25.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
ibus-1.3.4-3.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
httpd-tools-2.2.15-5.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
m17n-contrib-marathi-1.1.10-3.el6.noarch
gnome-panel-2.30.2-5.el6.x86_64
compat-db-4.6.21-15.el6.x86_64
system-config-services-0.99.45-1.el6.3.noarch
jomolhari-fonts-0.003-8.1.el6.noarch
system-config-date-1.9.60-1.el6.noarch
lohit-bengali-fonts-2.4.3-5.el6.noarch
python-meh-0.9-1.el6.noarch
abyssinica-fonts-1.0-5.1.el6.noarch
media-player-info-6-1.el6.noarch
tibetan-machine-uni-fonts-1.901-5.el6.noarch
kernel-firmware-2.6.32-71.el6.noarch
paktype-naqsh-fonts-2.0-8.el6.noarch
gnote-0.6.3-3.el6.x86_64
stix-fonts-0.9-13.1.el6.noarch
ibus-chewing-1.3.5.20100714-1.el6.x86_64
m17n-db-thai-1.5.5-1.1.el6.noarch
gnome-disk-utility-2.30.1-2.el6.x86_64
redhat-lsb-printing-4.0-2.1.el6.x86_64
nautilus-open-terminal-0.17-3.el6.x86_64
rootfiles-8.1-6.1.el6.noarch
eog-2.28.2-4.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
gvfs-afc-1.4.3-9.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
mousetweaks-2.28.2-1.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
vino-2.28.1-3.el6.x86_64
man-pages-3.22-12.el6.noarch
sysstat-9.0.4-11.el6.x86_64
glibc-2.12-1.7.el6.i686
gnome-system-monitor-2.28.0-7.el6.x86_64
tigervnc-server-1.0.90-0.10.20100115svn3945.el6.x86_64
virt-top-1.0.4-3.1.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
gcc-4.4.4-13.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
PackageKit-gstreamer-plugin-0.5.8-13.el6.x86_64
xvattr-1.3-18.el6.x86_64
usbutils-0.86-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
psacct-6.3.2-63.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
attr-2.4.44-4.el6.x86_64
unzip-6.0-1.el6.x86_64
powertop-1.11-3.1.el6.x86_64
zip-3.0-1.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
libtopology-0.3-7.el6.x86_64
compat-libcap1-1.10-1.x86_64
dracut-004-32.el6.noarch
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
totem-nautilus-2.28.6-2.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
perl-libguestfs-1.2.7-1.24.el6.x86_64
cjkuni-uming-fonts-0.2.20080216.1-34.el6.noarch
ibus-table-additional-1.2.0.20100111-4.el6.noarch
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
b43-openfwwf-5.2-4.el6.noarch
seekwatcher-0.12-4.1.el6.noarch
thai-scalable-waree-fonts-0.4.12-2.1.el6.noarch
perl-XML-Twig-3.34-1.el6.noarch
m17n-contrib-maithili-1.1.10-3.el6.noarch
perl-XML-DOM-XPath-0.14-4.el6.noarch
ca-certificates-2010.63-3.el6.noarch
at-spi-python-1.28.1-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
perf-2.6.32-71.el6.noarch
smc-fonts-common-04.2-11.el6.noarch
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
system-config-date-docs-1.0.9-1.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
liberation-serif-fonts-1.05.1.20090721-4.el6.noarch
kernel-headers-2.6.32-71.el6.x86_64
glibc-2.12-1.7.el6.x86_64
cjkuni-fonts-common-0.2.20080216.1-34.el6.noarch
eggdbus-0.6-3.el6.x86_64
lohit-gujarati-fonts-2.4.4-3.el6.noarch
libXext-1.1-3.el6.x86_64
libICE-1.0.6-1.el6.x86_64
ibus-sayura-1.2.99.20100209-3.el6.x86_64
lsof-4.82-1.2.el6.x86_64
lohit-oriya-fonts-2.4.3-4.el6.noarch
libcanberra-0.22-1.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
evince-2.28.2-14.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
libXcomposite-0.4.1-2.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
cheese-2.28.1-7.el6.x86_64
mtools-4.0.12-1.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
gtk2-2.18.9-4.el6.x86_64
libusb-0.1.12-23.el6.x86_64
gnome-utils-2.28.1-10.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
unique-1.1.4-2.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
m17n-lib-1.5.5-2.el6.x86_64
xorg-x11-fonts-misc-7.2-9.1.el6.noarch
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
libacl-2.2.49-4.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
libburn-0.7.0-1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
which-2.19-5.1.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libvpx-0.9.0-7.el6.x86_64
obex-data-server-0.4.3-4.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
lzo-2.03-3.1.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
pixman-0.16.6-1.el6.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
python-2.6.5-3.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
geoclue-0.11.1.1-0.13.20091026git73b6729.el6.x86_64
psmisc-22.6-15.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
libopenraw-gnome-0.0.5-4.1.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
net-tools-1.60-102.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
libXres-1.0.4-1.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
latrace-0.5.9-2.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
xdg-user-dirs-0.12-4.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
python-slip-0.2.11-1.el6.noarch
python-slip-gtk-0.2.11-1.el6.noarch
xcb-util-0.3.6-1.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
udev-147-2.29.el6.x86_64
gzip-1.3.12-18.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
vte-0.25.1-5.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
cdrdao-1.2.3-4.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
dmraid-1.0.0.rc16-10.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
totem-2.28.6-2.el6.x86_64
m17n-db-punjabi-1.5.5-1.1.el6.noarch
DeviceKit-power-014-1.el6.x86_64
curl-7.19.7-16.el6.x86_64
glx-utils-7.7-2.el6.x86_64
m17n-db-telugu-1.5.5-1.1.el6.noarch
rsyslog-4.6.2-2.el6.x86_64
enchant-1.5.0-4.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
m17n-db-gujarati-1.5.5-1.1.el6.noarch
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
sos-2.2-2.el6.noarch
gnome-panel-libs-2.30.2-5.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
python-decorator-3.0.1-3.1.el6.noarch
avahi-ui-0.6.25-8.el6.x86_64
cdparanoia-10.2-5.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
python-nose-0.10.4-3.1.el6.noarch
libgail-gnome-1.20.1-4.1.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
perl-parent-0.221-115.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
ibus-table-1.2.0.20100111-4.el6.noarch
iotop-0.3.2-3.el6.noarch
libavc1394-0.5.3-9.1.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
tzdata-2010l-1.el6.noarch
system-config-users-1.2.104-1.el6.noarch
dejavu-serif-fonts-2.30-2.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
vlgothic-fonts-common-20091202-2.el6.noarch
paktype-fonts-common-2.0-8.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
paktype-tehreer-fonts-2.0-8.el6.noarch
ModemManager-0.4.0-3.git20100628.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
rhythmbox-0.12.8-1.el6.x86_64
lohit-punjabi-fonts-2.4.4-1.el6.noarch
nc-1.84-22.el6.x86_64
libXi-1.3-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
ibus-rawcode-1.3.0.20100421-2.el6.x86_64
gnome-backgrounds-2.28.0-2.el6.noarch
rpm-4.8.0-12.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
brasero-nautilus-2.28.3-6.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
make-3.81-19.el6.x86_64
cairomm-1.8.0-2.1.el6.x86_64
libudev-147-2.29.el6.x86_64
gthumb-2.10.11-8.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
dmidecode-2.10-1.30.1.el6.x86_64
at-spi-1.28.1-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
sound-juicer-2.28.1-6.el6.x86_64
ppl-0.10.2-11.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
readahead-1.5.6-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
libdiscid-0.2.2-4.1.el6.x86_64
imsettings-libs-0.108.0-3.4.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
abrt-cli-1.1.13-4.el6.x86_64
newt-0.52.11-2.el6.x86_64
xorg-x11-xkb-utils-7.4-6.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
audit-2.0.4-1.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
gstreamer-python-0.10.16-1.1.el6.x86_64
cpio-2.10-9.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libspectre-0.2.4-1.el6.x86_64
exempi-2.1.0-5.el6.x86_64
rdate-1.4-16.el6.x86_64
SDL-1.2.14-2.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
gnome-python2-canvas-2.28.0-3.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
kernel-2.6.32-71.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
perl-libintl-1.20-1.el6.x86_64
bluez-4.66-1.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
tzdata-java-2010l-1.el6.noarch
iproute-2.6.32-10.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
coreutils-8.4-9.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
mdadm-3.1.3-1.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
libvirt-python-0.8.1-27.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
gucharmap-2.28.2-2.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
grub-0.97-68.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
nss-3.12.7-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
m17n-contrib-oriya-1.1.10-3.el6.noarch
system-setup-keyboard-0.7-4.el6.x86_64
libss-1.41.12-3.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
m17n-contrib-tamil-1.1.10-3.el6.noarch
cronie-1.4.4-2.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
avahi-0.6.25-8.el6.x86_64
libical-0.43-5.1.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
python-mako-0.3.4-1.el6.noarch
gnome-python2-bonobo-2.28.0-3.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
abrt-desktop-1.1.13-4.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
rhino-1.7-0.7.r2.2.el6.noarch
im-chooser-1.3.1-2.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
khmeros-base-fonts-5.0-9.el6.noarch
perl-XML-XPathEngine-0.12-3.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
cvs-1.11.23-11.el6.x86_64
           Physical_Configuration/Clients/tb3-client04/ifconfig.txt                                            0000644 0000000 0000000 00000021140 11524350113 022246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   br0       Link encap:Ethernet  HWaddr E4:1F:13:32:5D:6C  
          inet addr:10.1.216.14  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::e61f:13ff:fe32:5d6c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:78233 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2681 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5638546 (5.3 MiB)  TX bytes:1667220 (1.5 MiB)

br1       Link encap:Ethernet  HWaddr E4:1F:13:32:5D:6E  
          inet addr:10.1.4.1  Bcast:10.1.4.1  Mask:255.255.255.255
          inet6 addr: fe80::e61f:13ff:fe32:5d6e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:76802 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5180188 (4.9 MiB)  TX bytes:7788 (7.6 KiB)

br2       Link encap:Ethernet  HWaddr 00:15:17:D1:2D:E6  
          inet addr:10.1.4.2  Bcast:10.1.4.2  Mask:255.255.255.255
          inet6 addr: fe80::215:17ff:fed1:2de6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:76792 errors:0 dropped:0 overruns:0 frame:0
          TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5177879 (4.9 MiB)  TX bytes:7834 (7.6 KiB)

br3       Link encap:Ethernet  HWaddr 00:15:17:D1:2D:E7  
          inet addr:10.1.4.3  Bcast:10.1.4.3  Mask:255.255.255.255
          inet6 addr: fe80::215:17ff:fed1:2de7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:76790 errors:0 dropped:0 overruns:0 frame:0
          TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5178182 (4.9 MiB)  TX bytes:7834 (7.6 KiB)

br4       Link encap:Ethernet  HWaddr 00:15:17:D1:52:1C  
          inet addr:10.1.4.4  Bcast:10.1.4.4  Mask:255.255.255.255
          inet6 addr: fe80::215:17ff:fed1:521c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:76777 errors:0 dropped:0 overruns:0 frame:0
          TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5177162 (4.9 MiB)  TX bytes:7880 (7.6 KiB)

br5       Link encap:Ethernet  HWaddr 00:15:17:D1:52:1D  
          inet addr:10.1.4.5  Bcast:10.1.4.5  Mask:255.255.255.255
          inet6 addr: fe80::215:17ff:fed1:521d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:76779 errors:0 dropped:0 overruns:0 frame:0
          TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5178709 (4.9 MiB)  TX bytes:7834 (7.6 KiB)

eth0      Link encap:Ethernet  HWaddr E4:1F:13:32:5D:6C  
          inet6 addr: fe80::e61f:13ff:fe32:5d6c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:78140 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3328 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7027895 (6.7 MiB)  TX bytes:1708337 (1.6 MiB)
          Interrupt:28 Memory:92000000-92012800 

eth1      Link encap:Ethernet  HWaddr E4:1F:13:32:5D:6E  
          inet6 addr: fe80::e61f:13ff:fe32:5d6e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:515237279 errors:0 dropped:0 overruns:0 frame:0
          TX packets:158515772 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:729265558507 (679.1 GiB)  TX bytes:16608051784 (15.4 GiB)
          Interrupt:40 Memory:94000000-94012800 

eth2      Link encap:Ethernet  HWaddr 00:15:17:D1:2D:E6  
          inet6 addr: fe80::215:17ff:fed1:2de6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512150600 errors:0 dropped:0 overruns:0 frame:0
          TX packets:175452130 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:728571051220 (678.5 GiB)  TX bytes:17147542434 (15.9 GiB)
          Memory:97b60000-97b80000 

eth3      Link encap:Ethernet  HWaddr 00:15:17:D1:2D:E7  
          inet6 addr: fe80::215:17ff:fed1:2de7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512014968 errors:0 dropped:0 overruns:0 frame:0
          TX packets:175186605 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:727944559180 (677.9 GiB)  TX bytes:17127010243 (15.9 GiB)
          Memory:97b20000-97b40000 

eth4      Link encap:Ethernet  HWaddr 00:15:17:D1:52:1C  
          inet6 addr: fe80::215:17ff:fed1:521c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512041644 errors:0 dropped:0 overruns:0 frame:0
          TX packets:174907841 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:728391715972 (678.3 GiB)  TX bytes:17122876105 (15.9 GiB)
          Memory:97a60000-97a80000 

eth5      Link encap:Ethernet  HWaddr 00:15:17:D1:52:1D  
          inet6 addr: fe80::215:17ff:fed1:521d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:76798 errors:0 dropped:0 overruns:0 frame:0
          TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:6255804 (5.9 MiB)  TX bytes:8436 (8.2 KiB)
          Memory:97a20000-97a40000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:17 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1048 (1.0 KiB)  TX bytes:1048 (1.0 KiB)

usb0      Link encap:Ethernet  HWaddr E6:1F:13:2B:AD:6F  
          inet addr:169.254.95.120  Bcast:169.254.95.255  Mask:255.255.255.0
          inet6 addr: fe80::e41f:13ff:fe2b:ad6f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15380 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7801 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1038024 (1013.6 KiB)  TX bytes:376337 (367.5 KiB)

vct11     Link encap:Ethernet  HWaddr E6:08:1A:A8:DB:3E  
          inet6 addr: fe80::e408:1aff:fea8:db3e/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:158515703 errors:0 dropped:0 overruns:0 frame:0
          TX packets:515236434 errors:0 dropped:0 overruns:745 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:15973967174 (14.8 GiB)  TX bytes:727204536804 (677.2 GiB)

vct12     Link encap:Ethernet  HWaddr 86:72:EB:FE:C1:C2  
          inet6 addr: fe80::8472:ebff:fefe:c1c2/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:175452057 errors:0 dropped:0 overruns:0 frame:0
          TX packets:512149745 errors:0 dropped:0 overruns:1473 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:17147533952 (15.9 GiB)  TX bytes:728570977469 (678.5 GiB)

vct13     Link encap:Ethernet  HWaddr 22:06:4D:98:7F:50  
          inet6 addr: fe80::2006:4dff:fe98:7f50/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:175186533 errors:0 dropped:0 overruns:0 frame:0
          TX packets:512014105 errors:0 dropped:0 overruns:1399 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:17127001807 (15.9 GiB)  TX bytes:727944484536 (677.9 GiB)

vct14     Link encap:Ethernet  HWaddr 3A:B9:35:FB:FC:10  
          inet6 addr: fe80::38b9:35ff:fefb:fc10/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:174907768 errors:0 dropped:0 overruns:0 frame:0
          TX packets:512040787 errors:0 dropped:0 overruns:1595 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:17122867623 (15.9 GiB)  TX bytes:728391642610 (678.3 GiB)

virbr0    Link encap:Ethernet  HWaddr 02:74:2D:95:33:C1  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:336 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:18735 (18.2 KiB)

                                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client04/chkconfig.txt                                           0000644 0000000 0000000 00000006236 11524350073 022433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:on	4:on	5:on	6:off
abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:on	4:on	5:on	6:off
bluetooth      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
cgconfig       	0:off	1:off	2:on	3:on	4:on	5:on	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ebtables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirtd       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sysstat        	0:off	1:on	2:on	3:on	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
vncserver      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/                                                        0000777 0000000 0000000 00000000000 11524350072 017732  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/proc/                                                   0000777 0000000 0000000 00000000000 11524347744 020711  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/proc/cpuinfo                                            0000644 0000000 0000000 00000031166 11524347744 022302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 0
cpu cores	: 4
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4534.40
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 2261.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 1
cpu cores	: 4
apicid		: 2
initial apicid	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.64
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 2
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 2
cpu cores	: 4
apicid		: 4
initial apicid	: 4
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.64
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 6
initial apicid	: 6
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.64
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 4
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 0
cpu cores	: 4
apicid		: 16
initial apicid	: 16
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.67
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 5
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 1
cpu cores	: 4
apicid		: 18
initial apicid	: 18
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 6
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 2
cpu cores	: 4
apicid		: 20
initial apicid	: 20
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 7
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 22
initial apicid	: 22
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.67
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 8
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 0
cpu cores	: 4
apicid		: 1
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.67
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 9
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 1
cpu cores	: 4
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.67
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 10
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 2
cpu cores	: 4
apicid		: 5
initial apicid	: 5
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 11
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 7
initial apicid	: 7
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 12
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 0
cpu cores	: 4
apicid		: 17
initial apicid	: 17
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 13
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 2261.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 1
cpu cores	: 4
apicid		: 19
initial apicid	: 19
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 14
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 2
cpu cores	: 4
apicid		: 21
initial apicid	: 21
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.68
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 15
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 23
initial apicid	: 23
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm tpr_shadow vnmi flexpriority ept vpid
bogomips	: 4532.67
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/proc/swaps                                              0000644 0000000 0000000 00000000144 11524347744 021764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/dm-1                               partition	4095992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/proc/devices                                            0000644 0000000 0000000 00000000721 11524347744 022252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  8 sd
  9 md
 11 sr
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
253 device-mapper
254 mdp
                                               Physical_Configuration/Clients/tb3-client03/proc/modules                                            0000644 0000000 0000000 00000006632 11524347744 022307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   tun 16825 10 - Live 0xffffffffa026b000
ip6table_filter 2855 0 - Live 0xffffffffa019a000
ip6_tables 19392 1 ip6table_filter, Live 0xffffffffa0260000
ebtable_nat 1975 0 - Live 0xffffffffa0082000
ebtables 18101 1 ebtable_nat, Live 0xffffffffa0228000
fuse 66138 2 - Live 0xffffffffa0205000
xt_CHECKSUM 1269 1 - Live 0xffffffffa0197000
iptable_mangle 3283 1 - Live 0xffffffffa00cb000
ipt_MASQUERADE 2400 3 - Live 0xffffffffa007f000
iptable_nat 6124 1 - Live 0xffffffffa0068000
nf_nat 22788 2 ipt_MASQUERADE,iptable_nat, Live 0xffffffffa04a5000
nf_conntrack_ipv4 9440 4 iptable_nat,nf_nat, Live 0xffffffffa049c000
nf_defrag_ipv4 1449 1 nf_conntrack_ipv4, Live 0xffffffffa0496000
xt_state 1458 1 - Live 0xffffffffa0490000
nf_conntrack 79643 5 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4,xt_state, Live 0xffffffffa046f000
ipt_REJECT 2349 2 - Live 0xffffffffa0469000
iptable_filter 2759 1 - Live 0xffffffffa0463000
ip_tables 17733 3 iptable_mangle,iptable_nat,iptable_filter, Live 0xffffffffa0458000
autofs4 27683 3 - Live 0xffffffffa044b000
nfs 348522 1 - Live 0xffffffffa03df000
lockd 73984 1 nfs, Live 0xffffffffa03c3000
fscache 46761 1 nfs, Live 0xffffffffa03ad000
nfs_acl 2677 1 nfs, Live 0xffffffffa03a7000
auth_rpcgss 44862 1 nfs, Live 0xffffffffa0394000
sunrpc 241630 16 nfs,lockd,nfs_acl,auth_rpcgss, Live 0xffffffffa0341000
cpufreq_ondemand 10382 16 - Live 0xffffffffa0338000
acpi_cpufreq 8593 0 - Live 0xffffffffa032f000
freq_table 4847 2 cpufreq_ondemand,acpi_cpufreq, Live 0xffffffffa0328000
bridge 74113 0 - Live 0xffffffffa0303000
stp 2107 1 bridge, Live 0xffffffffa02fd000
llc 5608 2 bridge,stp, Live 0xffffffffa02f5000
ipv6 321209 58 - Live 0xffffffffa0290000
vfat 10646 1 - Live 0xffffffffa0266000
fat 55086 1 vfat, Live 0xffffffffa0250000
dm_mirror 14003 0 - Live 0xffffffffa0246000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa023d000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0234000
kvm_intel 45674 20 - Live 0xffffffffa021a000
kvm 291811 1 kvm_intel, Live 0xffffffffa01bb000
uinput 8182 0 - Live 0xffffffffa01b4000
sg 30186 0 - Live 0xffffffffa01a5000
cdc_ether 8332 0 - Live 0xffffffffa019c000
usbnet 19001 1 cdc_ether, Live 0xffffffffa0151000
mii 5205 1 usbnet, Live 0xffffffffa0136000
serio_raw 4816 0 - Live 0xffffffffa00c4000
i2c_i801 11190 0 - Live 0xffffffffa0020000
i2c_core 31274 1 i2c_i801, Live 0xffffffffa018d000
iTCO_wdt 11708 0 - Live 0xffffffffa0090000
iTCO_vendor_support 3022 1 iTCO_wdt, Live 0xffffffffa0065000
shpchp 33448 0 - Live 0xffffffffa009b000
ioatdma 57872 160 - Live 0xffffffffa017c000
dca 7099 1 ioatdma, Live 0xffffffffa0051000
i7core_edac 17543 0 - Live 0xffffffffa00bd000
edac_core 46055 4 i7core_edac, Live 0xffffffffa0128000
e1000e 140051 0 - Live 0xffffffffa0157000
bnx2 75826 0 - Live 0xffffffffa013c000
ext4 353979 2 - Live 0xffffffffa00cf000
mbcache 7918 1 ext4, Live 0xffffffffa00c7000
jbd2 89033 1 ext4, Live 0xffffffffa00a5000
sr_mod 16162 0 - Live 0xffffffffa0095000
cdrom 39769 1 sr_mod, Live 0xffffffffa0084000
sd_mod 37221 4 - Live 0xffffffffa0073000
crc_t10dif 1507 1 sd_mod, Live 0xffffffffa006d000
pata_acpi 3667 0 - Live 0xffffffffa0054000
ata_generic 3611 0 - Live 0xffffffffa0024000
ata_piix 22588 0 - Live 0xffffffffa003f000
mptsas 51510 3 - Live 0xffffffffa0056000
mptscsih 35302 1 mptsas, Live 0xffffffffa0046000
mptbase 91106 2 mptsas,mptscsih, Live 0xffffffffa0026000
scsi_transport_sas 35036 1 mptsas, Live 0xffffffffa0015000
dm_mod 76856 8 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                      Physical_Configuration/Clients/tb3-client03/proc/partitions                                         0000644 0000000 0000000 00000000317 11524347744 023025  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

   8        0  140623872 sda
   8        1     204800 sda1
   8        2     512000 sda2
   8        3  139905024 sda3
 253        0  135806976 dm-0
 253        1    4096000 dm-1
                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/proc/meminfo                                            0000644 0000000 0000000 00000002222 11524347744 022260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:       33003228 kB
MemFree:         7919864 kB
Buffers:           75564 kB
Cached:          5203736 kB
SwapCached:            0 kB
Active:         21450844 kB
Inactive:        2535412 kB
Active(anon):   18706036 kB
Inactive(anon):     4560 kB
Active(file):    2744808 kB
Inactive(file):  2530852 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       4095992 kB
SwapFree:        4095992 kB
Dirty:                72 kB
Writeback:             0 kB
AnonPages:      18706912 kB
Mapped:            52356 kB
Shmem:              3644 kB
Slab:             743064 kB
SReclaimable:     140404 kB
SUnreclaim:       602660 kB
KernelStack:        3992 kB
PageTables:        68664 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    20597604 kB
Committed_AS:   19587808 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      379068 kB
VmallocChunk:   34340899204 kB
HardwareCorrupted:     0 kB
AnonHugePages:  18522112 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8192 kB
DirectMap2M:    33538048 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/vgdisplay.txt                                           0000644 0000000 0000000 00000001172 11524350072 022472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                     --- Volume group ---
  VG Name               vg_tb3client03
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               133.42 GiB
  PE Size               4.00 MiB
  Total PE              34156
  Alloc PE / Size       34156 / 133.42 GiB
  Free  PE / Size       0 / 0   
  VG UUID               JtyuNe-8FhQ-zgE7-Iac9-usqY-pD3E-IFdKnC
   
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/brctl-show.txt                                          0000644 0000000 0000000 00000000517 11524347724 022570  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge name	bridge id		STP enabled	interfaces
br0		8000.e41f13325d60	no		eth0
br1		8000.e2befeb4abd0	no		eth1
							vct06
br2		8000.001517d128bc	no		eth2
							vct07
br3		8000.001517d128bd	no		eth3
							vct08
br4		8000.001517d12a22	no		eth4
							vct09
br5		8000.001517d12a23	no		eth5
							vct10
virbr0		8000.000000000000	yes		
                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile06/                                                 0000777 0000000 0000000 00000000000 11524347765 021054  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/proc/                                            0000777 0000000 0000000 00000000000 11524347765 022017  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/proc/cpuinfo                                     0000644 0000000 0000000 00000002012 11524347764 023373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2267.202
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4534.40
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2267.202
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4534.40
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile06/proc/swaps                                       0000644 0000000 0000000 00000000150 11524347765 023067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	73588	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile06/proc/devices                                     0000644 0000000 0000000 00000000567 11524347764 023367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile06/proc/modules                                     0000644 0000000 0000000 00000002547 11524347764 023415  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa0259000
stp 2107 1 bridge, Live 0xffffffffa0253000
llc 5608 2 bridge,stp, Live 0xffffffffa024b000
autofs4 27683 3 - Live 0xffffffffa023e000
sunrpc 241630 1 - Live 0xffffffffa01eb000
ipv6 321209 579 - Live 0xffffffffa0156000
dm_mirror 14003 0 - Live 0xffffffffa012a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0121000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0118000
ppdev 8695 0 - Live 0xffffffffa010a000
parport_pc 22944 0 - Live 0xffffffffa00fd000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa00eb000
sg 30186 0 - Live 0xffffffffa00dc000
virtio_net 15665 0 - Live 0xffffffffa00d2000
i2c_piix4 12574 0 - Live 0xffffffffa00c9000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00b9000
ext3 133830 1 - Live 0xffffffffa008d000
jbd 54576 1 ext3, Live 0xffffffffa0076000
mbcache 7918 1 ext3, Live 0xffffffffa006e000
virtio_blk 5087 3 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
ata_generic 3611 0 - Live 0xffffffffa0030000
pata_acpi 3667 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile06/proc/partitions                                  0000644 0000000 0000000 00000000165 11524347765 024134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile06/proc/meminfo                                     0000644 0000000 0000000 00000002222 11524347764 023365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        3605932 kB
MemFree:         3364996 kB
Buffers:            5096 kB
Cached:            26724 kB
SwapCached:         5484 kB
Active:            75104 kB
Inactive:          34012 kB
Active(anon):      59472 kB
Inactive(anon):    17804 kB
Active(file):      15632 kB
Inactive(file):    16208 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        1974404 kB
Dirty:               380 kB
Writeback:             0 kB
AnonPages:         73948 kB
Mapped:             7388 kB
Shmem:                 0 kB
Slab:             103524 kB
SReclaimable:      22900 kB
SUnreclaim:        80624 kB
KernelStack:        1664 kB
PageTables:         3520 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3850956 kB
Committed_AS:     767556 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19136 kB
VmallocChunk:   34359715008 kB
HardwareCorrupted:     0 kB
AnonHugePages:     43008 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     3661824 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile06/lspci.txt                                        0000644 0000000 0000000 00000000744 11524347764 022727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
                            Physical_Configuration/Clients/tb3-client03/tile06/df.txt                                           0000644 0000000 0000000 00000000276 11524347745 022205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8184652   4596284  65% /
tmpfs                  1802964         0   1802964   0% /dev/shm
                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile06/mount.txt                                        0000644 0000000 0000000 00000000434 11524347764 022753  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile06/etc/                                             0000777 0000000 0000000 00000000000 11524347764 021626  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/                                        0000777 0000000 0000000 00000000000 11524347755 022454  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/                                  0000777 0000000 0000000 00000000000 11524347763 023364  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K02libvirt-guests                 0000755 0000000 0000000 00000017172 11524347756 026560  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K02oddjobd                        0000755 0000000 0000000 00000004325 11524347756 025176  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K69rpcsvcgssd                     0000755 0000000 0000000 00000006014 11524347757 025765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K95cgconfig                       0000755 0000000 0000000 00000012327 11524347761 025361  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S55sshd                           0000755 0000000 0000000 00000010671 11524347763 024551  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K80fcoe                           0000755 0000000 0000000 00000005775 11524347760 024520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K15httpd                          0000755 0000000 0000000 00000006364 11524347756 024725  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K92ip6tables                      0000755 0000000 0000000 00000020716 11524347761 025471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K80sssd                           0000755 0000000 0000000 00000004731 11524347760 024547  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S58ntpd                           0000755 0000000 0000000 00000003603 11524347763 024555  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K02avahi-daemon                   0000755 0000000 0000000 00000004754 11524347756 026130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K89rdisc                          0000755 0000000 0000000 00000003027 11524347761 024706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K76ipsec                          0000755 0000000 0000000 00000010777 11524347760 024712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S22messagebus                     0000755 0000000 0000000 00000004230 11524347762 025731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K95firstboot                      0000755 0000000 0000000 00000005341 11524347761 025613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K86cgred                          0000755 0000000 0000000 00000006302 11524347760 024661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S13rpcbind                        0000755 0000000 0000000 00000004031 11524347762 025213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S13irqbalance                     0000755 0000000 0000000 00000003521 11524347762 025676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K84NetworkManager                 0000755 0000000 0000000 00000004235 11524347760 026522  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K99sysstat                        0000755 0000000 0000000 00000002363 11524347761 025317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K50dnsmasq                        0000755 0000000 0000000 00000002577 11524347757 025252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K01certmonger                     0000755 0000000 0000000 00000004054 11524347755 025733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K85mdmonitor                      0000755 0000000 0000000 00000005013 11524347760 025602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K36mysqld                         0000755 0000000 0000000 00000012460 11524347757 025111  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K80lldpad                         0000755 0000000 0000000 00000014323 11524347760 025031  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K88nslcd                          0000755 0000000 0000000 00000003213 11524347761 024701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K75ntpdate                        0000755 0000000 0000000 00000003512 11524347760 025232  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K89iscsid                         0000755 0000000 0000000 00000007127 11524347761 025065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K73ypbind                         0000755 0000000 0000000 00000011277 11524347757 025073  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S10network                        0000755 0000000 0000000 00000014466 11524347762 025275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S12rsyslog                        0000755 0000000 0000000 00000004326 11524347762 025302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S11auditd                         0000755 0000000 0000000 00000006462 11524347762 025054  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K84wpa_supplicant                 0000755 0000000 0000000 00000003512 11524347760 026624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S20kdump                          0000755 0000000 0000000 00000027662 11524347762 024727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K87multipathd                     0000755 0000000 0000000 00000004473 11524347760 025760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S26haldaemon                      0000755 0000000 0000000 00000003245 11524347763 025535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K60crond                          0000755 0000000 0000000 00000005445 11524347757 024707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K03rhnsd                          0000755 0000000 0000000 00000005522 11524347756 024710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K36postgresql                     0000755 0000000 0000000 00000012406 11524347757 026003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S00microcode_ctl                  0000755 0000000 0000000 00000002221 11524347761 026372  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K10saslauthd                      0000755 0000000 0000000 00000004010 11524347756 025547  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K88iscsi                          0000755 0000000 0000000 00000007315 11524347761 024717  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K60nfs                            0000755 0000000 0000000 00000013536 11524347757 024370  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S30nscd                           0000755 0000000 0000000 00000004723 11524347763 024531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S24rpcgssd                        0000755 0000000 0000000 00000006050 11524347763 025245  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K10psacct                         0000755 0000000 0000000 00000003024 11524347756 025040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S26acpid                          0000755 0000000 0000000 00000003275 11524347763 024670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S13cpuspeed                       0000755 0000000 0000000 00000025442 11524347762 025413  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S26udev-post                      0000755 0000000 0000000 00000004370 11524347763 025533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S99local                          0000755 0000000 0000000 00000000334 11524347764 024706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K50netconsole                     0000755 0000000 0000000 00000005650 11524347757 025750  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S24rpcidmapd                      0000755 0000000 0000000 00000005222 11524347763 025543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S02lvm2-monitor                   0000555 0000000 0000000 00000004612 11524347761 026137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S28autofs                         0000755 0000000 0000000 00000007234 11524347763 025112  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K01smartd                         0000755 0000000 0000000 00000005672 11524347755 025067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S55autobench                      0000755 0000000 0000000 00000005063 11524347763 025557  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S25netfs                          0000755 0000000 0000000 00000012432 11524347763 024721  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K30postfix                        0000755 0000000 0000000 00000007414 11524347757 025271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/S24nfslock                        0000755 0000000 0000000 00000006675 11524347762 025253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K92iptables                       0000755 0000000 0000000 00000020557 11524347761 025406  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K87restorecond                    0000755 0000000 0000000 00000003427 11524347760 026132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/rc3.d/K05atd                            0000755 0000000 0000000 00000004112 11524347756 024336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/                                 0000777 0000000 0000000 00000000000 11524347755 023641  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/network                          0000755 0000000 0000000 00000014466 11524347752 025264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/sysstat                          0000755 0000000 0000000 00000002363 11524347755 025301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/saslauthd                        0000755 0000000 0000000 00000004010 11524347754 025545  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/messagebus                       0000755 0000000 0000000 00000004230 11524347752 025715  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/autobench                        0000755 0000000 0000000 00000005063 11524347747 025540  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/atd                              0000755 0000000 0000000 00000004112 11524347747 024332  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/mcelogd                          0000755 0000000 0000000 00000003535 11524347752 025200  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/auditd                           0000755 0000000 0000000 00000006462 11524347747 025046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/certmonger                       0000755 0000000 0000000 00000004054 11524347747 025734  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/mysqld                           0000755 0000000 0000000 00000012460 11524347752 025074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/irqbalance                       0000755 0000000 0000000 00000003521 11524347751 025661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/acpid                            0000755 0000000 0000000 00000003275 11524347747 024653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/iscsid                           0000755 0000000 0000000 00000007127 11524347751 025044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/nscd                             0000755 0000000 0000000 00000004723 11524347753 024516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/rpcidmapd                        0000755 0000000 0000000 00000005222 11524347754 025526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/nfs                              0000755 0000000 0000000 00000013536 11524347753 024357  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/sssd                             0000755 0000000 0000000 00000004731 11524347755 024544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/crond                            0000755 0000000 0000000 00000005445 11524347750 024673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/ip6tables                        0000755 0000000 0000000 00000020716 11524347750 025455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/firstboot                        0000755 0000000 0000000 00000005341 11524347750 025574  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/autofs                           0000755 0000000 0000000 00000007234 11524347747 025073  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/sshd                             0000755 0000000 0000000 00000010671 11524347755 024531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/libvirt-guests                   0000755 0000000 0000000 00000017172 11524347751 026552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/avahi-daemon                     0000755 0000000 0000000 00000004754 11524347747 026127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/iscsi                            0000755 0000000 0000000 00000007315 11524347751 024677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/ypbind                           0000755 0000000 0000000 00000011277 11524347755 025060  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/psacct                           0000755 0000000 0000000 00000003024 11524347753 025035  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/fcoe                             0000755 0000000 0000000 00000005775 11524347750 024510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/nfslock                          0000755 0000000 0000000 00000006675 11524347753 025236  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/cgred                            0000755 0000000 0000000 00000006302 11524347747 024651  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/udev-post                        0000755 0000000 0000000 00000004370 11524347755 025515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/haldaemon                        0000755 0000000 0000000 00000003245 11524347750 025512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/ipsec                            0000755 0000000 0000000 00000010777 11524347751 024676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/rpcbind                          0000755 0000000 0000000 00000004031 11524347754 025201  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/rhnsd                            0000755 0000000 0000000 00000005522 11524347754 024704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/dnsmasq                          0000755 0000000 0000000 00000002577 11524347750 025237  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/functions                        0000644 0000000 0000000 00000042767 11524347750 025603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/kdump                            0000755 0000000 0000000 00000027662 11524347751 024714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/lldpad                           0000755 0000000 0000000 00000014323 11524347751 025022  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/postfix                          0000755 0000000 0000000 00000007414 11524347753 025263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/iptables                         0000755 0000000 0000000 00000020557 11524347751 025373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/multipathd                       0000755 0000000 0000000 00000004473 11524347752 025743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/rsyslog                          0000755 0000000 0000000 00000004326 11524347754 025271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/NetworkManager                   0000755 0000000 0000000 00000004235 11524347747 026514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/netconsole                       0000755 0000000 0000000 00000005650 11524347752 025737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/rpcgssd                          0000755 0000000 0000000 00000006050 11524347754 025230  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/lvm2-monitor                     0000555 0000000 0000000 00000004612 11524347752 026126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/halt                             0000755 0000000 0000000 00000012723 11524347750 024513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/cgconfig                         0000755 0000000 0000000 00000012327 11524347747 025350  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/single                           0000755 0000000 0000000 00000001207 11524347755 025044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/postgresql                       0000755 0000000 0000000 00000012406 11524347753 025767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/mdmonitor                        0000755 0000000 0000000 00000005013 11524347752 025567  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/restorecond                      0000755 0000000 0000000 00000003427 11524347754 026117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/wpa_supplicant                   0000755 0000000 0000000 00000003512 11524347755 026615  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/cpuspeed                         0000755 0000000 0000000 00000025442 11524347750 025375  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/netfs                            0000755 0000000 0000000 00000012432 11524347752 024701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/rpcsvcgssd                       0000755 0000000 0000000 00000006014 11524347754 025744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/oddjobd                          0000755 0000000 0000000 00000004325 11524347753 025172  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/sandbox                          0000755 0000000 0000000 00000003242 11524347754 025221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/killall                          0000755 0000000 0000000 00000001214 11524347751 025201  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/rdisc                            0000755 0000000 0000000 00000003027 11524347754 024670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/httpd                            0000755 0000000 0000000 00000006364 11524347750 024712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/ntpd                             0000755 0000000 0000000 00000003603 11524347753 024530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/smartd                           0000755 0000000 0000000 00000005672 11524347755 025067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/nslcd                            0000755 0000000 0000000 00000003213 11524347753 024663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/ntpdate                          0000755 0000000 0000000 00000003512 11524347753 025221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile06/etc/rc.d/init.d/microcode_ctl                    0000755 0000000 0000000 00000002221 11524347752 026363  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile06/etc/hosts                                        0000644 0000000 0000000 00000000052 11524347746 022702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1	localhost.localdomain	localhost
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile06/etc/iproute2/                                    0000777 0000000 0000000 00000000000 11524347746 023377  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/etc/iproute2/rt_dsfield                          0000644 0000000 0000000 00000000672 11524347746 025442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client03/tile06/etc/iproute2/rt_realms                           0000644 0000000 0000000 00000000160 11524347746 025303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/tile06/etc/iproute2/rt_scopes                           0000644 0000000 0000000 00000000134 11524347746 025315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile06/etc/iproute2/ematch_map                          0000644 0000000 0000000 00000000073 11524347746 025414  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile06/etc/iproute2/rt_tables                           0000644 0000000 0000000 00000000127 11524347746 025275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile06/etc/iproute2/rt_protos                           0000644 0000000 0000000 00000000475 11524347746 025357  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/etc/nsswitch.conf                                0000644 0000000 0000000 00000003230 11524347746 024331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile06/etc/fstab                                        0000644 0000000 0000000 00000001307 11524347745 022644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Thu Aug  5 09:23:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=008a3418-d80b-4815-9722-db5af2fba6da /                       ext3    defaults        1 1
UUID=171fffed-b6b4-4161-b8cd-a688d195da49 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile06/etc/sysctl.conf                                  0000644 0000000 0000000 00000001466 11524347764 024021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile06/etc/inittab                                      0000644 0000000 0000000 00000001564 11524347746 023205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile06/var/                                             0000777 0000000 0000000 00000000000 11524347765 021644  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/var/log/                                         0000777 0000000 0000000 00000000000 11524347765 022425  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/var/log/dmesg                                    0000644 0000000 0000000 00000041752 11524347765 023454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009cc00 (usable)
 BIOS-e820: 000000000009cc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
RAMDISK: 372ca000 - 37fef973
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffdc0 00040
ACPI: SSDT 00000000dfffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000000dfffd000
Bootmem setup node 0 0000000000000000-00000000dfffd000
  NODE_DATA [000000000000c000 - 000000000003ffff]
  bootmap [0000000000040000 -  000000000005bfff] pages 1c
(7 early reservations) ==> bootmem [0000000000 - 00dfffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [00372ca000 - 0037fef973]          RAMDISK ==> [00372ca000 - 0037fef973]
  #4 [000009cc00 - 0000100000]    BIOS reserved ==> [000009cc00 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00031fffff] PMD -> [ffff880002200000-ffff8800053fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009c
    0: 0x00000100 -> 0x000dfffd
On node 0 totalpages: 917400
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3833 pages, LIFO batch:0
  DMA32 zone: 12488 pages used for memmap
  DMA32 zone: 900917 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009c000 - 000000000009d000
PM: Registered nosave memory: 000000000009d000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 904750
Policy zone: DMA32
Kernel command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us 
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 3591248k/3670004k available (4935k kernel code, 404k absent, 78352k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 36700160 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 2267.202 MHz processor.
Calibrating delay loop (skipped) preset value.. 4534.40 BogoMIPS (lpj=2267202)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Setting APIC routing to flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (9068.80 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13462k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297092569.427:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 7040
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 15:29:28 UTC (1297092568)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
dracut: Mounted root filesystem /dev/vda1
dracut: Loading SELinux policy
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1297092569.961:2): selinux=0 auid=4294967295 ses=4294967295
dracut: /sbin/load_policy: Can't load policy: No such file or directory
dracut: Switching root
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 27 for MSI/MSI-X
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT3 FS on vda1, internal journal
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                      Physical_Configuration/Clients/tb3-client03/tile06/boot/                                            0000777 0000000 0000000 00000000000 11524347745 022015  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/boot/grub/                                       0000777 0000000 0000000 00000000000 11524347745 022754  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile06/boot/grub/grub.conf                              0000644 0000000 0000000 00000002637 11524347745 024566  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux Server (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-70.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-70.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-70.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-59.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-59.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-59.el6.x86_64.img
                                                                                                 Physical_Configuration/Clients/tb3-client03/tile06/rpmpkgs.txt                                      0000644 0000000 0000000 00000105007 11524347765 023277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rhnsd-4.9.3-2.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
pycairo-1.8.6-2.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
polkit-devel-0.96-2.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
popt-devel-1.13-7.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
basesystem-10.0-4.el6.noarch
libgnomeui-devel-2.24.1-4.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libhbalinux-1.0.10-1.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-Newt-1.08-26.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
system-icon-theme-6.0.0-2.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
libjpeg-6b-46.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
gettext-0.17-16.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
NetworkManager-glib-0.8.1-5.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
sed-4.2.1-5.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
libXext-1.1-3.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
libcap-2.16-5.2.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
hwdata-0.233-1.el6.noarch
pcre-7.8-3.1.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
fuse-2.8.3-1.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
python-decorator-3.0.1-3.1.el6.noarch
report-plugin-scp-0.18-7.el6.x86_64
rsync-3.0.6-5.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
ModemManager-0.4.0-3.git20100628.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
device-mapper-event-libs-1.02.53-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
nc-1.84-22.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
dracut-004-32.el6.noarch
psmisc-22.6-15.el6.x86_64
vino-2.28.1-3.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
kernel-2.6.32-70.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
mtools-4.0.12-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
mod_wsgi-3.2-1.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
jna-3.2.4-2.el6.x86_64
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
php-pdo-5.3.2-6.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
postfix-2.6.6-2.el6.x86_64
patch-2.6-6.el6.x86_64
elfutils-0.148-1.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
xorg-x11-xkb-utils-7.4-6.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
xvattr-1.3-18.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
boost-regex-1.41.0-11.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
pam-1.1.1-4.el6.x86_64
setserial-2.17-25.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
python-slip-0.2.11-1.el6.noarch
gvfs-1.4.3-9.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
libhbaapi-2.2-10.el6.x86_64
gnome-applets-2.28.0-7.el6.x86_64
grub-0.97-68.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
setup-2.8.14-10.el6.noarch
hal-devel-0.5.14-8.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
autoconf-2.63-5.1.el6.noarch
fontpackages-filesystem-1.41-1.1.el6.noarch
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libXtst-devel-1.0.99.2-3.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
libX11-common-1.3-2.el6.noarch
sos-2.2-2.el6.noarch
php-pear-1.9.0-2.el6.noarch
avahi-autoipd-0.6.25-8.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
bash-4.1.2-3.el6.x86_64
libcap-ng-devel-0.6.4-3.el6.x86_64
festival-1.96-18.el6.x86_64
libICE-1.0.6-1.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
rootfiles-8.1-6.1.el6.noarch
libldb-0.9.10-23.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
libpng-1.2.44-1.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
gd-2.0.35-10.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
man-pages-3.22-12.el6.noarch
libcroco-devel-0.6.2-5.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
numactl-2.0.3-9.el6.x86_64
yum-3.2.27-14.el6.noarch
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
iproute-2.6.32-10.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
boost-1.41.0-11.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
gstreamer-tools-0.10.29-1.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
libXdamage-1.1.2-1.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
binutils-2.20.51.0.2-5.11.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
gcc-4.4.4-13.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
libtheora-1.1.0-2.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
gnome-power-manager-2.28.3-3.el6.x86_64
totem-mozplugin-2.28.6-2.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-Log-Message-0.02-115.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
libXdmcp-1.0.3-1.el6.x86_64
parted-2.1-10.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libevent-1.4.13-1.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
psacct-6.3.2-63.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
checkpolicy-2.0.22-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
flex-2.5.35-8.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
selinux-policy-3.7.19-54.el6.noarch
ltrace-0.5-16.45svn.1.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
crontabs-1.10-32.1.el6.noarch
coreutils-libs-8.4-9.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
mtr-0.75-5.el6.x86_64
openssl-1.0.0-4.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
libgudev1-147-2.29.el6.x86_64
ctags-5.8-2.el6.x86_64
redhat-bookmarks-6-1.el6.noarch
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
passwd-0.77-4.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
orca-2.28.2-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
slang-2.2.1-1.el6.x86_64
subversion-1.6.11-2.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
openswan-2.6.24-8.el6.x86_64
gtk-doc-1.11-5.1.el6.noarch
libdaemon-0.14-1.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
xml-common-0.6.3-32.el6.noarch
gtk2-devel-2.18.9-4.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
notification-daemon-0.5.0-1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
libgcc-4.4.4-13.el6.i686
ncurses-libs-5.7-3.20090208.el6.x86_64
ppp-2.4.5-5.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
info-4.13a-8.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
docbook-style-dsssl-1.79-10.el6.noarch
pam_ldap-185-5.el6.x86_64
glib2-2.22.5-5.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
readline-6.0-3.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
at-3.1.10-42.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
samba-winbind-clients-3.5.4-68.el6.x86_64
gmp-4.3.1-7.el6.x86_64
gnome-panel-libs-2.30.2-5.el6.x86_64
perl-version-0.77-115.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
perl-5.10.1-115.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
curl-7.19.7-16.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
httpd-tools-2.2.15-5.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
libavc1394-0.5.3-9.1.el6.x86_64
which-2.19-5.1.el6.x86_64
perl-BSD-Resource-1.29.03-3.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
keyutils-libs-1.4-1.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
iso-codes-3.16-2.el6.noarch
libxslt-1.1.26-2.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-1.0.5-1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
giflib-4.1.6-3.1.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
report-0.18-7.el6.x86_64
libX11-1.3-2.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
grubby-7.0.15-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
eggdbus-0.6-3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
httpd-2.2.15-5.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
ppl-0.10.2-11.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
file-libs-5.04-5.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
bc-1.06.95-1.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
NetworkManager-0.8.1-5.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
dracut-kernel-004-32.el6.noarch
cpio-2.10-9.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
unzip-6.0-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
check-0.9.8-1.1.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
libgssglue-0.1-8.1.el6.x86_64
db4-cxx-4.7.25-16.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
libnih-1.0.1-6.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
fcoe-utils-1.0.14-9.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
zip-3.0-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
usermode-1.102-3.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
php-xml-5.3.2-6.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
crash-5.0.0-23.el6.x86_64
libthai-0.1.12-3.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
zenity-2.28.0-1.el6.x86_64
report-newt-0.18-7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
boost-test-1.41.0-11.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
tzdata-2010l-1.el6.noarch
ncurses-5.7-3.20090208.el6.x86_64
nspr-4.8.6-1.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
dnsmasq-2.48-4.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
nss-3.12.7-2.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
udev-147-2.29.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
postgresql-libs-8.4.4-2.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
avahi-ui-0.6.25-8.el6.x86_64
device-mapper-multipath-libs-0.4.9-31.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
udisks-1.0.1-2.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
libaio-0.3.107-10.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
evolution-data-server-devel-2.28.3-10.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
elfutils-devel-0.148-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
cas-0.15-1.el6.1.noarch
libgnome-devel-2.28.0-11.el6.x86_64
kernel-devel-2.6.32-59.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
dstat-0.7.0-1.el6.noarch
perl-XML-Dumper-0.81-6.el6.noarch
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
zd1211-firmware-1.4-4.el6.noarch
ivtv-firmware-20080701-20.2.noarch
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
libnl-1.1-12.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
mysql-5.1.47-4.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
iptables-1.4.7-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
perl-Time-HiRes-1.9721-115.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
systemtap-1.2-9.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
eog-2.28.2-4.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
postgresql-server-8.4.4-2.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
gnome-settings-daemon-2.28.2-11.el6.x86_64
usbutils-0.86-2.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
python-psycopg2-2.0.13-2.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
tcsh-6.17-8.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
kernel-devel-2.6.32-70.el6.x86_64
bison-2.4.1-5.el6.x86_64
busybox-1.15.1-10.el6.x86_64
lsof-4.82-1.2.el6.x86_64
swig-1.3.40-5.el6.x86_64
hal-0.5.14-8.el6.x86_64
powertop-1.11-3.1.el6.x86_64
rdate-1.4-16.el6.x86_64
kernel-2.6.32-59.el6.x86_64
libtopology-0.3-7.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
openldap-devel-2.4.19-15.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
kernel-2.6.32-71.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
libxml2-python-2.7.6-1.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
libcanberra-0.22-1.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
python-gudev-147.1-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
mailcap-2.1.31-1.1.el6.noarch
wpa_supplicant-0.6.8-10.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
cracklib-python-2.8.16-2.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
gnome-python2-libwnck-2.28.0-4.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
openjade-1.3.2-36.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
popt-1.13-7.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
system-gnome-theme-60.0.2-1.el6.noarch
db4-4.7.25-16.el6.x86_64
wget-1.12-1.4.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
fipscheck-1.2.0-4.1.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
gawk-3.1.7-6.el6.x86_64
cvs-1.11.23-11.el6.x86_64
php-common-5.3.2-6.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
tcp_wrappers-libs-7.6-56.3.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
atk-1.28.0-2.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
libacl-2.2.49-4.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
findutils-4.4.2-6.el6.x86_64
libiec61883-1.2.0-4.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
grep-2.6.3-2.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
libgcrypt-1.4.5-3.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
pixman-0.16.6-1.el6.x86_64
iw-0.9.17-4.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
libxcb-1.5-1.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
comps-extras-17.8-1.el6.noarch
libsoup-2.28.2-1.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
xfsprogs-3.1.1-4.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
libXv-1.0.5-1.el6.x86_64
polkit-0.96-2.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
rtkit-0.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
libIDL-0.8.13-2.1.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
ed-1.1-3.3.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
tar-1.23-3.el6.x86_64
libconfig-1.3.2-1.1.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
pciutils-libs-3.1.4-9.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
mod_ssl-2.2.15-5.el6.x86_64
kbd-misc-1.15-11.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
rng-tools-2-8.el6.x86_64
pax-3.4-10.1.el6.x86_64
control-center-2.28.1-25.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
php-gd-5.3.2-6.el6.x86_64
libtasn1-2.3-3.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
irqbalance-0.55-27.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
yajl-1.0.7-3.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libXpm-3.5.8-2.el6.x86_64
pango-1.28.1-3.el6.x86_64
gucharmap-2.28.2-2.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
net-tools-1.60-102.el6.x86_64
exempi-2.1.0-5.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
DeviceKit-power-014-1.el6.x86_64
make-3.81-19.el6.x86_64
unique-1.1.4-2.el6.x86_64
rhn-setup-1.0.0-38.el6.noarch
boost-signals-1.41.0-11.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
cronie-1.4.4-2.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
libcollection-0.5.0-28.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
libudev-147-2.29.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
libuser-0.56.13-4.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
device-mapper-multipath-0.4.9-31.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
perl-URI-1.40-2.el6.noarch
dbus-glib-devel-0.86-5.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
seekwatcher-0.12-4.1.el6.noarch
perf-2.6.32-71.el6.noarch
libglade2-devel-2.6.4-3.1.el6.x86_64
glibc-2.12-1.7.el6.i686
polkit-docs-0.96-2.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
libXi-devel-1.3-3.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
mysql-devel-5.1.47-4.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
iotop-0.3.2-3.el6.noarch
python-meh-0.9-1.el6.noarch
bzip2-devel-1.0.5-6.1.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
atmel-firmware-1.3-7.el6.noarch
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
libstdc++-4.4.4-13.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
libXi-1.3-3.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
nautilus-extensions-2.28.4-15.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
libss-1.41.12-3.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
glx-utils-7.7-2.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
cpp-4.4.4-13.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
ipa-client-2.0-9.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
gnome-vfs2-smb-2.24.2-6.el6.x86_64
xdg-user-dirs-0.12-4.el6.x86_64
gdb-7.1-29.el6.x86_64
gok-2.28.1-5.el6.x86_64
SDL-1.2.14-2.el6.x86_64
postgresql-docs-8.4.4-2.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mod_perl-2.0.4-10.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
prelink-0.4.3-4.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
gnome-session-xsession-2.28.0-15.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
crypto-utils-2.4.1-24.2.el6.x86_64
PyGreSQL-3.8.1-2.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
postgresql-odbc-08.04.0200-1.el6.x86_64
git-1.7.1-2.el6.x86_64
report-gtk-0.18-7.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
libvirt-devel-0.8.1-27.el6.x86_64
audit-2.0.4-1.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
attr-2.4.44-4.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
latrace-0.5.9-2.el6.x86_64
byacc-1.9.20070509-6.1.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
nscd-2.12-1.7.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
vte-0.25.1-5.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
gcc-c++-4.4.4-13.el6.x86_64
firefox-3.6.9-2.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
libgnomecanvas-devel-2.26.0-4.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
perl-XML-Grove-0.46alpha-40.el6.noarch
automake-1.11.1-1.2.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
system-config-services-docs-1.1.8-1.el6.noarch
pyOpenSSL-0.10-2.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
zlib-1.2.3-25.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
audit-libs-devel-2.0.4-1.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
libstdc++-4.4.4-13.el6.i686
libdrm-2.4.20-2.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
docbook-utils-0.6.14-24.el6.noarch
freetype-2.3.11-5.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
gnome-python2-desktop-2.28.0-4.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
words-3.0-17.el6.noarch
libselinux-utils-2.0.94-2.el6.x86_64
gamin-0.1.10-9.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
mailx-12.4-6.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
keyutils-1.4-1.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
openssh-5.3p1-20.el6.x86_64
m4-1.4.13-5.el6.x86_64
autofs-5.0.5-23.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
gvfs-archive-1.4.3-9.el6.x86_64
man-1.6f-29.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
gdm-2.30.4-21.el6.x86_64
libusb-0.1.12-23.el6.x86_64
webalizer-2.21_02-3.3.el6.x86_64
time-1.7-37.1.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
less-436-4.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
gettext-libs-0.17-16.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
NetworkManager-gnome-0.8.1-5.el6.x86_64
readahead-1.5.6-1.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
php-5.3.2-6.el6.x86_64
libical-0.43-5.1.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-panel-2.30.2-5.el6.x86_64
latencytop-0.5-3.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
kbd-1.15-11.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
rcs-5.7-37.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
boost-program-options-1.41.0-11.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
iputils-20071127-13.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
glibc-2.12-1.7.el6.x86_64
gzip-1.3.12-18.el6.x86_64
cscope-15.6-6.el6.x86_64
certmonger-0.24-4.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
openldap-2.4.19-15.el6.x86_64
eject-2.1.5-17.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
qt-4.6.2-16.el6.x86_64
diffstat-1.51-2.el6.x86_64
libgail-gnome-1.20.1-4.1.el6.x86_64
sssd-1.2.1-28.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
newt-0.52.11-2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
nspluginwrapper-1.3.0-14.el6.x86_64
mysql-server-5.1.47-4.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
rhn-setup-gnome-1.0.0-38.el6.noarch
atk-devel-1.28.0-2.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
filesystem-2.4.30-2.1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
libcom_err-devel-1.41.12-3.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
m2crypto-0.20.2-7.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
screen-4.0.3-15.el6.x86_64
alsa-lib-devel-1.0.21-3.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
mobile-broadband-provider-info-1.20100122-1.el6.noarch
xorg-x11-docs-1.3-6.1.el6.noarch
gnome-themes-2.28.1-6.el6.noarch
libselinux-2.0.94-2.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
libxcb-devel-1.5-1.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
pam_krb5-2.3.11-1.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
pytz-2010h-2.el6.noarch
libidn-1.18-2.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
acl-2.2.49-4.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
jline-0.9.94-0.8.el6.noarch
libXt-1.0.7-1.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
procps-3.2.8-14.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
gnome-screensaver-2.28.3-8.el6.x86_64
rpm-4.8.0-12.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
quota-3.17-10.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
rpm-build-4.8.0-12.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
nano-2.0.9-7.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
system-config-services-0.99.45-1.el6.3.noarch
perl-parent-0.221-115.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
hal-info-20090716-3.1.el6.noarch
mlocate-0.22.2-3.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
libicu-4.2.1-9.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
yp-tools-2.9-10.el6.x86_64
coreutils-8.4-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
rfkill-0.3-4.el6.x86_64
at-spi-1.28.1-2.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
lldpad-0.9.38-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
gnome-python2-bonobo-2.28.0-3.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
evolution-data-server-doc-2.28.3-10.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
yelp-2.28.1-8.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
python-2.6.5-3.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile06/ifconfig.txt                                     0000644 0000000 0000000 00000001637 11524347764 023403  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:90:00:06  
          inet addr:10.1.216.156  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe90:6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512370287 errors:0 dropped:0 overruns:0 frame:0
          TX packets:162305833 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:729378471934 (679.2 GiB)  TX bytes:16271044976 (15.1 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:255327 errors:0 dropped:0 overruns:0 frame:0
          TX packets:255327 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:326369268 (311.2 MiB)  TX bytes:326369268 (311.2 MiB)

                                                                                                 Physical_Configuration/Clients/tb3-client03/tile06/chkconfig.txt                                    0000644 0000000 0000000 00000006556 11524347745 023556  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:off	4:on	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
fcoe           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:off	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:off	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lldpad         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
multipathd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
mysqld         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postgresql     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/lspci.txt                                               0000644 0000000 0000000 00000021512 11524347744 021616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 5520 I/O Hub to ESI Port (rev 13)
00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 13)
00:02.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 2 (rev 13)
00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 13)
00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 13)
00:10.0 PIC: Intel Corporation 5520/5500/X58 Physical and Link Layer Registers Port 0 (rev 13)
00:10.1 PIC: Intel Corporation 5520/5500/X58 Routing and Protocol Layer Registers Port 0 (rev 13)
00:11.0 PIC: Intel Corporation 5520/5500 Physical and Link Layer Registers Port 1 (rev 13)
00:11.1 PIC: Intel Corporation 5520/5500 Routing & Protocol Layer Register Port 1 (rev 13)
00:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers (rev 13)
00:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 13)
00:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 13)
00:14.3 PIC: Intel Corporation 5520/5500/X58 I/O Hub Throttle Registers (rev 13)
00:15.0 PIC: Intel Corporation 5520/5500/X58 Trusted Execution Technology Registers (rev 13)
00:16.0 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.1 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.2 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.3 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.4 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.5 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.6 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.7 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:1a.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
00:1a.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5
00:1a.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1
00:1c.4 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 5
00:1d.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
00:1d.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
00:1d.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
00:1d.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller
00:1f.2 IDE interface: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1
00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
00:1f.5 IDE interface: Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller #2
01:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068E PCI-Express Fusion-MPT SAS (rev 08)
06:00.0 PCI bridge: Vitesse Semiconductor VSC452 [SuperBMC] (rev 01)
07:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200EV
0b:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
0b:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
15:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
15:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
1a:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
1a:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
fe:00.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture Generic Non-Core Registers (rev 05)
fe:00.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture System Address Decoder (rev 05)
fe:02.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Link 0 (rev 05)
fe:02.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Physical 0 (rev 05)
fe:02.4 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Link 1 (rev 05)
fe:02.5 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Physical 1 (rev 05)
fe:03.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller (rev 05)
fe:03.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Target Address Decoder (rev 05)
fe:03.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller RAS Registers (rev 05)
fe:03.4 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Test Registers (rev 05)
fe:04.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Control Registers (rev 05)
fe:04.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Address Registers (rev 05)
fe:04.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Rank Registers (rev 05)
fe:04.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Thermal Control Registers (rev 05)
fe:05.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Control Registers (rev 05)
fe:05.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Address Registers (rev 05)
fe:05.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Rank Registers (rev 05)
fe:05.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Thermal Control Registers (rev 05)
fe:06.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Control Registers (rev 05)
fe:06.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Address Registers (rev 05)
fe:06.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Rank Registers (rev 05)
fe:06.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Thermal Control Registers (rev 05)
ff:00.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture Generic Non-Core Registers (rev 05)
ff:00.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture System Address Decoder (rev 05)
ff:02.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Link 0 (rev 05)
ff:02.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Physical 0 (rev 05)
ff:02.4 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Link 1 (rev 05)
ff:02.5 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Physical 1 (rev 05)
ff:03.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller (rev 05)
ff:03.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Target Address Decoder (rev 05)
ff:03.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller RAS Registers (rev 05)
ff:03.4 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Test Registers (rev 05)
ff:04.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Control Registers (rev 05)
ff:04.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Address Registers (rev 05)
ff:04.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Rank Registers (rev 05)
ff:04.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Thermal Control Registers (rev 05)
ff:05.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Control Registers (rev 05)
ff:05.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Address Registers (rev 05)
ff:05.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Rank Registers (rev 05)
ff:05.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Thermal Control Registers (rev 05)
ff:06.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Control Registers (rev 05)
ff:06.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Address Registers (rev 05)
ff:06.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Rank Registers (rev 05)
ff:06.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Thermal Control Registers (rev 05)
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/df.txt                                                  0000644 0000000 0000000 00000000672 11524347724 021077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg_tb3client03-lv_root
                     133674304  81190116  45693840  64% /
tmpfs                 16501612       188  16501424   1% /dev/shm
/dev/sda2               495844     35163    435081   8% /boot
/dev/sda1               204580       240    204340   1% /boot/efi
10.1.216.100:/RHEL6x64
                     271644928 209848896  47774624  82% /RHEL6x64
                                                                      Physical_Configuration/Clients/tb3-client03/lvdisplay.txt                                           0000644 0000000 0000000 00000001747 11524347744 022523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                     --- Logical volume ---
  LV Name                /dev/vg_tb3client03/lv_root
  VG Name                vg_tb3client03
  LV UUID                JXxqgm-BjSf-23tW-80zI-wRQg-LCeA-z1zBjA
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                129.52 GiB
  Current LE             33156
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/vg_tb3client03/lv_swap
  VG Name                vg_tb3client03
  LV UUID                vgLT3H-JOcm-xOaz-VSOz-54FQ-2YqE-J2uYtn
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                3.91 GiB
  Current LE             1000
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
                         Physical_Configuration/Clients/tb3-client03/mount.txt                                               0000644 0000000 0000000 00000001124 11524347744 021643  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/mapper/vg_tb3client03-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda2 on /boot type ext4 (rw)
/dev/sda1 on /boot/efi type vfat (rw,umask=0077,shortname=winnt)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
10.1.216.100:/RHEL6x64 on /RHEL6x64 type nfs (rw,addr=10.1.216.100)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/etc/                                                    0000777 0000000 0000000 00000000000 11524347743 020520  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/etc/rc.d/                                               0000777 0000000 0000000 00000000000 11524347735 021347  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/                                         0000777 0000000 0000000 00000000000 11524347743 022257  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S23NetworkManager                        0000755 0000000 0000000 00000004235 11524347740 025416  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S80postfix                               0000755 0000000 0000000 00000007414 11524347742 024175  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K69rpcsvcgssd                            0000755 0000000 0000000 00000006014 11524347736 024657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S07iscsid                                0000755 0000000 0000000 00000007127 11524347740 023755  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S55sshd                                  0000755 0000000 0000000 00000010671 11524347742 023443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K15httpd                                 0000755 0000000 0000000 00000006364 11524347735 023617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K92ip6tables                             0000755 0000000 0000000 00000020716 11524347737 024371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K89rdisc                                 0000755 0000000 0000000 00000003027 11524347737 023606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K76ipsec                                 0000755 0000000 0000000 00000010777 11524347736 023612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S22messagebus                            0000755 0000000 0000000 00000004230 11524347740 024622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K95firstboot                             0000755 0000000 0000000 00000005341 11524347737 024513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K86cgred                                 0000755 0000000 0000000 00000006302 11524347737 023562  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S84ksm                                   0000755 0000000 0000000 00000004236 11524347742 023276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S13rpcbind                               0000755 0000000 0000000 00000004031 11524347740 024104  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S13irqbalance                            0000755 0000000 0000000 00000003521 11524347740 024567  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S91vncserver                             0000755 0000000 0000000 00000006066 11524347743 024523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 91 35
# description: Starts and stops vncserver. \
#	       used to provide remote X administration services.

### BEGIN INIT INFO
# Provides: vncserver
# Required-Start: $network $named
# Required-Stop: $network $named
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: start|stop|restart|try-restart|status|force-reload vncserver
# Description: control vncserver which exports your desktop
### END INIT INFO

# Source function library.
. /etc/init.d/functions

[ -r /etc/sysconfig/vncservers ] && . /etc/sysconfig/vncservers

prog=$"VNC server"

RETVAL=0

start() {
    [ "$EUID" != "0" ] && exit 4
    
    # Source networking configuration.
    . /etc/sysconfig/network

    # Check that networking is up.
    [ ${NETWORKING} = "no" ] && exit 1

    [ -x /usr/bin/vncserver ] || exit 5
    [ -x /usr/bin/Xvnc ] || exit 5

    echo -n $"Starting $prog: "
    RETVAL=0
    if [ ! -d /tmp/.X11-unix ]
    then
        mkdir -m 1777 /tmp/.X11-unix || :
        restorecon /tmp/.X11-unix 2>/dev/null || :
    fi

    for display in ${VNCSERVERS}
    do
        SERVS=1
        echo -n "${display} "
	DISP="${display%%:*}"
	USER="${display##*:}"
	VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
        runuser -l ${USER} -c "cd ~${USER} && [ -r .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
        RETVAL=$?
        [ "$RETVAL" -eq 0 ] || break
    done
    if [ -z "$SERVS" ]; then
        echo -n "no displays configured "
        failure
        RETVAL=6
    else
        if [ "$RETVAL" -eq 0 ]; then
	    success $"vncserver startup"
	    touch /var/lock/subsys/Xvnc
        else 
            failure $"vncserver start"
        fi
    fi
    echo

# As written in https://bugzilla.redhat.com/show_bug.cgi?id=523974 (LSB
# compliance) start of already running service is OK.
    [ "$RETVAL" -eq 98 ] && RETVAL=0

    return "$RETVAL"
}

stop() {
    [ "$EUID" != "0" ] && exit 4

    echo -n $"Shutting down $prog: "

    status Xvnc > /dev/null 2>&1
    RETVAL=$?

    # 3 means service is already stopped
    if ! [ "$RETVAL" -eq 3 ]; then
	for display in ${VNCSERVERS}; do
	    echo -n "${display} "
	    export USER="${display##*:}"
	    runuser ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
	done
	RETVAL=$?
    else
	let RETVAL=0
    fi

    [ "$RETVAL" -eq 0 ] && success $"vncserver shutdown" || \
	failure $"vncserver shutdown"
    echo
    [ "$RETVAL" -eq 0 ] && rm -f /var/lock/subsys/Xvnc
    return "$RETVAL"
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|force-reload)
	stop
	sleep 3
	start
	;;
  condrestart)
#	https://bugzilla.redhat.com/show_bug.cgi?id=508367
#	echo "condrestart is obsolete, use try-restart instead"
	if [ -e /var/lock/subsys/Xvnc ]; then
	    stop
	    sleep 3
	    start
	fi
	;;
  try-restart)
        if [ -e /var/lock/subsys/Xvnc ]; then
            stop
            sleep 3
            start
        fi
        ;;
  status)
	status Xvnc
	RETVAL=$?
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|try-restart|status|force-reload}"
	exit 2
esac

exit "$RETVAL"

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S97libvirtd                              0000755 0000000 0000000 00000004765 11524347743 024337  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: libvirtd
# Required-Start: $network messagebus
# Should-Start: $named
# Should-Start: xend
# Should-Start: hal
# Should-Start: avahi
# Required-Stop: $network messagebus
# Should-Stop: $named
# Default-Start: 3 4 5
# Short-Description: daemon for libvirt virtualization API
# Description: This is a daemon for managing guest instances
#              and libvirt virtual networks
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirtd:   guest and virtual network management daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon for managing guest instances
#               and libvirt virtual networks
#               See http://libvirt.org
#
# processname: libvirtd
# pidfile: /var/run/libvirtd.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

SERVICE=libvirtd
PROCESS=libvirtd
PIDFILE=/var/run/$SERVICE.pid

LIBVIRTD_CONFIG=
LIBVIRTD_ARGS=
KRB5_KTNAME=/etc/libvirt/krb5.tab

test -f /etc/sysconfig/libvirtd && . /etc/sysconfig/libvirtd

LIBVIRTD_CONFIG_ARGS=
if [ -n "$LIBVIRTD_CONFIG" ]
then
    LIBVIRTD_CONFIG_ARGS="--config $LIBVIRTD_CONFIG"
fi

RETVAL=0

start() {
    echo -n $"Starting $SERVICE daemon: "
    mkdir -p /var/cache/libvirt
    rm -rf /var/cache/libvirt/*
    KRB5_KTNAME=$KRB5_KTNAME daemon --pidfile $PIDFILE --check $SERVICE $PROCESS --daemon $LIBVIRTD_CONFIG_ARGS $LIBVIRTD_ARGS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SERVICE
}

stop() {
    echo -n $"Stopping $SERVICE daemon: "

    killproc -p $PIDFILE $PROCESS
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$SERVICE
        rm -f $PIDFILE
        rm -rf /var/cache/libvirt/*
    fi
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading $SERVICE configuration: "

    killproc -p $PIDFILE $PROCESS -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

# See how we were called.
case "$1" in
    start|stop|restart|reload)
        $1
        ;;
    status)
        status -p $PIDFILE $PROCESS
        RETVAL=$?
        ;;
    force-reload)
        reload
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$SERVICE ] && restart || :
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload|try-restart}"
        exit 2
        ;;
esac
exit $RETVAL
           Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K50dnsmasq                               0000755 0000000 0000000 00000002577 11524347735 024143  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S05cgconfig                              0000755 0000000 0000000 00000012327 11524347737 024260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S95atd                                   0000755 0000000 0000000 00000004112 11524347743 023250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K85ebtables                              0000755 0000000 0000000 00000007106 11524347736 024260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# init script for the Ethernet Bridge filter tables
#
# Written by Dag Wieers <dag@wieers.com>
# Modified by Rok Papez <rok.papez@arnes.si>
#             Bart De Schuymer <bdschuym@pandora.be>
#
# chkconfig: - 15 85
# description: Ethernet Bridge filtering tables
#
# config: /etc/sysconfig/ebtables         (text)
#         /etc/sysconfig/ebtables.<table> (binary)

source /etc/init.d/functions
source /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -x /sbin/ebtables ] || exit 5
[ -x /sbin/ebtables-save ] || exit 5
[ -x /sbin/ebtables-restore ] || exit 5

RETVAL=0
prog="ebtables"
desc="Ethernet bridge filtering"
umask 0077

#default configuration
EBTABLES_TEXT_FORMAT="yes"
EBTABLES_BINARY_FORMAT="yes"
EBTABLES_MODULES_UNLOAD="yes"
EBTABLES_SAVE_ON_STOP="no"
EBTABLES_SAVE_ON_RESTART="no"
EBTABLES_SAVE_COUNTER="no"

config=/etc/sysconfig/$prog-config
[ -f "$config" ] && . "$config"

start() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Starting $desc ($prog): "
	if [ "$EBTABLES_BINARY_FORMAT" = "yes" ]; then
		for table in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | sed -e 's/.*ebtables\.//' -e '/save/d' ); do
			/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-commit || RETVAL=1
		done
	else
		/sbin/ebtables-restore < /etc/sysconfig/ebtables || RETVAL=1
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog startup"
		touch "/var/lock/subsys/$prog"
	else
		failure "$prog startup"
	fi
	echo
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Stopping $desc ($prog): "
	for table in $(grep '^ebtable_' /proc/modules | sed -e 's/ebtable_\([^ ]*\).*/\1/'); do
		/sbin/ebtables -t $table --init-table || RETVAL=1
	done

	if [ "$EBTABLES_MODULES_UNLOAD" = "yes" ]; then
		for mod in $(grep -E '^(ebt|ebtable)_' /proc/modules | cut -f1 -d' ') ebtables; do
			rmmod $mod 2> /dev/null
		done
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog shutdown"
		rm -f "/var/lock/subsys/$prog"
	else
		failure "$prog shutdown"
	fi
	echo
}

restart() {
	[ "$EBTABLES_SAVE_ON_RESTART" = "yes" ] && save
	stop
	start
}

save() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Saving $desc ($prog): "
	if [ "$EBTABLES_TEXT_FORMAT" = "yes" ]; then
		if [ -e /etc/sysconfig/ebtables ]; then
			chmod 0600 /etc/sysconfig/ebtables
			mv -f /etc/sysconfig/ebtables /etc/sysconfig/ebtables.save
		fi
		/sbin/ebtables-save > /etc/sysconfig/ebtables || RETVAL=1
	fi
	if [ "$EBTABLES_BINARY_FORMAT" = "yes" ]; then
		rm -f /etc/sysconfig/ebtables.*.save
		for oldtable in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | grep -vF 'ebtables.save'); do
			chmod 0600 $oldtable
			mv -f $oldtable $oldtable.save
		done
		for table in $(grep '^ebtable_' /proc/modules | sed -e 's/ebtable_\([^ ]*\).*/\1/'); do
			/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-save || RETVAL=1
			if [ "$EBTABLES_SAVE_COUNTER" = "no" ]; then
				/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table -Z || RETVAL=1
			fi
		done
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog saved"
	else
		failure "$prog saved"
	fi
	echo
}

case "$1" in
  start)
	[ -f "/var/lock/subsys/$prog" ] && exit 0
	start
	;;
  stop)
	[ "$EBTABLES_SAVE_ON_STOP" = "yes" ] && save
	stop
	;;
  restart|force-reload)
	restart
	;;
  reload)
	[ ! -f "/var/lock/subsys/$prog" ] && exit 7
	restart
	;;
  condrestart|try-restart)
	[ ! -e "/var/lock/subsys/$prog" ] && exit 0
	restart
	;;
  save)
	save
	;;
  status)
	[ -f "/var/lock/subsys/$prog" ] && RETVAL=0 || RETVAL=3
	/sbin/ebtables-save
	;;
  *)
	echo $"Usage $0 {start|stop|restart|condrestart|save|status}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S13iscsi                                 0000755 0000000 0000000 00000007315 11524347740 023605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S15mdmonitor                             0000755 0000000 0000000 00000005013 11524347740 024476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K75ntpdate                               0000755 0000000 0000000 00000003512 11524347736 024132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S97rhnsd                                 0000755 0000000 0000000 00000005522 11524347743 023626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K74ntpd                                  0000755 0000000 0000000 00000003603 11524347736 023440  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K80kdump                                 0000755 0000000 0000000 00000027662 11524347736 023623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S10network                               0000755 0000000 0000000 00000014466 11524347740 024166  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S90crond                                 0000755 0000000 0000000 00000005445 11524347742 023611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S12rsyslog                               0000755 0000000 0000000 00000004326 11524347740 024173  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S11auditd                                0000755 0000000 0000000 00000006462 11524347740 023745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K84wpa_supplicant                        0000755 0000000 0000000 00000003512 11524347736 025524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S01sysstat                               0000755 0000000 0000000 00000002363 11524347737 024206  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K74gfs2                                  0000755 0000000 0000000 00000006445 11524347736 023343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S24avahi-daemon                          0000755 0000000 0000000 00000004754 11524347741 025033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S26haldaemon                             0000755 0000000 0000000 00000003245 11524347741 024426  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S00microcode_ctl                         0000755 0000000 0000000 00000002221 11524347737 025272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K10saslauthd                             0000755 0000000 0000000 00000004010 11524347735 024441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K60nfs                                   0000755 0000000 0000000 00000013536 11524347736 023262  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S24rpcgssd                               0000755 0000000 0000000 00000006050 11524347741 024136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S50bluetooth                             0000755 0000000 0000000 00000001306 11524347742 024475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 345 50 83
# description: Turn HID adapters into Bluetooth ones
#
### BEGIN INIT INFO
# Short-Description: Trigger bluetoothd start-up
# Description: Trigger bluetoothd start-up
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth

start()
{
	echo -n $"Enabling Bluetooth devices:"
	udevadm trigger --subsystem-match=bluetooth
	echo ""
	return 0
}

stop()
{
	# FIXME If somebody figures out how to disable the K* script
	echo -n "Stopping Bluetooth services:"
	echo ""
	return 0
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  *)
	echo $"Usage: $0 {start|stop}"
	exit 3
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K10psacct                                0000755 0000000 0000000 00000003024 11524347735 023732  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S26acpid                                 0000755 0000000 0000000 00000003275 11524347741 023561  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S13cpuspeed                              0000755 0000000 0000000 00000025442 11524347740 024304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S26udev-post                             0000755 0000000 0000000 00000004370 11524347742 024425  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S99local                                 0000755 0000000 0000000 00000000334 11524347743 023600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K50netconsole                            0000755 0000000 0000000 00000005650 11524347736 024642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S24rpcidmapd                             0000755 0000000 0000000 00000005222 11524347741 024434  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S02lvm2-monitor                          0000555 0000000 0000000 00000004612 11524347737 025037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S28autofs                                0000755 0000000 0000000 00000007234 11524347742 024004  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S85ksmtuned                              0000755 0000000 0000000 00000003433 11524347742 024335  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K01smartd                                0000755 0000000 0000000 00000005672 11524347735 023762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S98libvirt-guests                        0000755 0000000 0000000 00000017172 11524347743 025500  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S82abrtd                                 0000755 0000000 0000000 00000003254 11524347742 023575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S55autobench                             0000755 0000000 0000000 00000005063 11524347742 024451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S25netfs                                 0000755 0000000 0000000 00000012432 11524347741 023612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/S24nfslock                               0000755 0000000 0000000 00000006675 11524347741 024145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K92iptables                              0000755 0000000 0000000 00000020557 11524347737 024306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/etc/rc.d/rc3.d/K87restorecond                           0000755 0000000 0000000 00000003427 11524347737 025033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/                                        0000777 0000000 0000000 00000000000 11524347735 022534  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/network                                 0000755 0000000 0000000 00000014466 11524347733 024160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/gfs2                                    0000755 0000000 0000000 00000006445 11524347730 023323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/sysstat                                 0000755 0000000 0000000 00000002363 11524347735 024174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/saslauthd                               0000755 0000000 0000000 00000004010 11524347734 024440  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/messagebus                              0000755 0000000 0000000 00000004230 11524347732 024610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/autobench                               0000755 0000000 0000000 00000005063 11524347727 024433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/atd                                     0000755 0000000 0000000 00000004112 11524347727 023225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/mcelogd                                 0000755 0000000 0000000 00000003535 11524347732 024073  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/auditd                                  0000755 0000000 0000000 00000006462 11524347727 023741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/irqbalance                              0000755 0000000 0000000 00000003521 11524347731 024554  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/acpid                                   0000755 0000000 0000000 00000003275 11524347727 023546  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/iscsid                                  0000755 0000000 0000000 00000007127 11524347731 023737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/rpcidmapd                               0000755 0000000 0000000 00000005222 11524347734 024421  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/nfs                                     0000755 0000000 0000000 00000013536 11524347733 023252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/crond                                   0000755 0000000 0000000 00000005445 11524347730 023566  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/ip6tables                               0000755 0000000 0000000 00000020716 11524347731 024351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/firstboot                               0000755 0000000 0000000 00000005341 11524347730 024467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/autofs                                  0000755 0000000 0000000 00000007234 11524347727 023766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/sshd                                    0000755 0000000 0000000 00000010671 11524347734 023423  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/ksm                                     0000755 0000000 0000000 00000004236 11524347732 023252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/libvirtd                                0000755 0000000 0000000 00000004765 11524347732 024306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: libvirtd
# Required-Start: $network messagebus
# Should-Start: $named
# Should-Start: xend
# Should-Start: hal
# Should-Start: avahi
# Required-Stop: $network messagebus
# Should-Stop: $named
# Default-Start: 3 4 5
# Short-Description: daemon for libvirt virtualization API
# Description: This is a daemon for managing guest instances
#              and libvirt virtual networks
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirtd:   guest and virtual network management daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon for managing guest instances
#               and libvirt virtual networks
#               See http://libvirt.org
#
# processname: libvirtd
# pidfile: /var/run/libvirtd.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

SERVICE=libvirtd
PROCESS=libvirtd
PIDFILE=/var/run/$SERVICE.pid

LIBVIRTD_CONFIG=
LIBVIRTD_ARGS=
KRB5_KTNAME=/etc/libvirt/krb5.tab

test -f /etc/sysconfig/libvirtd && . /etc/sysconfig/libvirtd

LIBVIRTD_CONFIG_ARGS=
if [ -n "$LIBVIRTD_CONFIG" ]
then
    LIBVIRTD_CONFIG_ARGS="--config $LIBVIRTD_CONFIG"
fi

RETVAL=0

start() {
    echo -n $"Starting $SERVICE daemon: "
    mkdir -p /var/cache/libvirt
    rm -rf /var/cache/libvirt/*
    KRB5_KTNAME=$KRB5_KTNAME daemon --pidfile $PIDFILE --check $SERVICE $PROCESS --daemon $LIBVIRTD_CONFIG_ARGS $LIBVIRTD_ARGS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SERVICE
}

stop() {
    echo -n $"Stopping $SERVICE daemon: "

    killproc -p $PIDFILE $PROCESS
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$SERVICE
        rm -f $PIDFILE
        rm -rf /var/cache/libvirt/*
    fi
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading $SERVICE configuration: "

    killproc -p $PIDFILE $PROCESS -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

# See how we were called.
case "$1" in
    start|stop|restart|reload)
        $1
        ;;
    status)
        status -p $PIDFILE $PROCESS
        RETVAL=$?
        ;;
    force-reload)
        reload
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$SERVICE ] && restart || :
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload|try-restart}"
        exit 2
        ;;
esac
exit $RETVAL
           Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/libvirt-guests                          0000755 0000000 0000000 00000017172 11524347732 025446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/avahi-daemon                            0000755 0000000 0000000 00000004754 11524347727 025022  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/iscsi                                   0000755 0000000 0000000 00000007315 11524347731 023572  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/psacct                                  0000755 0000000 0000000 00000003024 11524347733 023730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/nfslock                                 0000755 0000000 0000000 00000006675 11524347733 024131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/ebtables                                0000755 0000000 0000000 00000007106 11524347730 024236  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# init script for the Ethernet Bridge filter tables
#
# Written by Dag Wieers <dag@wieers.com>
# Modified by Rok Papez <rok.papez@arnes.si>
#             Bart De Schuymer <bdschuym@pandora.be>
#
# chkconfig: - 15 85
# description: Ethernet Bridge filtering tables
#
# config: /etc/sysconfig/ebtables         (text)
#         /etc/sysconfig/ebtables.<table> (binary)

source /etc/init.d/functions
source /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -x /sbin/ebtables ] || exit 5
[ -x /sbin/ebtables-save ] || exit 5
[ -x /sbin/ebtables-restore ] || exit 5

RETVAL=0
prog="ebtables"
desc="Ethernet bridge filtering"
umask 0077

#default configuration
EBTABLES_TEXT_FORMAT="yes"
EBTABLES_BINARY_FORMAT="yes"
EBTABLES_MODULES_UNLOAD="yes"
EBTABLES_SAVE_ON_STOP="no"
EBTABLES_SAVE_ON_RESTART="no"
EBTABLES_SAVE_COUNTER="no"

config=/etc/sysconfig/$prog-config
[ -f "$config" ] && . "$config"

start() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Starting $desc ($prog): "
	if [ "$EBTABLES_BINARY_FORMAT" = "yes" ]; then
		for table in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | sed -e 's/.*ebtables\.//' -e '/save/d' ); do
			/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-commit || RETVAL=1
		done
	else
		/sbin/ebtables-restore < /etc/sysconfig/ebtables || RETVAL=1
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog startup"
		touch "/var/lock/subsys/$prog"
	else
		failure "$prog startup"
	fi
	echo
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Stopping $desc ($prog): "
	for table in $(grep '^ebtable_' /proc/modules | sed -e 's/ebtable_\([^ ]*\).*/\1/'); do
		/sbin/ebtables -t $table --init-table || RETVAL=1
	done

	if [ "$EBTABLES_MODULES_UNLOAD" = "yes" ]; then
		for mod in $(grep -E '^(ebt|ebtable)_' /proc/modules | cut -f1 -d' ') ebtables; do
			rmmod $mod 2> /dev/null
		done
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog shutdown"
		rm -f "/var/lock/subsys/$prog"
	else
		failure "$prog shutdown"
	fi
	echo
}

restart() {
	[ "$EBTABLES_SAVE_ON_RESTART" = "yes" ] && save
	stop
	start
}

save() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Saving $desc ($prog): "
	if [ "$EBTABLES_TEXT_FORMAT" = "yes" ]; then
		if [ -e /etc/sysconfig/ebtables ]; then
			chmod 0600 /etc/sysconfig/ebtables
			mv -f /etc/sysconfig/ebtables /etc/sysconfig/ebtables.save
		fi
		/sbin/ebtables-save > /etc/sysconfig/ebtables || RETVAL=1
	fi
	if [ "$EBTABLES_BINARY_FORMAT" = "yes" ]; then
		rm -f /etc/sysconfig/ebtables.*.save
		for oldtable in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | grep -vF 'ebtables.save'); do
			chmod 0600 $oldtable
			mv -f $oldtable $oldtable.save
		done
		for table in $(grep '^ebtable_' /proc/modules | sed -e 's/ebtable_\([^ ]*\).*/\1/'); do
			/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-save || RETVAL=1
			if [ "$EBTABLES_SAVE_COUNTER" = "no" ]; then
				/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table -Z || RETVAL=1
			fi
		done
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog saved"
	else
		failure "$prog saved"
	fi
	echo
}

case "$1" in
  start)
	[ -f "/var/lock/subsys/$prog" ] && exit 0
	start
	;;
  stop)
	[ "$EBTABLES_SAVE_ON_STOP" = "yes" ] && save
	stop
	;;
  restart|force-reload)
	restart
	;;
  reload)
	[ ! -f "/var/lock/subsys/$prog" ] && exit 7
	restart
	;;
  condrestart|try-restart)
	[ ! -e "/var/lock/subsys/$prog" ] && exit 0
	restart
	;;
  save)
	save
	;;
  status)
	[ -f "/var/lock/subsys/$prog" ] && RETVAL=0 || RETVAL=3
	/sbin/ebtables-save
	;;
  *)
	echo $"Usage $0 {start|stop|restart|condrestart|save|status}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/cgred                                   0000755 0000000 0000000 00000006302 11524347730 023536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/udev-post                               0000755 0000000 0000000 00000004370 11524347735 024410  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/haldaemon                               0000755 0000000 0000000 00000003245 11524347730 024405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/ipsec                                   0000755 0000000 0000000 00000010777 11524347731 023571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/rpcbind                                 0000755 0000000 0000000 00000004031 11524347734 024074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/rhnsd                                   0000755 0000000 0000000 00000005522 11524347733 023576  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/dnsmasq                                 0000755 0000000 0000000 00000002577 11524347730 024132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/functions                               0000644 0000000 0000000 00000042767 11524347730 024476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/kdump                                   0000755 0000000 0000000 00000027662 11524347731 023607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/postfix                                 0000755 0000000 0000000 00000007414 11524347733 024156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/iptables                                0000755 0000000 0000000 00000020557 11524347731 024266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/rsyslog                                 0000755 0000000 0000000 00000004326 11524347734 024164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/NetworkManager                          0000755 0000000 0000000 00000004235 11524347727 025407  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/netconsole                              0000755 0000000 0000000 00000005650 11524347732 024632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/rpcgssd                                 0000755 0000000 0000000 00000006050 11524347734 024123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/abrtd                                   0000755 0000000 0000000 00000003254 11524347727 023557  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/lvm2-monitor                            0000555 0000000 0000000 00000004612 11524347732 025021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/halt                                    0000755 0000000 0000000 00000012723 11524347731 023407  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/cgconfig                                0000755 0000000 0000000 00000012327 11524347730 024235  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/vncserver                               0000755 0000000 0000000 00000006066 11524347735 024503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 91 35
# description: Starts and stops vncserver. \
#	       used to provide remote X administration services.

### BEGIN INIT INFO
# Provides: vncserver
# Required-Start: $network $named
# Required-Stop: $network $named
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: start|stop|restart|try-restart|status|force-reload vncserver
# Description: control vncserver which exports your desktop
### END INIT INFO

# Source function library.
. /etc/init.d/functions

[ -r /etc/sysconfig/vncservers ] && . /etc/sysconfig/vncservers

prog=$"VNC server"

RETVAL=0

start() {
    [ "$EUID" != "0" ] && exit 4
    
    # Source networking configuration.
    . /etc/sysconfig/network

    # Check that networking is up.
    [ ${NETWORKING} = "no" ] && exit 1

    [ -x /usr/bin/vncserver ] || exit 5
    [ -x /usr/bin/Xvnc ] || exit 5

    echo -n $"Starting $prog: "
    RETVAL=0
    if [ ! -d /tmp/.X11-unix ]
    then
        mkdir -m 1777 /tmp/.X11-unix || :
        restorecon /tmp/.X11-unix 2>/dev/null || :
    fi

    for display in ${VNCSERVERS}
    do
        SERVS=1
        echo -n "${display} "
	DISP="${display%%:*}"
	USER="${display##*:}"
	VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
        runuser -l ${USER} -c "cd ~${USER} && [ -r .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
        RETVAL=$?
        [ "$RETVAL" -eq 0 ] || break
    done
    if [ -z "$SERVS" ]; then
        echo -n "no displays configured "
        failure
        RETVAL=6
    else
        if [ "$RETVAL" -eq 0 ]; then
	    success $"vncserver startup"
	    touch /var/lock/subsys/Xvnc
        else 
            failure $"vncserver start"
        fi
    fi
    echo

# As written in https://bugzilla.redhat.com/show_bug.cgi?id=523974 (LSB
# compliance) start of already running service is OK.
    [ "$RETVAL" -eq 98 ] && RETVAL=0

    return "$RETVAL"
}

stop() {
    [ "$EUID" != "0" ] && exit 4

    echo -n $"Shutting down $prog: "

    status Xvnc > /dev/null 2>&1
    RETVAL=$?

    # 3 means service is already stopped
    if ! [ "$RETVAL" -eq 3 ]; then
	for display in ${VNCSERVERS}; do
	    echo -n "${display} "
	    export USER="${display##*:}"
	    runuser ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
	done
	RETVAL=$?
    else
	let RETVAL=0
    fi

    [ "$RETVAL" -eq 0 ] && success $"vncserver shutdown" || \
	failure $"vncserver shutdown"
    echo
    [ "$RETVAL" -eq 0 ] && rm -f /var/lock/subsys/Xvnc
    return "$RETVAL"
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|force-reload)
	stop
	sleep 3
	start
	;;
  condrestart)
#	https://bugzilla.redhat.com/show_bug.cgi?id=508367
#	echo "condrestart is obsolete, use try-restart instead"
	if [ -e /var/lock/subsys/Xvnc ]; then
	    stop
	    sleep 3
	    start
	fi
	;;
  try-restart)
        if [ -e /var/lock/subsys/Xvnc ]; then
            stop
            sleep 3
            start
        fi
        ;;
  status)
	status Xvnc
	RETVAL=$?
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|try-restart|status|force-reload}"
	exit 2
esac

exit "$RETVAL"

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/single                                  0000755 0000000 0000000 00000001207 11524347734 023736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/mdmonitor                               0000755 0000000 0000000 00000005013 11524347732 024462  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/restorecond                             0000755 0000000 0000000 00000003427 11524347733 025011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/bluetooth                               0000755 0000000 0000000 00000001306 11524347727 024464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 345 50 83
# description: Turn HID adapters into Bluetooth ones
#
### BEGIN INIT INFO
# Short-Description: Trigger bluetoothd start-up
# Description: Trigger bluetoothd start-up
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth

start()
{
	echo -n $"Enabling Bluetooth devices:"
	udevadm trigger --subsystem-match=bluetooth
	echo ""
	return 0
}

stop()
{
	# FIXME If somebody figures out how to disable the K* script
	echo -n "Stopping Bluetooth services:"
	echo ""
	return 0
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  *)
	echo $"Usage: $0 {start|stop}"
	exit 3
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/wpa_supplicant                          0000755 0000000 0000000 00000003512 11524347735 025510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/cpuspeed                                0000755 0000000 0000000 00000025442 11524347730 024270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/netfs                                   0000755 0000000 0000000 00000012432 11524347732 023574  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/rpcsvcgssd                              0000755 0000000 0000000 00000006014 11524347734 024637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/ksmtuned                                0000755 0000000 0000000 00000003433 11524347732 024310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/sandbox                                 0000755 0000000 0000000 00000003242 11524347734 024114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/killall                                 0000755 0000000 0000000 00000001214 11524347731 024074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/rdisc                                   0000755 0000000 0000000 00000003027 11524347733 023562  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/httpd                                   0000755 0000000 0000000 00000006364 11524347731 023606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/ntpd                                    0000755 0000000 0000000 00000003603 11524347733 023423  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/smartd                                  0000755 0000000 0000000 00000005672 11524347734 023761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/ntpdate                                 0000755 0000000 0000000 00000003512 11524347733 024114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/etc/rc.d/init.d/microcode_ctl                           0000755 0000000 0000000 00000002221 11524347732 025256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/etc/hosts                                               0000644 0000000 0000000 00000033400 11524347725 021577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1	tb3-client03	localhost.localdomain	localhost
::1	tb3-client03	localhost6.localdomain6	localhost6

10.1.216.100	autobench tb3-autobench tb3-autobench.linuxperf9025.net
10.1.216.150	tb3-master
10.1.216.246	tb3-mako18

10.1.216.11		tb3-client01
10.1.216.12		tb3-client02
10.1.216.13		tb3-client03
10.1.216.14		tb3-client04

10.1.216.151		tb3-vct01	tb3-vct01.linuxperf9025.net
10.1.216.152		tb3-vct02	tb3-vct02.linuxperf9025.net
10.1.216.153		tb3-vct03	tb3-vct03.linuxperf9025.net
10.1.216.154		tb3-vct04	tb3-vct04.linuxperf9025.net
10.1.216.155		tb3-vct05	tb3-vct05.linuxperf9025.net
10.1.216.156		tb3-vct06	tb3-vct06.linuxperf9025.net
10.1.216.157		tb3-vct07	tb3-vct07.linuxperf9025.net
10.1.216.158		tb3-vct08	tb3-vct08.linuxperf9025.net
10.1.216.159		tb3-vct09	tb3-vct09.linuxperf9025.net
10.1.216.160		tb3-vct10	tb3-vct10.linuxperf9025.net
10.1.216.161		tb3-vct11	tb3-vct11.linuxperf9025.net
10.1.216.162		tb3-vct12	tb3-vct12.linuxperf9025.net
10.1.216.163		tb3-vct13	tb3-vct13.linuxperf9025.net
10.1.216.164		tb3-vct14	tb3-vct14.linuxperf9025.net
10.1.216.165		tb3-vct15	tb3-vct15.linuxperf9025.net
10.1.216.166		tb3-vct16	tb3-vct16.linuxperf9025.net
10.1.216.167		tb3-vct17	tb3-vct17.linuxperf9025.net
10.1.216.168		tb3-vct18	tb3-vct18.linuxperf9025.net
10.1.216.169		tb3-vct19	tb3-vct19.linuxperf9025.net
10.1.216.170		tb3-vct20	tb3-vct20.linuxperf9025.net
10.1.216.171		tb3-vct21	tb3-vct21.linuxperf9025.net
10.1.216.172		tb3-vct22	tb3-vct22.linuxperf9025.net
10.1.216.173		tb3-vct23	tb3-vct23.linuxperf9025.net
10.1.216.174		tb3-vct24	tb3-vct24.linuxperf9025.net
10.1.216.175		tb3-vct25	tb3-vct25.linuxperf9025.net
10.1.216.176		tb3-vct26	tb3-vct26.linuxperf9025.net
10.1.216.177		tb3-vct27	tb3-vct27.linuxperf9025.net
10.1.216.178		tb3-vct28	tb3-vct28.linuxperf9025.net
10.1.216.179		tb3-vct29	tb3-vct29.linuxperf9025.net
10.1.216.180		tb3-vct30	tb3-vct30.linuxperf9025.net
10.1.216.181		tb3-vct31	tb3-vct31.linuxperf9025.net
10.1.216.182		tb3-vct32	tb3-vct32.linuxperf9025.net
10.1.216.183		tb3-vct33	tb3-vct33.linuxperf9025.net
10.1.216.184		tb3-vct34	tb3-vct34.linuxperf9025.net
10.1.216.185		tb3-vct35	tb3-vct35.linuxperf9025.net
10.1.216.186		tb3-vct36	tb3-vct36.linuxperf9025.net

10.1.217.1		tb3-webt01	tb3-webt01.linuxperf9025.net
10.1.217.2		tb3-appt01	tb3-appt01.linuxperf9025.net
10.1.217.3		tb3-dbt01	tb3-dbt01.linuxperf9025.net
10.1.217.4		tb3-idlet01	tb3-idlet01.linuxperf9025.net
10.1.217.5		tb3-infrat01	tb3-infrat01.linuxperf9025.net
10.1.217.6		tb3-mailt01	tb3-mailt01.linuxperf9025.net
10.1.217.7		tb3-webt02	tb3-webt02.linuxperf9025.net
10.1.217.8		tb3-appt02	tb3-appt02.linuxperf9025.net
10.1.217.9		tb3-dbt02	tb3-dbt02.linuxperf9025.net
10.1.217.10		tb3-idlet02	tb3-idlet02.linuxperf9025.net
10.1.217.11		tb3-infrat02	tb3-infrat02.linuxperf9025.net
10.1.217.12		tb3-mailt02	tb3-mailt02.linuxperf9025.net
10.1.217.13		tb3-webt03	tb3-webt03.linuxperf9025.net
10.1.217.14		tb3-appt03	tb3-appt03.linuxperf9025.net
10.1.217.15		tb3-dbt03	tb3-dbt03.linuxperf9025.net
10.1.217.16		tb3-idlet03	tb3-idlet03.linuxperf9025.net
10.1.217.17		tb3-infrat03	tb3-infrat03.linuxperf9025.net
10.1.217.18		tb3-mailt03	tb3-mailt03.linuxperf9025.net
10.1.217.19		tb3-webt04	tb3-webt04.linuxperf9025.net
10.1.217.20		tb3-appt04	tb3-appt04.linuxperf9025.net
10.1.217.21		tb3-dbt04	tb3-dbt04.linuxperf9025.net
10.1.217.22		tb3-idlet04	tb3-idlet04.linuxperf9025.net
10.1.217.23		tb3-infrat04	tb3-infrat04.linuxperf9025.net
10.1.217.24		tb3-mailt04	tb3-mailt04.linuxperf9025.net
10.1.217.25		tb3-webt05	tb3-webt05.linuxperf9025.net
10.1.217.26		tb3-appt05	tb3-appt05.linuxperf9025.net
10.1.217.27		tb3-dbt05	tb3-dbt05.linuxperf9025.net
10.1.217.28		tb3-idlet05	tb3-idlet05.linuxperf9025.net
10.1.217.29		tb3-infrat05	tb3-infrat05.linuxperf9025.net
10.1.217.30		tb3-mailt05	tb3-mailt05.linuxperf9025.net
10.1.217.31		tb3-webt06	tb3-webt06.linuxperf9025.net
10.1.217.32		tb3-appt06	tb3-appt06.linuxperf9025.net
10.1.217.33		tb3-dbt06	tb3-dbt06.linuxperf9025.net
10.1.217.34		tb3-idlet06	tb3-idlet06.linuxperf9025.net
10.1.217.35		tb3-infrat06	tb3-infrat06.linuxperf9025.net
10.1.217.36		tb3-mailt06	tb3-mailt06.linuxperf9025.net
10.1.217.37		tb3-webt07	tb3-webt07.linuxperf9025.net
10.1.217.38		tb3-appt07	tb3-appt07.linuxperf9025.net
10.1.217.39		tb3-dbt07	tb3-dbt07.linuxperf9025.net
10.1.217.40		tb3-idlet07	tb3-idlet07.linuxperf9025.net
10.1.217.41		tb3-infrat07	tb3-infrat07.linuxperf9025.net
10.1.217.42		tb3-mailt07	tb3-mailt07.linuxperf9025.net
10.1.217.43		tb3-webt08	tb3-webt08.linuxperf9025.net
10.1.217.44		tb3-appt08	tb3-appt08.linuxperf9025.net
10.1.217.45		tb3-dbt08	tb3-dbt08.linuxperf9025.net
10.1.217.46		tb3-idlet08	tb3-idlet08.linuxperf9025.net
10.1.217.47		tb3-infrat08	tb3-infrat08.linuxperf9025.net
10.1.217.48		tb3-mailt08	tb3-mailt08.linuxperf9025.net
10.1.217.49		tb3-webt09	tb3-webt09.linuxperf9025.net
10.1.217.50		tb3-appt09	tb3-appt09.linuxperf9025.net
10.1.217.51		tb3-dbt09	tb3-dbt09.linuxperf9025.net
10.1.217.52		tb3-idlet09	tb3-idlet09.linuxperf9025.net
10.1.217.53		tb3-infrat09	tb3-infrat09.linuxperf9025.net
10.1.217.54		tb3-mailt09	tb3-mailt09.linuxperf9025.net
10.1.217.55		tb3-webt10	tb3-webt10.linuxperf9025.net
10.1.217.56		tb3-appt10	tb3-appt10.linuxperf9025.net
10.1.217.57		tb3-dbt10	tb3-dbt10.linuxperf9025.net
10.1.217.58		tb3-idlet10	tb3-idlet10.linuxperf9025.net
10.1.217.59		tb3-infrat10	tb3-infrat10.linuxperf9025.net
10.1.217.60		tb3-mailt10	tb3-mailt10.linuxperf9025.net
10.1.217.61		tb3-webt11	tb3-webt11.linuxperf9025.net
10.1.217.62		tb3-appt11	tb3-appt11.linuxperf9025.net
10.1.217.63		tb3-dbt11	tb3-dbt11.linuxperf9025.net
10.1.217.64		tb3-idlet11	tb3-idlet11.linuxperf9025.net
10.1.217.65		tb3-infrat11	tb3-infrat11.linuxperf9025.net
10.1.217.66		tb3-mailt11	tb3-mailt11.linuxperf9025.net
10.1.217.67		tb3-webt12	tb3-webt12.linuxperf9025.net
10.1.217.68		tb3-appt12	tb3-appt12.linuxperf9025.net
10.1.217.69		tb3-dbt12	tb3-dbt12.linuxperf9025.net
10.1.217.70		tb3-idlet12	tb3-idlet12.linuxperf9025.net
10.1.217.71		tb3-infrat12	tb3-infrat12.linuxperf9025.net
10.1.217.72		tb3-mailt12	tb3-mailt12.linuxperf9025.net
10.1.217.73		tb3-webt13	tb3-webt13.linuxperf9025.net
10.1.217.74		tb3-appt13	tb3-appt13.linuxperf9025.net
10.1.217.75		tb3-dbt13	tb3-dbt13.linuxperf9025.net
10.1.217.76		tb3-idlet13	tb3-idlet13.linuxperf9025.net
10.1.217.77		tb3-infrat13	tb3-infrat13.linuxperf9025.net
10.1.217.78		tb3-mailt13	tb3-mailt13.linuxperf9025.net
10.1.217.79		tb3-webt14	tb3-webt14.linuxperf9025.net
10.1.217.80		tb3-appt14	tb3-appt14.linuxperf9025.net
10.1.217.81		tb3-dbt14	tb3-dbt14.linuxperf9025.net
10.1.217.82		tb3-idlet14	tb3-idlet14.linuxperf9025.net
10.1.217.83		tb3-infrat14	tb3-infrat14.linuxperf9025.net
10.1.217.84		tb3-mailt14	tb3-mailt14.linuxperf9025.net
10.1.217.85		tb3-webt15	tb3-webt15.linuxperf9025.net
10.1.217.86		tb3-appt15	tb3-appt15.linuxperf9025.net
10.1.217.87		tb3-dbt15	tb3-dbt15.linuxperf9025.net
10.1.217.88		tb3-idlet15	tb3-idlet15.linuxperf9025.net
10.1.217.89		tb3-infrat15	tb3-infrat15.linuxperf9025.net
10.1.217.90		tb3-mailt15	tb3-mailt15.linuxperf9025.net
10.1.217.91		tb3-webt16	tb3-webt16.linuxperf9025.net
10.1.217.92		tb3-appt16	tb3-appt16.linuxperf9025.net
10.1.217.93		tb3-dbt16	tb3-dbt16.linuxperf9025.net
10.1.217.94		tb3-idlet16	tb3-idlet16.linuxperf9025.net
10.1.217.95		tb3-infrat16	tb3-infrat16.linuxperf9025.net
10.1.217.96		tb3-mailt16	tb3-mailt16.linuxperf9025.net
10.1.217.97		tb3-webt17	tb3-webt17.linuxperf9025.net
10.1.217.98		tb3-appt17	tb3-appt17.linuxperf9025.net
10.1.217.99		tb3-dbt17	tb3-dbt17.linuxperf9025.net
10.1.217.100		tb3-idlet17	tb3-idlet17.linuxperf9025.net
10.1.217.101		tb3-infrat17	tb3-infrat17.linuxperf9025.net
10.1.217.102		tb3-mailt17	tb3-mailt17.linuxperf9025.net
10.1.217.103		tb3-webt18	tb3-webt18.linuxperf9025.net
10.1.217.104		tb3-appt18	tb3-appt18.linuxperf9025.net
10.1.217.105		tb3-dbt18	tb3-dbt18.linuxperf9025.net
10.1.217.106		tb3-idlet18	tb3-idlet18.linuxperf9025.net
10.1.217.107		tb3-infrat18	tb3-infrat18.linuxperf9025.net
10.1.217.108		tb3-mailt18	tb3-mailt18.linuxperf9025.net
10.1.217.109		tb3-webt19	tb3-webt19.linuxperf9025.net
10.1.217.110		tb3-appt19	tb3-appt19.linuxperf9025.net
10.1.217.111		tb3-dbt19	tb3-dbt19.linuxperf9025.net
10.1.217.112		tb3-idlet19	tb3-idlet19.linuxperf9025.net
10.1.217.113		tb3-infrat19	tb3-infrat19.linuxperf9025.net
10.1.217.114		tb3-mailt19	tb3-mailt19.linuxperf9025.net
10.1.217.115		tb3-webt20	tb3-webt20.linuxperf9025.net
10.1.217.116		tb3-appt20	tb3-appt20.linuxperf9025.net
10.1.217.117		tb3-dbt20	tb3-dbt20.linuxperf9025.net
10.1.217.118		tb3-idlet20	tb3-idlet20.linuxperf9025.net
10.1.217.119		tb3-infrat20	tb3-infrat20.linuxperf9025.net
10.1.217.120		tb3-mailt20	tb3-mailt20.linuxperf9025.net
10.1.217.121		tb3-webt21	tb3-webt21.linuxperf9025.net
10.1.217.122		tb3-appt21	tb3-appt21.linuxperf9025.net
10.1.217.123		tb3-dbt21	tb3-dbt21.linuxperf9025.net
10.1.217.124		tb3-idlet21	tb3-idlet21.linuxperf9025.net
10.1.217.125		tb3-infrat21	tb3-infrat21.linuxperf9025.net
10.1.217.126		tb3-mailt21	tb3-mailt21.linuxperf9025.net
10.1.217.127		tb3-webt22	tb3-webt22.linuxperf9025.net
10.1.217.128		tb3-appt22	tb3-appt22.linuxperf9025.net
10.1.217.129		tb3-dbt22	tb3-dbt22.linuxperf9025.net
10.1.217.130		tb3-idlet22	tb3-idlet22.linuxperf9025.net
10.1.217.131		tb3-infrat22	tb3-infrat22.linuxperf9025.net
10.1.217.132		tb3-mailt22	tb3-mailt22.linuxperf9025.net
10.1.217.133		tb3-webt23	tb3-webt23.linuxperf9025.net
10.1.217.134		tb3-appt23	tb3-appt23.linuxperf9025.net
10.1.217.135		tb3-dbt23	tb3-dbt23.linuxperf9025.net
10.1.217.136		tb3-idlet23	tb3-idlet23.linuxperf9025.net
10.1.217.137		tb3-infrat23	tb3-infrat23.linuxperf9025.net
10.1.217.138		tb3-mailt23	tb3-mailt23.linuxperf9025.net
10.1.217.139		tb3-webt24	tb3-webt24.linuxperf9025.net
10.1.217.140		tb3-appt24	tb3-appt24.linuxperf9025.net
10.1.217.141		tb3-dbt24	tb3-dbt24.linuxperf9025.net
10.1.217.142		tb3-idlet24	tb3-idlet24.linuxperf9025.net
10.1.217.143		tb3-infrat24	tb3-infrat24.linuxperf9025.net
10.1.217.144		tb3-mailt24	tb3-mailt24.linuxperf9025.net
10.1.217.145		tb3-webt25	tb3-webt25.linuxperf9025.net
10.1.217.146		tb3-appt25	tb3-appt25.linuxperf9025.net
10.1.217.147		tb3-dbt25	tb3-dbt25.linuxperf9025.net
10.1.217.148		tb3-idlet25	tb3-idlet25.linuxperf9025.net
10.1.217.149		tb3-infrat25	tb3-infrat25.linuxperf9025.net
10.1.217.150		tb3-mailt25	tb3-mailt25.linuxperf9025.net
10.1.217.151		tb3-webt26	tb3-webt26.linuxperf9025.net
10.1.217.152		tb3-appt26	tb3-appt26.linuxperf9025.net
10.1.217.153		tb3-dbt26	tb3-dbt26.linuxperf9025.net
10.1.217.154		tb3-idlet26	tb3-idlet26.linuxperf9025.net
10.1.217.155		tb3-infrat26	tb3-infrat26.linuxperf9025.net
10.1.217.156		tb3-mailt26	tb3-mailt26.linuxperf9025.net
10.1.217.157		tb3-webt27	tb3-webt27.linuxperf9025.net
10.1.217.158		tb3-appt27	tb3-appt27.linuxperf9025.net
10.1.217.159		tb3-dbt27	tb3-dbt27.linuxperf9025.net
10.1.217.160		tb3-idlet27	tb3-idlet27.linuxperf9025.net
10.1.217.161		tb3-infrat27	tb3-infrat27.linuxperf9025.net
10.1.217.162		tb3-mailt27	tb3-mailt27.linuxperf9025.net
10.1.217.163		tb3-webt28	tb3-webt28.linuxperf9025.net
10.1.217.164		tb3-appt28	tb3-appt28.linuxperf9025.net
10.1.217.165		tb3-dbt28	tb3-dbt28.linuxperf9025.net
10.1.217.166		tb3-idlet28	tb3-idlet28.linuxperf9025.net
10.1.217.167		tb3-infrat28	tb3-infrat28.linuxperf9025.net
10.1.217.168		tb3-mailt28	tb3-mailt28.linuxperf9025.net
10.1.217.169		tb3-webt29	tb3-webt29.linuxperf9025.net
10.1.217.170		tb3-appt29	tb3-appt29.linuxperf9025.net
10.1.217.171		tb3-dbt29	tb3-dbt29.linuxperf9025.net
10.1.217.172		tb3-idlet29	tb3-idlet29.linuxperf9025.net
10.1.217.173		tb3-infrat29	tb3-infrat29.linuxperf9025.net
10.1.217.174		tb3-mailt29	tb3-mailt29.linuxperf9025.net
10.1.217.175		tb3-webt30	tb3-webt30.linuxperf9025.net
10.1.217.176		tb3-appt30	tb3-appt30.linuxperf9025.net
10.1.217.177		tb3-dbt30	tb3-dbt30.linuxperf9025.net
10.1.217.178		tb3-idlet30	tb3-idlet30.linuxperf9025.net
10.1.217.179		tb3-infrat30	tb3-infrat30.linuxperf9025.net
10.1.217.180		tb3-mailt30	tb3-mailt30.linuxperf9025.net
10.1.217.181		tb3-webt31	tb3-webt31.linuxperf9025.net
10.1.217.182		tb3-appt31	tb3-appt31.linuxperf9025.net
10.1.217.183		tb3-dbt31	tb3-dbt31.linuxperf9025.net
10.1.217.184		tb3-idlet31	tb3-idlet31.linuxperf9025.net
10.1.217.185		tb3-infrat31	tb3-infrat31.linuxperf9025.net
10.1.217.186		tb3-mailt31	tb3-mailt31.linuxperf9025.net
10.1.217.187		tb3-webt32	tb3-webt32.linuxperf9025.net
10.1.217.188		tb3-appt32	tb3-appt32.linuxperf9025.net
10.1.217.189		tb3-dbt32	tb3-dbt32.linuxperf9025.net
10.1.217.190		tb3-idlet32	tb3-idlet32.linuxperf9025.net
10.1.217.191		tb3-infrat32	tb3-infrat32.linuxperf9025.net
10.1.217.192		tb3-mailt32	tb3-mailt32.linuxperf9025.net
10.1.217.193		tb3-webt33	tb3-webt33.linuxperf9025.net
10.1.217.194		tb3-appt33	tb3-appt33.linuxperf9025.net
10.1.217.195		tb3-dbt33	tb3-dbt33.linuxperf9025.net
10.1.217.196		tb3-idlet33	tb3-idlet33.linuxperf9025.net
10.1.217.197		tb3-infrat33	tb3-infrat33.linuxperf9025.net
10.1.217.198		tb3-mailt33	tb3-mailt33.linuxperf9025.net
10.1.217.199		tb3-webt34	tb3-webt34.linuxperf9025.net
10.1.217.200		tb3-appt34	tb3-appt34.linuxperf9025.net
10.1.217.201		tb3-dbt34	tb3-dbt34.linuxperf9025.net
10.1.217.202		tb3-idlet34	tb3-idlet34.linuxperf9025.net
10.1.217.203		tb3-infrat34	tb3-infrat34.linuxperf9025.net
10.1.217.204		tb3-mailt34	tb3-mailt34.linuxperf9025.net
10.1.217.205		tb3-webt35	tb3-webt35.linuxperf9025.net
10.1.217.206		tb3-appt35	tb3-appt35.linuxperf9025.net
10.1.217.207		tb3-dbt35	tb3-dbt35.linuxperf9025.net
10.1.217.208		tb3-idlet35	tb3-idlet35.linuxperf9025.net
10.1.217.209		tb3-infrat35	tb3-infrat35.linuxperf9025.net
10.1.217.210		tb3-mailt35	tb3-mailt35.linuxperf9025.net
10.1.217.211		tb3-webt36	tb3-webt36.linuxperf9025.net
10.1.217.212		tb3-appt36	tb3-appt36.linuxperf9025.net
10.1.217.213		tb3-dbt36	tb3-dbt36.linuxperf9025.net
10.1.217.214		tb3-idlet36	tb3-idlet36.linuxperf9025.net
10.1.217.215		tb3-infrat36	tb3-infrat36.linuxperf9025.net
10.1.217.216		tb3-mailt36	tb3-mailt36.linuxperf9025.net
                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/etc/iproute2/                                           0000777 0000000 0000000 00000000000 11524347725 022271  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/etc/iproute2/rt_dsfield                                 0000644 0000000 0000000 00000000672 11524347725 024334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client03/etc/iproute2/rt_realms                                  0000644 0000000 0000000 00000000160 11524347725 024175  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/etc/iproute2/rt_scopes                                  0000644 0000000 0000000 00000000134 11524347725 024207  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/etc/iproute2/ematch_map                                 0000644 0000000 0000000 00000000073 11524347725 024306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/etc/iproute2/rt_tables                                  0000644 0000000 0000000 00000000127 11524347726 024170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/etc/iproute2/rt_protos                                  0000644 0000000 0000000 00000000475 11524347725 024251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/etc/nsswitch.conf                                       0000644 0000000 0000000 00000003230 11524347726 023224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/etc/kvm/                                                0000777 0000000 0000000 00000000000 11524347726 021316  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/etc/kvm/qemu-ifup-br2                                   0000755 0000000 0000000 00000000145 11524347726 023633  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br2


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/etc/kvm/qemu-ifup-br5                                   0000755 0000000 0000000 00000000145 11524347726 023636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br5


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/etc/kvm/qemu-ifup-br6                                   0000755 0000000 0000000 00000000145 11524347726 023637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br6


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/etc/kvm/qemu-ifup-br0                                   0000755 0000000 0000000 00000000143 11524347726 023627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br0
ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/etc/kvm/qemu-ifup-br3                                   0000755 0000000 0000000 00000000145 11524347726 023634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br3


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/etc/kvm/qemu-ifup-br4                                   0000755 0000000 0000000 00000000145 11524347726 023635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br4


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/etc/kvm/qemu-ifup-br1                                   0000755 0000000 0000000 00000000143 11524347726 023630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br1
ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/etc/fstab                                               0000644 0000000 0000000 00000001642 11524347725 021541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Thu Nov 11 00:33:53 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_tb3client03-lv_root /                       ext4    defaults        1 1
UUID=e5adcdb8-2374-4f4d-8a6e-8f0273d5e9a5 /boot                   ext4    defaults        1 2
UUID=DC97-C606          /boot/efi               vfat    umask=0077,shortname=winnt 0 0
/dev/mapper/vg_tb3client03-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
10.1.216.100:/RHEL6x64  /RHEL6x64		nfs	defaults	0 0
                                                                                              Physical_Configuration/Clients/tb3-client03/etc/sysctl.conf                                         0000644 0000000 0000000 00000001466 11524347743 022713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/etc/inittab                                             0000644 0000000 0000000 00000001564 11524347725 022077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:5:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client03/var/                                                    0000777 0000000 0000000 00000000000 11524350072 020522  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/var/log/                                                0000777 0000000 0000000 00000000000 11524350072 021303  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/var/log/dmesg                                           0000644 0000000 0000000 00000203672 11524350072 022333  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=/dev/mapper/vg_tb3client03-lv_root rd_LVM_LV=vg_tb3client03/lv_root rd_LVM_LV=vg_tb3client03/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000006c000 (usable)
 BIOS-e820: 000000000006c000 - 000000000006d000 (ACPI NVS)
 BIOS-e820: 000000000006d000 - 000000000009f000 (usable)
 BIOS-e820: 000000000009f000 - 00000000000a0000 (ACPI NVS)
 BIOS-e820: 0000000000100000 - 000000007d3f4000 (usable)
 BIOS-e820: 000000007d3f4000 - 000000007d41e000 (reserved)
 BIOS-e820: 000000007d41e000 - 000000007d448000 (usable)
 BIOS-e820: 000000007d448000 - 000000007d472000 (reserved)
 BIOS-e820: 000000007d472000 - 000000007d84d000 (usable)
 BIOS-e820: 000000007d84d000 - 000000007d8fd000 (reserved)
 BIOS-e820: 000000007d8fd000 - 000000007f5ef000 (usable)
 BIOS-e820: 000000007f5ef000 - 000000007f6df000 (reserved)
 BIOS-e820: 000000007f6df000 - 000000007f7df000 (ACPI NVS)
 BIOS-e820: 000000007f7df000 - 000000007f7ff000 (ACPI data)
 BIOS-e820: 000000007f7ff000 - 000000007f800000 (usable)
 BIOS-e820: 0000000080000000 - 0000000090000000 (reserved)
 BIOS-e820: 00000000fed1c000 - 00000000fed20000 (reserved)
 BIOS-e820: 00000000ff800000 - 0000000100000000 (reserved)
 BIOS-e820: 0000000100000000 - 0000000880000000 (usable)
EFI v2.10 by IBM
 ACPI 2.0=0x7f7fe014  SMBIOS=0x7f6be000 
Kernel-defined memdesc doesn't match the one from EFI!
EFI: mem00: type=3, attr=0xf, range=[0x0000000000000000-0x0000000000001000) (0MB)
EFI: mem01: type=7, attr=0xf, range=[0x0000000000001000-0x000000000001e000) (0MB)
EFI: mem02: type=2, attr=0xf, range=[0x000000000001e000-0x0000000000020000) (0MB)
EFI: mem03: type=3, attr=0xf, range=[0x0000000000020000-0x000000000006c000) (0MB)
EFI: mem04: type=10, attr=0xf, range=[0x000000000006c000-0x000000000006d000) (0MB)
EFI: mem05: type=4, attr=0xf, range=[0x000000000006d000-0x000000000006e000) (0MB)
EFI: mem06: type=3, attr=0xf, range=[0x000000000006e000-0x000000000009f000) (0MB)
EFI: mem07: type=10, attr=0xf, range=[0x000000000009f000-0x00000000000a0000) (0MB)
EFI: mem08: type=7, attr=0xf, range=[0x0000000000100000-0x0000000000400000) (3MB)
EFI: mem09: type=3, attr=0xf, range=[0x0000000000400000-0x000000000044c000) (0MB)
EFI: mem10: type=7, attr=0xf, range=[0x000000000044c000-0x0000000000800000) (3MB)
EFI: mem11: type=3, attr=0xf, range=[0x0000000000800000-0x0000000001000000) (8MB)
EFI: mem12: type=7, attr=0xf, range=[0x0000000001000000-0x000000007a078000) (1936MB)
EFI: mem13: type=2, attr=0xf, range=[0x000000007a078000-0x000000007b4d0000) (20MB)
EFI: mem14: type=4, attr=0xf, range=[0x000000007b4d0000-0x000000007bed2000) (10MB)
EFI: mem15: type=2, attr=0xf, range=[0x000000007bed2000-0x000000007c2d2000) (4MB)
EFI: mem16: type=1, attr=0xf, range=[0x000000007c2d2000-0x000000007c30e000) (0MB)
EFI: mem17: type=7, attr=0xf, range=[0x000000007c30e000-0x000000007c33e000) (0MB)
EFI: mem18: type=2, attr=0xf, range=[0x000000007c33e000-0x000000007c347000) (0MB)
EFI: mem19: type=4, attr=0xf, range=[0x000000007c347000-0x000000007c35d000) (0MB)
EFI: mem20: type=2, attr=0xf, range=[0x000000007c35d000-0x000000007c532000) (1MB)
EFI: mem21: type=4, attr=0xf, range=[0x000000007c532000-0x000000007c6fd000) (1MB)
EFI: mem22: type=3, attr=0xf, range=[0x000000007c6fd000-0x000000007c6fe000) (0MB)
EFI: mem23: type=4, attr=0xf, range=[0x000000007c6fe000-0x000000007d3bc000) (12MB)
EFI: mem24: type=2, attr=0xf, range=[0x000000007d3bc000-0x000000007d3bd000) (0MB)
EFI: mem25: type=4, attr=0xf, range=[0x000000007d3bd000-0x000000007d3c4000) (0MB)
EFI: mem26: type=2, attr=0xf, range=[0x000000007d3c4000-0x000000007d3c6000) (0MB)
EFI: mem27: type=4, attr=0xf, range=[0x000000007d3c6000-0x000000007d3d9000) (0MB)
EFI: mem28: type=3, attr=0xf, range=[0x000000007d3d9000-0x000000007d3e6000) (0MB)
EFI: mem29: type=4, attr=0xf, range=[0x000000007d3e6000-0x000000007d3f4000) (0MB)
EFI: mem30: type=5, attr=0x800000000000000f, range=[0x000000007d3f4000-0x000000007d41e000) (0MB)
EFI: mem31: type=4, attr=0xf, range=[0x000000007d41e000-0x000000007d448000) (0MB)
EFI: mem32: type=5, attr=0x800000000000000f, range=[0x000000007d448000-0x000000007d472000) (0MB)
EFI: mem33: type=4, attr=0xf, range=[0x000000007d472000-0x000000007d476000) (0MB)
EFI: mem34: type=2, attr=0xf, range=[0x000000007d476000-0x000000007d477000) (0MB)
EFI: mem35: type=4, attr=0xf, range=[0x000000007d477000-0x000000007d52f000) (0MB)
EFI: mem36: type=3, attr=0xf, range=[0x000000007d52f000-0x000000007d531000) (0MB)
EFI: mem37: type=4, attr=0xf, range=[0x000000007d531000-0x000000007d533000) (0MB)
EFI: mem38: type=3, attr=0xf, range=[0x000000007d533000-0x000000007d534000) (0MB)
EFI: mem39: type=4, attr=0xf, range=[0x000000007d534000-0x000000007d814000) (2MB)
EFI: mem40: type=3, attr=0xf, range=[0x000000007d814000-0x000000007d81a000) (0MB)
EFI: mem41: type=4, attr=0xf, range=[0x000000007d81a000-0x000000007d823000) (0MB)
EFI: mem42: type=3, attr=0xf, range=[0x000000007d823000-0x000000007d82b000) (0MB)
EFI: mem43: type=4, attr=0xf, range=[0x000000007d82b000-0x000000007d84d000) (0MB)
EFI: mem44: type=0, attr=0xf, range=[0x000000007d84d000-0x000000007d8fd000) (0MB)
EFI: mem45: type=4, attr=0xf, range=[0x000000007d8fd000-0x000000007d917000) (0MB)
EFI: mem46: type=3, attr=0xf, range=[0x000000007d917000-0x000000007d91e000) (0MB)
EFI: mem47: type=4, attr=0xf, range=[0x000000007d91e000-0x000000007d986000) (0MB)
EFI: mem48: type=3, attr=0xf, range=[0x000000007d986000-0x000000007d98c000) (0MB)
EFI: mem49: type=4, attr=0xf, range=[0x000000007d98c000-0x000000007d993000) (0MB)
EFI: mem50: type=3, attr=0xf, range=[0x000000007d993000-0x000000007d995000) (0MB)
EFI: mem51: type=4, attr=0xf, range=[0x000000007d995000-0x000000007dab0000) (1MB)
EFI: mem52: type=3, attr=0xf, range=[0x000000007dab0000-0x000000007dabb000) (0MB)
EFI: mem53: type=4, attr=0xf, range=[0x000000007dabb000-0x000000007dac3000) (0MB)
EFI: mem54: type=3, attr=0xf, range=[0x000000007dac3000-0x000000007dad1000) (0MB)
EFI: mem55: type=4, attr=0xf, range=[0x000000007dad1000-0x000000007dad7000) (0MB)
EFI: mem56: type=3, attr=0xf, range=[0x000000007dad7000-0x000000007dae1000) (0MB)
EFI: mem57: type=4, attr=0xf, range=[0x000000007dae1000-0x000000007dae3000) (0MB)
EFI: mem58: type=3, attr=0xf, range=[0x000000007dae3000-0x000000007dae7000) (0MB)
EFI: mem59: type=4, attr=0xf, range=[0x000000007dae7000-0x000000007daeb000) (0MB)
EFI: mem60: type=3, attr=0xf, range=[0x000000007daeb000-0x000000007dafc000) (0MB)
EFI: mem61: type=4, attr=0xf, range=[0x000000007dafc000-0x000000007daff000) (0MB)
EFI: mem62: type=3, attr=0xf, range=[0x000000007daff000-0x000000007db09000) (0MB)
EFI: mem63: type=4, attr=0xf, range=[0x000000007db09000-0x000000007db0a000) (0MB)
EFI: mem64: type=3, attr=0xf, range=[0x000000007db0a000-0x000000007db21000) (0MB)
EFI: mem65: type=4, attr=0xf, range=[0x000000007db21000-0x000000007db23000) (0MB)
EFI: mem66: type=3, attr=0xf, range=[0x000000007db23000-0x000000007db27000) (0MB)
EFI: mem67: type=4, attr=0xf, range=[0x000000007db27000-0x000000007db29000) (0MB)
EFI: mem68: type=3, attr=0xf, range=[0x000000007db29000-0x000000007db2d000) (0MB)
EFI: mem69: type=4, attr=0xf, range=[0x000000007db2d000-0x000000007db30000) (0MB)
EFI: mem70: type=3, attr=0xf, range=[0x000000007db30000-0x000000007db3b000) (0MB)
EFI: mem71: type=4, attr=0xf, range=[0x000000007db3b000-0x000000007db3c000) (0MB)
EFI: mem72: type=3, attr=0xf, range=[0x000000007db3c000-0x000000007db42000) (0MB)
EFI: mem73: type=4, attr=0xf, range=[0x000000007db42000-0x000000007db43000) (0MB)
EFI: mem74: type=3, attr=0xf, range=[0x000000007db43000-0x000000007db4a000) (0MB)
EFI: mem75: type=4, attr=0xf, range=[0x000000007db4a000-0x000000007db4c000) (0MB)
EFI: mem76: type=3, attr=0xf, range=[0x000000007db4c000-0x000000007db53000) (0MB)
EFI: mem77: type=2, attr=0xf, range=[0x000000007db53000-0x000000007dd26000) (1MB)
EFI: mem78: type=4, attr=0xf, range=[0x000000007dd26000-0x000000007defd000) (1MB)
EFI: mem79: type=3, attr=0xf, range=[0x000000007defd000-0x000000007df5a000) (0MB)
EFI: mem80: type=4, attr=0xf, range=[0x000000007df5a000-0x000000007df5c000) (0MB)
EFI: mem81: type=3, attr=0xf, range=[0x000000007df5c000-0x000000007df5d000) (0MB)
EFI: mem82: type=4, attr=0xf, range=[0x000000007df5d000-0x000000007df5e000) (0MB)
EFI: mem83: type=3, attr=0xf, range=[0x000000007df5e000-0x000000007df62000) (0MB)
EFI: mem84: type=4, attr=0xf, range=[0x000000007df62000-0x000000007df67000) (0MB)
EFI: mem85: type=3, attr=0xf, range=[0x000000007df67000-0x000000007df76000) (0MB)
EFI: mem86: type=4, attr=0xf, range=[0x000000007df76000-0x000000007df77000) (0MB)
EFI: mem87: type=3, attr=0xf, range=[0x000000007df77000-0x000000007df7f000) (0MB)
EFI: mem88: type=4, attr=0xf, range=[0x000000007df7f000-0x000000007df82000) (0MB)
EFI: mem89: type=3, attr=0xf, range=[0x000000007df82000-0x000000007df86000) (0MB)
EFI: mem90: type=4, attr=0xf, range=[0x000000007df86000-0x000000007df87000) (0MB)
EFI: mem91: type=3, attr=0xf, range=[0x000000007df87000-0x000000007df90000) (0MB)
EFI: mem92: type=4, attr=0xf, range=[0x000000007df90000-0x000000007df91000) (0MB)
EFI: mem93: type=3, attr=0xf, range=[0x000000007df91000-0x000000007df98000) (0MB)
EFI: mem94: type=4, attr=0xf, range=[0x000000007df98000-0x000000007df9f000) (0MB)
EFI: mem95: type=3, attr=0xf, range=[0x000000007df9f000-0x000000007dfa8000) (0MB)
EFI: mem96: type=4, attr=0xf, range=[0x000000007dfa8000-0x000000007dfab000) (0MB)
EFI: mem97: type=3, attr=0xf, range=[0x000000007dfab000-0x000000007dfb7000) (0MB)
EFI: mem98: type=4, attr=0xf, range=[0x000000007dfb7000-0x000000007e06e000) (0MB)
EFI: mem99: type=3, attr=0xf, range=[0x000000007e06e000-0x000000007e075000) (0MB)
EFI: mem100: type=4, attr=0xf, range=[0x000000007e075000-0x000000007e078000) (0MB)
EFI: mem101: type=3, attr=0xf, range=[0x000000007e078000-0x000000007e08f000) (0MB)
EFI: mem102: type=4, attr=0xf, range=[0x000000007e08f000-0x000000007e090000) (0MB)
EFI: mem103: type=3, attr=0xf, range=[0x000000007e090000-0x000000007e092000) (0MB)
EFI: mem104: type=4, attr=0xf, range=[0x000000007e092000-0x000000007e094000) (0MB)
EFI: mem105: type=3, attr=0xf, range=[0x000000007e094000-0x000000007e09d000) (0MB)
EFI: mem106: type=4, attr=0xf, range=[0x000000007e09d000-0x000000007e09e000) (0MB)
EFI: mem107: type=3, attr=0xf, range=[0x000000007e09e000-0x000000007e0a6000) (0MB)
EFI: mem108: type=4, attr=0xf, range=[0x000000007e0a6000-0x000000007e0e6000) (0MB)
EFI: mem109: type=3, attr=0xf, range=[0x000000007e0e6000-0x000000007e101000) (0MB)
EFI: mem110: type=4, attr=0xf, range=[0x000000007e101000-0x000000007e108000) (0MB)
EFI: mem111: type=3, attr=0xf, range=[0x000000007e108000-0x000000007e109000) (0MB)
EFI: mem112: type=4, attr=0xf, range=[0x000000007e109000-0x000000007e10a000) (0MB)
EFI: mem113: type=3, attr=0xf, range=[0x000000007e10a000-0x000000007e10d000) (0MB)
EFI: mem114: type=4, attr=0xf, range=[0x000000007e10d000-0x000000007e114000) (0MB)
EFI: mem115: type=3, attr=0xf, range=[0x000000007e114000-0x000000007e116000) (0MB)
EFI: mem116: type=4, attr=0xf, range=[0x000000007e116000-0x000000007e118000) (0MB)
EFI: mem117: type=3, attr=0xf, range=[0x000000007e118000-0x000000007e11b000) (0MB)
EFI: mem118: type=4, attr=0xf, range=[0x000000007e11b000-0x000000007e11e000) (0MB)
EFI: mem119: type=3, attr=0xf, range=[0x000000007e11e000-0x000000007e121000) (0MB)
EFI: mem120: type=4, attr=0xf, range=[0x000000007e121000-0x000000007e521000) (4MB)
EFI: mem121: type=3, attr=0xf, range=[0x000000007e521000-0x000000007e528000) (0MB)
EFI: mem122: type=4, attr=0xf, range=[0x000000007e528000-0x000000007e52d000) (0MB)
EFI: mem123: type=3, attr=0xf, range=[0x000000007e52d000-0x000000007e52f000) (0MB)
EFI: mem124: type=4, attr=0xf, range=[0x000000007e52f000-0x000000007e532000) (0MB)
EFI: mem125: type=3, attr=0xf, range=[0x000000007e532000-0x000000007e534000) (0MB)
EFI: mem126: type=4, attr=0xf, range=[0x000000007e534000-0x000000007e53f000) (0MB)
EFI: mem127: type=3, attr=0xf, range=[0x000000007e53f000-0x000000007e540000) (0MB)
EFI: mem128: type=4, attr=0xf, range=[0x000000007e540000-0x000000007e542000) (0MB)
EFI: mem129: type=3, attr=0xf, range=[0x000000007e542000-0x000000007e543000) (0MB)
EFI: mem130: type=4, attr=0xf, range=[0x000000007e543000-0x000000007e567000) (0MB)
EFI: mem131: type=3, attr=0xf, range=[0x000000007e567000-0x000000007e56e000) (0MB)
EFI: mem132: type=4, attr=0xf, range=[0x000000007e56e000-0x000000007e572000) (0MB)
EFI: mem133: type=3, attr=0xf, range=[0x000000007e572000-0x000000007e574000) (0MB)
EFI: mem134: type=4, attr=0xf, range=[0x000000007e574000-0x000000007e577000) (0MB)
EFI: mem135: type=3, attr=0xf, range=[0x000000007e577000-0x000000007e578000) (0MB)
EFI: mem136: type=4, attr=0xf, range=[0x000000007e578000-0x000000007e57c000) (0MB)
EFI: mem137: type=3, attr=0xf, range=[0x000000007e57c000-0x000000007e57e000) (0MB)
EFI: mem138: type=4, attr=0xf, range=[0x000000007e57e000-0x000000007e584000) (0MB)
EFI: mem139: type=3, attr=0xf, range=[0x000000007e584000-0x000000007e588000) (0MB)
EFI: mem140: type=4, attr=0xf, range=[0x000000007e588000-0x000000007e5d1000) (0MB)
EFI: mem141: type=3, attr=0xf, range=[0x000000007e5d1000-0x000000007e5df000) (0MB)
EFI: mem142: type=4, attr=0xf, range=[0x000000007e5df000-0x000000007e641000) (0MB)
EFI: mem143: type=3, attr=0xf, range=[0x000000007e641000-0x000000007e663000) (0MB)
EFI: mem144: type=4, attr=0xf, range=[0x000000007e663000-0x000000007e66b000) (0MB)
EFI: mem145: type=3, attr=0xf, range=[0x000000007e66b000-0x000000007e66f000) (0MB)
EFI: mem146: type=4, attr=0xf, range=[0x000000007e66f000-0x000000007e670000) (0MB)
EFI: mem147: type=3, attr=0xf, range=[0x000000007e670000-0x000000007e673000) (0MB)
EFI: mem148: type=4, attr=0xf, range=[0x000000007e673000-0x000000007e6be000) (0MB)
EFI: mem149: type=3, attr=0xf, range=[0x000000007e6be000-0x000000007e6dc000) (0MB)
EFI: mem150: type=4, attr=0xf, range=[0x000000007e6dc000-0x000000007e6e3000) (0MB)
EFI: mem151: type=3, attr=0xf, range=[0x000000007e6e3000-0x000000007e6e4000) (0MB)
EFI: mem152: type=4, attr=0xf, range=[0x000000007e6e4000-0x000000007e6ee000) (0MB)
EFI: mem153: type=3, attr=0xf, range=[0x000000007e6ee000-0x000000007e6f6000) (0MB)
EFI: mem154: type=4, attr=0xf, range=[0x000000007e6f6000-0x000000007e6fe000) (0MB)
EFI: mem155: type=3, attr=0xf, range=[0x000000007e6fe000-0x000000007e70a000) (0MB)
EFI: mem156: type=4, attr=0xf, range=[0x000000007e70a000-0x000000007e710000) (0MB)
EFI: mem157: type=3, attr=0xf, range=[0x000000007e710000-0x000000007e71c000) (0MB)
EFI: mem158: type=4, attr=0xf, range=[0x000000007e71c000-0x000000007e71e000) (0MB)
EFI: mem159: type=3, attr=0xf, range=[0x000000007e71e000-0x000000007e721000) (0MB)
EFI: mem160: type=4, attr=0xf, range=[0x000000007e721000-0x000000007e722000) (0MB)
EFI: mem161: type=3, attr=0xf, range=[0x000000007e722000-0x000000007e72b000) (0MB)
EFI: mem162: type=4, attr=0xf, range=[0x000000007e72b000-0x000000007e72c000) (0MB)
EFI: mem163: type=3, attr=0xf, range=[0x000000007e72c000-0x000000007e72d000) (0MB)
EFI: mem164: type=4, attr=0xf, range=[0x000000007e72d000-0x000000007e72e000) (0MB)
EFI: mem165: type=3, attr=0xf, range=[0x000000007e72e000-0x000000007e732000) (0MB)
EFI: mem166: type=4, attr=0xf, range=[0x000000007e732000-0x000000007e733000) (0MB)
EFI: mem167: type=3, attr=0xf, range=[0x000000007e733000-0x000000007e734000) (0MB)
EFI: mem168: type=4, attr=0xf, range=[0x000000007e734000-0x000000007e737000) (0MB)
EFI: mem169: type=3, attr=0xf, range=[0x000000007e737000-0x000000007e73c000) (0MB)
EFI: mem170: type=4, attr=0xf, range=[0x000000007e73c000-0x000000007e73e000) (0MB)
EFI: mem171: type=3, attr=0xf, range=[0x000000007e73e000-0x000000007e741000) (0MB)
EFI: mem172: type=4, attr=0xf, range=[0x000000007e741000-0x000000007e772000) (0MB)
EFI: mem173: type=3, attr=0xf, range=[0x000000007e772000-0x000000007e773000) (0MB)
EFI: mem174: type=4, attr=0xf, range=[0x000000007e773000-0x000000007f5ef000) (14MB)
EFI: mem175: type=6, attr=0x800000000000000f, range=[0x000000007f5ef000-0x000000007f5f5000) (0MB)
EFI: mem176: type=6, attr=0x800000000000000f, range=[0x000000007f5f5000-0x000000007f601000) (0MB)
EFI: mem177: type=5, attr=0x800000000000000f, range=[0x000000007f601000-0x000000007f60d000) (0MB)
EFI: mem178: type=6, attr=0x800000000000000f, range=[0x000000007f60d000-0x000000007f63f000) (0MB)
EFI: mem179: type=5, attr=0x800000000000000f, range=[0x000000007f63f000-0x000000007f68f000) (0MB)
EFI: mem180: type=0, attr=0xf, range=[0x000000007f68f000-0x000000007f6bd000) (0MB)
EFI: mem181: type=0, attr=0xf, range=[0x000000007f6bd000-0x000000007f6df000) (0MB)
EFI: mem182: type=10, attr=0xf, range=[0x000000007f6df000-0x000000007f72c000) (0MB)
EFI: mem183: type=10, attr=0xf, range=[0x000000007f72c000-0x000000007f7df000) (0MB)
EFI: mem184: type=9, attr=0xf, range=[0x000000007f7df000-0x000000007f7e9000) (0MB)
EFI: mem185: type=9, attr=0xf, range=[0x000000007f7e9000-0x000000007f7ff000) (0MB)
EFI: mem186: type=4, attr=0xf, range=[0x000000007f7ff000-0x000000007f800000) (0MB)
EFI: mem187: type=11, attr=0x8000000000000001, range=[0x00000000ff800000-0x0000000100000000) (8MB)
EFI: mem188: type=7, attr=0xf, range=[0x0000000100000000-0x0000000880000000) (30720MB)
EFI: mem189: type=11, attr=0x8000000000000001, range=[0x0000000080000000-0x0000000090000000) (256MB)
EFI: mem190: type=11, attr=0x8000000000000000, range=[0x00000000fed1c000-0x00000000fed20000) (0MB)
DMI 2.5 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x880000 max_arch_pfn = 0x400000000
MTRR default type: uncachable
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-FFFFF uncachable
MTRR variable ranges enabled:
  0 base 0000000000 mask FF80000000 write-back
  1 base 0100000000 mask FF00000000 write-back
  2 base 0200000000 mask FE00000000 write-back
  3 base 0400000000 mask FC00000000 write-back
  4 base 0800000000 mask F800000000 write-back
  5 disabled
  6 disabled
  7 disabled
x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
e820 update range: 0000000080000000 - 0000000100000000 (usable) ==> (reserved)
last_pfn = 0x7f800 max_arch_pfn = 0x400000000
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007f800000
 0000000000 - 007f800000 page 2M
kernel direct mapping tables up to 7f800000 @ 8000-b000
init_memory_mapping: 0000000100000000-0000000880000000
 0100000000 - 0880000000 page 2M
kernel direct mapping tables up to 880000000 @ 9000-2c000
RAMDISK: 7a078000 - 7adadbd8
ACPI: RSDP 000000007f7fe014 00024 (v02 IBM   )
ACPI: XSDT 000000007f7fe120 00094 (v01 IBM    THURLEY  00000000      01000013)
ACPI: FACP 000000007f7fb000 000F4 (v04 IBM    THURLEY  00000000 IBM  01000013)
ACPI Warning: Invalid length for Pm1aControlBlock: 32, using default 16 (20090903/tbfadt-607)
ACPI: DSDT 000000007f7f8000 02BF3 (v01 IBM    THURLEY  00000003 IBM  01000013)
ACPI: FACS 000000007f72c000 00040
ACPI: TCPA 000000007f7fd000 00064 (v00                 00000000      00000000)
ACPI: APIC 000000007f7f7000 000DE (v02 IBM    THURLEY  00000000 IBM  01000013)
ACPI: MCFG 000000007f7f6000 0003C (v01 IBM    THURLEY  00000001 IBM  01000013)
ACPI: SLIC 000000007f7f5000 00176 (v01 IBM    THURLEY  00000000 IBM  01000013)
ACPI: HPET 000000007f7f4000 00038 (v01 IBM    THURLEY  00000001 IBM  01000013)
ACPI: SRAT 000000007f7f3000 001A8 (v02 IBM    THURLEY  00000001 IBM  01000013)
ACPI: SLIT 000000007f7f2000 00030 (v01 IBM    THURLEY  00000000 IBM  01000013)
ACPI: SSDT 000000007f7f1000 00113 (v02 IBM    CPUSCOPE 00004000 IBM  01000013)
ACPI: SSDT 000000007f7f0000 00491 (v02 IBM    CPUWYVRN 00004000 IBM  01000013)
ACPI: SSDT 000000007f7ec000 035AC (v02 IBM    PSTATEPM 00004000 IBM  01000013)
ACPI: SSDT 000000007f7eb000 00832 (v02 IBM    CPUCSTAT 00004000 IBM  01000013)
ACPI: ERST 000000007f7ea000 00230 (v01 IBM    THURLEY  00000001 IBM  01000013)
ACPI: DMAR 000000007f7e9000 000C8 (v01 IBM    THURLEY  00000001 IBM  01000013)
ACPI: Local APIC address 0xfee00000
SRAT: PXM 0 -> APIC 0 -> Node 0
SRAT: PXM 0 -> APIC 2 -> Node 0
SRAT: PXM 0 -> APIC 4 -> Node 0
SRAT: PXM 0 -> APIC 6 -> Node 0
SRAT: PXM 1 -> APIC 16 -> Node 1
SRAT: PXM 1 -> APIC 18 -> Node 1
SRAT: PXM 1 -> APIC 20 -> Node 1
SRAT: PXM 1 -> APIC 22 -> Node 1
SRAT: PXM 0 -> APIC 1 -> Node 0
SRAT: PXM 0 -> APIC 3 -> Node 0
SRAT: PXM 0 -> APIC 5 -> Node 0
SRAT: PXM 0 -> APIC 7 -> Node 0
SRAT: PXM 1 -> APIC 17 -> Node 1
SRAT: PXM 1 -> APIC 19 -> Node 1
SRAT: PXM 1 -> APIC 21 -> Node 1
SRAT: PXM 1 -> APIC 23 -> Node 1
SRAT: Node 0 PXM 0 0-80000000
SRAT: Node 0 PXM 0 100000000-480000000
SRAT: Node 1 PXM 1 480000000-880000000
NUMA: Using 31 for the hash shift.
Bootmem setup node 0 0000000000000000-0000000480000000
  NODE_DATA [0000000000027000 - 000000000005afff]
  bootmap [0000000000100000 -  000000000018ffff] pages 90
(10 early reservations) ==> bootmem [0000000000 - 0480000000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [007a078000 - 007adadbd8]          RAMDISK ==> [007a078000 - 007adadbd8]
  #4 [000009d000 - 0000100000]    BIOS reserved ==> [000009d000 - 0000100000]
  #5 [007c343000 - 007c3453d0]       EFI memmap ==> [007c343000 - 007c3453d0]
  #6 [0001c9f000 - 0001c9f480]              BRK ==> [0001c9f000 - 0001c9f480]
  #7 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
  #8 [0000009000 - 0000027000]          PGTABLE ==> [0000009000 - 0000027000]
  #9 [0000001000 - 0000001030]        ACPI SLIT ==> [0000001000 - 0000001030]
Bootmem setup node 1 0000000480000000-0000000880000000
  NODE_DATA [0000000480000000 - 0000000480033fff]
  bootmap [0000000480034000 -  00000004800b3fff] pages 80
(10 early reservations) ==> bootmem [0480000000 - 0880000000]
  #0 [0000000000 - 0000001000]   BIOS data page
  #1 [0000006000 - 0000008000]       TRAMPOLINE
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS
  #3 [007a078000 - 007adadbd8]          RAMDISK
  #4 [000009d000 - 0000100000]    BIOS reserved
  #5 [007c343000 - 007c3453d0]       EFI memmap
  #6 [0001c9f000 - 0001c9f480]              BRK
  #7 [0000008000 - 0000009000]          PGTABLE
  #8 [0000009000 - 0000027000]          PGTABLE
  #9 [0000001000 - 0000001030]        ACPI SLIT
 [ffffea0000000000-ffffea000fbfffff] PMD -> [ffff880028600000-ffff8800365fffff] on node 0
 [ffffea000fc00000-ffffea001dbfffff] PMD -> [ffff880480200000-ffff88048e1fffff] on node 1
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00880000
Movable zone start PFN for each node
early_node_map[9] active PFN ranges
    0: 0x00000001 -> 0x0000006c
    0: 0x0000006d -> 0x0000009f
    0: 0x00000100 -> 0x0007d3f4
    0: 0x0007d41e -> 0x0007d448
    0: 0x0007d472 -> 0x0007d84d
    0: 0x0007d8fd -> 0x0007f5ef
    0: 0x0007f7ff -> 0x0007f800
    0: 0x00100000 -> 0x00480000
    1: 0x00480000 -> 0x00880000
On node 0 totalpages: 4191369
  DMA zone: 56 pages used for memmap
  DMA zone: 133 pages reserved
  DMA zone: 3808 pages, LIFO batch:0
  DMA32 zone: 14280 pages used for memmap
  DMA32 zone: 503076 pages, LIFO batch:31
  Normal zone: 50176 pages used for memmap
  Normal zone: 3619840 pages, LIFO batch:31
On node 1 totalpages: 4194304
  Normal zone: 57344 pages used for memmap
  Normal zone: 4136960 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0x588
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x02] enabled)
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x04] enabled)
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x06] enabled)
ACPI: LAPIC (acpi_id[0x04] lapic_id[0x10] enabled)
ACPI: LAPIC (acpi_id[0x05] lapic_id[0x12] enabled)
ACPI: LAPIC (acpi_id[0x06] lapic_id[0x14] enabled)
ACPI: LAPIC (acpi_id[0x07] lapic_id[0x16] enabled)
ACPI: LAPIC (acpi_id[0x08] lapic_id[0x01] enabled)
ACPI: LAPIC (acpi_id[0x09] lapic_id[0x03] enabled)
ACPI: LAPIC (acpi_id[0x0a] lapic_id[0x05] enabled)
ACPI: LAPIC (acpi_id[0x0b] lapic_id[0x07] enabled)
ACPI: LAPIC (acpi_id[0x0c] lapic_id[0x11] enabled)
ACPI: LAPIC (acpi_id[0x0d] lapic_id[0x13] enabled)
ACPI: LAPIC (acpi_id[0x0e] lapic_id[0x15] enabled)
ACPI: LAPIC (acpi_id[0x0f] lapic_id[0x17] enabled)
ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
ACPI: IOAPIC (id[0x08] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 8, version 32, address 0xfec00000, GSI 0-23
ACPI: IOAPIC (id[0x09] address[0xfec80000] gsi_base[24])
IOAPIC[1]: apic_id 9, version 32, address 0xfec80000, GSI 24-47
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Using ACPI (MADT) for SMP configuration information
ACPI: HPET id: 0x8086a301 base: 0xfed00000
SMP: Allowing 16 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 48
PM: Registered nosave memory: 000000000006c000 - 000000000006d000
PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
PM: Registered nosave memory: 000000007d3f4000 - 000000007d41e000
PM: Registered nosave memory: 000000007d448000 - 000000007d472000
PM: Registered nosave memory: 000000007d84d000 - 000000007d8fd000
PM: Registered nosave memory: 000000007f5ef000 - 000000007f6df000
PM: Registered nosave memory: 000000007f6df000 - 000000007f7df000
PM: Registered nosave memory: 000000007f7df000 - 000000007f7ff000
PM: Registered nosave memory: 000000007f800000 - 0000000080000000
PM: Registered nosave memory: 0000000080000000 - 0000000090000000
PM: Registered nosave memory: 0000000090000000 - 00000000fed1c000
PM: Registered nosave memory: 00000000fed1c000 - 00000000fed20000
PM: Registered nosave memory: 00000000fed20000 - 00000000ff800000
PM: Registered nosave memory: 00000000ff800000 - 0000000100000000
Allocating PCI resources starting at 90000000 (gap: 90000000:6ed1c000)
Booting paravirtualized kernel on bare hardware
NR_CPUS:4096 nr_cpumask_bits:16 nr_cpu_ids:16 nr_node_ids:2
PERCPU: Embedded 31 pages/cpu @ffff880028200000 s95064 r8192 d23720 u262144
pcpu-alloc: s95064 r8192 d23720 u262144 alloc=1*2097152
pcpu-alloc: [0] 00 01 02 03 08 09 10 11 [1] 04 05 06 07 12 13 14 15 
Built 2 zonelists in Zone order, mobility grouping on.  Total pages: 8263684
Policy zone: Normal
Kernel command line: ro root=/dev/mapper/vg_tb3client03-lv_root rd_LVM_LV=vg_tb3client03/lv_root rd_LVM_LV=vg_tb3client03/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing 64MB software IO TLB between ffff880020000000 - ffff880024000000
software IO TLB at phys 0x20000000 - 0x24000000
Memory: 32988480k/35651584k available (4935k kernel code, 2108892k absent, 554212k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:944
Extended CMOS year: 2000
Console: colour dummy device 80x25
console [tty0] enabled
allocated 335544320 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
hpet clockevent registered
HPET: 4 timers in total, 0 timers will be used for per-cpu timer
Fast TSC calibration using PIT
Detected 2267.202 MHz processor.
Calibrating delay loop (skipped), value calculated using timer frequency.. 4534.40 BogoMIPS (lpj=2267202)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 4194304 (order: 13, 33554432 bytes)
Inode-cache hash table entries: 2097152 (order: 12, 16777216 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
mce: CPU supports 9 MCE banks
CPU0: Thermal monitoring enabled (TM1)
using mwait in idle threads.
Performance Events: PEBS fmt1+, Nehalem events, Intel PMU driver.
... version:                3
... bit width:              48
... generic registers:      4
... value mask:             0000ffffffffffff
... max period:             000000007fffffff
... fixed-purpose events:   3
... event mask:             000000070000000f
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
DMAR: Host address width 40
DMAR: DRHD base: 0x000000fe710000 flags: 0x1
IOMMU fe710000: ver 1:0 cap c90780106f0462 ecap f020f6
DMAR: RMRR base: 0x0000007d870000 end: 0x0000007d8effff
DMAR: ATSR flags: 0x0
Setting APIC routing to physical flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
Booting Node   0, Processors  #1 #2 #3 Ok.
Booting Node   1, Processors  #4 #5 #6 #7 Ok.
Booting Node   0, Processors  #8 #9 #10 #11 Ok.
Booting Node   1, Processors  #12 #13 #14 #15 Ok.
Brought up 16 CPUs
Total of 16 processors activated (72524.49 BogoMIPS).
Testing NMI watchdog ... OK.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
ACPI: bus type pci registered
PCI: MCFG configuration 0: base 80000000 segment 0 buses 0 - 255
PCI: MCFG area at 80000000 reserved in E820
PCI: Using MMCONFIG at 80000000 - 8fffffff
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S1 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
pci 0000:00:00.0: PME# disabled
pci 0000:00:01.0: PME# supported from D0 D3hot D3cold
pci 0000:00:01.0: PME# disabled
pci 0000:00:02.0: PME# supported from D0 D3hot D3cold
pci 0000:00:02.0: PME# disabled
pci 0000:00:03.0: PME# supported from D0 D3hot D3cold
pci 0000:00:03.0: PME# disabled
pci 0000:00:07.0: PME# supported from D0 D3hot D3cold
pci 0000:00:07.0: PME# disabled
pci 0000:00:16.0: reg 10 64bit mmio: [0x97c00000-0x97c03fff]
pci 0000:00:16.1: reg 10 64bit mmio: [0x97c04000-0x97c07fff]
pci 0000:00:16.2: reg 10 64bit mmio: [0x97c08000-0x97c0bfff]
pci 0000:00:16.3: reg 10 64bit mmio: [0x97c0c000-0x97c0ffff]
pci 0000:00:16.4: reg 10 64bit mmio: [0x97c10000-0x97c13fff]
pci 0000:00:16.5: reg 10 64bit mmio: [0x97c14000-0x97c17fff]
pci 0000:00:16.6: reg 10 64bit mmio: [0x97c18000-0x97c1bfff]
pci 0000:00:16.7: reg 10 64bit mmio: [0x97c1c000-0x97c1ffff]
pci 0000:00:1a.0: reg 20 io port: [0x40a0-0x40bf]
pci 0000:00:1a.1: reg 20 io port: [0x4080-0x409f]
pci 0000:00:1a.7: reg 10 32bit mmio: [0x97c21000-0x97c213ff]
pci 0000:00:1a.7: PME# supported from D0 D3hot D3cold
pci 0000:00:1a.7: PME# disabled
pci 0000:00:1c.0: PME# supported from D0 D3hot D3cold
pci 0000:00:1c.0: PME# disabled
pci 0000:00:1c.4: PME# supported from D0 D3hot D3cold
pci 0000:00:1c.4: PME# disabled
pci 0000:00:1d.0: reg 20 io port: [0x4060-0x407f]
pci 0000:00:1d.1: reg 20 io port: [0x4040-0x405f]
pci 0000:00:1d.2: reg 20 io port: [0x4020-0x403f]
pci 0000:00:1d.7: reg 10 32bit mmio: [0x97c20000-0x97c203ff]
pci 0000:00:1d.7: PME# supported from D0 D3hot D3cold
pci 0000:00:1d.7: PME# disabled
pci 0000:00:1f.2: reg 10 io port: [0x4118-0x411f]
pci 0000:00:1f.2: reg 14 io port: [0x412c-0x412f]
pci 0000:00:1f.2: reg 18 io port: [0x4110-0x4117]
pci 0000:00:1f.2: reg 1c io port: [0x4128-0x412b]
pci 0000:00:1f.2: reg 20 io port: [0x40f0-0x40ff]
pci 0000:00:1f.2: reg 24 io port: [0x40e0-0x40ef]
pci 0000:00:1f.3: reg 10 64bit mmio: [0x97c22000-0x97c220ff]
pci 0000:00:1f.3: reg 20 io port: [0x4000-0x401f]
pci 0000:00:1f.5: reg 10 io port: [0x4108-0x410f]
pci 0000:00:1f.5: reg 14 io port: [0x4124-0x4127]
pci 0000:00:1f.5: reg 18 io port: [0x4100-0x4107]
pci 0000:00:1f.5: reg 1c io port: [0x4120-0x4123]
pci 0000:00:1f.5: reg 20 io port: [0x40d0-0x40df]
pci 0000:00:1f.5: reg 24 io port: [0x40c0-0x40cf]
pci 0000:0b:00.0: reg 10 64bit mmio: [0x92000000-0x93ffffff]
pci 0000:0b:00.0: PME# supported from D0 D3hot D3cold
pci 0000:0b:00.0: PME# disabled
pci 0000:0b:00.1: reg 10 64bit mmio: [0x94000000-0x95ffffff]
pci 0000:0b:00.1: PME# supported from D0 D3hot D3cold
pci 0000:0b:00.1: PME# disabled
pci 0000:00:01.0: bridge 32bit mmio: [0x92000000-0x95ffffff]
pci 0000:15:00.0: reg 10 32bit mmio: [0x97b60000-0x97b7ffff]
pci 0000:15:00.0: reg 14 32bit mmio: [0x97b40000-0x97b5ffff]
pci 0000:15:00.0: reg 18 io port: [0x3020-0x303f]
pci 0000:15:00.0: reg 30 32bit mmio pref: [0xfffe0000-0xffffffff]
pci 0000:15:00.0: PME# supported from D0 D3hot D3cold
pci 0000:15:00.0: PME# disabled
pci 0000:15:00.1: reg 10 32bit mmio: [0x97b20000-0x97b3ffff]
pci 0000:15:00.1: reg 14 32bit mmio: [0x97b00000-0x97b1ffff]
pci 0000:15:00.1: reg 18 io port: [0x3000-0x301f]
pci 0000:15:00.1: PME# supported from D0 D3hot D3cold
pci 0000:15:00.1: PME# disabled
pci 0000:15:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
pci 0000:00:03.0: bridge io port: [0x3000-0x3fff]
pci 0000:00:03.0: bridge 32bit mmio: [0x97b00000-0x97bfffff]
pci 0000:1a:00.0: reg 10 32bit mmio: [0x97a60000-0x97a7ffff]
pci 0000:1a:00.0: reg 14 32bit mmio: [0x97a40000-0x97a5ffff]
pci 0000:1a:00.0: reg 18 io port: [0x2020-0x203f]
pci 0000:1a:00.0: reg 30 32bit mmio pref: [0xfffe0000-0xffffffff]
pci 0000:1a:00.0: PME# supported from D0 D3hot D3cold
pci 0000:1a:00.0: PME# disabled
pci 0000:1a:00.1: reg 10 32bit mmio: [0x97a20000-0x97a3ffff]
pci 0000:1a:00.1: reg 14 32bit mmio: [0x97a00000-0x97a1ffff]
pci 0000:1a:00.1: reg 18 io port: [0x2000-0x201f]
pci 0000:1a:00.1: PME# supported from D0 D3hot D3cold
pci 0000:1a:00.1: PME# disabled
pci 0000:1a:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
pci 0000:00:07.0: bridge io port: [0x2000-0x2fff]
pci 0000:00:07.0: bridge 32bit mmio: [0x97a00000-0x97afffff]
pci 0000:01:00.0: reg 10 io port: [0x1000-0x10ff]
pci 0000:01:00.0: reg 14 64bit mmio: [0x97910000-0x97913fff]
pci 0000:01:00.0: reg 1c 64bit mmio: [0x97900000-0x9790ffff]
pci 0000:01:00.0: reg 30 32bit mmio pref: [0xffe00000-0xffffffff]
pci 0000:01:00.0: supports D1 D2
pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
pci 0000:00:1c.0: bridge io port: [0x1000-0x1fff]
pci 0000:00:1c.0: bridge 32bit mmio: [0x97900000-0x979fffff]
pci 0000:06:00.0: PME# supported from D0 D3hot D3cold
pci 0000:06:00.0: PME# disabled
pci 0000:00:1c.4: bridge 32bit mmio: [0x97000000-0x978fffff]
pci 0000:00:1c.4: bridge 64bit mmio pref: [0x96000000-0x96ffffff]
pci 0000:07:00.0: reg 10 32bit mmio pref: [0x96000000-0x96ffffff]
pci 0000:07:00.0: reg 14 32bit mmio: [0x97800000-0x97803fff]
pci 0000:07:00.0: reg 18 32bit mmio: [0x97000000-0x977fffff]
pci 0000:06:00.0: bridge 32bit mmio: [0x97000000-0x978fffff]
pci 0000:06:00.0: bridge 32bit mmio pref: [0x96000000-0x96ffffff]
pci 0000:00:1e.0: transparent bridge
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI3._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI7._PRT]
Firmware did not grant requested _OSC control
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
vgaarb: device added: PCI:0000:07:00.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0
hpet0: 4 comparators, 64-bit 14.318180 MHz counter
Switching to clocksource tsc
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
system 00:05: iomem range 0xfed00000-0xfed003ff has been reserved
system 00:06: ioport range 0x400-0x43f has been reserved
system 00:06: ioport range 0x440-0x45f has been reserved
system 00:06: ioport range 0x460-0x47f has been reserved
system 00:06: ioport range 0x580-0x5ff has been reserved
system 00:06: ioport range 0x5e0-0x5ff has been reserved
system 00:06: ioport range 0xcf9-0xcf9 could not be reserved
system 00:0a: iomem range 0xfed1c000-0xfed1ffff has been reserved
system 00:0a: iomem range 0xfec00000-0xfecfffff could not be reserved
system 00:0a: iomem range 0xfee00000-0xfeefffff has been reserved
system 00:0a: iomem range 0x80000000-0x8fffffff has been reserved
system 00:0a: iomem range 0xffc00000-0xffffffff has been reserved
system 00:0a: iomem range 0xfeb00000-0xfebfffff has been reserved
system 00:0a: iomem range 0xfe710000-0xfe711fff has been reserved
system 00:0a: iomem range 0xfe800000-0xfe9fffff has been reserved
system 00:0a: iomem range 0xfc000000-0xfcffffff has been reserved
system 00:0a: iomem range 0xfea00000-0xfeafffff has been reserved
system 00:0b: ioport range 0xca0-0xca1 has been reserved
system 00:0b: ioport range 0xca4-0xca9 has been reserved
system 00:0b: ioport range 0xcaa-0xcab has been reserved
system 00:0b: ioport range 0xcac-0xccb has been reserved
system 00:0c: ioport range 0xca2-0xca2 has been reserved
system 00:0c: ioport range 0xca3-0xca3 has been reserved
pci 0000:15:00.0: BAR 6: no parent found for of device [0xfffe0000-0xffffffff]
pci 0000:1a:00.0: BAR 6: no parent found for of device [0xfffe0000-0xffffffff]
pci 0000:01:00.0: BAR 6: no parent found for of device [0xffe00000-0xffffffff]
pci 0000:00:01.0: PCI bridge to [bus 0b-0f]
pci 0000:00:01.0: PCI bridge, secondary bus 0000:0b
pci 0000:00:01.0:   bridge window [io  disabled]
pci 0000:00:01.0:   bridge window [0x92000000-0x95ffffff]
pci 0000:00:01.0:   bridge window [mem pref disabled]
pci 0000:00:02.0: PCI bridge to [bus 10-14]
pci 0000:00:02.0: PCI bridge, secondary bus 0000:10
pci 0000:00:02.0:   bridge window [io  disabled]
pci 0000:00:02.0:   bridge window [mem disabled]
pci 0000:00:02.0:   bridge window [mem pref disabled]
pci 0000:00:03.0: PCI bridge to [bus 15-19]
pci 0000:00:03.0: PCI bridge, secondary bus 0000:15
pci 0000:00:03.0:   bridge window [0x3000-0x3fff]
pci 0000:00:03.0:   bridge window [0x97b00000-0x97bfffff]
pci 0000:00:03.0:   bridge window [0x90200000-0x902fffff]
pci 0000:00:07.0: PCI bridge to [bus 1a-1e]
pci 0000:00:07.0: PCI bridge, secondary bus 0000:1a
pci 0000:00:07.0:   bridge window [0x2000-0x2fff]
pci 0000:00:07.0:   bridge window [0x97a00000-0x97afffff]
pci 0000:00:07.0:   bridge window [0x90300000-0x903fffff]
pci 0000:00:1c.0: PCI bridge to [bus 01-05]
pci 0000:00:1c.0: PCI bridge, secondary bus 0000:01
pci 0000:00:1c.0:   bridge window [0x1000-0x1fff]
pci 0000:00:1c.0:   bridge window [0x97900000-0x979fffff]
pci 0000:00:1c.0:   bridge window [0x90000000-0x901fffff]
pci 0000:06:00.0: PCI bridge to [bus 07-07]
pci 0000:06:00.0: PCI bridge, secondary bus 0000:07
pci 0000:06:00.0:   bridge window [io  disabled]
pci 0000:06:00.0:   bridge window [0x97000000-0x978fffff]
pci 0000:06:00.0:   bridge window [0x96000000-0x96ffffff]
pci 0000:00:1c.4: PCI bridge to [bus 06-0a]
pci 0000:00:1c.4: PCI bridge, secondary bus 0000:06
pci 0000:00:1c.4:   bridge window [io  disabled]
pci 0000:00:1c.4:   bridge window [0x97000000-0x978fffff]
pci 0000:00:1c.4:   bridge window [0x96000000-0x96ffffff]
pci 0000:00:1e.0: PCI bridge to [bus 1f-23]
pci 0000:00:1e.0: PCI bridge, secondary bus 0000:1f
pci 0000:00:1e.0:   bridge window [io  disabled]
pci 0000:00:1e.0:   bridge window [mem disabled]
pci 0000:00:1e.0:   bridge window [mem pref disabled]
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
pci 0000:00:01.0: PCI INT A -> GSI 28 (level, low) -> IRQ 28
pci 0000:00:01.0: setting latency timer to 64
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
pci 0000:00:02.0: PCI INT A -> GSI 29 (level, low) -> IRQ 29
pci 0000:00:02.0: setting latency timer to 64
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
pci 0000:00:03.0: PCI INT A -> GSI 24 (level, low) -> IRQ 24
pci 0000:00:03.0: setting latency timer to 64
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
pci 0000:00:07.0: PCI INT A -> GSI 30 (level, low) -> IRQ 30
pci 0000:00:07.0: setting latency timer to 64
  alloc irq_desc for 16 on node -1
  alloc kstat_irqs on node -1
pci 0000:00:1c.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
pci 0000:00:1c.0: setting latency timer to 64
pci 0000:00:1c.4: PCI INT A -> GSI 16 (level, low) -> IRQ 16
pci 0000:00:1c.4: setting latency timer to 64
pci 0000:06:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
pci 0000:06:00.0: setting latency timer to 64
pci 0000:00:1e.0: setting latency timer to 64
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
pci_bus 0000:0b: resource 1 mem: [0x92000000-0x95ffffff]
pci_bus 0000:15: resource 0 io:  [0x3000-0x3fff]
pci_bus 0000:15: resource 1 mem: [0x97b00000-0x97bfffff]
pci_bus 0000:15: resource 2 pref mem [0x90200000-0x902fffff]
pci_bus 0000:1a: resource 0 io:  [0x2000-0x2fff]
pci_bus 0000:1a: resource 1 mem: [0x97a00000-0x97afffff]
pci_bus 0000:1a: resource 2 pref mem [0x90300000-0x903fffff]
pci_bus 0000:01: resource 0 io:  [0x1000-0x1fff]
pci_bus 0000:01: resource 1 mem: [0x97900000-0x979fffff]
pci_bus 0000:01: resource 2 pref mem [0x90000000-0x901fffff]
pci_bus 0000:06: resource 1 mem: [0x97000000-0x978fffff]
pci_bus 0000:06: resource 2 pref mem [0x96000000-0x96ffffff]
pci_bus 0000:07: resource 1 mem: [0x97000000-0x978fffff]
pci_bus 0000:07: resource 2 pref mem [0x96000000-0x96ffffff]
pci_bus 0000:1f: resource 3 io:  [0x00-0xffff]
pci_bus 0000:1f: resource 4 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 524288 (order: 10, 4194304 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:07:00.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13526k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297074246.750:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 32768
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
  alloc irq_desc for 48 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:01.0: irq 48 for MSI/MSI-X
pcieport 0000:00:01.0: setting latency timer to 64
  alloc irq_desc for 49 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:02.0: irq 49 for MSI/MSI-X
pcieport 0000:00:02.0: setting latency timer to 64
  alloc irq_desc for 50 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:03.0: irq 50 for MSI/MSI-X
pcieport 0000:00:03.0: setting latency timer to 64
  alloc irq_desc for 51 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:07.0: irq 51 for MSI/MSI-X
pcieport 0000:00:07.0: setting latency timer to 64
  alloc irq_desc for 52 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:1c.0: irq 52 for MSI/MSI-X
pcieport 0000:00:1c.0: setting latency timer to 64
  alloc irq_desc for 53 on node -1
  alloc kstat_irqs on node -1
pcieport 0000:00:1c.4: irq 53 for MSI/MSI-X
pcieport 0000:00:1c.4: setting latency timer to 64
Firmware did not grant requested _OSC control
aer 0000:00:01.0:pcie02: AER service couldn't init device: no _OSC support
Firmware did not grant requested _OSC control
aer 0000:00:02.0:pcie02: AER service couldn't init device: no _OSC support
Firmware did not grant requested _OSC control
aer 0000:00:03.0:pcie02: AER service couldn't init device: no _OSC support
Firmware did not grant requested _OSC control
aer 0000:00:07.0:pcie02: AER service couldn't init device: no _OSC support
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Firmware did not grant requested _OSC control
Firmware did not grant requested _OSC control
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
pci-stub: invalid id string ""
efifb: probing for efifb
efifb: framebuffer at 0x96000000, mapped to 0xffffc90013e00000, using 10240k, total 16384k
efifb: mode is 1280x1024x32, linelength=5120, pages=1
efifb: scrolling: redraw
efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
Console: switching to colour frame buffer device 160x64
fb0: EFI VGA frame buffer device
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
Monitor-Mwait will be used to enter C-1 state
Monitor-Mwait will be used to enter C-3 state
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
processor LNXCPU:02: registered as cooling_device2
processor LNXCPU:03: registered as cooling_device3
processor LNXCPU:04: registered as cooling_device4
processor LNXCPU:05: registered as cooling_device5
processor LNXCPU:06: registered as cooling_device6
processor LNXCPU:07: registered as cooling_device7
processor LNXCPU:08: registered as cooling_device8
processor LNXCPU:09: registered as cooling_device9
processor LNXCPU:0a: registered as cooling_device10
processor LNXCPU:0b: registered as cooling_device11
processor LNXCPU:0c: registered as cooling_device12
processor LNXCPU:0d: registered as cooling_device13
processor LNXCPU:0e: registered as cooling_device14
processor LNXCPU:0f: registered as cooling_device15
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
tpm_tis 00:09: 1.2 TPM (device-id 0xFE, rev-id 70)
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:08: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  alloc irq_desc for 19 on node -1
  alloc kstat_irqs on node -1
ehci_hcd 0000:00:1a.7: PCI INT C -> GSI 19 (level, low) -> IRQ 19
ehci_hcd 0000:00:1a.7: setting latency timer to 64
ehci_hcd 0000:00:1a.7: EHCI Host Controller
ehci_hcd 0000:00:1a.7: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1a.7: debug port 1
ehci_hcd 0000:00:1a.7: cache line size of 64 is not supported
ehci_hcd 0000:00:1a.7: irq 19, io mem 0x97c21000
ehci_hcd 0000:00:1a.7: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.32-71.el6.x86_64 ehci_hcd
usb usb1: SerialNumber: 0000:00:1a.7
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
  alloc irq_desc for 17 on node -1
  alloc kstat_irqs on node -1
ehci_hcd 0000:00:1d.7: PCI INT A -> GSI 17 (level, low) -> IRQ 17
ehci_hcd 0000:00:1d.7: setting latency timer to 64
ehci_hcd 0000:00:1d.7: EHCI Host Controller
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 2
ehci_hcd 0000:00:1d.7: debug port 1
ehci_hcd 0000:00:1d.7: cache line size of 64 is not supported
ehci_hcd 0000:00:1d.7: irq 17, io mem 0x97c20000
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: EHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.32-71.el6.x86_64 ehci_hcd
usb usb2: SerialNumber: 0000:00:1d.7
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 6 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
uhci_hcd 0000:00:1a.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
uhci_hcd 0000:00:1a.0: setting latency timer to 64
uhci_hcd 0000:00:1a.0: UHCI Host Controller
uhci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1a.0: irq 17, io base 0x000040a0
usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb3: Product: UHCI Host Controller
usb usb3: Manufacturer: Linux 2.6.32-71.el6.x86_64 uhci_hcd
usb usb3: SerialNumber: 0000:00:1a.0
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
  alloc irq_desc for 18 on node -1
  alloc kstat_irqs on node -1
uhci_hcd 0000:00:1a.1: PCI INT B -> GSI 18 (level, low) -> IRQ 18
uhci_hcd 0000:00:1a.1: setting latency timer to 64
uhci_hcd 0000:00:1a.1: UHCI Host Controller
uhci_hcd 0000:00:1a.1: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:1a.1: irq 18, io base 0x00004080
usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb4: Product: UHCI Host Controller
usb usb4: Manufacturer: Linux 2.6.32-71.el6.x86_64 uhci_hcd
usb usb4: SerialNumber: 0000:00:1a.1
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
uhci_hcd 0000:00:1d.0: setting latency timer to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:1d.0: irq 17, io base 0x00004060
usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb5: Product: UHCI Host Controller
usb usb5: Manufacturer: Linux 2.6.32-71.el6.x86_64 uhci_hcd
usb usb5: SerialNumber: 0000:00:1d.0
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.1: PCI INT B -> GSI 18 (level, low) -> IRQ 18
uhci_hcd 0000:00:1d.1: setting latency timer to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 6
uhci_hcd 0000:00:1d.1: irq 18, io base 0x00004040
usb usb6: New USB device found, idVendor=1d6b, idProduct=0001
usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb6: Product: UHCI Host Controller
usb usb6: Manufacturer: Linux 2.6.32-71.el6.x86_64 uhci_hcd
usb usb6: SerialNumber: 0000:00:1d.1
usb usb6: configuration #1 chosen from 1 choice
hub 6-0:1.0: USB hub found
hub 6-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.2: PCI INT C -> GSI 19 (level, low) -> IRQ 19
uhci_hcd 0000:00:1d.2: setting latency timer to 64
uhci_hcd 0000:00:1d.2: UHCI Host Controller
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 7
uhci_hcd 0000:00:1d.2: irq 19, io base 0x00004020
usb usb7: New USB device found, idVendor=1d6b, idProduct=0001
usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb7: Product: UHCI Host Controller
usb usb7: Manufacturer: Linux 2.6.32-71.el6.x86_64 uhci_hcd
usb usb7: SerialNumber: 0000:00:1d.2
usb usb7: configuration #1 chosen from 1 choice
hub 7-0:1.0: USB hub found
hub 7-0:1.0: 2 ports detected
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
rtc_cmos 00:02: RTC can wake from S4
rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
cpuidle: using governor ladder
cpuidle: using governor menu
EFI Variables Facility v0.08 2004-May-17
usb 5-2: new full speed USB device using uhci_hcd and address 2
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
rtc_cmos 00:02: setting system clock to 2011-02-07 10:24:09 UTC (1297074249)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
usb 5-2: New USB device found, idVendor=04b3, idProduct=4010
usb 5-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 5-2: Product: RNDIS/CDC ETHER
usb 5-2: Manufacturer: IBM
usb 5-2: configuration #1 chosen from 2 choices
dracut: rd_NO_LUKS: removing cryptoluks activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
usb 7-2: new low speed USB device using uhci_hcd and address 2
dracut: Starting plymouth daemon
usb 7-2: New USB device found, idVendor=0624, idProduct=0296
usb 7-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 7-2: Product: IBM 73P5832
usb 7-2: Manufacturer: Avocent
usb 7-2: configuration #1 chosen from 1 choice
input: Avocent IBM 73P5832 as /devices/pci0000:00/0000:00:1d.2/usb7/7-2/7-2:1.0/input/input2
generic-usb 0003:0624:0296.0001: input,hidraw0: USB HID v1.10 Keyboard [Avocent IBM 73P5832] on usb-0000:00:1d.2-2/input0
input: Avocent IBM 73P5832 as /devices/pci0000:00/0000:00:1d.2/usb7/7-2/7-2:1.1/input/input3
generic-usb 0003:0624:0296.0002: input,hidraw1: USB HID v1.10 Mouse [Avocent IBM 73P5832] on usb-0000:00:1d.2-2/input1
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
Fusion MPT base driver 3.04.16
Copyright (c) 1999-2008 LSI Corporation
Fusion MPT SAS Host driver 3.04.16
mptsas 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
mptbase: ioc0: Initiating bringup
ioc0: LSISAS1068E B3: Capabilities={Initiator}
mptsas 0000:01:00.0: setting latency timer to 64
scsi0 : ioc0: LSISAS1068E B3, FwRev=011b5800h, Ports=1, MaxQ=277, IRQ=16
mptsas: ioc0: attaching ssp device: fw_channel 0, fw_id 3, phy 0, sas_addr 0x5000c5001ccfc4dd
scsi 0:0:0:0: Direct-Access     IBM-ESXS ST973452SS       B624 PQ: 0 ANSI: 5
mptsas: ioc0: attaching ssp device: fw_channel 0, fw_id 2, phy 1, sas_addr 0x5000c5001ccd5481
scsi 0:0:1:0: Direct-Access     IBM-ESXS ST973452SS       B624 PQ: 0 ANSI: 5
mptsas: ioc0: attaching raid volume, channel 1, id 1
scsi 0:1:1:0: Direct-Access     LSILOGIC Logical Volume   3000 PQ: 0 ANSI: 2
ata_piix 0000:00:1f.2: version 2.13
ata_piix 0000:00:1f.2: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
ata_piix 0000:00:1f.2: setting latency timer to 64
scsi1 : ata_piix
scsi2 : ata_piix
ata1: SATA max UDMA/133 cmd 0x4118 ctl 0x412c bmdma 0x40f0 irq 16
ata2: SATA max UDMA/133 cmd 0x4110 ctl 0x4128 bmdma 0x40f8 irq 16
  alloc irq_desc for 21 on node -1
  alloc kstat_irqs on node -1
ata_piix 0000:00:1f.5: PCI INT C -> GSI 21 (level, low) -> IRQ 21
ata_piix 0000:00:1f.5: MAP [ P0 -- P1 -- ]
ata_piix 0000:00:1f.5: setting latency timer to 64
scsi3 : ata_piix
scsi4 : ata_piix
ata3: SATA max UDMA/133 cmd 0x4108 ctl 0x4124 bmdma 0x40d0 irq 21
ata4: SATA max UDMA/133 cmd 0x4100 ctl 0x4120 bmdma 0x40d8 irq 21
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
ata2.00: SATA link down (SStatus 0 SControl 300)
ata2.01: SATA link down (SStatus 0 SControl 300)
ata1.00: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.01: SATA link down (SStatus 0 SControl 300)
ata1.01: link offline, clearing class 3 to NONE
ata1.00: ATAPI: UJDA782 DVD/CDRW, VA13, max UDMA/33
ata1.00: configured for UDMA/33
scsi 1:0:0:0: CD-ROM            MATSHITA UJDA782 DVD/CDRW VA13 PQ: 0 ANSI: 5
sd 0:1:1:0: [sda] 281247744 512-byte logical blocks: (143 GB/134 GiB)
sd 0:1:1:0: [sda] Write Protect is off
sd 0:1:1:0: [sda] Mode Sense: 03 00 00 08
sd 0:1:1:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3
sd 0:1:1:0: [sda] Attached SCSI disk
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
dracut: Scanning devices sda3  for LVM logical volumes vg_tb3client03/lv_root vg_tb3client03/lv_swap 
dracut: inactive '/dev/vg_tb3client03/lv_root' [129.52 GiB] inherit
dracut: inactive '/dev/vg_tb3client03/lv_swap' [3.91 GiB] inherit
EXT4-fs (dm-0): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/mapper/vg_tb3client03-lv_root
dracut: Loading SELinux policy
type=1404 audit(1297074266.359:2): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
SELinux: 2048 avtab hash slots, 199690 rules.
SELinux: 2048 avtab hash slots, 199690 rules.
SELinux:  9 users, 13 roles, 3323 types, 168 bools, 1 sens, 1024 cats
SELinux:  77 classes, 199690 rules
SELinux:  Completing initialization.
SELinux:  Setting up existing superblocks.
SELinux: initialized (dev dm-0, type ext4), uses xattr
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts
SELinux: initialized (dev securityfs, type securityfs), uses genfs_contexts
SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
SELinux: initialized (dev mqueue, type mqueue), uses transition SIDs
SELinux: initialized (dev hugetlbfs, type hugetlbfs), uses transition SIDs
SELinux: initialized (dev devpts, type devpts), uses transition SIDs
SELinux: initialized (dev inotifyfs, type inotifyfs), uses genfs_contexts
SELinux: initialized (dev anon_inodefs, type anon_inodefs), uses genfs_contexts
SELinux: initialized (dev pipefs, type pipefs), uses task SIDs
SELinux: initialized (dev debugfs, type debugfs), uses genfs_contexts
SELinux: initialized (dev sockfs, type sockfs), uses task SIDs
SELinux: initialized (dev devtmpfs, type devtmpfs), uses transition SIDs
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
SELinux: initialized (dev proc, type proc), uses genfs_contexts
SELinux: initialized (dev bdev, type bdev), uses genfs_contexts
SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
type=1403 audit(1297074266.677:3): policy loaded auid=4294967295 ses=4294967295
dracut: 
dracut: Switching root
readahead: starting
udev: starting version 147
Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v2.0.8-j15 (Feb 15, 2010)
bnx2 0000:0b:00.0: PCI INT A -> GSI 28 (level, low) -> IRQ 28
bnx2 0000:0b:00.0: setting latency timer to 64
bnx2 0000:0b:00.0: firmware: requesting bnx2/bnx2-mips-09-5.0.0.j15.fw
bnx2 0000:0b:00.0: firmware: requesting bnx2/bnx2-rv2p-09-5.0.0.j10.fw
eth0: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem 92000000, IRQ 28, node addr e4:1f:13:32:5d:60
  alloc irq_desc for 40 on node -1
  alloc kstat_irqs on node -1
bnx2 0000:0b:00.1: PCI INT B -> GSI 40 (level, low) -> IRQ 40
bnx2 0000:0b:00.1: setting latency timer to 64
bnx2 0000:0b:00.1: firmware: requesting bnx2/bnx2-mips-09-5.0.0.j15.fw
bnx2 0000:0b:00.1: firmware: requesting bnx2/bnx2-rv2p-09-5.0.0.j10.fw
eth1: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem 94000000, IRQ 40, node addr e4:1f:13:32:5d:62
e1000e: Intel(R) PRO/1000 Network Driver - 1.2.7-k2
e1000e: Copyright (c) 1999 - 2009 Intel Corporation.
e1000e 0000:15:00.0: enabling device (0040 -> 0042)
e1000e 0000:15:00.0: PCI INT A -> GSI 24 (level, low) -> IRQ 24
e1000e 0000:15:00.0: setting latency timer to 64
  alloc irq_desc for 54 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:15:00.0: irq 54 for MSI/MSI-X
0000:15:00.0: eth2: (PCI Express:2.5GB/s:Width x4) 00:15:17:d1:28:bc
0000:15:00.0: eth2: Intel(R) PRO/1000 Network Connection
0000:15:00.0: eth2: MAC: 0, PHY: 4, PBA No: d56146-003
e1000e 0000:15:00.1: enabling device (0040 -> 0042)
  alloc irq_desc for 34 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:15:00.1: PCI INT B -> GSI 34 (level, low) -> IRQ 34
e1000e 0000:15:00.1: setting latency timer to 64
  alloc irq_desc for 55 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:15:00.1: irq 55 for MSI/MSI-X
0000:15:00.1: eth3: (PCI Express:2.5GB/s:Width x4) 00:15:17:d1:28:bd
0000:15:00.1: eth3: Intel(R) PRO/1000 Network Connection
0000:15:00.1: eth3: MAC: 0, PHY: 4, PBA No: d56146-003
e1000e 0000:1a:00.0: enabling device (0040 -> 0042)
e1000e 0000:1a:00.0: PCI INT A -> GSI 30 (level, low) -> IRQ 30
e1000e 0000:1a:00.0: setting latency timer to 64
  alloc irq_desc for 56 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:1a:00.0: irq 56 for MSI/MSI-X
0000:1a:00.0: eth4: (PCI Express:2.5GB/s:Width x4) 00:15:17:d1:2a:22
0000:1a:00.0: eth4: Intel(R) PRO/1000 Network Connection
0000:1a:00.0: eth4: MAC: 0, PHY: 4, PBA No: d56146-003
e1000e 0000:1a:00.1: enabling device (0040 -> 0042)
  alloc irq_desc for 37 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:1a:00.1: PCI INT B -> GSI 37 (level, low) -> IRQ 37
e1000e 0000:1a:00.1: setting latency timer to 64
  alloc irq_desc for 57 on node -1
  alloc kstat_irqs on node -1
e1000e 0000:1a:00.1: irq 57 for MSI/MSI-X
0000:1a:00.1: eth5: (PCI Express:2.5GB/s:Width x4) 00:15:17:d1:2a:23
0000:1a:00.1: eth5: Intel(R) PRO/1000 Network Connection
0000:1a:00.1: eth5: MAC: 0, PHY: 4, PBA No: d56146-003
EDAC MC: Ver: 2.1.0 Sep  1 2010
PCI: Discovered peer bus ff
PCI: Discovered peer bus fe
EDAC MC0: Giving out device to 'i7core_edac.c' 'i7 core #0': DEV 0000:ff:03.0
EDAC PCI0: Giving out device to module 'i7core_edac' controller 'EDAC PCI controller': DEV '0000:ff:03.0' (POLLED)
EDAC MC1: Giving out device to 'i7core_edac.c' 'i7 core #1': DEV 0000:fe:03.0
EDAC PCI1: Giving out device to module 'i7core_edac' controller 'EDAC PCI controller': DEV '0000:fe:03.0' (POLLED)
EDAC i7core: Driver loaded.
dca service started, version 1.12.1
ioatdma: Intel(R) QuickData Technology Driver 4.00
ioatdma 0000:00:16.0: enabling device (0000 -> 0002)
ioatdma 0000:00:16.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ioatdma 0000:00:16.0: setting latency timer to 64
  alloc irq_desc for 58 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.0: irq 58 for MSI/MSI-X
ioatdma 0000:00:16.1: enabling device (0000 -> 0002)
ioatdma 0000:00:16.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
ioatdma 0000:00:16.1: setting latency timer to 64
  alloc irq_desc for 59 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.1: irq 59 for MSI/MSI-X
ioatdma 0000:00:16.2: enabling device (0000 -> 0002)
ioatdma 0000:00:16.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
ioatdma 0000:00:16.2: setting latency timer to 64
  alloc irq_desc for 60 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.2: irq 60 for MSI/MSI-X
ioatdma 0000:00:16.3: enabling device (0000 -> 0002)
ioatdma 0000:00:16.3: PCI INT D -> GSI 19 (level, low) -> IRQ 19
ioatdma 0000:00:16.3: setting latency timer to 64
  alloc irq_desc for 61 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.3: irq 61 for MSI/MSI-X
ioatdma 0000:00:16.4: enabling device (0000 -> 0002)
ioatdma 0000:00:16.4: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ioatdma 0000:00:16.4: setting latency timer to 64
  alloc irq_desc for 62 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.4: irq 62 for MSI/MSI-X
ioatdma 0000:00:16.5: enabling device (0000 -> 0002)
ioatdma 0000:00:16.5: PCI INT B -> GSI 17 (level, low) -> IRQ 17
ioatdma 0000:00:16.5: setting latency timer to 64
  alloc irq_desc for 63 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.5: irq 63 for MSI/MSI-X
ioatdma 0000:00:16.6: enabling device (0000 -> 0002)
ioatdma 0000:00:16.6: PCI INT C -> GSI 18 (level, low) -> IRQ 18
ioatdma 0000:00:16.6: setting latency timer to 64
  alloc irq_desc for 64 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.6: irq 64 for MSI/MSI-X
ioatdma 0000:00:16.7: enabling device (0000 -> 0002)
ioatdma 0000:00:16.7: PCI INT D -> GSI 19 (level, low) -> IRQ 19
ioatdma 0000:00:16.7: setting latency timer to 64
  alloc irq_desc for 65 on node -1
  alloc kstat_irqs on node -1
ioatdma 0000:00:16.7: irq 65 for MSI/MSI-X
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
iTCO_vendor_support: vendor-support=0
iTCO_wdt: Intel TCO WatchDog Timer Driver v1.05
iTCO_wdt: Found a ICH10 TCO device (Version=2, TCOBASE=0x05e0)
iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
i801_smbus 0000:00:1f.3: enabling device (0140 -> 0143)
  alloc irq_desc for 22 on node -1
  alloc kstat_irqs on node -1
i801_smbus 0000:00:1f.3: PCI INT B -> GSI 22 (level, low) -> IRQ 22
usb0: register 'cdc_ether' at usb-0000:00:1d.0-2, CDC Ethernet Device, e6:1f:13:2b:ad:63
usbcore: registered new interface driver cdc_ether
scsi 0:0:0:0: Attached scsi generic sg0 type 0
scsi 0:0:1:0: Attached scsi generic sg1 type 0
sd 0:1:1:0: Attached scsi generic sg2 type 0
sr 1:0:0:0: Attached scsi generic sg3 type 5
EXT4-fs (sda2): mounted filesystem with ordered data mode
SELinux: initialized (dev sda2, type ext4), uses xattr
SELinux: initialized (dev sda1, type vfat), uses genfs_contexts
Adding 4095992k swap on /dev/mapper/vg_tb3client03-lv_swap.  Priority:-1 extents:1 across:4095992k 
SELinux: initialized (dev binfmt_misc, type binfmt_misc), uses genfs_contexts
                                                                      Physical_Configuration/Clients/tb3-client03/tile10/                                                 0000777 0000000 0000000 00000000000 11524350072 021030  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/proc/                                            0000777 0000000 0000000 00000000000 11524350071 021772  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/proc/cpuinfo                                     0000644 0000000 0000000 00000002012 11524350070 023346  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2267.202
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4534.40
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2267.202
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4534.40
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile10/proc/swaps                                       0000644 0000000 0000000 00000000150 11524350071 023042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	73708	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile10/proc/devices                                     0000644 0000000 0000000 00000000567 11524350070 023342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile10/proc/modules                                     0000644 0000000 0000000 00000002547 11524350071 023371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa0259000
stp 2107 1 bridge, Live 0xffffffffa0253000
llc 5608 2 bridge,stp, Live 0xffffffffa024b000
autofs4 27683 3 - Live 0xffffffffa023e000
sunrpc 241630 1 - Live 0xffffffffa01eb000
ipv6 321209 577 - Live 0xffffffffa0156000
dm_mirror 14003 0 - Live 0xffffffffa012a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0121000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0118000
ppdev 8695 0 - Live 0xffffffffa010a000
parport_pc 22944 0 - Live 0xffffffffa00fd000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa00eb000
sg 30186 0 - Live 0xffffffffa00dc000
virtio_net 15665 0 - Live 0xffffffffa00d2000
i2c_piix4 12574 0 - Live 0xffffffffa00c9000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00b9000
ext3 133830 1 - Live 0xffffffffa008d000
jbd 54576 1 ext3, Live 0xffffffffa0076000
mbcache 7918 1 ext3, Live 0xffffffffa006e000
virtio_blk 5087 3 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
ata_generic 3611 0 - Live 0xffffffffa0030000
pata_acpi 3667 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile10/proc/partitions                                  0000644 0000000 0000000 00000000165 11524350071 024107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile10/proc/meminfo                                     0000644 0000000 0000000 00000002222 11524350071 023341  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        3605932 kB
MemFree:         3366596 kB
Buffers:            3820 kB
Cached:            26432 kB
SwapCached:         4652 kB
Active:            85336 kB
Inactive:          20712 kB
Active(anon):      69940 kB
Inactive(anon):     5872 kB
Active(file):      15396 kB
Inactive(file):    14840 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        1974280 kB
Dirty:               340 kB
Writeback:             0 kB
AnonPages:         72960 kB
Mapped:             7252 kB
Shmem:                 0 kB
Slab:             104952 kB
SReclaimable:      24252 kB
SUnreclaim:        80700 kB
KernelStack:        1656 kB
PageTables:         3452 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3850956 kB
Committed_AS:     764556 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19136 kB
VmallocChunk:   34359715008 kB
HardwareCorrupted:     0 kB
AnonHugePages:     45056 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     3661824 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile10/lspci.txt                                        0000644 0000000 0000000 00000000744 11524350070 022702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
                            Physical_Configuration/Clients/tb3-client03/tile10/df.txt                                           0000644 0000000 0000000 00000000276 11524350051 022160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8183840   4597096  65% /
tmpfs                  1802964         0   1802964   0% /dev/shm
                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile10/mount.txt                                        0000644 0000000 0000000 00000000434 11524350070 022726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile10/etc/                                             0000777 0000000 0000000 00000000000 11524350070 021601  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/                                        0000777 0000000 0000000 00000000000 11524350061 022427  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/                                  0000777 0000000 0000000 00000000000 11524350070 023340  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K02libvirt-guests                 0000755 0000000 0000000 00000017172 11524350061 026532  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K02oddjobd                        0000755 0000000 0000000 00000004325 11524350061 025150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K69rpcsvcgssd                     0000755 0000000 0000000 00000006014 11524350063 025740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K95cgconfig                       0000755 0000000 0000000 00000012327 11524350065 025343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S55sshd                           0000755 0000000 0000000 00000010671 11524350067 024533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K80fcoe                           0000755 0000000 0000000 00000005775 11524350063 024501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K15httpd                          0000755 0000000 0000000 00000006364 11524350062 024700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K92ip6tables                      0000755 0000000 0000000 00000020716 11524350065 025453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K80sssd                           0000755 0000000 0000000 00000004731 11524350063 024530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S58ntpd                           0000755 0000000 0000000 00000003603 11524350070 024531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K02avahi-daemon                   0000755 0000000 0000000 00000004754 11524350061 026102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K89rdisc                          0000755 0000000 0000000 00000003027 11524350064 024667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K76ipsec                          0000755 0000000 0000000 00000010777 11524350063 024673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S22messagebus                     0000755 0000000 0000000 00000004230 11524350066 025713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K95firstboot                      0000755 0000000 0000000 00000005341 11524350065 025575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K86cgred                          0000755 0000000 0000000 00000006302 11524350064 024643  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S13rpcbind                        0000755 0000000 0000000 00000004031 11524350066 025175  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S13irqbalance                     0000755 0000000 0000000 00000003521 11524350066 025660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K84NetworkManager                 0000755 0000000 0000000 00000004235 11524350063 026503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K99sysstat                        0000755 0000000 0000000 00000002363 11524350065 025301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K50dnsmasq                        0000755 0000000 0000000 00000002577 11524350062 025224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K01certmonger                     0000755 0000000 0000000 00000004054 11524350061 025706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K85mdmonitor                      0000755 0000000 0000000 00000005013 11524350064 025564  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K36mysqld                         0000755 0000000 0000000 00000012460 11524350062 025063  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K80lldpad                         0000755 0000000 0000000 00000014323 11524350063 025012  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K88nslcd                          0000755 0000000 0000000 00000003213 11524350064 024662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K75ntpdate                        0000755 0000000 0000000 00000003512 11524350063 025213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K89iscsid                         0000755 0000000 0000000 00000007127 11524350064 025046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K73ypbind                         0000755 0000000 0000000 00000011277 11524350063 025046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S10network                        0000755 0000000 0000000 00000014466 11524350066 025257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S12rsyslog                        0000755 0000000 0000000 00000004326 11524350066 025264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S11auditd                         0000755 0000000 0000000 00000006462 11524350066 025036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K84wpa_supplicant                 0000755 0000000 0000000 00000003512 11524350064 026606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S20kdump                          0000755 0000000 0000000 00000027662 11524350066 024711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K87multipathd                     0000755 0000000 0000000 00000004473 11524350064 025742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S26haldaemon                      0000755 0000000 0000000 00000003245 11524350067 025517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K60crond                          0000755 0000000 0000000 00000005445 11524350063 024662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K03rhnsd                          0000755 0000000 0000000 00000005522 11524350062 024663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K36postgresql                     0000755 0000000 0000000 00000012406 11524350062 025755  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S00microcode_ctl                  0000755 0000000 0000000 00000002221 11524350065 026354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K10saslauthd                      0000755 0000000 0000000 00000004010 11524350062 025522  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K88iscsi                          0000755 0000000 0000000 00000007315 11524350064 024700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K60nfs                            0000755 0000000 0000000 00000013536 11524350063 024343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S30nscd                           0000755 0000000 0000000 00000004723 11524350067 024513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S24rpcgssd                        0000755 0000000 0000000 00000006050 11524350067 025227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K10psacct                         0000755 0000000 0000000 00000003024 11524350062 025013  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S26acpid                          0000755 0000000 0000000 00000003275 11524350067 024652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S13cpuspeed                       0000755 0000000 0000000 00000025442 11524350066 025375  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S26udev-post                      0000755 0000000 0000000 00000004370 11524350067 025515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S99local                          0000755 0000000 0000000 00000000334 11524350070 024661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K50netconsole                     0000755 0000000 0000000 00000005650 11524350062 025722  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S24rpcidmapd                      0000755 0000000 0000000 00000005222 11524350067 025525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S02lvm2-monitor                   0000555 0000000 0000000 00000004612 11524350065 026121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S28autofs                         0000755 0000000 0000000 00000007234 11524350067 025074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K01smartd                         0000755 0000000 0000000 00000005672 11524350061 025042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S55autobench                      0000755 0000000 0000000 00000005063 11524350067 025541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S25netfs                          0000755 0000000 0000000 00000012432 11524350067 024703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K30postfix                        0000755 0000000 0000000 00000007414 11524350062 025243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/S24nfslock                        0000755 0000000 0000000 00000006675 11524350066 025235  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K92iptables                       0000755 0000000 0000000 00000020557 11524350065 025370  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K87restorecond                    0000755 0000000 0000000 00000003427 11524350064 026114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/rc3.d/K05atd                            0000755 0000000 0000000 00000004112 11524350062 024311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/                                 0000777 0000000 0000000 00000000000 11524350061 023614  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/network                          0000755 0000000 0000000 00000014466 11524350056 025246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/sysstat                          0000755 0000000 0000000 00000002363 11524350060 025253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/saslauthd                        0000755 0000000 0000000 00000004010 11524350060 025520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/messagebus                       0000755 0000000 0000000 00000004230 11524350055 025676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/autobench                        0000755 0000000 0000000 00000005063 11524350052 025512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/atd                              0000755 0000000 0000000 00000004112 11524350052 024304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/mcelogd                          0000755 0000000 0000000 00000003535 11524350055 025161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/auditd                           0000755 0000000 0000000 00000006462 11524350052 025020  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/certmonger                       0000755 0000000 0000000 00000004054 11524350053 025707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/mysqld                           0000755 0000000 0000000 00000012460 11524350056 025056  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/irqbalance                       0000755 0000000 0000000 00000003521 11524350054 025642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/acpid                            0000755 0000000 0000000 00000003275 11524350052 024625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/iscsid                           0000755 0000000 0000000 00000007127 11524350054 025025  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/nscd                             0000755 0000000 0000000 00000004723 11524350056 024477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/rpcidmapd                        0000755 0000000 0000000 00000005222 11524350060 025501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/nfs                              0000755 0000000 0000000 00000013536 11524350056 024340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/sssd                             0000755 0000000 0000000 00000004731 11524350060 024516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/crond                            0000755 0000000 0000000 00000005445 11524350053 024654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/ip6tables                        0000755 0000000 0000000 00000020716 11524350054 025437  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/firstboot                        0000755 0000000 0000000 00000005341 11524350053 025555  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/autofs                           0000755 0000000 0000000 00000007234 11524350052 025045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/sshd                             0000755 0000000 0000000 00000010671 11524350060 024503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/libvirt-guests                   0000755 0000000 0000000 00000017172 11524350055 026534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/avahi-daemon                     0000755 0000000 0000000 00000004754 11524350052 026101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/iscsi                            0000755 0000000 0000000 00000007315 11524350054 024660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/ypbind                           0000755 0000000 0000000 00000011277 11524350061 025033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/psacct                           0000755 0000000 0000000 00000003024 11524350057 025017  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/fcoe                             0000755 0000000 0000000 00000005775 11524350053 024471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/nfslock                          0000755 0000000 0000000 00000006675 11524350056 025217  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/cgred                            0000755 0000000 0000000 00000006302 11524350053 024624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/udev-post                        0000755 0000000 0000000 00000004370 11524350061 025470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/haldaemon                        0000755 0000000 0000000 00000003245 11524350054 025474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/ipsec                            0000755 0000000 0000000 00000010777 11524350054 024657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/rpcbind                          0000755 0000000 0000000 00000004031 11524350057 025162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/rhnsd                            0000755 0000000 0000000 00000005522 11524350057 024665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/dnsmasq                          0000755 0000000 0000000 00000002577 11524350053 025220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/functions                        0000644 0000000 0000000 00000042767 11524350053 025564  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/kdump                            0000755 0000000 0000000 00000027662 11524350055 024676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/lldpad                           0000755 0000000 0000000 00000014323 11524350055 025004  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/postfix                          0000755 0000000 0000000 00000007414 11524350057 025245  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/iptables                         0000755 0000000 0000000 00000020557 11524350054 025354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/multipathd                       0000755 0000000 0000000 00000004473 11524350056 025725  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/rsyslog                          0000755 0000000 0000000 00000004326 11524350060 025244  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/NetworkManager                   0000755 0000000 0000000 00000004235 11524350052 026466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/netconsole                       0000755 0000000 0000000 00000005650 11524350056 025721  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/rpcgssd                          0000755 0000000 0000000 00000006050 11524350057 025211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/lvm2-monitor                     0000555 0000000 0000000 00000004612 11524350055 026107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/halt                             0000755 0000000 0000000 00000012723 11524350054 024475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/cgconfig                         0000755 0000000 0000000 00000012327 11524350053 025323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/single                           0000755 0000000 0000000 00000001207 11524350060 025016  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/postgresql                       0000755 0000000 0000000 00000012406 11524350057 025751  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/mdmonitor                        0000755 0000000 0000000 00000005013 11524350055 025550  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/restorecond                      0000755 0000000 0000000 00000003427 11524350057 026100  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/wpa_supplicant                   0000755 0000000 0000000 00000003512 11524350061 026570  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/cpuspeed                         0000755 0000000 0000000 00000025442 11524350053 025356  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/netfs                            0000755 0000000 0000000 00000012432 11524350056 024663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/rpcsvcgssd                       0000755 0000000 0000000 00000006014 11524350060 025717  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/oddjobd                          0000755 0000000 0000000 00000004325 11524350057 025154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/sandbox                          0000755 0000000 0000000 00000003242 11524350060 025174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/killall                          0000755 0000000 0000000 00000001214 11524350055 025163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/rdisc                            0000755 0000000 0000000 00000003027 11524350057 024651  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/httpd                            0000755 0000000 0000000 00000006364 11524350054 024674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/ntpd                             0000755 0000000 0000000 00000003603 11524350056 024511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/smartd                           0000755 0000000 0000000 00000005672 11524350060 025041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/nslcd                            0000755 0000000 0000000 00000003213 11524350056 024644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/ntpdate                          0000755 0000000 0000000 00000003512 11524350057 025203  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile10/etc/rc.d/init.d/microcode_ctl                    0000755 0000000 0000000 00000002221 11524350055 026344  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile10/etc/hosts                                        0000644 0000000 0000000 00000000052 11524350051 022654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1	localhost.localdomain	localhost
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile10/etc/iproute2/                                    0000777 0000000 0000000 00000000000 11524350051 023351  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/etc/iproute2/rt_dsfield                          0000644 0000000 0000000 00000000672 11524350051 025414  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client03/tile10/etc/iproute2/rt_realms                           0000644 0000000 0000000 00000000160 11524350051 025255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/tile10/etc/iproute2/rt_scopes                           0000644 0000000 0000000 00000000134 11524350051 025267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile10/etc/iproute2/ematch_map                          0000644 0000000 0000000 00000000073 11524350051 025366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile10/etc/iproute2/rt_tables                           0000644 0000000 0000000 00000000127 11524350052 025250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile10/etc/iproute2/rt_protos                           0000644 0000000 0000000 00000000475 11524350051 025331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/etc/nsswitch.conf                                0000644 0000000 0000000 00000003230 11524350052 024304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile10/etc/fstab                                        0000644 0000000 0000000 00000001307 11524350051 022617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Thu Aug  5 09:23:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=008a3418-d80b-4815-9722-db5af2fba6da /                       ext3    defaults        1 1
UUID=171fffed-b6b4-4161-b8cd-a688d195da49 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile10/etc/sysctl.conf                                  0000644 0000000 0000000 00000001466 11524350070 023774  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile10/etc/inittab                                      0000644 0000000 0000000 00000001564 11524350051 023157  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile10/var/                                             0000777 0000000 0000000 00000000000 11524350072 021620  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/var/log/                                         0000777 0000000 0000000 00000000000 11524350072 022401  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/var/log/dmesg                                    0000644 0000000 0000000 00000041752 11524350072 023430  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009cc00 (usable)
 BIOS-e820: 000000000009cc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
RAMDISK: 372ca000 - 37fef973
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffdc0 00040
ACPI: SSDT 00000000dfffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000000dfffd000
Bootmem setup node 0 0000000000000000-00000000dfffd000
  NODE_DATA [000000000000c000 - 000000000003ffff]
  bootmap [0000000000040000 -  000000000005bfff] pages 1c
(7 early reservations) ==> bootmem [0000000000 - 00dfffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [00372ca000 - 0037fef973]          RAMDISK ==> [00372ca000 - 0037fef973]
  #4 [000009cc00 - 0000100000]    BIOS reserved ==> [000009cc00 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00031fffff] PMD -> [ffff880002200000-ffff8800053fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009c
    0: 0x00000100 -> 0x000dfffd
On node 0 totalpages: 917400
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3833 pages, LIFO batch:0
  DMA32 zone: 12488 pages used for memmap
  DMA32 zone: 900917 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009c000 - 000000000009d000
PM: Registered nosave memory: 000000000009d000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 904750
Policy zone: DMA32
Kernel command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us 
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 3591248k/3670004k available (4935k kernel code, 404k absent, 78352k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 36700160 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 2267.202 MHz processor.
Calibrating delay loop (skipped) preset value.. 4534.40 BogoMIPS (lpj=2267202)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Setting APIC routing to flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (9068.80 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13462k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297092596.431:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 7040
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 15:29:55 UTC (1297092595)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
dracut: Mounted root filesystem /dev/vda1
dracut: Loading SELinux policy
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1297092597.264:2): selinux=0 auid=4294967295 ses=4294967295
dracut: /sbin/load_policy: Can't load policy: No such file or directory
dracut: Switching root
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 27 for MSI/MSI-X
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT3 FS on vda1, internal journal
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                      Physical_Configuration/Clients/tb3-client03/tile10/boot/                                            0000777 0000000 0000000 00000000000 11524350050 021767  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/boot/grub/                                       0000777 0000000 0000000 00000000000 11524350050 022726  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile10/boot/grub/grub.conf                              0000644 0000000 0000000 00000002637 11524350050 024540  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux Server (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-70.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-70.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-70.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-59.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-59.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-59.el6.x86_64.img
                                                                                                 Physical_Configuration/Clients/tb3-client03/tile10/rpmpkgs.txt                                      0000644 0000000 0000000 00000105007 11524350071 023252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rhnsd-4.9.3-2.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
pycairo-1.8.6-2.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
polkit-devel-0.96-2.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
popt-devel-1.13-7.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
basesystem-10.0-4.el6.noarch
libgnomeui-devel-2.24.1-4.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libhbalinux-1.0.10-1.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-Newt-1.08-26.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
system-icon-theme-6.0.0-2.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
libjpeg-6b-46.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
gettext-0.17-16.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
NetworkManager-glib-0.8.1-5.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
sed-4.2.1-5.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
libXext-1.1-3.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
libcap-2.16-5.2.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
hwdata-0.233-1.el6.noarch
pcre-7.8-3.1.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
fuse-2.8.3-1.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
python-decorator-3.0.1-3.1.el6.noarch
report-plugin-scp-0.18-7.el6.x86_64
rsync-3.0.6-5.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
ModemManager-0.4.0-3.git20100628.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
device-mapper-event-libs-1.02.53-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
nc-1.84-22.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
dracut-004-32.el6.noarch
psmisc-22.6-15.el6.x86_64
vino-2.28.1-3.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
kernel-2.6.32-70.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
mtools-4.0.12-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
mod_wsgi-3.2-1.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
jna-3.2.4-2.el6.x86_64
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
php-pdo-5.3.2-6.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
postfix-2.6.6-2.el6.x86_64
patch-2.6-6.el6.x86_64
elfutils-0.148-1.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
xorg-x11-xkb-utils-7.4-6.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
xvattr-1.3-18.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
boost-regex-1.41.0-11.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
pam-1.1.1-4.el6.x86_64
setserial-2.17-25.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
python-slip-0.2.11-1.el6.noarch
gvfs-1.4.3-9.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
libhbaapi-2.2-10.el6.x86_64
gnome-applets-2.28.0-7.el6.x86_64
grub-0.97-68.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
setup-2.8.14-10.el6.noarch
hal-devel-0.5.14-8.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
autoconf-2.63-5.1.el6.noarch
fontpackages-filesystem-1.41-1.1.el6.noarch
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libXtst-devel-1.0.99.2-3.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
libX11-common-1.3-2.el6.noarch
sos-2.2-2.el6.noarch
php-pear-1.9.0-2.el6.noarch
avahi-autoipd-0.6.25-8.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
bash-4.1.2-3.el6.x86_64
libcap-ng-devel-0.6.4-3.el6.x86_64
festival-1.96-18.el6.x86_64
libICE-1.0.6-1.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
rootfiles-8.1-6.1.el6.noarch
libldb-0.9.10-23.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
libpng-1.2.44-1.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
gd-2.0.35-10.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
man-pages-3.22-12.el6.noarch
libcroco-devel-0.6.2-5.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
numactl-2.0.3-9.el6.x86_64
yum-3.2.27-14.el6.noarch
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
iproute-2.6.32-10.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
boost-1.41.0-11.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
gstreamer-tools-0.10.29-1.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
libXdamage-1.1.2-1.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
binutils-2.20.51.0.2-5.11.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
gcc-4.4.4-13.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
libtheora-1.1.0-2.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
gnome-power-manager-2.28.3-3.el6.x86_64
totem-mozplugin-2.28.6-2.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-Log-Message-0.02-115.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
libXdmcp-1.0.3-1.el6.x86_64
parted-2.1-10.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libevent-1.4.13-1.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
psacct-6.3.2-63.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
checkpolicy-2.0.22-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
flex-2.5.35-8.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
selinux-policy-3.7.19-54.el6.noarch
ltrace-0.5-16.45svn.1.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
crontabs-1.10-32.1.el6.noarch
coreutils-libs-8.4-9.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
mtr-0.75-5.el6.x86_64
openssl-1.0.0-4.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
libgudev1-147-2.29.el6.x86_64
ctags-5.8-2.el6.x86_64
redhat-bookmarks-6-1.el6.noarch
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
passwd-0.77-4.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
orca-2.28.2-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
slang-2.2.1-1.el6.x86_64
subversion-1.6.11-2.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
openswan-2.6.24-8.el6.x86_64
gtk-doc-1.11-5.1.el6.noarch
libdaemon-0.14-1.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
xml-common-0.6.3-32.el6.noarch
gtk2-devel-2.18.9-4.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
notification-daemon-0.5.0-1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
libgcc-4.4.4-13.el6.i686
ncurses-libs-5.7-3.20090208.el6.x86_64
ppp-2.4.5-5.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
info-4.13a-8.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
docbook-style-dsssl-1.79-10.el6.noarch
pam_ldap-185-5.el6.x86_64
glib2-2.22.5-5.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
readline-6.0-3.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
at-3.1.10-42.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
samba-winbind-clients-3.5.4-68.el6.x86_64
gmp-4.3.1-7.el6.x86_64
gnome-panel-libs-2.30.2-5.el6.x86_64
perl-version-0.77-115.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
perl-5.10.1-115.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
curl-7.19.7-16.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
httpd-tools-2.2.15-5.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
libavc1394-0.5.3-9.1.el6.x86_64
which-2.19-5.1.el6.x86_64
perl-BSD-Resource-1.29.03-3.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
keyutils-libs-1.4-1.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
iso-codes-3.16-2.el6.noarch
libxslt-1.1.26-2.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-1.0.5-1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
giflib-4.1.6-3.1.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
report-0.18-7.el6.x86_64
libX11-1.3-2.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
grubby-7.0.15-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
eggdbus-0.6-3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
httpd-2.2.15-5.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
ppl-0.10.2-11.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
file-libs-5.04-5.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
bc-1.06.95-1.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
NetworkManager-0.8.1-5.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
dracut-kernel-004-32.el6.noarch
cpio-2.10-9.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
unzip-6.0-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
check-0.9.8-1.1.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
libgssglue-0.1-8.1.el6.x86_64
db4-cxx-4.7.25-16.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
libnih-1.0.1-6.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
fcoe-utils-1.0.14-9.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
zip-3.0-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
usermode-1.102-3.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
php-xml-5.3.2-6.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
crash-5.0.0-23.el6.x86_64
libthai-0.1.12-3.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
zenity-2.28.0-1.el6.x86_64
report-newt-0.18-7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
boost-test-1.41.0-11.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
tzdata-2010l-1.el6.noarch
ncurses-5.7-3.20090208.el6.x86_64
nspr-4.8.6-1.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
dnsmasq-2.48-4.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
nss-3.12.7-2.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
udev-147-2.29.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
postgresql-libs-8.4.4-2.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
avahi-ui-0.6.25-8.el6.x86_64
device-mapper-multipath-libs-0.4.9-31.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
udisks-1.0.1-2.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
libaio-0.3.107-10.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
evolution-data-server-devel-2.28.3-10.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
elfutils-devel-0.148-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
cas-0.15-1.el6.1.noarch
libgnome-devel-2.28.0-11.el6.x86_64
kernel-devel-2.6.32-59.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
dstat-0.7.0-1.el6.noarch
perl-XML-Dumper-0.81-6.el6.noarch
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
zd1211-firmware-1.4-4.el6.noarch
ivtv-firmware-20080701-20.2.noarch
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
libnl-1.1-12.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
mysql-5.1.47-4.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
iptables-1.4.7-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
perl-Time-HiRes-1.9721-115.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
systemtap-1.2-9.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
eog-2.28.2-4.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
postgresql-server-8.4.4-2.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
gnome-settings-daemon-2.28.2-11.el6.x86_64
usbutils-0.86-2.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
python-psycopg2-2.0.13-2.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
tcsh-6.17-8.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
kernel-devel-2.6.32-70.el6.x86_64
bison-2.4.1-5.el6.x86_64
busybox-1.15.1-10.el6.x86_64
lsof-4.82-1.2.el6.x86_64
swig-1.3.40-5.el6.x86_64
hal-0.5.14-8.el6.x86_64
powertop-1.11-3.1.el6.x86_64
rdate-1.4-16.el6.x86_64
kernel-2.6.32-59.el6.x86_64
libtopology-0.3-7.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
openldap-devel-2.4.19-15.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
kernel-2.6.32-71.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
libxml2-python-2.7.6-1.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
libcanberra-0.22-1.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
python-gudev-147.1-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
mailcap-2.1.31-1.1.el6.noarch
wpa_supplicant-0.6.8-10.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
cracklib-python-2.8.16-2.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
gnome-python2-libwnck-2.28.0-4.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
openjade-1.3.2-36.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
popt-1.13-7.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
system-gnome-theme-60.0.2-1.el6.noarch
db4-4.7.25-16.el6.x86_64
wget-1.12-1.4.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
fipscheck-1.2.0-4.1.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
gawk-3.1.7-6.el6.x86_64
cvs-1.11.23-11.el6.x86_64
php-common-5.3.2-6.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
tcp_wrappers-libs-7.6-56.3.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
atk-1.28.0-2.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
libacl-2.2.49-4.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
findutils-4.4.2-6.el6.x86_64
libiec61883-1.2.0-4.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
grep-2.6.3-2.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
libgcrypt-1.4.5-3.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
pixman-0.16.6-1.el6.x86_64
iw-0.9.17-4.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
libxcb-1.5-1.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
comps-extras-17.8-1.el6.noarch
libsoup-2.28.2-1.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
xfsprogs-3.1.1-4.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
libXv-1.0.5-1.el6.x86_64
polkit-0.96-2.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
rtkit-0.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
libIDL-0.8.13-2.1.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
ed-1.1-3.3.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
tar-1.23-3.el6.x86_64
libconfig-1.3.2-1.1.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
pciutils-libs-3.1.4-9.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
mod_ssl-2.2.15-5.el6.x86_64
kbd-misc-1.15-11.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
rng-tools-2-8.el6.x86_64
pax-3.4-10.1.el6.x86_64
control-center-2.28.1-25.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
php-gd-5.3.2-6.el6.x86_64
libtasn1-2.3-3.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
irqbalance-0.55-27.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
yajl-1.0.7-3.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libXpm-3.5.8-2.el6.x86_64
pango-1.28.1-3.el6.x86_64
gucharmap-2.28.2-2.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
net-tools-1.60-102.el6.x86_64
exempi-2.1.0-5.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
DeviceKit-power-014-1.el6.x86_64
make-3.81-19.el6.x86_64
unique-1.1.4-2.el6.x86_64
rhn-setup-1.0.0-38.el6.noarch
boost-signals-1.41.0-11.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
cronie-1.4.4-2.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
libcollection-0.5.0-28.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
libudev-147-2.29.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
libuser-0.56.13-4.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
device-mapper-multipath-0.4.9-31.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
perl-URI-1.40-2.el6.noarch
dbus-glib-devel-0.86-5.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
seekwatcher-0.12-4.1.el6.noarch
perf-2.6.32-71.el6.noarch
libglade2-devel-2.6.4-3.1.el6.x86_64
glibc-2.12-1.7.el6.i686
polkit-docs-0.96-2.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
libXi-devel-1.3-3.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
mysql-devel-5.1.47-4.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
iotop-0.3.2-3.el6.noarch
python-meh-0.9-1.el6.noarch
bzip2-devel-1.0.5-6.1.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
atmel-firmware-1.3-7.el6.noarch
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
libstdc++-4.4.4-13.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
libXi-1.3-3.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
nautilus-extensions-2.28.4-15.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
libss-1.41.12-3.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
glx-utils-7.7-2.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
cpp-4.4.4-13.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
ipa-client-2.0-9.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
gnome-vfs2-smb-2.24.2-6.el6.x86_64
xdg-user-dirs-0.12-4.el6.x86_64
gdb-7.1-29.el6.x86_64
gok-2.28.1-5.el6.x86_64
SDL-1.2.14-2.el6.x86_64
postgresql-docs-8.4.4-2.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mod_perl-2.0.4-10.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
prelink-0.4.3-4.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
gnome-session-xsession-2.28.0-15.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
crypto-utils-2.4.1-24.2.el6.x86_64
PyGreSQL-3.8.1-2.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
postgresql-odbc-08.04.0200-1.el6.x86_64
git-1.7.1-2.el6.x86_64
report-gtk-0.18-7.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
libvirt-devel-0.8.1-27.el6.x86_64
audit-2.0.4-1.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
attr-2.4.44-4.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
latrace-0.5.9-2.el6.x86_64
byacc-1.9.20070509-6.1.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
nscd-2.12-1.7.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
vte-0.25.1-5.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
gcc-c++-4.4.4-13.el6.x86_64
firefox-3.6.9-2.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
libgnomecanvas-devel-2.26.0-4.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
perl-XML-Grove-0.46alpha-40.el6.noarch
automake-1.11.1-1.2.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
system-config-services-docs-1.1.8-1.el6.noarch
pyOpenSSL-0.10-2.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
zlib-1.2.3-25.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
audit-libs-devel-2.0.4-1.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
libstdc++-4.4.4-13.el6.i686
libdrm-2.4.20-2.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
docbook-utils-0.6.14-24.el6.noarch
freetype-2.3.11-5.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
gnome-python2-desktop-2.28.0-4.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
words-3.0-17.el6.noarch
libselinux-utils-2.0.94-2.el6.x86_64
gamin-0.1.10-9.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
mailx-12.4-6.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
keyutils-1.4-1.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
openssh-5.3p1-20.el6.x86_64
m4-1.4.13-5.el6.x86_64
autofs-5.0.5-23.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
gvfs-archive-1.4.3-9.el6.x86_64
man-1.6f-29.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
gdm-2.30.4-21.el6.x86_64
libusb-0.1.12-23.el6.x86_64
webalizer-2.21_02-3.3.el6.x86_64
time-1.7-37.1.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
less-436-4.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
gettext-libs-0.17-16.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
NetworkManager-gnome-0.8.1-5.el6.x86_64
readahead-1.5.6-1.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
php-5.3.2-6.el6.x86_64
libical-0.43-5.1.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-panel-2.30.2-5.el6.x86_64
latencytop-0.5-3.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
kbd-1.15-11.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
rcs-5.7-37.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
boost-program-options-1.41.0-11.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
iputils-20071127-13.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
glibc-2.12-1.7.el6.x86_64
gzip-1.3.12-18.el6.x86_64
cscope-15.6-6.el6.x86_64
certmonger-0.24-4.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
openldap-2.4.19-15.el6.x86_64
eject-2.1.5-17.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
qt-4.6.2-16.el6.x86_64
diffstat-1.51-2.el6.x86_64
libgail-gnome-1.20.1-4.1.el6.x86_64
sssd-1.2.1-28.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
newt-0.52.11-2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
nspluginwrapper-1.3.0-14.el6.x86_64
mysql-server-5.1.47-4.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
rhn-setup-gnome-1.0.0-38.el6.noarch
atk-devel-1.28.0-2.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
filesystem-2.4.30-2.1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
libcom_err-devel-1.41.12-3.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
m2crypto-0.20.2-7.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
screen-4.0.3-15.el6.x86_64
alsa-lib-devel-1.0.21-3.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
mobile-broadband-provider-info-1.20100122-1.el6.noarch
xorg-x11-docs-1.3-6.1.el6.noarch
gnome-themes-2.28.1-6.el6.noarch
libselinux-2.0.94-2.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
libxcb-devel-1.5-1.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
pam_krb5-2.3.11-1.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
pytz-2010h-2.el6.noarch
libidn-1.18-2.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
acl-2.2.49-4.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
jline-0.9.94-0.8.el6.noarch
libXt-1.0.7-1.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
procps-3.2.8-14.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
gnome-screensaver-2.28.3-8.el6.x86_64
rpm-4.8.0-12.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
quota-3.17-10.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
rpm-build-4.8.0-12.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
nano-2.0.9-7.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
system-config-services-0.99.45-1.el6.3.noarch
perl-parent-0.221-115.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
hal-info-20090716-3.1.el6.noarch
mlocate-0.22.2-3.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
libicu-4.2.1-9.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
yp-tools-2.9-10.el6.x86_64
coreutils-8.4-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
rfkill-0.3-4.el6.x86_64
at-spi-1.28.1-2.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
lldpad-0.9.38-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
gnome-python2-bonobo-2.28.0-3.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
evolution-data-server-doc-2.28.3-10.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
yelp-2.28.1-8.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
python-2.6.5-3.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile10/ifconfig.txt                                     0000644 0000000 0000000 00000001637 11524350070 023356  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:90:00:0A  
          inet addr:10.1.216.160  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe90:a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512652359 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160609765 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:729352685545 (679.2 GiB)  TX bytes:16154239595 (15.0 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:255543 errors:0 dropped:0 overruns:0 frame:0
          TX packets:255543 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:326399610 (311.2 MiB)  TX bytes:326399610 (311.2 MiB)

                                                                                                 Physical_Configuration/Clients/tb3-client03/tile10/chkconfig.txt                                    0000644 0000000 0000000 00000006556 11524350050 023530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:off	4:on	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
fcoe           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:off	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:off	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lldpad         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
multipathd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
mysqld         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postgresql     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile07/                                                 0000777 0000000 0000000 00000000000 11524350006 021033  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/proc/                                            0000777 0000000 0000000 00000000000 11524350006 021776  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/proc/cpuinfo                                     0000644 0000000 0000000 00000002012 11524350005 023352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2267.202
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4534.40
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2267.202
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4534.40
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile07/proc/swaps                                       0000644 0000000 0000000 00000000150 11524350006 023046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	79588	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile07/proc/devices                                     0000644 0000000 0000000 00000000567 11524350006 023347  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile07/proc/modules                                     0000644 0000000 0000000 00000002547 11524350006 023375  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa0259000
stp 2107 1 bridge, Live 0xffffffffa0253000
llc 5608 2 bridge,stp, Live 0xffffffffa024b000
autofs4 27683 3 - Live 0xffffffffa023e000
sunrpc 241630 1 - Live 0xffffffffa01eb000
ipv6 321209 571 - Live 0xffffffffa0156000
dm_mirror 14003 0 - Live 0xffffffffa012a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0121000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0118000
ppdev 8695 0 - Live 0xffffffffa010a000
parport_pc 22944 0 - Live 0xffffffffa00fd000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa00eb000
sg 30186 0 - Live 0xffffffffa00dc000
i2c_piix4 12574 0 - Live 0xffffffffa00d3000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00c3000
virtio_net 15665 0 - Live 0xffffffffa00b9000
ext3 133830 1 - Live 0xffffffffa008d000
jbd 54576 1 ext3, Live 0xffffffffa0076000
mbcache 7918 1 ext3, Live 0xffffffffa006e000
sr_mod 16162 0 - Live 0xffffffffa0064000
cdrom 39769 1 sr_mod, Live 0xffffffffa0053000
virtio_blk 5087 3 - Live 0xffffffffa004c000
ata_generic 3611 0 - Live 0xffffffffa0046000
pata_acpi 3667 0 - Live 0xffffffffa0040000
ata_piix 22588 0 - Live 0xffffffffa0034000
virtio_pci 6733 0 - Live 0xffffffffa002c000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0025000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile07/proc/partitions                                  0000644 0000000 0000000 00000000165 11524350006 024113  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile07/proc/meminfo                                     0000644 0000000 0000000 00000002222 11524350006 023345  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        3605932 kB
MemFree:         3359964 kB
Buffers:            3580 kB
Cached:            26084 kB
SwapCached:         4756 kB
Active:            79388 kB
Inactive:          29760 kB
Active(anon):      63888 kB
Inactive(anon):    15424 kB
Active(file):      15500 kB
Inactive(file):    14336 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        1968404 kB
Dirty:               372 kB
Writeback:             0 kB
AnonPages:         76416 kB
Mapped:             7452 kB
Shmem:                 0 kB
Slab:             108392 kB
SReclaimable:      27420 kB
SUnreclaim:        80972 kB
KernelStack:        1664 kB
PageTables:         3520 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3850956 kB
Committed_AS:     766964 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19136 kB
VmallocChunk:   34359715016 kB
HardwareCorrupted:     0 kB
AnonHugePages:     49152 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     3661824 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile07/lspci.txt                                        0000644 0000000 0000000 00000000744 11524350005 022706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
                            Physical_Configuration/Clients/tb3-client03/tile07/df.txt                                           0000644 0000000 0000000 00000000276 11524347766 022211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8184680   4596256  65% /
tmpfs                  1802964         0   1802964   0% /dev/shm
                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile07/mount.txt                                        0000644 0000000 0000000 00000000434 11524350005 022732  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile07/etc/                                             0000777 0000000 0000000 00000000000 11524350005 021605  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/                                        0000777 0000000 0000000 00000000000 11524347776 022460  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/                                  0000777 0000000 0000000 00000000000 11524350005 023344  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K02libvirt-guests                 0000755 0000000 0000000 00000017172 11524347777 026564  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K02oddjobd                        0000755 0000000 0000000 00000004325 11524347777 025202  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K69rpcsvcgssd                     0000755 0000000 0000000 00000006014 11524350000 025735  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K95cgconfig                       0000755 0000000 0000000 00000012327 11524350002 025340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S55sshd                           0000755 0000000 0000000 00000010671 11524350005 024531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K80fcoe                           0000755 0000000 0000000 00000005775 11524350000 024476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K15httpd                          0000755 0000000 0000000 00000006364 11524347777 024731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K92ip6tables                      0000755 0000000 0000000 00000020716 11524350002 025450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K80sssd                           0000755 0000000 0000000 00000004731 11524350001 024526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S58ntpd                           0000755 0000000 0000000 00000003603 11524350005 024535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K02avahi-daemon                   0000755 0000000 0000000 00000004754 11524347776 026133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K89rdisc                          0000755 0000000 0000000 00000003027 11524350002 024665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K76ipsec                          0000755 0000000 0000000 00000010777 11524350000 024670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S22messagebus                     0000755 0000000 0000000 00000004230 11524350004 025711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K95firstboot                      0000755 0000000 0000000 00000005341 11524350002 025572  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K86cgred                          0000755 0000000 0000000 00000006302 11524350001 024640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S13rpcbind                        0000755 0000000 0000000 00000004031 11524350003 025172  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S13irqbalance                     0000755 0000000 0000000 00000003521 11524350003 025655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K84NetworkManager                 0000755 0000000 0000000 00000004235 11524350001 026501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K99sysstat                        0000755 0000000 0000000 00000002363 11524350002 025276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K50dnsmasq                        0000755 0000000 0000000 00000002577 11524350000 025222  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K01certmonger                     0000755 0000000 0000000 00000004054 11524347776 025737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K85mdmonitor                      0000755 0000000 0000000 00000005013 11524350001 025561  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K36mysqld                         0000755 0000000 0000000 00000012460 11524347777 025114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K80lldpad                         0000755 0000000 0000000 00000014323 11524350000 025007  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K88nslcd                          0000755 0000000 0000000 00000003213 11524350001 024657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K75ntpdate                        0000755 0000000 0000000 00000003512 11524350000 025210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K89iscsid                         0000755 0000000 0000000 00000007127 11524350001 025043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K73ypbind                         0000755 0000000 0000000 00000011277 11524350000 025043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S10network                        0000755 0000000 0000000 00000014466 11524350003 025254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S12rsyslog                        0000755 0000000 0000000 00000004326 11524350003 025261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S11auditd                         0000755 0000000 0000000 00000006462 11524350003 025033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K84wpa_supplicant                 0000755 0000000 0000000 00000003512 11524350001 026603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S20kdump                          0000755 0000000 0000000 00000027662 11524350003 024706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K87multipathd                     0000755 0000000 0000000 00000004473 11524350001 025737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S26haldaemon                      0000755 0000000 0000000 00000003245 11524350004 025514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K60crond                          0000755 0000000 0000000 00000005445 11524350000 024657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K03rhnsd                          0000755 0000000 0000000 00000005522 11524347777 024714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K36postgresql                     0000755 0000000 0000000 00000012406 11524347777 026006  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S00microcode_ctl                  0000755 0000000 0000000 00000002221 11524350002 026351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K10saslauthd                      0000755 0000000 0000000 00000004010 11524347777 025553  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K88iscsi                          0000755 0000000 0000000 00000007315 11524350001 024675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K60nfs                            0000755 0000000 0000000 00000013536 11524350000 024340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S30nscd                           0000755 0000000 0000000 00000004723 11524350004 024510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S24rpcgssd                        0000755 0000000 0000000 00000006050 11524350004 025224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K10psacct                         0000755 0000000 0000000 00000003024 11524347777 025044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S26acpid                          0000755 0000000 0000000 00000003275 11524350004 024647  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S13cpuspeed                       0000755 0000000 0000000 00000025442 11524350003 025372  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S26udev-post                      0000755 0000000 0000000 00000004370 11524350004 025512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S99local                          0000755 0000000 0000000 00000000334 11524350005 024665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K50netconsole                     0000755 0000000 0000000 00000005650 11524350000 025720  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S24rpcidmapd                      0000755 0000000 0000000 00000005222 11524350004 025522  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S02lvm2-monitor                   0000555 0000000 0000000 00000004612 11524350003 026117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S28autofs                         0000755 0000000 0000000 00000007234 11524350004 025071  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K01smartd                         0000755 0000000 0000000 00000005672 11524347776 025073  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S55autobench                      0000755 0000000 0000000 00000005063 11524350004 025536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S25netfs                          0000755 0000000 0000000 00000012432 11524350004 024700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K30postfix                        0000755 0000000 0000000 00000007414 11524347777 025274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/S24nfslock                        0000755 0000000 0000000 00000006675 11524350004 025233  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K92iptables                       0000755 0000000 0000000 00000020557 11524350002 025365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K87restorecond                    0000755 0000000 0000000 00000003427 11524350001 026111  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/rc3.d/K05atd                            0000755 0000000 0000000 00000004112 11524347777 024342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/                                 0000777 0000000 0000000 00000000000 11524347776 023645  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/network                          0000755 0000000 0000000 00000014466 11524347773 025270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/sysstat                          0000755 0000000 0000000 00000002363 11524347776 025305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/saslauthd                        0000755 0000000 0000000 00000004010 11524347775 025551  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/messagebus                       0000755 0000000 0000000 00000004230 11524347773 025721  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/autobench                        0000755 0000000 0000000 00000005063 11524347770 025535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/atd                              0000755 0000000 0000000 00000004112 11524347767 024335  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/mcelogd                          0000755 0000000 0000000 00000003535 11524347773 025204  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/auditd                           0000755 0000000 0000000 00000006462 11524347767 025051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/certmonger                       0000755 0000000 0000000 00000004054 11524347770 025731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/mysqld                           0000755 0000000 0000000 00000012460 11524347773 025100  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/irqbalance                       0000755 0000000 0000000 00000003521 11524347772 025665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/acpid                            0000755 0000000 0000000 00000003275 11524347767 024656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/iscsid                           0000755 0000000 0000000 00000007127 11524347772 025050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/nscd                             0000755 0000000 0000000 00000004723 11524347774 024522  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/rpcidmapd                        0000755 0000000 0000000 00000005222 11524347775 025532  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/nfs                              0000755 0000000 0000000 00000013536 11524347773 024362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/sssd                             0000755 0000000 0000000 00000004731 11524347776 024550  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/crond                            0000755 0000000 0000000 00000005445 11524347770 024676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/ip6tables                        0000755 0000000 0000000 00000020716 11524347771 025461  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/firstboot                        0000755 0000000 0000000 00000005341 11524347771 025600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/autofs                           0000755 0000000 0000000 00000007234 11524347770 025070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/sshd                             0000755 0000000 0000000 00000010671 11524347776 024535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/libvirt-guests                   0000755 0000000 0000000 00000017172 11524347772 026556  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/avahi-daemon                     0000755 0000000 0000000 00000004754 11524347770 026124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/iscsi                            0000755 0000000 0000000 00000007315 11524347772 024703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/ypbind                           0000755 0000000 0000000 00000011277 11524347776 025064  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/psacct                           0000755 0000000 0000000 00000003024 11524347774 025041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/fcoe                             0000755 0000000 0000000 00000005775 11524347771 024514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/nfslock                          0000755 0000000 0000000 00000006675 11524347773 025241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/cgred                            0000755 0000000 0000000 00000006302 11524347770 024646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/udev-post                        0000755 0000000 0000000 00000004370 11524347776 025521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/haldaemon                        0000755 0000000 0000000 00000003245 11524347771 025516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/ipsec                            0000755 0000000 0000000 00000010777 11524347772 024702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/rpcbind                          0000755 0000000 0000000 00000004031 11524347775 025205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/rhnsd                            0000755 0000000 0000000 00000005522 11524347775 024710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/dnsmasq                          0000755 0000000 0000000 00000002577 11524347770 025242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/functions                        0000644 0000000 0000000 00000042767 11524347771 025607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/kdump                            0000755 0000000 0000000 00000027662 11524347772 024720  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/lldpad                           0000755 0000000 0000000 00000014323 11524347772 025026  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/postfix                          0000755 0000000 0000000 00000007414 11524347774 025267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/iptables                         0000755 0000000 0000000 00000020557 11524347772 025377  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/multipathd                       0000755 0000000 0000000 00000004473 11524347773 025747  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/rsyslog                          0000755 0000000 0000000 00000004326 11524347775 025275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/NetworkManager                   0000755 0000000 0000000 00000004235 11524347767 026517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/netconsole                       0000755 0000000 0000000 00000005650 11524347773 025743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/rpcgssd                          0000755 0000000 0000000 00000006050 11524347775 025234  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/lvm2-monitor                     0000555 0000000 0000000 00000004612 11524347772 026131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/halt                             0000755 0000000 0000000 00000012723 11524347771 024517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/cgconfig                         0000755 0000000 0000000 00000012327 11524347770 025345  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/single                           0000755 0000000 0000000 00000001207 11524347775 025047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/postgresql                       0000755 0000000 0000000 00000012406 11524347774 025773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/mdmonitor                        0000755 0000000 0000000 00000005013 11524347773 025573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/restorecond                      0000755 0000000 0000000 00000003427 11524347775 026123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/wpa_supplicant                   0000755 0000000 0000000 00000003512 11524347776 026621  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/cpuspeed                         0000755 0000000 0000000 00000025442 11524347770 025400  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/netfs                            0000755 0000000 0000000 00000012432 11524347773 024705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/rpcsvcgssd                       0000755 0000000 0000000 00000006014 11524347775 025750  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/oddjobd                          0000755 0000000 0000000 00000004325 11524347774 025176  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/sandbox                          0000755 0000000 0000000 00000003242 11524347775 025225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/killall                          0000755 0000000 0000000 00000001214 11524347772 025205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/rdisc                            0000755 0000000 0000000 00000003027 11524347774 024673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/httpd                            0000755 0000000 0000000 00000006364 11524347771 024716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/ntpd                             0000755 0000000 0000000 00000003603 11524347774 024534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/smartd                           0000755 0000000 0000000 00000005672 11524347775 025072  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/nslcd                            0000755 0000000 0000000 00000003213 11524347774 024667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/ntpdate                          0000755 0000000 0000000 00000003512 11524347774 025225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile07/etc/rc.d/init.d/microcode_ctl                    0000755 0000000 0000000 00000002221 11524347773 026367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile07/etc/hosts                                        0000644 0000000 0000000 00000000052 11524347766 022705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1	localhost.localdomain	localhost
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile07/etc/iproute2/                                    0000777 0000000 0000000 00000000000 11524347767 023403  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/etc/iproute2/rt_dsfield                          0000644 0000000 0000000 00000000672 11524347766 025445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client03/tile07/etc/iproute2/rt_realms                           0000644 0000000 0000000 00000000160 11524347767 025307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/tile07/etc/iproute2/rt_scopes                           0000644 0000000 0000000 00000000134 11524347767 025321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile07/etc/iproute2/ematch_map                          0000644 0000000 0000000 00000000073 11524347766 025417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile07/etc/iproute2/rt_tables                           0000644 0000000 0000000 00000000127 11524347767 025301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile07/etc/iproute2/rt_protos                           0000644 0000000 0000000 00000000475 11524347767 025363  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/etc/nsswitch.conf                                0000644 0000000 0000000 00000003230 11524347767 024335  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile07/etc/fstab                                        0000644 0000000 0000000 00000001307 11524347766 022650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Thu Aug  5 09:23:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=008a3418-d80b-4815-9722-db5af2fba6da /                       ext3    defaults        1 1
UUID=171fffed-b6b4-4161-b8cd-a688d195da49 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile07/etc/sysctl.conf                                  0000644 0000000 0000000 00000001466 11524350005 024000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile07/etc/inittab                                      0000644 0000000 0000000 00000001564 11524347766 023210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile07/var/                                             0000777 0000000 0000000 00000000000 11524350006 021623  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/var/log/                                         0000777 0000000 0000000 00000000000 11524350006 022404  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/var/log/dmesg                                    0000644 0000000 0000000 00000041752 11524350006 023433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009cc00 (usable)
 BIOS-e820: 000000000009cc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
RAMDISK: 372ca000 - 37fef973
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffdc0 00040
ACPI: SSDT 00000000dfffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000000dfffd000
Bootmem setup node 0 0000000000000000-00000000dfffd000
  NODE_DATA [000000000000c000 - 000000000003ffff]
  bootmap [0000000000040000 -  000000000005bfff] pages 1c
(7 early reservations) ==> bootmem [0000000000 - 00dfffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [00372ca000 - 0037fef973]          RAMDISK ==> [00372ca000 - 0037fef973]
  #4 [000009cc00 - 0000100000]    BIOS reserved ==> [000009cc00 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00031fffff] PMD -> [ffff880002200000-ffff8800053fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009c
    0: 0x00000100 -> 0x000dfffd
On node 0 totalpages: 917400
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3833 pages, LIFO batch:0
  DMA32 zone: 12488 pages used for memmap
  DMA32 zone: 900917 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009c000 - 000000000009d000
PM: Registered nosave memory: 000000000009d000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 904750
Policy zone: DMA32
Kernel command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us 
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 3591248k/3670004k available (4935k kernel code, 404k absent, 78352k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 36700160 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 2267.202 MHz processor.
Calibrating delay loop (skipped) preset value.. 4534.40 BogoMIPS (lpj=2267202)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Setting APIC routing to flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (9068.80 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13462k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297092576.437:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 7040
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 15:29:35 UTC (1297092575)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
dracut: Mounted root filesystem /dev/vda1
dracut: Loading SELinux policy
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1297092576.840:2): selinux=0 auid=4294967295 ses=4294967295
dracut: /sbin/load_policy: Can't load policy: No such file or directory
dracut: Switching root
udev: starting version 147
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 27 for MSI/MSI-X
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT3 FS on vda1, internal journal
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                      Physical_Configuration/Clients/tb3-client03/tile07/boot/                                            0000777 0000000 0000000 00000000000 11524347765 022020  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/boot/grub/                                       0000777 0000000 0000000 00000000000 11524347765 022757  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile07/boot/grub/grub.conf                              0000644 0000000 0000000 00000002637 11524347766 024572  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux Server (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-70.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-70.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-70.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-59.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-59.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-59.el6.x86_64.img
                                                                                                 Physical_Configuration/Clients/tb3-client03/tile07/rpmpkgs.txt                                      0000644 0000000 0000000 00000105007 11524350006 023256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rhnsd-4.9.3-2.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
pycairo-1.8.6-2.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
polkit-devel-0.96-2.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
popt-devel-1.13-7.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
basesystem-10.0-4.el6.noarch
libgnomeui-devel-2.24.1-4.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libhbalinux-1.0.10-1.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-Newt-1.08-26.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
system-icon-theme-6.0.0-2.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
libjpeg-6b-46.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
gettext-0.17-16.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
NetworkManager-glib-0.8.1-5.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
sed-4.2.1-5.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
libXext-1.1-3.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
libcap-2.16-5.2.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
hwdata-0.233-1.el6.noarch
pcre-7.8-3.1.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
fuse-2.8.3-1.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
python-decorator-3.0.1-3.1.el6.noarch
report-plugin-scp-0.18-7.el6.x86_64
rsync-3.0.6-5.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
ModemManager-0.4.0-3.git20100628.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
device-mapper-event-libs-1.02.53-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
nc-1.84-22.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
dracut-004-32.el6.noarch
psmisc-22.6-15.el6.x86_64
vino-2.28.1-3.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
kernel-2.6.32-70.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
mtools-4.0.12-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
mod_wsgi-3.2-1.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
jna-3.2.4-2.el6.x86_64
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
php-pdo-5.3.2-6.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
postfix-2.6.6-2.el6.x86_64
patch-2.6-6.el6.x86_64
elfutils-0.148-1.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
xorg-x11-xkb-utils-7.4-6.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
xvattr-1.3-18.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
boost-regex-1.41.0-11.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
pam-1.1.1-4.el6.x86_64
setserial-2.17-25.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
python-slip-0.2.11-1.el6.noarch
gvfs-1.4.3-9.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
libhbaapi-2.2-10.el6.x86_64
gnome-applets-2.28.0-7.el6.x86_64
grub-0.97-68.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
setup-2.8.14-10.el6.noarch
hal-devel-0.5.14-8.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
autoconf-2.63-5.1.el6.noarch
fontpackages-filesystem-1.41-1.1.el6.noarch
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libXtst-devel-1.0.99.2-3.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
libX11-common-1.3-2.el6.noarch
sos-2.2-2.el6.noarch
php-pear-1.9.0-2.el6.noarch
avahi-autoipd-0.6.25-8.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
bash-4.1.2-3.el6.x86_64
libcap-ng-devel-0.6.4-3.el6.x86_64
festival-1.96-18.el6.x86_64
libICE-1.0.6-1.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
rootfiles-8.1-6.1.el6.noarch
libldb-0.9.10-23.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
libpng-1.2.44-1.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
gd-2.0.35-10.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
man-pages-3.22-12.el6.noarch
libcroco-devel-0.6.2-5.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
numactl-2.0.3-9.el6.x86_64
yum-3.2.27-14.el6.noarch
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
iproute-2.6.32-10.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
boost-1.41.0-11.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
gstreamer-tools-0.10.29-1.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
libXdamage-1.1.2-1.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
binutils-2.20.51.0.2-5.11.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
gcc-4.4.4-13.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
libtheora-1.1.0-2.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
gnome-power-manager-2.28.3-3.el6.x86_64
totem-mozplugin-2.28.6-2.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-Log-Message-0.02-115.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
libXdmcp-1.0.3-1.el6.x86_64
parted-2.1-10.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libevent-1.4.13-1.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
psacct-6.3.2-63.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
checkpolicy-2.0.22-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
flex-2.5.35-8.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
selinux-policy-3.7.19-54.el6.noarch
ltrace-0.5-16.45svn.1.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
crontabs-1.10-32.1.el6.noarch
coreutils-libs-8.4-9.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
mtr-0.75-5.el6.x86_64
openssl-1.0.0-4.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
libgudev1-147-2.29.el6.x86_64
ctags-5.8-2.el6.x86_64
redhat-bookmarks-6-1.el6.noarch
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
passwd-0.77-4.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
orca-2.28.2-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
slang-2.2.1-1.el6.x86_64
subversion-1.6.11-2.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
openswan-2.6.24-8.el6.x86_64
gtk-doc-1.11-5.1.el6.noarch
libdaemon-0.14-1.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
xml-common-0.6.3-32.el6.noarch
gtk2-devel-2.18.9-4.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
notification-daemon-0.5.0-1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
libgcc-4.4.4-13.el6.i686
ncurses-libs-5.7-3.20090208.el6.x86_64
ppp-2.4.5-5.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
info-4.13a-8.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
docbook-style-dsssl-1.79-10.el6.noarch
pam_ldap-185-5.el6.x86_64
glib2-2.22.5-5.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
readline-6.0-3.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
at-3.1.10-42.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
samba-winbind-clients-3.5.4-68.el6.x86_64
gmp-4.3.1-7.el6.x86_64
gnome-panel-libs-2.30.2-5.el6.x86_64
perl-version-0.77-115.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
perl-5.10.1-115.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
curl-7.19.7-16.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
httpd-tools-2.2.15-5.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
libavc1394-0.5.3-9.1.el6.x86_64
which-2.19-5.1.el6.x86_64
perl-BSD-Resource-1.29.03-3.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
keyutils-libs-1.4-1.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
iso-codes-3.16-2.el6.noarch
libxslt-1.1.26-2.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-1.0.5-1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
giflib-4.1.6-3.1.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
report-0.18-7.el6.x86_64
libX11-1.3-2.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
grubby-7.0.15-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
eggdbus-0.6-3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
httpd-2.2.15-5.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
ppl-0.10.2-11.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
file-libs-5.04-5.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
bc-1.06.95-1.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
NetworkManager-0.8.1-5.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
dracut-kernel-004-32.el6.noarch
cpio-2.10-9.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
unzip-6.0-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
check-0.9.8-1.1.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
libgssglue-0.1-8.1.el6.x86_64
db4-cxx-4.7.25-16.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
libnih-1.0.1-6.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
fcoe-utils-1.0.14-9.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
zip-3.0-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
usermode-1.102-3.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
php-xml-5.3.2-6.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
crash-5.0.0-23.el6.x86_64
libthai-0.1.12-3.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
zenity-2.28.0-1.el6.x86_64
report-newt-0.18-7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
boost-test-1.41.0-11.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
tzdata-2010l-1.el6.noarch
ncurses-5.7-3.20090208.el6.x86_64
nspr-4.8.6-1.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
dnsmasq-2.48-4.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
nss-3.12.7-2.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
udev-147-2.29.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
postgresql-libs-8.4.4-2.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
avahi-ui-0.6.25-8.el6.x86_64
device-mapper-multipath-libs-0.4.9-31.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
udisks-1.0.1-2.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
libaio-0.3.107-10.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
evolution-data-server-devel-2.28.3-10.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
elfutils-devel-0.148-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
cas-0.15-1.el6.1.noarch
libgnome-devel-2.28.0-11.el6.x86_64
kernel-devel-2.6.32-59.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
dstat-0.7.0-1.el6.noarch
perl-XML-Dumper-0.81-6.el6.noarch
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
zd1211-firmware-1.4-4.el6.noarch
ivtv-firmware-20080701-20.2.noarch
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
libnl-1.1-12.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
mysql-5.1.47-4.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
iptables-1.4.7-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
perl-Time-HiRes-1.9721-115.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
systemtap-1.2-9.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
eog-2.28.2-4.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
postgresql-server-8.4.4-2.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
gnome-settings-daemon-2.28.2-11.el6.x86_64
usbutils-0.86-2.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
python-psycopg2-2.0.13-2.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
tcsh-6.17-8.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
kernel-devel-2.6.32-70.el6.x86_64
bison-2.4.1-5.el6.x86_64
busybox-1.15.1-10.el6.x86_64
lsof-4.82-1.2.el6.x86_64
swig-1.3.40-5.el6.x86_64
hal-0.5.14-8.el6.x86_64
powertop-1.11-3.1.el6.x86_64
rdate-1.4-16.el6.x86_64
kernel-2.6.32-59.el6.x86_64
libtopology-0.3-7.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
openldap-devel-2.4.19-15.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
kernel-2.6.32-71.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
libxml2-python-2.7.6-1.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
libcanberra-0.22-1.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
python-gudev-147.1-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
mailcap-2.1.31-1.1.el6.noarch
wpa_supplicant-0.6.8-10.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
cracklib-python-2.8.16-2.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
gnome-python2-libwnck-2.28.0-4.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
openjade-1.3.2-36.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
popt-1.13-7.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
system-gnome-theme-60.0.2-1.el6.noarch
db4-4.7.25-16.el6.x86_64
wget-1.12-1.4.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
fipscheck-1.2.0-4.1.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
gawk-3.1.7-6.el6.x86_64
cvs-1.11.23-11.el6.x86_64
php-common-5.3.2-6.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
tcp_wrappers-libs-7.6-56.3.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
atk-1.28.0-2.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
libacl-2.2.49-4.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
findutils-4.4.2-6.el6.x86_64
libiec61883-1.2.0-4.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
grep-2.6.3-2.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
libgcrypt-1.4.5-3.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
pixman-0.16.6-1.el6.x86_64
iw-0.9.17-4.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
libxcb-1.5-1.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
comps-extras-17.8-1.el6.noarch
libsoup-2.28.2-1.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
xfsprogs-3.1.1-4.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
libXv-1.0.5-1.el6.x86_64
polkit-0.96-2.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
rtkit-0.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
libIDL-0.8.13-2.1.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
ed-1.1-3.3.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
tar-1.23-3.el6.x86_64
libconfig-1.3.2-1.1.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
pciutils-libs-3.1.4-9.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
mod_ssl-2.2.15-5.el6.x86_64
kbd-misc-1.15-11.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
rng-tools-2-8.el6.x86_64
pax-3.4-10.1.el6.x86_64
control-center-2.28.1-25.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
php-gd-5.3.2-6.el6.x86_64
libtasn1-2.3-3.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
irqbalance-0.55-27.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
yajl-1.0.7-3.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libXpm-3.5.8-2.el6.x86_64
pango-1.28.1-3.el6.x86_64
gucharmap-2.28.2-2.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
net-tools-1.60-102.el6.x86_64
exempi-2.1.0-5.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
DeviceKit-power-014-1.el6.x86_64
make-3.81-19.el6.x86_64
unique-1.1.4-2.el6.x86_64
rhn-setup-1.0.0-38.el6.noarch
boost-signals-1.41.0-11.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
cronie-1.4.4-2.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
libcollection-0.5.0-28.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
libudev-147-2.29.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
libuser-0.56.13-4.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
device-mapper-multipath-0.4.9-31.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
perl-URI-1.40-2.el6.noarch
dbus-glib-devel-0.86-5.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
seekwatcher-0.12-4.1.el6.noarch
perf-2.6.32-71.el6.noarch
libglade2-devel-2.6.4-3.1.el6.x86_64
glibc-2.12-1.7.el6.i686
polkit-docs-0.96-2.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
libXi-devel-1.3-3.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
mysql-devel-5.1.47-4.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
iotop-0.3.2-3.el6.noarch
python-meh-0.9-1.el6.noarch
bzip2-devel-1.0.5-6.1.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
atmel-firmware-1.3-7.el6.noarch
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
libstdc++-4.4.4-13.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
libXi-1.3-3.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
nautilus-extensions-2.28.4-15.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
libss-1.41.12-3.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
glx-utils-7.7-2.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
cpp-4.4.4-13.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
ipa-client-2.0-9.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
gnome-vfs2-smb-2.24.2-6.el6.x86_64
xdg-user-dirs-0.12-4.el6.x86_64
gdb-7.1-29.el6.x86_64
gok-2.28.1-5.el6.x86_64
SDL-1.2.14-2.el6.x86_64
postgresql-docs-8.4.4-2.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mod_perl-2.0.4-10.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
prelink-0.4.3-4.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
gnome-session-xsession-2.28.0-15.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
crypto-utils-2.4.1-24.2.el6.x86_64
PyGreSQL-3.8.1-2.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
postgresql-odbc-08.04.0200-1.el6.x86_64
git-1.7.1-2.el6.x86_64
report-gtk-0.18-7.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
libvirt-devel-0.8.1-27.el6.x86_64
audit-2.0.4-1.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
attr-2.4.44-4.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
latrace-0.5.9-2.el6.x86_64
byacc-1.9.20070509-6.1.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
nscd-2.12-1.7.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
vte-0.25.1-5.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
gcc-c++-4.4.4-13.el6.x86_64
firefox-3.6.9-2.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
libgnomecanvas-devel-2.26.0-4.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
perl-XML-Grove-0.46alpha-40.el6.noarch
automake-1.11.1-1.2.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
system-config-services-docs-1.1.8-1.el6.noarch
pyOpenSSL-0.10-2.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
zlib-1.2.3-25.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
audit-libs-devel-2.0.4-1.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
libstdc++-4.4.4-13.el6.i686
libdrm-2.4.20-2.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
docbook-utils-0.6.14-24.el6.noarch
freetype-2.3.11-5.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
gnome-python2-desktop-2.28.0-4.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
words-3.0-17.el6.noarch
libselinux-utils-2.0.94-2.el6.x86_64
gamin-0.1.10-9.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
mailx-12.4-6.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
keyutils-1.4-1.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
openssh-5.3p1-20.el6.x86_64
m4-1.4.13-5.el6.x86_64
autofs-5.0.5-23.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
gvfs-archive-1.4.3-9.el6.x86_64
man-1.6f-29.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
gdm-2.30.4-21.el6.x86_64
libusb-0.1.12-23.el6.x86_64
webalizer-2.21_02-3.3.el6.x86_64
time-1.7-37.1.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
less-436-4.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
gettext-libs-0.17-16.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
NetworkManager-gnome-0.8.1-5.el6.x86_64
readahead-1.5.6-1.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
php-5.3.2-6.el6.x86_64
libical-0.43-5.1.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-panel-2.30.2-5.el6.x86_64
latencytop-0.5-3.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
kbd-1.15-11.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
rcs-5.7-37.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
boost-program-options-1.41.0-11.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
iputils-20071127-13.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
glibc-2.12-1.7.el6.x86_64
gzip-1.3.12-18.el6.x86_64
cscope-15.6-6.el6.x86_64
certmonger-0.24-4.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
openldap-2.4.19-15.el6.x86_64
eject-2.1.5-17.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
qt-4.6.2-16.el6.x86_64
diffstat-1.51-2.el6.x86_64
libgail-gnome-1.20.1-4.1.el6.x86_64
sssd-1.2.1-28.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
newt-0.52.11-2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
nspluginwrapper-1.3.0-14.el6.x86_64
mysql-server-5.1.47-4.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
rhn-setup-gnome-1.0.0-38.el6.noarch
atk-devel-1.28.0-2.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
filesystem-2.4.30-2.1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
libcom_err-devel-1.41.12-3.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
m2crypto-0.20.2-7.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
screen-4.0.3-15.el6.x86_64
alsa-lib-devel-1.0.21-3.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
mobile-broadband-provider-info-1.20100122-1.el6.noarch
xorg-x11-docs-1.3-6.1.el6.noarch
gnome-themes-2.28.1-6.el6.noarch
libselinux-2.0.94-2.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
libxcb-devel-1.5-1.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
pam_krb5-2.3.11-1.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
pytz-2010h-2.el6.noarch
libidn-1.18-2.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
acl-2.2.49-4.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
jline-0.9.94-0.8.el6.noarch
libXt-1.0.7-1.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
procps-3.2.8-14.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
gnome-screensaver-2.28.3-8.el6.x86_64
rpm-4.8.0-12.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
quota-3.17-10.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
rpm-build-4.8.0-12.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
nano-2.0.9-7.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
system-config-services-0.99.45-1.el6.3.noarch
perl-parent-0.221-115.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
hal-info-20090716-3.1.el6.noarch
mlocate-0.22.2-3.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
libicu-4.2.1-9.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
yp-tools-2.9-10.el6.x86_64
coreutils-8.4-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
rfkill-0.3-4.el6.x86_64
at-spi-1.28.1-2.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
lldpad-0.9.38-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
gnome-python2-bonobo-2.28.0-3.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
evolution-data-server-doc-2.28.3-10.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
yelp-2.28.1-8.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
python-2.6.5-3.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile07/ifconfig.txt                                     0000644 0000000 0000000 00000001637 11524350005 023362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:90:00:07  
          inet addr:10.1.216.157  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe90:7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512288491 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160511216 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:728171506638 (678.1 GiB)  TX bytes:16131129060 (15.0 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:255442 errors:0 dropped:0 overruns:0 frame:0
          TX packets:255442 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:326378272 (311.2 MiB)  TX bytes:326378272 (311.2 MiB)

                                                                                                 Physical_Configuration/Clients/tb3-client03/tile07/chkconfig.txt                                    0000644 0000000 0000000 00000006556 11524347766 023562  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:off	4:on	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
fcoe           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:off	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:off	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lldpad         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
multipathd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
mysqld         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postgresql     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile08/                                                 0000777 0000000 0000000 00000000000 11524350027 021037  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/proc/                                            0000777 0000000 0000000 00000000000 11524350027 022002  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/proc/cpuinfo                                     0000644 0000000 0000000 00000002012 11524350026 023356  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2267.202
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4534.40
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2267.202
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4534.40
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile08/proc/swaps                                       0000644 0000000 0000000 00000000150 11524350027 023052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	73084	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile08/proc/devices                                     0000644 0000000 0000000 00000000567 11524350026 023352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile08/proc/modules                                     0000644 0000000 0000000 00000002547 11524350026 023400  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa0259000
stp 2107 1 bridge, Live 0xffffffffa0253000
llc 5608 2 bridge,stp, Live 0xffffffffa024b000
autofs4 27683 3 - Live 0xffffffffa023e000
sunrpc 241630 1 - Live 0xffffffffa01eb000
ipv6 321209 564 - Live 0xffffffffa0156000
dm_mirror 14003 0 - Live 0xffffffffa012a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0121000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0118000
ppdev 8695 0 - Live 0xffffffffa010a000
parport_pc 22944 0 - Live 0xffffffffa00fd000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa00eb000
sg 30186 0 - Live 0xffffffffa00dc000
virtio_net 15665 0 - Live 0xffffffffa00d2000
i2c_piix4 12574 0 - Live 0xffffffffa00c9000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00b9000
ext3 133830 1 - Live 0xffffffffa008d000
jbd 54576 1 ext3, Live 0xffffffffa0076000
mbcache 7918 1 ext3, Live 0xffffffffa006e000
sr_mod 16162 0 - Live 0xffffffffa0064000
cdrom 39769 1 sr_mod, Live 0xffffffffa0053000
virtio_blk 5087 3 - Live 0xffffffffa004c000
ata_generic 3611 0 - Live 0xffffffffa0046000
pata_acpi 3667 0 - Live 0xffffffffa0040000
ata_piix 22588 0 - Live 0xffffffffa0034000
virtio_pci 6733 0 - Live 0xffffffffa002c000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0025000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile08/proc/partitions                                  0000644 0000000 0000000 00000000165 11524350027 024117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile08/proc/meminfo                                     0000644 0000000 0000000 00000002222 11524350026 023350  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        3605932 kB
MemFree:         3357768 kB
Buffers:            5488 kB
Cached:            26512 kB
SwapCached:         3840 kB
Active:            29964 kB
Inactive:          79596 kB
Active(anon):      14304 kB
Inactive(anon):    63228 kB
Active(file):      15660 kB
Inactive(file):    16368 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        1974904 kB
Dirty:               372 kB
Writeback:             0 kB
AnonPages:         75012 kB
Mapped:             7500 kB
Shmem:                 0 kB
Slab:             110344 kB
SReclaimable:      29148 kB
SUnreclaim:        81196 kB
KernelStack:        1664 kB
PageTables:         3496 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3850956 kB
Committed_AS:     766256 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19136 kB
VmallocChunk:   34359715016 kB
HardwareCorrupted:     0 kB
AnonHugePages:     43008 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     3661824 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile08/lspci.txt                                        0000644 0000000 0000000 00000000744 11524350026 022712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
                            Physical_Configuration/Clients/tb3-client03/tile08/df.txt                                           0000644 0000000 0000000 00000000276 11524350007 022170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8184536   4596400  65% /
tmpfs                  1802964         0   1802964   0% /dev/shm
                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile08/mount.txt                                        0000644 0000000 0000000 00000000434 11524350026 022736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile08/etc/                                             0000777 0000000 0000000 00000000000 11524350026 021611  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/                                        0000777 0000000 0000000 00000000000 11524350017 022437  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/                                  0000777 0000000 0000000 00000000000 11524350025 023347  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K02libvirt-guests                 0000755 0000000 0000000 00000017172 11524350020 026534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K02oddjobd                        0000755 0000000 0000000 00000004325 11524350020 025152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K69rpcsvcgssd                     0000755 0000000 0000000 00000006014 11524350021 025741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K95cgconfig                       0000755 0000000 0000000 00000012327 11524350023 025344  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S55sshd                           0000755 0000000 0000000 00000010671 11524350025 024534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K80fcoe                           0000755 0000000 0000000 00000005775 11524350022 024503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K15httpd                          0000755 0000000 0000000 00000006364 11524350020 024701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K92ip6tables                      0000755 0000000 0000000 00000020716 11524350023 025454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K80sssd                           0000755 0000000 0000000 00000004731 11524350022 024532  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S58ntpd                           0000755 0000000 0000000 00000003603 11524350025 024540  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K02avahi-daemon                   0000755 0000000 0000000 00000004754 11524350020 026104  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K89rdisc                          0000755 0000000 0000000 00000003027 11524350023 024671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K76ipsec                          0000755 0000000 0000000 00000010777 11524350022 024675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S22messagebus                     0000755 0000000 0000000 00000004230 11524350024 025714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K95firstboot                      0000755 0000000 0000000 00000005341 11524350023 025576  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K86cgred                          0000755 0000000 0000000 00000006302 11524350022 024644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S13rpcbind                        0000755 0000000 0000000 00000004031 11524350024 025176  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S13irqbalance                     0000755 0000000 0000000 00000003521 11524350024 025661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K84NetworkManager                 0000755 0000000 0000000 00000004235 11524350022 026505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K99sysstat                        0000755 0000000 0000000 00000002363 11524350023 025302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K50dnsmasq                        0000755 0000000 0000000 00000002577 11524350021 025226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K01certmonger                     0000755 0000000 0000000 00000004054 11524350020 025710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K85mdmonitor                      0000755 0000000 0000000 00000005013 11524350022 025565  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K36mysqld                         0000755 0000000 0000000 00000012460 11524350021 025065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K80lldpad                         0000755 0000000 0000000 00000014323 11524350022 025014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K88nslcd                          0000755 0000000 0000000 00000003213 11524350023 024664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K75ntpdate                        0000755 0000000 0000000 00000003512 11524350021 025214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K89iscsid                         0000755 0000000 0000000 00000007127 11524350023 025050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K73ypbind                         0000755 0000000 0000000 00000011277 11524350021 025047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S10network                        0000755 0000000 0000000 00000014466 11524350024 025260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S12rsyslog                        0000755 0000000 0000000 00000004326 11524350024 025265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S11auditd                         0000755 0000000 0000000 00000006462 11524350024 025037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K84wpa_supplicant                 0000755 0000000 0000000 00000003512 11524350022 026607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S20kdump                          0000755 0000000 0000000 00000027662 11524350024 024712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K87multipathd                     0000755 0000000 0000000 00000004473 11524350022 025743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S26haldaemon                      0000755 0000000 0000000 00000003245 11524350025 025520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K60crond                          0000755 0000000 0000000 00000005445 11524350021 024663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K03rhnsd                          0000755 0000000 0000000 00000005522 11524350020 024664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K36postgresql                     0000755 0000000 0000000 00000012406 11524350021 025757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S00microcode_ctl                  0000755 0000000 0000000 00000002221 11524350023 026355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K10saslauthd                      0000755 0000000 0000000 00000004010 11524350020 025523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K88iscsi                          0000755 0000000 0000000 00000007315 11524350022 024701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K60nfs                            0000755 0000000 0000000 00000013536 11524350021 024344  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S30nscd                           0000755 0000000 0000000 00000004723 11524350025 024514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S24rpcgssd                        0000755 0000000 0000000 00000006050 11524350024 025227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K10psacct                         0000755 0000000 0000000 00000003024 11524350020 025014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S26acpid                          0000755 0000000 0000000 00000003275 11524350025 024653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S13cpuspeed                       0000755 0000000 0000000 00000025442 11524350024 025376  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S26udev-post                      0000755 0000000 0000000 00000004370 11524350025 025516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S99local                          0000755 0000000 0000000 00000000334 11524350026 024671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K50netconsole                     0000755 0000000 0000000 00000005650 11524350021 025724  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S24rpcidmapd                      0000755 0000000 0000000 00000005222 11524350025 025526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S02lvm2-monitor                   0000555 0000000 0000000 00000004612 11524350023 026122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S28autofs                         0000755 0000000 0000000 00000007234 11524350025 025075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K01smartd                         0000755 0000000 0000000 00000005672 11524350020 025044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S55autobench                      0000755 0000000 0000000 00000005063 11524350025 025542  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S25netfs                          0000755 0000000 0000000 00000012432 11524350025 024704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K30postfix                        0000755 0000000 0000000 00000007414 11524350021 025245  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/S24nfslock                        0000755 0000000 0000000 00000006675 11524350024 025236  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K92iptables                       0000755 0000000 0000000 00000020557 11524350023 025371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K87restorecond                    0000755 0000000 0000000 00000003427 11524350022 026115  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/rc3.d/K05atd                            0000755 0000000 0000000 00000004112 11524350020 024312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/                                 0000777 0000000 0000000 00000000000 11524350017 023624  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/network                          0000755 0000000 0000000 00000014466 11524350015 025250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/sysstat                          0000755 0000000 0000000 00000002363 11524350017 025264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/saslauthd                        0000755 0000000 0000000 00000004010 11524350017 025531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/messagebus                       0000755 0000000 0000000 00000004230 11524350014 025700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/autobench                        0000755 0000000 0000000 00000005063 11524350011 025514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/atd                              0000755 0000000 0000000 00000004112 11524350011 024306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/mcelogd                          0000755 0000000 0000000 00000003535 11524350014 025163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/auditd                           0000755 0000000 0000000 00000006462 11524350011 025022  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/certmonger                       0000755 0000000 0000000 00000004054 11524350011 025710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/mysqld                           0000755 0000000 0000000 00000012460 11524350014 025057  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/irqbalance                       0000755 0000000 0000000 00000003521 11524350013 025644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/acpid                            0000755 0000000 0000000 00000003275 11524350011 024627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/iscsid                           0000755 0000000 0000000 00000007127 11524350013 025027  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/nscd                             0000755 0000000 0000000 00000004723 11524350015 024501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/rpcidmapd                        0000755 0000000 0000000 00000005222 11524350016 025511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/nfs                              0000755 0000000 0000000 00000013536 11524350015 024342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/sssd                             0000755 0000000 0000000 00000004731 11524350017 024527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/crond                            0000755 0000000 0000000 00000005445 11524350012 024656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/ip6tables                        0000755 0000000 0000000 00000020716 11524350013 025441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/firstboot                        0000755 0000000 0000000 00000005341 11524350012 025557  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/autofs                           0000755 0000000 0000000 00000007234 11524350011 025047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/sshd                             0000755 0000000 0000000 00000010671 11524350017 024514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/libvirt-guests                   0000755 0000000 0000000 00000017172 11524350014 026536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/avahi-daemon                     0000755 0000000 0000000 00000004754 11524350011 026103  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/iscsi                            0000755 0000000 0000000 00000007315 11524350013 024662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/ypbind                           0000755 0000000 0000000 00000011277 11524350017 025043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/psacct                           0000755 0000000 0000000 00000003024 11524350016 025021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/fcoe                             0000755 0000000 0000000 00000005775 11524350012 024473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/nfslock                          0000755 0000000 0000000 00000006675 11524350015 025221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/cgred                            0000755 0000000 0000000 00000006302 11524350011 024625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/udev-post                        0000755 0000000 0000000 00000004370 11524350017 025500  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/haldaemon                        0000755 0000000 0000000 00000003245 11524350012 025475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/ipsec                            0000755 0000000 0000000 00000010777 11524350013 024661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/rpcbind                          0000755 0000000 0000000 00000004031 11524350016 025164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/rhnsd                            0000755 0000000 0000000 00000005522 11524350016 024667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/dnsmasq                          0000755 0000000 0000000 00000002577 11524350012 025222  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/functions                        0000644 0000000 0000000 00000042767 11524350012 025566  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/kdump                            0000755 0000000 0000000 00000027662 11524350013 024677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/lldpad                           0000755 0000000 0000000 00000014323 11524350014 025006  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/postfix                          0000755 0000000 0000000 00000007414 11524350015 025246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/iptables                         0000755 0000000 0000000 00000020557 11524350013 025356  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/multipathd                       0000755 0000000 0000000 00000004473 11524350014 025726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/rsyslog                          0000755 0000000 0000000 00000004326 11524350016 025254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/NetworkManager                   0000755 0000000 0000000 00000004235 11524350011 026470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/netconsole                       0000755 0000000 0000000 00000005650 11524350014 025722  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/rpcgssd                          0000755 0000000 0000000 00000006050 11524350016 025213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/lvm2-monitor                     0000555 0000000 0000000 00000004612 11524350014 026111  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/halt                             0000755 0000000 0000000 00000012723 11524350012 024476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/cgconfig                         0000755 0000000 0000000 00000012327 11524350011 025324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/single                           0000755 0000000 0000000 00000001207 11524350017 025027  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/postgresql                       0000755 0000000 0000000 00000012406 11524350016 025753  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/mdmonitor                        0000755 0000000 0000000 00000005013 11524350014 025552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/restorecond                      0000755 0000000 0000000 00000003427 11524350016 026102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/wpa_supplicant                   0000755 0000000 0000000 00000003512 11524350017 026600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/cpuspeed                         0000755 0000000 0000000 00000025442 11524350012 025360  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/netfs                            0000755 0000000 0000000 00000012432 11524350014 024664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/rpcsvcgssd                       0000755 0000000 0000000 00000006014 11524350016 025727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/oddjobd                          0000755 0000000 0000000 00000004325 11524350015 025155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/sandbox                          0000755 0000000 0000000 00000003242 11524350016 025204  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/killall                          0000755 0000000 0000000 00000001214 11524350013 025164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/rdisc                            0000755 0000000 0000000 00000003027 11524350016 024653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/httpd                            0000755 0000000 0000000 00000006364 11524350013 024676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/ntpd                             0000755 0000000 0000000 00000003603 11524350015 024513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/smartd                           0000755 0000000 0000000 00000005672 11524350017 025052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/nslcd                            0000755 0000000 0000000 00000003213 11524350015 024646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/ntpdate                          0000755 0000000 0000000 00000003512 11524350015 025204  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile08/etc/rc.d/init.d/microcode_ctl                    0000755 0000000 0000000 00000002221 11524350014 026346  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile08/etc/hosts                                        0000644 0000000 0000000 00000000052 11524350007 022664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1	localhost.localdomain	localhost
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile08/etc/iproute2/                                    0000777 0000000 0000000 00000000000 11524350010 023353  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/etc/iproute2/rt_dsfield                          0000644 0000000 0000000 00000000672 11524350010 025416  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client03/tile08/etc/iproute2/rt_realms                           0000644 0000000 0000000 00000000160 11524350010 025257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/tile08/etc/iproute2/rt_scopes                           0000644 0000000 0000000 00000000134 11524350010 025271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile08/etc/iproute2/ematch_map                          0000644 0000000 0000000 00000000073 11524350010 025370  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile08/etc/iproute2/rt_tables                           0000644 0000000 0000000 00000000127 11524350010 025251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile08/etc/iproute2/rt_protos                           0000644 0000000 0000000 00000000475 11524350010 025333  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/etc/nsswitch.conf                                0000644 0000000 0000000 00000003230 11524350010 024305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile08/etc/fstab                                        0000644 0000000 0000000 00000001307 11524350007 022627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Thu Aug  5 09:23:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=008a3418-d80b-4815-9722-db5af2fba6da /                       ext3    defaults        1 1
UUID=171fffed-b6b4-4161-b8cd-a688d195da49 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile08/etc/sysctl.conf                                  0000644 0000000 0000000 00000001466 11524350026 024004  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile08/etc/inittab                                      0000644 0000000 0000000 00000001564 11524350007 023167  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile08/var/                                             0000777 0000000 0000000 00000000000 11524350027 021627  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/var/log/                                         0000777 0000000 0000000 00000000000 11524350027 022410  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/var/log/dmesg                                    0000644 0000000 0000000 00000041752 11524350027 023437  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009cc00 (usable)
 BIOS-e820: 000000000009cc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
RAMDISK: 372ca000 - 37fef973
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffdc0 00040
ACPI: SSDT 00000000dfffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000000dfffd000
Bootmem setup node 0 0000000000000000-00000000dfffd000
  NODE_DATA [000000000000c000 - 000000000003ffff]
  bootmap [0000000000040000 -  000000000005bfff] pages 1c
(7 early reservations) ==> bootmem [0000000000 - 00dfffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [00372ca000 - 0037fef973]          RAMDISK ==> [00372ca000 - 0037fef973]
  #4 [000009cc00 - 0000100000]    BIOS reserved ==> [000009cc00 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00031fffff] PMD -> [ffff880002200000-ffff8800053fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009c
    0: 0x00000100 -> 0x000dfffd
On node 0 totalpages: 917400
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3833 pages, LIFO batch:0
  DMA32 zone: 12488 pages used for memmap
  DMA32 zone: 900917 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009c000 - 000000000009d000
PM: Registered nosave memory: 000000000009d000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 904750
Policy zone: DMA32
Kernel command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us 
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 3591248k/3670004k available (4935k kernel code, 404k absent, 78352k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 36700160 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 2267.202 MHz processor.
Calibrating delay loop (skipped) preset value.. 4534.40 BogoMIPS (lpj=2267202)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Setting APIC routing to flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (9068.80 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13462k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297092582.433:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 7040
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 15:29:42 UTC (1297092582)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
dracut: Mounted root filesystem /dev/vda1
dracut: Loading SELinux policy
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1297092583.640:2): selinux=0 auid=4294967295 ses=4294967295
dracut: /sbin/load_policy: Can't load policy: No such file or directory
dracut: Switching root
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 27 for MSI/MSI-X
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT3 FS on vda1, internal journal
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                      Physical_Configuration/Clients/tb3-client03/tile08/boot/                                            0000777 0000000 0000000 00000000000 11524350007 022000  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/boot/grub/                                       0000777 0000000 0000000 00000000000 11524350007 022737  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile08/boot/grub/grub.conf                              0000644 0000000 0000000 00000002637 11524350007 024551  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux Server (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-70.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-70.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-70.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-59.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-59.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-59.el6.x86_64.img
                                                                                                 Physical_Configuration/Clients/tb3-client03/tile08/rpmpkgs.txt                                      0000644 0000000 0000000 00000105007 11524350027 023262  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rhnsd-4.9.3-2.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
pycairo-1.8.6-2.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
polkit-devel-0.96-2.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
popt-devel-1.13-7.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
basesystem-10.0-4.el6.noarch
libgnomeui-devel-2.24.1-4.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libhbalinux-1.0.10-1.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-Newt-1.08-26.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
system-icon-theme-6.0.0-2.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
libjpeg-6b-46.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
gettext-0.17-16.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
NetworkManager-glib-0.8.1-5.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
sed-4.2.1-5.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
libXext-1.1-3.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
libcap-2.16-5.2.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
hwdata-0.233-1.el6.noarch
pcre-7.8-3.1.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
fuse-2.8.3-1.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
python-decorator-3.0.1-3.1.el6.noarch
report-plugin-scp-0.18-7.el6.x86_64
rsync-3.0.6-5.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
ModemManager-0.4.0-3.git20100628.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
device-mapper-event-libs-1.02.53-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
nc-1.84-22.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
dracut-004-32.el6.noarch
psmisc-22.6-15.el6.x86_64
vino-2.28.1-3.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
kernel-2.6.32-70.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
mtools-4.0.12-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
mod_wsgi-3.2-1.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
jna-3.2.4-2.el6.x86_64
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
php-pdo-5.3.2-6.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
postfix-2.6.6-2.el6.x86_64
patch-2.6-6.el6.x86_64
elfutils-0.148-1.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
xorg-x11-xkb-utils-7.4-6.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
xvattr-1.3-18.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
boost-regex-1.41.0-11.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
pam-1.1.1-4.el6.x86_64
setserial-2.17-25.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
python-slip-0.2.11-1.el6.noarch
gvfs-1.4.3-9.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
libhbaapi-2.2-10.el6.x86_64
gnome-applets-2.28.0-7.el6.x86_64
grub-0.97-68.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
setup-2.8.14-10.el6.noarch
hal-devel-0.5.14-8.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
autoconf-2.63-5.1.el6.noarch
fontpackages-filesystem-1.41-1.1.el6.noarch
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libXtst-devel-1.0.99.2-3.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
libX11-common-1.3-2.el6.noarch
sos-2.2-2.el6.noarch
php-pear-1.9.0-2.el6.noarch
avahi-autoipd-0.6.25-8.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
bash-4.1.2-3.el6.x86_64
libcap-ng-devel-0.6.4-3.el6.x86_64
festival-1.96-18.el6.x86_64
libICE-1.0.6-1.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
rootfiles-8.1-6.1.el6.noarch
libldb-0.9.10-23.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
libpng-1.2.44-1.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
gd-2.0.35-10.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
man-pages-3.22-12.el6.noarch
libcroco-devel-0.6.2-5.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
numactl-2.0.3-9.el6.x86_64
yum-3.2.27-14.el6.noarch
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
iproute-2.6.32-10.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
boost-1.41.0-11.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
gstreamer-tools-0.10.29-1.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
libXdamage-1.1.2-1.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
binutils-2.20.51.0.2-5.11.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
gcc-4.4.4-13.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
libtheora-1.1.0-2.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
gnome-power-manager-2.28.3-3.el6.x86_64
totem-mozplugin-2.28.6-2.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-Log-Message-0.02-115.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
libXdmcp-1.0.3-1.el6.x86_64
parted-2.1-10.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libevent-1.4.13-1.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
psacct-6.3.2-63.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
checkpolicy-2.0.22-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
flex-2.5.35-8.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
selinux-policy-3.7.19-54.el6.noarch
ltrace-0.5-16.45svn.1.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
crontabs-1.10-32.1.el6.noarch
coreutils-libs-8.4-9.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
mtr-0.75-5.el6.x86_64
openssl-1.0.0-4.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
libgudev1-147-2.29.el6.x86_64
ctags-5.8-2.el6.x86_64
redhat-bookmarks-6-1.el6.noarch
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
passwd-0.77-4.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
orca-2.28.2-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
slang-2.2.1-1.el6.x86_64
subversion-1.6.11-2.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
openswan-2.6.24-8.el6.x86_64
gtk-doc-1.11-5.1.el6.noarch
libdaemon-0.14-1.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
xml-common-0.6.3-32.el6.noarch
gtk2-devel-2.18.9-4.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
notification-daemon-0.5.0-1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
libgcc-4.4.4-13.el6.i686
ncurses-libs-5.7-3.20090208.el6.x86_64
ppp-2.4.5-5.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
info-4.13a-8.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
docbook-style-dsssl-1.79-10.el6.noarch
pam_ldap-185-5.el6.x86_64
glib2-2.22.5-5.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
readline-6.0-3.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
at-3.1.10-42.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
samba-winbind-clients-3.5.4-68.el6.x86_64
gmp-4.3.1-7.el6.x86_64
gnome-panel-libs-2.30.2-5.el6.x86_64
perl-version-0.77-115.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
perl-5.10.1-115.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
curl-7.19.7-16.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
httpd-tools-2.2.15-5.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
libavc1394-0.5.3-9.1.el6.x86_64
which-2.19-5.1.el6.x86_64
perl-BSD-Resource-1.29.03-3.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
keyutils-libs-1.4-1.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
iso-codes-3.16-2.el6.noarch
libxslt-1.1.26-2.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-1.0.5-1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
giflib-4.1.6-3.1.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
report-0.18-7.el6.x86_64
libX11-1.3-2.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
grubby-7.0.15-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
eggdbus-0.6-3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
httpd-2.2.15-5.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
ppl-0.10.2-11.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
file-libs-5.04-5.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
bc-1.06.95-1.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
NetworkManager-0.8.1-5.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
dracut-kernel-004-32.el6.noarch
cpio-2.10-9.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
unzip-6.0-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
check-0.9.8-1.1.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
libgssglue-0.1-8.1.el6.x86_64
db4-cxx-4.7.25-16.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
libnih-1.0.1-6.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
fcoe-utils-1.0.14-9.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
zip-3.0-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
usermode-1.102-3.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
php-xml-5.3.2-6.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
crash-5.0.0-23.el6.x86_64
libthai-0.1.12-3.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
zenity-2.28.0-1.el6.x86_64
report-newt-0.18-7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
boost-test-1.41.0-11.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
tzdata-2010l-1.el6.noarch
ncurses-5.7-3.20090208.el6.x86_64
nspr-4.8.6-1.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
dnsmasq-2.48-4.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
nss-3.12.7-2.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
udev-147-2.29.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
postgresql-libs-8.4.4-2.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
avahi-ui-0.6.25-8.el6.x86_64
device-mapper-multipath-libs-0.4.9-31.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
udisks-1.0.1-2.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
libaio-0.3.107-10.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
evolution-data-server-devel-2.28.3-10.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
elfutils-devel-0.148-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
cas-0.15-1.el6.1.noarch
libgnome-devel-2.28.0-11.el6.x86_64
kernel-devel-2.6.32-59.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
dstat-0.7.0-1.el6.noarch
perl-XML-Dumper-0.81-6.el6.noarch
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
zd1211-firmware-1.4-4.el6.noarch
ivtv-firmware-20080701-20.2.noarch
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
libnl-1.1-12.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
mysql-5.1.47-4.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
iptables-1.4.7-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
perl-Time-HiRes-1.9721-115.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
systemtap-1.2-9.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
eog-2.28.2-4.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
postgresql-server-8.4.4-2.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
gnome-settings-daemon-2.28.2-11.el6.x86_64
usbutils-0.86-2.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
python-psycopg2-2.0.13-2.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
tcsh-6.17-8.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
kernel-devel-2.6.32-70.el6.x86_64
bison-2.4.1-5.el6.x86_64
busybox-1.15.1-10.el6.x86_64
lsof-4.82-1.2.el6.x86_64
swig-1.3.40-5.el6.x86_64
hal-0.5.14-8.el6.x86_64
powertop-1.11-3.1.el6.x86_64
rdate-1.4-16.el6.x86_64
kernel-2.6.32-59.el6.x86_64
libtopology-0.3-7.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
openldap-devel-2.4.19-15.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
kernel-2.6.32-71.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
libxml2-python-2.7.6-1.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
libcanberra-0.22-1.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
python-gudev-147.1-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
mailcap-2.1.31-1.1.el6.noarch
wpa_supplicant-0.6.8-10.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
cracklib-python-2.8.16-2.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
gnome-python2-libwnck-2.28.0-4.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
openjade-1.3.2-36.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
popt-1.13-7.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
system-gnome-theme-60.0.2-1.el6.noarch
db4-4.7.25-16.el6.x86_64
wget-1.12-1.4.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
fipscheck-1.2.0-4.1.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
gawk-3.1.7-6.el6.x86_64
cvs-1.11.23-11.el6.x86_64
php-common-5.3.2-6.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
tcp_wrappers-libs-7.6-56.3.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
atk-1.28.0-2.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
libacl-2.2.49-4.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
findutils-4.4.2-6.el6.x86_64
libiec61883-1.2.0-4.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
grep-2.6.3-2.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
libgcrypt-1.4.5-3.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
pixman-0.16.6-1.el6.x86_64
iw-0.9.17-4.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
libxcb-1.5-1.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
comps-extras-17.8-1.el6.noarch
libsoup-2.28.2-1.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
xfsprogs-3.1.1-4.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
libXv-1.0.5-1.el6.x86_64
polkit-0.96-2.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
rtkit-0.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
libIDL-0.8.13-2.1.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
ed-1.1-3.3.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
tar-1.23-3.el6.x86_64
libconfig-1.3.2-1.1.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
pciutils-libs-3.1.4-9.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
mod_ssl-2.2.15-5.el6.x86_64
kbd-misc-1.15-11.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
rng-tools-2-8.el6.x86_64
pax-3.4-10.1.el6.x86_64
control-center-2.28.1-25.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
php-gd-5.3.2-6.el6.x86_64
libtasn1-2.3-3.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
irqbalance-0.55-27.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
yajl-1.0.7-3.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libXpm-3.5.8-2.el6.x86_64
pango-1.28.1-3.el6.x86_64
gucharmap-2.28.2-2.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
net-tools-1.60-102.el6.x86_64
exempi-2.1.0-5.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
DeviceKit-power-014-1.el6.x86_64
make-3.81-19.el6.x86_64
unique-1.1.4-2.el6.x86_64
rhn-setup-1.0.0-38.el6.noarch
boost-signals-1.41.0-11.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
cronie-1.4.4-2.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
libcollection-0.5.0-28.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
libudev-147-2.29.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
libuser-0.56.13-4.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
device-mapper-multipath-0.4.9-31.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
perl-URI-1.40-2.el6.noarch
dbus-glib-devel-0.86-5.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
seekwatcher-0.12-4.1.el6.noarch
perf-2.6.32-71.el6.noarch
libglade2-devel-2.6.4-3.1.el6.x86_64
glibc-2.12-1.7.el6.i686
polkit-docs-0.96-2.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
libXi-devel-1.3-3.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
mysql-devel-5.1.47-4.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
iotop-0.3.2-3.el6.noarch
python-meh-0.9-1.el6.noarch
bzip2-devel-1.0.5-6.1.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
atmel-firmware-1.3-7.el6.noarch
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
libstdc++-4.4.4-13.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
libXi-1.3-3.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
nautilus-extensions-2.28.4-15.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
libss-1.41.12-3.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
glx-utils-7.7-2.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
cpp-4.4.4-13.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
ipa-client-2.0-9.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
gnome-vfs2-smb-2.24.2-6.el6.x86_64
xdg-user-dirs-0.12-4.el6.x86_64
gdb-7.1-29.el6.x86_64
gok-2.28.1-5.el6.x86_64
SDL-1.2.14-2.el6.x86_64
postgresql-docs-8.4.4-2.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mod_perl-2.0.4-10.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
prelink-0.4.3-4.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
gnome-session-xsession-2.28.0-15.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
crypto-utils-2.4.1-24.2.el6.x86_64
PyGreSQL-3.8.1-2.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
postgresql-odbc-08.04.0200-1.el6.x86_64
git-1.7.1-2.el6.x86_64
report-gtk-0.18-7.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
libvirt-devel-0.8.1-27.el6.x86_64
audit-2.0.4-1.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
attr-2.4.44-4.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
latrace-0.5.9-2.el6.x86_64
byacc-1.9.20070509-6.1.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
nscd-2.12-1.7.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
vte-0.25.1-5.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
gcc-c++-4.4.4-13.el6.x86_64
firefox-3.6.9-2.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
libgnomecanvas-devel-2.26.0-4.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
perl-XML-Grove-0.46alpha-40.el6.noarch
automake-1.11.1-1.2.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
system-config-services-docs-1.1.8-1.el6.noarch
pyOpenSSL-0.10-2.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
zlib-1.2.3-25.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
audit-libs-devel-2.0.4-1.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
libstdc++-4.4.4-13.el6.i686
libdrm-2.4.20-2.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
docbook-utils-0.6.14-24.el6.noarch
freetype-2.3.11-5.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
gnome-python2-desktop-2.28.0-4.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
words-3.0-17.el6.noarch
libselinux-utils-2.0.94-2.el6.x86_64
gamin-0.1.10-9.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
mailx-12.4-6.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
keyutils-1.4-1.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
openssh-5.3p1-20.el6.x86_64
m4-1.4.13-5.el6.x86_64
autofs-5.0.5-23.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
gvfs-archive-1.4.3-9.el6.x86_64
man-1.6f-29.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
gdm-2.30.4-21.el6.x86_64
libusb-0.1.12-23.el6.x86_64
webalizer-2.21_02-3.3.el6.x86_64
time-1.7-37.1.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
less-436-4.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
gettext-libs-0.17-16.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
NetworkManager-gnome-0.8.1-5.el6.x86_64
readahead-1.5.6-1.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
php-5.3.2-6.el6.x86_64
libical-0.43-5.1.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-panel-2.30.2-5.el6.x86_64
latencytop-0.5-3.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
kbd-1.15-11.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
rcs-5.7-37.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
boost-program-options-1.41.0-11.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
iputils-20071127-13.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
glibc-2.12-1.7.el6.x86_64
gzip-1.3.12-18.el6.x86_64
cscope-15.6-6.el6.x86_64
certmonger-0.24-4.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
openldap-2.4.19-15.el6.x86_64
eject-2.1.5-17.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
qt-4.6.2-16.el6.x86_64
diffstat-1.51-2.el6.x86_64
libgail-gnome-1.20.1-4.1.el6.x86_64
sssd-1.2.1-28.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
newt-0.52.11-2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
nspluginwrapper-1.3.0-14.el6.x86_64
mysql-server-5.1.47-4.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
rhn-setup-gnome-1.0.0-38.el6.noarch
atk-devel-1.28.0-2.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
filesystem-2.4.30-2.1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
libcom_err-devel-1.41.12-3.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
m2crypto-0.20.2-7.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
screen-4.0.3-15.el6.x86_64
alsa-lib-devel-1.0.21-3.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
mobile-broadband-provider-info-1.20100122-1.el6.noarch
xorg-x11-docs-1.3-6.1.el6.noarch
gnome-themes-2.28.1-6.el6.noarch
libselinux-2.0.94-2.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
libxcb-devel-1.5-1.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
pam_krb5-2.3.11-1.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
pytz-2010h-2.el6.noarch
libidn-1.18-2.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
acl-2.2.49-4.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
jline-0.9.94-0.8.el6.noarch
libXt-1.0.7-1.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
procps-3.2.8-14.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
gnome-screensaver-2.28.3-8.el6.x86_64
rpm-4.8.0-12.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
quota-3.17-10.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
rpm-build-4.8.0-12.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
nano-2.0.9-7.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
system-config-services-0.99.45-1.el6.3.noarch
perl-parent-0.221-115.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
hal-info-20090716-3.1.el6.noarch
mlocate-0.22.2-3.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
libicu-4.2.1-9.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
yp-tools-2.9-10.el6.x86_64
coreutils-8.4-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
rfkill-0.3-4.el6.x86_64
at-spi-1.28.1-2.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
lldpad-0.9.38-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
gnome-python2-bonobo-2.28.0-3.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
evolution-data-server-doc-2.28.3-10.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
yelp-2.28.1-8.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
python-2.6.5-3.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile08/ifconfig.txt                                     0000644 0000000 0000000 00000001637 11524350026 023366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:90:00:08  
          inet addr:10.1.216.158  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe90:8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512972070 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160516486 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:729932945213 (679.8 GiB)  TX bytes:16149183647 (15.0 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:255695 errors:0 dropped:0 overruns:0 frame:0
          TX packets:255695 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:326393029 (311.2 MiB)  TX bytes:326393029 (311.2 MiB)

                                                                                                 Physical_Configuration/Clients/tb3-client03/tile08/chkconfig.txt                                    0000644 0000000 0000000 00000006556 11524350007 023541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:off	4:on	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
fcoe           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:off	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:off	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lldpad         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
multipathd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
mysqld         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postgresql     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile09/                                                 0000777 0000000 0000000 00000000000 11524350050 021034  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/proc/                                            0000777 0000000 0000000 00000000000 11524350047 022005  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/proc/cpuinfo                                     0000644 0000000 0000000 00000002012 11524350047 023362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2267.202
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4534.40
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 2267.202
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 popcnt hypervisor lahf_lm
bogomips	: 4534.40
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile09/proc/swaps                                       0000644 0000000 0000000 00000000150 11524350047 023055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	70904	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile09/proc/devices                                     0000644 0000000 0000000 00000000567 11524350047 023356  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile09/proc/modules                                     0000644 0000000 0000000 00000002547 11524350047 023404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa0259000
stp 2107 1 bridge, Live 0xffffffffa0253000
llc 5608 2 bridge,stp, Live 0xffffffffa024b000
autofs4 27683 3 - Live 0xffffffffa023e000
sunrpc 241630 1 - Live 0xffffffffa01eb000
ipv6 321209 564 - Live 0xffffffffa0156000
dm_mirror 14003 0 - Live 0xffffffffa012a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0121000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0118000
ppdev 8695 0 - Live 0xffffffffa010a000
parport_pc 22944 0 - Live 0xffffffffa00fd000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa00eb000
sg 30186 0 - Live 0xffffffffa00dc000
virtio_net 15665 0 - Live 0xffffffffa00d2000
i2c_piix4 12574 0 - Live 0xffffffffa00c9000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00b9000
ext3 133830 1 - Live 0xffffffffa008d000
jbd 54576 1 ext3, Live 0xffffffffa0076000
mbcache 7918 1 ext3, Live 0xffffffffa006e000
virtio_blk 5087 3 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
ata_generic 3611 0 - Live 0xffffffffa0030000
pata_acpi 3667 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile09/proc/partitions                                  0000644 0000000 0000000 00000000165 11524350047 024122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile09/proc/meminfo                                     0000644 0000000 0000000 00000002222 11524350047 023354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        3605932 kB
MemFree:         3352532 kB
Buffers:            3888 kB
Cached:            26220 kB
SwapCached:         3692 kB
Active:            28844 kB
Inactive:          82168 kB
Active(anon):      13180 kB
Inactive(anon):    67756 kB
Active(file):      15664 kB
Inactive(file):    14412 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        1977084 kB
Dirty:               352 kB
Writeback:             0 kB
AnonPages:         79052 kB
Mapped:             7396 kB
Shmem:                 4 kB
Slab:             114192 kB
SReclaimable:      32972 kB
SUnreclaim:        81220 kB
KernelStack:        1696 kB
PageTables:         3368 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3850956 kB
Committed_AS:     766744 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19136 kB
VmallocChunk:   34359715008 kB
HardwareCorrupted:     0 kB
AnonHugePages:     45056 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     3661824 kB
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile09/lspci.txt                                        0000644 0000000 0000000 00000000744 11524350047 022716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
                            Physical_Configuration/Clients/tb3-client03/tile09/df.txt                                           0000644 0000000 0000000 00000000276 11524350030 022165  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8183840   4597096  65% /
tmpfs                  1802964         0   1802964   0% /dev/shm
                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile09/mount.txt                                        0000644 0000000 0000000 00000000434 11524350047 022742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile09/etc/                                             0000777 0000000 0000000 00000000000 11524350046 021614  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/                                        0000777 0000000 0000000 00000000000 11524350040 022434  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/                                  0000777 0000000 0000000 00000000000 11524350046 023353  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K02libvirt-guests                 0000755 0000000 0000000 00000017172 11524350041 026540  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K02oddjobd                        0000755 0000000 0000000 00000004325 11524350041 025156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K69rpcsvcgssd                     0000755 0000000 0000000 00000006014 11524350042 025745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K95cgconfig                       0000755 0000000 0000000 00000012327 11524350044 025350  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S55sshd                           0000755 0000000 0000000 00000010671 11524350046 024540  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K80fcoe                           0000755 0000000 0000000 00000005775 11524350042 024506  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K15httpd                          0000755 0000000 0000000 00000006364 11524350041 024705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K92ip6tables                      0000755 0000000 0000000 00000020716 11524350044 025460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K80sssd                           0000755 0000000 0000000 00000004731 11524350043 024536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S58ntpd                           0000755 0000000 0000000 00000003603 11524350046 024544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K02avahi-daemon                   0000755 0000000 0000000 00000004754 11524350040 026107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K89rdisc                          0000755 0000000 0000000 00000003027 11524350043 024674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K76ipsec                          0000755 0000000 0000000 00000010777 11524350042 024700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S22messagebus                     0000755 0000000 0000000 00000004230 11524350045 025720  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K95firstboot                      0000755 0000000 0000000 00000005341 11524350044 025602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K86cgred                          0000755 0000000 0000000 00000006302 11524350043 024650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S13rpcbind                        0000755 0000000 0000000 00000004031 11524350045 025202  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S13irqbalance                     0000755 0000000 0000000 00000003521 11524350045 025665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K84NetworkManager                 0000755 0000000 0000000 00000004235 11524350043 026511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K99sysstat                        0000755 0000000 0000000 00000002363 11524350044 025306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K50dnsmasq                        0000755 0000000 0000000 00000002577 11524350042 025232  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K01certmonger                     0000755 0000000 0000000 00000004054 11524350040 025713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K85mdmonitor                      0000755 0000000 0000000 00000005013 11524350043 025571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K36mysqld                         0000755 0000000 0000000 00000012460 11524350041 025070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K80lldpad                         0000755 0000000 0000000 00000014323 11524350042 025017  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K88nslcd                          0000755 0000000 0000000 00000003213 11524350043 024667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K75ntpdate                        0000755 0000000 0000000 00000003512 11524350042 025220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K89iscsid                         0000755 0000000 0000000 00000007127 11524350043 025053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K73ypbind                         0000755 0000000 0000000 00000011277 11524350042 025053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S10network                        0000755 0000000 0000000 00000014466 11524350044 025263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S12rsyslog                        0000755 0000000 0000000 00000004326 11524350044 025270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S11auditd                         0000755 0000000 0000000 00000006462 11524350044 025042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K84wpa_supplicant                 0000755 0000000 0000000 00000003512 11524350043 026613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S20kdump                          0000755 0000000 0000000 00000027662 11524350045 024716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K87multipathd                     0000755 0000000 0000000 00000004473 11524350043 025747  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S26haldaemon                      0000755 0000000 0000000 00000003245 11524350046 025524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K60crond                          0000755 0000000 0000000 00000005445 11524350042 024667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K03rhnsd                          0000755 0000000 0000000 00000005522 11524350041 024670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K36postgresql                     0000755 0000000 0000000 00000012406 11524350041 025762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S00microcode_ctl                  0000755 0000000 0000000 00000002221 11524350044 026361  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K10saslauthd                      0000755 0000000 0000000 00000004010 11524350041 025527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K88iscsi                          0000755 0000000 0000000 00000007315 11524350043 024705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K60nfs                            0000755 0000000 0000000 00000013536 11524350042 024350  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S30nscd                           0000755 0000000 0000000 00000004723 11524350046 024520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S24rpcgssd                        0000755 0000000 0000000 00000006050 11524350045 025233  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K10psacct                         0000755 0000000 0000000 00000003024 11524350041 025020  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S26acpid                          0000755 0000000 0000000 00000003275 11524350045 024656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S13cpuspeed                       0000755 0000000 0000000 00000025442 11524350045 025402  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S26udev-post                      0000755 0000000 0000000 00000004370 11524350046 025522  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S99local                          0000755 0000000 0000000 00000000334 11524350046 024674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K50netconsole                     0000755 0000000 0000000 00000005650 11524350042 025730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S24rpcidmapd                      0000755 0000000 0000000 00000005222 11524350045 025531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S02lvm2-monitor                   0000555 0000000 0000000 00000004612 11524350044 026126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S28autofs                         0000755 0000000 0000000 00000007234 11524350046 025101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K01smartd                         0000755 0000000 0000000 00000005672 11524350040 025047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S55autobench                      0000755 0000000 0000000 00000005063 11524350046 025546  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S25netfs                          0000755 0000000 0000000 00000012432 11524350045 024707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K30postfix                        0000755 0000000 0000000 00000007414 11524350041 025250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/S24nfslock                        0000755 0000000 0000000 00000006675 11524350045 025242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K92iptables                       0000755 0000000 0000000 00000020557 11524350044 025375  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K87restorecond                    0000755 0000000 0000000 00000003427 11524350043 026121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/rc3.d/K05atd                            0000755 0000000 0000000 00000004112 11524350041 024316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/                                 0000777 0000000 0000000 00000000000 11524350040 023621  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/network                          0000755 0000000 0000000 00000014466 11524350035 025253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/sysstat                          0000755 0000000 0000000 00000002363 11524350040 025261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/saslauthd                        0000755 0000000 0000000 00000004010 11524350037 025534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/messagebus                       0000755 0000000 0000000 00000004230 11524350035 025704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/autobench                        0000755 0000000 0000000 00000005063 11524350032 025520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/atd                              0000755 0000000 0000000 00000004112 11524350031 024311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/mcelogd                          0000755 0000000 0000000 00000003535 11524350034 025166  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/auditd                           0000755 0000000 0000000 00000006462 11524350031 025025  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/certmonger                       0000755 0000000 0000000 00000004054 11524350032 025714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/mysqld                           0000755 0000000 0000000 00000012460 11524350035 025063  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# mysqld	This shell script takes care of starting and stopping
#		the MySQL subsystem (mysqld).
#
# chkconfig: - 64 36
# description:	MySQL database server.
# processname: mysqld
# config: /etc/my.cnf
# pidfile: /var/run/mysqld/mysqld.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network


exec="/usr/bin/mysqld_safe"
prog="mysqld"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog


# extract value of a MySQL option from config files
# Usage: get_mysql_option SECTION VARNAME DEFAULT
# result is returned in $result
# We use my_print_defaults which prints all options from multiple files,
# with the more specific ones later; hence take the last match.
get_mysql_option(){
	result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
	if [ -z "$result" ]; then
	    # not found, use default
	    result="$3"
	fi
}

get_mysql_option mysqld datadir "/var/lib/mysql"
datadir="$result"
get_mysql_option mysqld socket "$datadir/mysql.sock"
socketfile="$result"
get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
errlogfile="$result"
get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
mypidfile="$result"


start(){
    [ -x $exec ] || exit 5
    # check to see if it's already running
    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
    if [ $? = 0 ]; then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    elif echo "$RESPONSE" | grep -q "Access denied for user"
    then
	# already running, do nothing
	action $"Starting $prog: " /bin/true
	ret=0
    else
    	# prepare for start
	touch "$errlogfile"
	chown mysql:mysql "$errlogfile" 
	chmod 0640 "$errlogfile"
	[ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
	if [ ! -d "$datadir/mysql" ] ; then
	    # First, make sure $datadir is there with correct permissions
	    if [ ! -e "$datadir" -a ! -h "$datadir" ]
	    then
		mkdir -p "$datadir" || exit 1
	    fi
	    chown mysql:mysql "$datadir"
	    chmod 0755 "$datadir"
	    [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
	    # Now create the database
	    action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
	    ret=$?
	    chown -R mysql:mysql "$datadir"
	    if [ $ret -ne 0 ] ; then
		return $ret
	    fi
	fi
	chown mysql:mysql "$datadir"
	chmod 0755 "$datadir"
	# Pass all the options determined above, to ensure consistent behavior.
	# In many cases mysqld_safe would arrive at the same conclusions anyway
	# but we need to be sure.  (An exception is that we don't force the
	# log-error setting, since this script doesn't really depend on that,
	# and some users might prefer to configure logging to syslog.)
	# Note: set --basedir to prevent probes that might trigger SELinux
	# alarms, per bug #547485
	$exec   --datadir="$datadir" --socket="$socketfile" \
		--pid-file="$mypidfile" \
		--basedir=/usr --user=mysql >/dev/null 2>&1 &
	safe_pid=$!
	# Spin for a maximum of N seconds waiting for the server to come up;
	# exit the loop immediately if mysqld_safe process disappears.
	# Rather than assuming we know a valid username, accept an "access
	# denied" response as meaning the server is functioning.
	ret=0
	STARTTIMEOUT=120
	while [ $STARTTIMEOUT -gt 0 ]; do
	    RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
	    echo "$RESPONSE" | grep -q "Access denied for user" && break
	    if ! /bin/kill -0 $safe_pid 2>/dev/null; then
		echo "MySQL Daemon failed to start."
		ret=1
		break
	    fi
	    sleep 1
	    let STARTTIMEOUT=${STARTTIMEOUT}-1
	done
	if [ $STARTTIMEOUT -eq 0 ]; then
	    echo "Timeout error occurred trying to start MySQL Daemon."
	    ret=1
	fi
	if [ $ret -eq 0 ]; then
	    action $"Starting $prog: " /bin/true
	    touch $lockfile
	else
	    action $"Starting $prog: " /bin/false
	fi
    fi
    return $ret
}

stop(){
	if [ ! -f "$mypidfile" ]; then
	    # not running; per LSB standards this is "ok"
	    action $"Stopping $prog: " /bin/true
	    return 0
	fi
	MYSQLPID=`cat "$mypidfile"`
	if [ -n "$MYSQLPID" ]; then
	    /bin/kill "$MYSQLPID" >/dev/null 2>&1
	    ret=$?
	    if [ $ret -eq 0 ]; then
		STOPTIMEOUT=60
		while [ $STOPTIMEOUT -gt 0 ]; do
		    /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
		    sleep 1
		    let STOPTIMEOUT=${STOPTIMEOUT}-1
		done
		if [ $STOPTIMEOUT -eq 0 ]; then
		    echo "Timeout error occurred trying to stop MySQL Daemon."
		    ret=1
		    action $"Stopping $prog: " /bin/false
		else
		    rm -f $lockfile
		    rm -f "$socketfile"
		    action $"Stopping $prog: " /bin/true
		fi
	    else
		action $"Stopping $prog: " /bin/false
	    fi
	else
	    # failed to read pidfile, probably insufficient permissions
	    action $"Stopping $prog: " /bin/false
	    ret=4
	fi
	return $ret
}
 
restart(){
    stop
    start
}

condrestart(){
    [ -e $lockfile ] && restart || :
}


# See how we were called.
case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  status)
    status -p "$mypidfile" $prog
    ;;
  restart)
    restart
    ;;
  condrestart|try-restart)
    condrestart
    ;;
  reload)
    exit 3
    ;;
  force-reload)
    restart
    ;;
  *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac

exit $?
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/irqbalance                       0000755 0000000 0000000 00000003521 11524350034 025650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/acpid                            0000755 0000000 0000000 00000003275 11524350031 024632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/iscsid                           0000755 0000000 0000000 00000007127 11524350034 025033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/nscd                             0000755 0000000 0000000 00000004723 11524350036 024505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/rpcidmapd                        0000755 0000000 0000000 00000005222 11524350037 025515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/nfs                              0000755 0000000 0000000 00000013536 11524350035 024345  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/sssd                             0000755 0000000 0000000 00000004731 11524350040 024524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/crond                            0000755 0000000 0000000 00000005445 11524350032 024661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/ip6tables                        0000755 0000000 0000000 00000020716 11524350033 025444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/firstboot                        0000755 0000000 0000000 00000005341 11524350033 025563  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/autofs                           0000755 0000000 0000000 00000007234 11524350032 025053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/sshd                             0000755 0000000 0000000 00000010671 11524350040 024511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/libvirt-guests                   0000755 0000000 0000000 00000017172 11524350034 026541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/avahi-daemon                     0000755 0000000 0000000 00000004754 11524350032 026107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/iscsi                            0000755 0000000 0000000 00000007315 11524350034 024666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/ypbind                           0000755 0000000 0000000 00000011277 11524350040 025040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/psacct                           0000755 0000000 0000000 00000003024 11524350036 025024  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/fcoe                             0000755 0000000 0000000 00000005775 11524350032 024476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Copyright(c) 2010 Intel Corporation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# chkconfig: 2345 21 80
#
# Maintained at www.Open-FCoE.org

### BEGIN INIT INFO
# Provides: fcoe
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Open-FCoE Initiator
# Description: Open-FCoE Initiator
### END INIT INFO

CONFIG_DIR=/etc/fcoe
PID_FILE="/var/run/fcoemon.pid"
LOG_FILE="/var/log/fcoemon.log"
FCOEMON=/usr/sbin/fcoemon
FCOEADM=/usr/sbin/fcoeadm
FCOEMON_OPTS=

. /etc/init.d/functions
. $CONFIG_DIR/config

if [ "$USE_SYSLOG" = "yes" ] || [ "$USE_SYSLOG" = "YES" ]; then
    FCOEMON_OPTS+=" --syslog"
fi

if [ "$DEBUG" = "yes" ] || [ "$DEBUG" = "YES" ]; then
    FCOEMON_OPTS+=" --debug"
fi

test -x $FCOEADM || {
	echo "$FCOEADM not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

test -x $FCOEMON || {
	echo "$FCOEMON not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else
	    failure
	fi
}

start()
{
	echo -n $"Starting FCoE initiator service: "

	modprobe -q libfc
	modprobe -q fcoe

	daemon --pidfile ${PID_FILE} ${FCOEMON} ${FCOEMON_OPTS}

	echo 
	touch /var/lock/subsys/fcoe

	echo
}

stop()
{
	local force=$1

	pid=$(pidof "$FCOEMON")
	if [ "$force" == "force" ]
	then
		action "Destroying any active fcoe interface/s"
		[ "$pid" ] && kill -HUP $pid
	else
		[ "$pid" ] && kill -TERM $pid
	fi

	action $"Stopping FCoE initiator service: "

	rm -f /var/run/fcoemon.*
	rm -f /tmp/fcoemon.dcbd.*
	rm -f /var/lock/subsys/fcoe
}

status()
{
	status=0
	pidof $FCOEMON
	if [ $? -eq 0 ]; then
		echo "$FCOEMON -- RUNNING, pid=`cat $PID_FILE`"
	else
		echo "$FCOEMON -- UNUSED"
		status=3
	fi

	interfaces=`$FCOEADM -i 2>&1 | \
		    awk '/Symbolic Name:/{print $6}' | \
		    sort | awk '{printf("%s ", $1)}'`

	if [ -z "$interfaces" ]; then
		echo "No interfaces created."
	else
		echo "Created interfaces: $interfaces"
		status=0
	fi
	if [ -f /var/lock/subsys/fcoe -a $status -eq 3 ]; then
		status=2
	fi
	if [ -f /var/run/fcoe.pid -a $status -eq 3 ]; then
		status=1
	fi
	return $status
}

case "$1" in
	start)
		start
		;;

	stop)
		stop $2
		;;

	restart)
		stop $2
		start
		;;

	force-reload)
		stop force
		start
		;;

	status)
		status
		exit $?
		;;
	condrestart|try-restart)
		status || exit 0
		$0 restart
		;;
	*)
		echo "Usage: $0 {start|stop [force]|status|restart [force]|force-reload|condrestart|try-restart}"
		exit 1
		;;
esac
   Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/nfslock                          0000755 0000000 0000000 00000006675 11524350036 025225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/cgred                            0000755 0000000 0000000 00000006302 11524350032 024631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/udev-post                        0000755 0000000 0000000 00000004370 11524350040 025475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/haldaemon                        0000755 0000000 0000000 00000003245 11524350033 025501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/ipsec                            0000755 0000000 0000000 00000010777 11524350033 024664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/rpcbind                          0000755 0000000 0000000 00000004031 11524350037 025170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/rhnsd                            0000755 0000000 0000000 00000005522 11524350037 024673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/dnsmasq                          0000755 0000000 0000000 00000002577 11524350032 025225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/functions                        0000644 0000000 0000000 00000042767 11524350033 025572  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/kdump                            0000755 0000000 0000000 00000027662 11524350034 024703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/lldpad                           0000755 0000000 0000000 00000014323 11524350034 025011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
################################################################################
#
# Intel Data Center Bridging (DCB) Software
# Copyright(c) 2007-2008 Intel Corporation.
#
# Based on:
#     Template LSB system startup script for example service/daemon FOO
#     Copyright (C) 1995--2005  Kurt Garloff, SUSE / Novell Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
# The full GNU General Public License is included in this distribution in
# the file called "COPYING".
#
# Contact Information:
# e1000-eedc Mailing List <e1000-eedc@lists.sourceforge.net>
# Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
#
################################################################################
#
# lldpad	This shell script takes care of starting and stopping
#		lldpad (including DCB capabilities exchange protocol)
#
# chkconfig: 2345 20 80
# description: Link Layer Discovery Protocol Agent Daemon
#
### BEGIN INIT INFO
# Provides: lldpad
# Required-Start: network
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Link Layer Discovery Protocol Agent Daemon
# Description: Link Layer Discovery Protocol Agent Daemon
### END INIT INFO

LLDPAD=lldpad
LLDPAD_BIN=/usr/sbin/$LLDPAD

test -x $LLDPAD_BIN || { echo "$LLDPAD_BIN not installed";
	if [ "$1" = "stop" ]; then exit 0;
	else exit 5; fi; }

# Default: Assume sysvinit binaries exist
start_daemon() { /sbin/start_daemon ${1+"$@"}; }
killproc()     { /sbin/killproc     ${1+"$@"}; }
pidofproc()    { /sbin/pidofproc    ${1+"$@"}; }
checkproc()    { /sbin/checkproc    ${1+"$@"}; }

if test -e /etc/rc.status; then
	# SUSE rc script library
	. /etc/rc.status
else
	export LC_ALL=POSIX
	_cmd=$1
	declare -a _SMSG
	if test "${_cmd}" = "status"; then
		_SMSG=(running dead dead unused unknown reserved)
		_RC_UNUSED=3
	else
		_SMSG=(done failed failed missed failed skipped unused failed \
			failed reserved)
		_RC_UNUSED=6
	fi
	if test -e /lib/lsb/init-functions; then
		# LSB    
		. /lib/lsb/init-functions
		echo_rc()
		{
			if test ${_RC_RV} = 0; then
				log_success_msg "  [${_SMSG[${_RC_RV}]}] "
			else
				log_failure_msg "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		# TODO: Add checking for lockfiles
		checkproc() { pidofproc ${1+"$@"} >/dev/null 2>&1; }
	elif test -e /etc/init.d/functions; then
		# RHAT
		. /etc/init.d/functions
		echo_rc()
		{
			#echo -n "  [${_SMSG[${_RC_RV}]}] "
			if test ${_RC_RV} = 0; then
				success "  [${_SMSG[${_RC_RV}]}] "
			else
				failure "  [${_SMSG[${_RC_RV}]}] "
			fi
		}
		checkproc() { status ${1+"$@"}; return $?; }
		start_daemon() { daemon ${1+"$@"}; return $?; }
	else
		# emulate it
		echo_rc() { echo "  [${_SMSG[${_RC_RV}]}] "; }
	fi

	rc_reset() { _RC_RV=0; }
	rc_failed()
	{
		if test -z "$1"; then 
			_RC_RV=1;
		elif test "$1" != "0"; then 
			_RC_RV=$1; 
		fi
		return ${_RC_RV}
	}
	rc_check()
	{
		return rc_failed $?
	}	
	rc_status()
	{
		rc_failed $?
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		if test "$1" = "-s"; then
			rc_failed 5; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-u"; then
			rc_failed ${_RC_UNUSED}; echo_rc; rc_failed 3; shift;
		fi
		if test "$1" = "-v"; then echo_rc; shift; fi
		if test "$1" = "-r"; then _RC_RV=0; shift; fi
		return ${_RC_RV}
	}
	rc_exit() { exit ${_RC_RV}; }
	rc_active() 
	{
		if test -z "$RUNLEVEL"; then
			read RUNLEVEL REST < <(/sbin/runlevel);
		fi
		if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
		return 1
	}
fi

# Reset status of this service
rc_reset

# See how we were called.
case "$1" in
	start)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Starting $LLDPAD: "
		$LLDPAD_BIN -k
		start_daemon $LLDPAD_BIN -d $OPTIONS
		rc_status -v
		[ $? -eq 0 ] && touch /var/lock/subsys/lldpad
		;;
	stop)
		[ "$EUID" = "0" ] || exit 4
		echo -n $"Shutting down $LLDPAD: "
		killproc $LLDPAD
		rc_status -v
		[ $? -eq 0 ] && rm -f /var/lock/subsys/lldpad
		;;
	status)
		echo -n "Checking for service $LLDPAD: "
		p=`pidof $LLDPAD`
		RC=$?
		if [ "$RC" = "1" ]; then
			echo "stopped"
			if [ -f /var/lock/subsys/lldpad ]; then
				rc_failed 2
			elif [ -f /var/run/lldpad.pid ]; then
				rc_failed 1
			else
				rc_failed 3
			fi
		else
			echo "running"
		fi
		rc_status -v
		;;
	try-restart|condrestart)
		## Do a restart only if the service was active before.
		## Note: try-restart is now part of LSB (as of 1.9).
		## RH has a similar command named condrestart.
		if test "$1" = "condrestart"; then
			echo "${attn} Use try-restart ${done}(LSB)${attn}"\
				"rather than condrestart ${warn}(RH)${norm}"
		fi
		$0 status
		if test $? = 0; then
			$0 restart
		else
			rc_reset	# Not running is not a failure.
		fi
		# Remember status and be quiet
		rc_status
		;;
	restart)
		$0 stop
		$0 start

		# Remember status and be quiet
		rc_status
		;;
	force-reload)
		## Signal the daemon to reload its config. Most daemons
		## do this on signal 1 (SIGHUP).
		## If it does not support it, restart the service if it
		## is running.

		#echo -n "Reload service $LLDPAD "
		## if it supports it:
		#killproc -HUP $LLDPAD
		#touch /var/run/$LLDPAD.pid
		#rc_status -v

		## Otherwise:
		$0 try-restart
		rc_status
		;;
	reload)
		## Like force-reload, but if daemon does not support
		## signaling, do nothing (!)

		# If it supports signaling:
		#echo -n "Reload service $LLDPAD "
		#killproc -HUP $LLDPAD_BIN
		#touch /var/run/$LLDPAD.pid
		#rc_status -v
		
		## Otherwise if it does not support reload:
		echo -n $"Reloading $LLDPAD is not supported: "
		rc_failed 3
		rc_status -v
		;;
	usage)
		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 0
	;;
	*)
       		echo $"Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}"
		exit 2
esac

rc_exit
                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/postfix                          0000755 0000000 0000000 00000007414 11524350036 025252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/iptables                         0000755 0000000 0000000 00000020557 11524350034 025362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/multipathd                       0000755 0000000 0000000 00000004473 11524350035 025732  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# multipathd	Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manages device-mapper multipath devices

### BEGIN INIT INFO
# Provides: multipathd
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Control multipathd
# Description: This service monitors and manages
#              device-mapper multipath devices
### END INIT INFO

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
. $initdir/functions
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done

else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
force-reload|reload)
	reload
	;;
restart)
	restart
	;;
condrestart|try-restart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/rsyslog                          0000755 0000000 0000000 00000004326 11524350037 025260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/NetworkManager                   0000755 0000000 0000000 00000004235 11524350031 026473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/netconsole                       0000755 0000000 0000000 00000005650 11524350035 025726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/rpcgssd                          0000755 0000000 0000000 00000006050 11524350037 025217  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/lvm2-monitor                     0000555 0000000 0000000 00000004612 11524350034 026114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/halt                             0000755 0000000 0000000 00000012723 11524350033 024502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/cgconfig                         0000755 0000000 0000000 00000012327 11524350032 025330  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/single                           0000755 0000000 0000000 00000001207 11524350037 025032  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/postgresql                       0000755 0000000 0000000 00000012406 11524350036 025756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# postgresql	This is the init script for starting up the PostgreSQL
#		server.
#
# chkconfig: - 64 36
# description: PostgreSQL database server.
# processname: postmaster
# pidfile: /var/run/postmaster.PORT.pid

# This script is slightly unusual in that the name of the daemon (postmaster)
# is not the same as the name of the subsystem (postgresql)

# PGVERSION is the full package version, e.g., 8.4.0
# Note: the specfile inserts the correct value during package build
PGVERSION=8.4.4
# PGMAJORVERSION is major version, e.g., 8.4 (this should match PG_VERSION)
PGMAJORVERSION=`echo "$PGVERSION" | sed 's/^\([0-9]*\.[0-9]*\).*$/\1/'`

# Source function library.
. /etc/rc.d/init.d/functions

# Get network config.
. /etc/sysconfig/network

# Find the name of the script
NAME=`basename $0`
if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
then
	NAME=${NAME:3}
fi

# For SELinux we need to use 'runuser' not 'su'
if [ -x /sbin/runuser ]
then
    SU=runuser
else
    SU=su
fi


# Set defaults for configuration variables
PGENGINE=/usr/bin
PGPORT=5432
PGDATA=/var/lib/pgsql/data
PGLOG=/var/lib/pgsql/pgstartup.log
# Value to set as postmaster process's oom_adj
PG_OOM_ADJ=-17

# Override defaults from /etc/sysconfig/pgsql if file is present
[ -f /etc/sysconfig/pgsql/${NAME} ] && . /etc/sysconfig/pgsql/${NAME}

export PGDATA
export PGPORT

lockfile="/var/lock/subsys/${NAME}"
pidfile="/var/run/postmaster.${PGPORT}.pid"

script_result=0

start(){
	[ -x "$PGENGINE/postmaster" ] || exit 5

	PSQL_START=$"Starting ${NAME} service: "

	# Make sure startup-time log file is valid
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 4
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Check for the PGDATA structure
	if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
	then
		# Check version of existing PGDATA
		if [ x`cat "$PGDATA/PG_VERSION"` != x"$PGMAJORVERSION" ]
		then
			SYSDOCDIR="(Your System's documentation directory)"
			if [ -d "/usr/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc
			fi
			if [ -d "/usr/share/doc/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc
			fi
			if [ -d "/usr/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/doc/packages
			fi
			if [ -d "/usr/share/doc/packages/postgresql-$PGVERSION" ]
			then
				SYSDOCDIR=/usr/share/doc/packages
			fi
			echo
			echo $"An old version of the database format was found."
			echo $"You need to upgrade the data format before using PostgreSQL."
			echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
			exit 1
		fi
	else
		# No existing PGDATA! Warn the user to initdb it.
		echo
                echo "$PGDATA is missing. Use \"service postgresql initdb\" to initialize the cluster first."
		echo_failure
		echo
		exit 1
 	fi

	echo -n "$PSQL_START"
	test x"$PG_OOM_ADJ" != x && echo "$PG_OOM_ADJ" > /proc/self/oom_adj
	$SU -l postgres -c "$PGENGINE/postmaster -p '$PGPORT' -D '$PGDATA' ${PGOPTS} &" >> "$PGLOG" 2>&1 < /dev/null
	sleep 2
	pid=`head -n 1 "$PGDATA/postmaster.pid" 2>/dev/null`
	if [ "x$pid" != x ]
	then
		success "$PSQL_START"
		touch "$lockfile"
		echo $pid > "$pidfile"
		echo
	else
		failure "$PSQL_START"
		echo
		script_result=1
	fi
}

stop(){
	echo -n $"Stopping ${NAME} service: "
	if [ -e "$lockfile" ]
	then
	    $SU -l postgres -c "$PGENGINE/pg_ctl stop -D '$PGDATA' -s -m fast" > /dev/null 2>&1 < /dev/null
	    ret=$? 
	    if [ $ret -eq 0 ]
	    then
		echo_success
		rm -f "$pidfile"
		rm -f "$lockfile"
	    else
		echo_failure
		script_result=1
	    fi
	else
	    # not running; per LSB standards this is "ok"
	    echo_success
	fi
	echo
}

restart(){
    stop
    start
}

condrestart(){
    [ -e "$lockfile" ] && restart || :
}

reload(){
    $SU -l postgres -c "$PGENGINE/pg_ctl reload -D '$PGDATA' -s" > /dev/null 2>&1 < /dev/null
}

initdb(){
    if [ -f "$PGDATA/PG_VERSION" ]
    then
	echo -n "Data directory is not empty!"
	echo_failure
	echo
	script_result=1
    else
	echo -n $"Initializing database: "
	if [ ! -e "$PGDATA" -a ! -h "$PGDATA" ]
	then
		mkdir -p "$PGDATA" || exit 1
		chown postgres:postgres "$PGDATA"
		chmod go-rwx "$PGDATA"
	fi
	# Clean up SELinux tagging for PGDATA
	[ -x /sbin/restorecon ] && /sbin/restorecon "$PGDATA"

	# Make sure the startup-time log file is OK, too
	if [ ! -e "$PGLOG" -a ! -h "$PGLOG" ]
	then
		touch "$PGLOG" || exit 1
		chown postgres:postgres "$PGLOG"
		chmod go-rwx "$PGLOG"
		[ -x /sbin/restorecon ] && /sbin/restorecon "$PGLOG"
	fi

	# Initialize the database
	$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" >> "$PGLOG" 2>&1 < /dev/null

	# Create directory for postmaster log
	mkdir "$PGDATA/pg_log"
	chown postgres:postgres "$PGDATA/pg_log"
	chmod go-rwx "$PGDATA/pg_log"

	if [ -f "$PGDATA/PG_VERSION" ]
	then
	    echo_success
	else
	    echo_failure
	    script_result=1
	fi
	echo
    fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p "$pidfile" postmaster
	script_result=$?
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  reload)
	reload
	;;
  force-reload)
	restart
	;;
  initdb)
	initdb
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|initdb}"
	exit 2
esac

exit $script_result
                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/mdmonitor                        0000755 0000000 0000000 00000005013 11524350035 025556  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/restorecond                      0000755 0000000 0000000 00000003427 11524350036 026105  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/wpa_supplicant                   0000755 0000000 0000000 00000003512 11524350040 026575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/cpuspeed                         0000755 0000000 0000000 00000025442 11524350032 025363  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/netfs                            0000755 0000000 0000000 00000012432 11524350035 024670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/rpcsvcgssd                       0000755 0000000 0000000 00000006014 11524350037 025733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/oddjobd                          0000755 0000000 0000000 00000004325 11524350036 025161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/sandbox                          0000755 0000000 0000000 00000003242 11524350037 025210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/killall                          0000755 0000000 0000000 00000001214 11524350034 025170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/rdisc                            0000755 0000000 0000000 00000003027 11524350036 024656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/httpd                            0000755 0000000 0000000 00000006364 11524350033 024701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/ntpd                             0000755 0000000 0000000 00000003603 11524350036 024517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/smartd                           0000755 0000000 0000000 00000005672 11524350037 025055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/nslcd                            0000755 0000000 0000000 00000003213 11524350036 024652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/ntpdate                          0000755 0000000 0000000 00000003512 11524350036 025210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile09/etc/rc.d/init.d/microcode_ctl                    0000755 0000000 0000000 00000002221 11524350035 026352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-client03/tile09/etc/hosts                                        0000644 0000000 0000000 00000000052 11524350030 022661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1	localhost.localdomain	localhost
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-client03/tile09/etc/iproute2/                                    0000777 0000000 0000000 00000000000 11524350031 023357  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/etc/iproute2/rt_dsfield                          0000644 0000000 0000000 00000000672 11524350030 025421  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/Clients/tb3-client03/tile09/etc/iproute2/rt_realms                           0000644 0000000 0000000 00000000160 11524350031 025263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-client03/tile09/etc/iproute2/rt_scopes                           0000644 0000000 0000000 00000000134 11524350031 025275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-client03/tile09/etc/iproute2/ematch_map                          0000644 0000000 0000000 00000000073 11524350030 025373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-client03/tile09/etc/iproute2/rt_tables                           0000644 0000000 0000000 00000000127 11524350031 025255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile09/etc/iproute2/rt_protos                           0000644 0000000 0000000 00000000475 11524350031 025337  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/etc/nsswitch.conf                                0000644 0000000 0000000 00000003230 11524350031 024311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-client03/tile09/etc/fstab                                        0000644 0000000 0000000 00000001307 11524350030 022624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Thu Aug  5 09:23:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=008a3418-d80b-4815-9722-db5af2fba6da /                       ext3    defaults        1 1
UUID=171fffed-b6b4-4161-b8cd-a688d195da49 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile09/etc/sysctl.conf                                  0000644 0000000 0000000 00000001466 11524350046 024007  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-client03/tile09/etc/inittab                                      0000644 0000000 0000000 00000001564 11524350030 023164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Physical_Configuration/Clients/tb3-client03/tile09/var/                                             0000777 0000000 0000000 00000000000 11524350050 021624  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/var/log/                                         0000777 0000000 0000000 00000000000 11524350050 022405  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/var/log/dmesg                                    0000644 0000000 0000000 00000041752 11524350050 023434  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009cc00 (usable)
 BIOS-e820: 000000000009cc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
RAMDISK: 372ca000 - 37fef973
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffdc0 00040
ACPI: SSDT 00000000dfffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000000dfffd000
Bootmem setup node 0 0000000000000000-00000000dfffd000
  NODE_DATA [000000000000c000 - 000000000003ffff]
  bootmap [0000000000040000 -  000000000005bfff] pages 1c
(7 early reservations) ==> bootmem [0000000000 - 00dfffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [00372ca000 - 0037fef973]          RAMDISK ==> [00372ca000 - 0037fef973]
  #4 [000009cc00 - 0000100000]    BIOS reserved ==> [000009cc00 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00031fffff] PMD -> [ffff880002200000-ffff8800053fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009c
    0: 0x00000100 -> 0x000dfffd
On node 0 totalpages: 917400
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3833 pages, LIFO batch:0
  DMA32 zone: 12488 pages used for memmap
  DMA32 zone: 900917 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009c000 - 000000000009d000
PM: Registered nosave memory: 000000000009d000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 904750
Policy zone: DMA32
Kernel command line: ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us 
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 3591248k/3670004k available (4935k kernel code, 404k absent, 78352k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 36700160 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 2267.202 MHz processor.
Calibrating delay loop (skipped) preset value.. 4534.40 BogoMIPS (lpj=2267202)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Setting APIC routing to flat
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (9068.80 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13462k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297092589.434:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 7040
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 15:29:49 UTC (1297092589)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
dracut: Mounted root filesystem /dev/vda1
dracut: Loading SELinux policy
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1297092592.514:2): selinux=0 auid=4294967295 ses=4294967295
dracut: /sbin/load_policy: Can't load policy: No such file or directory
dracut: Switching root
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 27 for MSI/MSI-X
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT3 FS on vda1, internal journal
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                      Physical_Configuration/Clients/tb3-client03/tile09/boot/                                            0000777 0000000 0000000 00000000000 11524350027 022003  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/boot/grub/                                       0000777 0000000 0000000 00000000000 11524350027 022742  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-client03/tile09/boot/grub/grub.conf                              0000644 0000000 0000000 00000002637 11524350030 024546  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux Server (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-70.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-70.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-70.el6.x86_64.img
title Red Hat Enterprise Linux Server (2.6.32-59.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-59.el6.x86_64 ro root=UUID=008a3418-d80b-4815-9722-db5af2fba6da rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto
	initrd /boot/initramfs-2.6.32-59.el6.x86_64.img
                                                                                                 Physical_Configuration/Clients/tb3-client03/tile09/rpmpkgs.txt                                      0000644 0000000 0000000 00000105007 11524350050 023257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rhnsd-4.9.3-2.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
pycairo-1.8.6-2.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
polkit-devel-0.96-2.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
popt-devel-1.13-7.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
basesystem-10.0-4.el6.noarch
libgnomeui-devel-2.24.1-4.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libhbalinux-1.0.10-1.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-Newt-1.08-26.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
perl-DBD-MySQL-4.013-3.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
system-icon-theme-6.0.0-2.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
libjpeg-6b-46.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
gettext-0.17-16.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
NetworkManager-glib-0.8.1-5.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
sed-4.2.1-5.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
libXext-1.1-3.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
libcap-2.16-5.2.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
hwdata-0.233-1.el6.noarch
pcre-7.8-3.1.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
fuse-2.8.3-1.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
python-decorator-3.0.1-3.1.el6.noarch
report-plugin-scp-0.18-7.el6.x86_64
rsync-3.0.6-5.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
ModemManager-0.4.0-3.git20100628.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
device-mapper-event-libs-1.02.53-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
nc-1.84-22.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
dracut-004-32.el6.noarch
psmisc-22.6-15.el6.x86_64
vino-2.28.1-3.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
kernel-2.6.32-70.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
mtools-4.0.12-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
mod_wsgi-3.2-1.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
jna-3.2.4-2.el6.x86_64
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
php-pdo-5.3.2-6.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
postfix-2.6.6-2.el6.x86_64
patch-2.6-6.el6.x86_64
elfutils-0.148-1.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
xorg-x11-xkb-utils-7.4-6.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
xvattr-1.3-18.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
boost-regex-1.41.0-11.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
pam-1.1.1-4.el6.x86_64
setserial-2.17-25.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
python-slip-0.2.11-1.el6.noarch
gvfs-1.4.3-9.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
libhbaapi-2.2-10.el6.x86_64
gnome-applets-2.28.0-7.el6.x86_64
grub-0.97-68.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
setup-2.8.14-10.el6.noarch
hal-devel-0.5.14-8.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
autoconf-2.63-5.1.el6.noarch
fontpackages-filesystem-1.41-1.1.el6.noarch
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libXtst-devel-1.0.99.2-3.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
libX11-common-1.3-2.el6.noarch
sos-2.2-2.el6.noarch
php-pear-1.9.0-2.el6.noarch
avahi-autoipd-0.6.25-8.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
bash-4.1.2-3.el6.x86_64
libcap-ng-devel-0.6.4-3.el6.x86_64
festival-1.96-18.el6.x86_64
libICE-1.0.6-1.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
rootfiles-8.1-6.1.el6.noarch
libldb-0.9.10-23.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
libpng-1.2.44-1.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
gd-2.0.35-10.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
man-pages-3.22-12.el6.noarch
libcroco-devel-0.6.2-5.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
numactl-2.0.3-9.el6.x86_64
yum-3.2.27-14.el6.noarch
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
iproute-2.6.32-10.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
boost-1.41.0-11.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
gstreamer-tools-0.10.29-1.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
libXdamage-1.1.2-1.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
binutils-2.20.51.0.2-5.11.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
gcc-4.4.4-13.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
libtheora-1.1.0-2.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
gnome-power-manager-2.28.3-3.el6.x86_64
totem-mozplugin-2.28.6-2.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-Log-Message-0.02-115.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
libXdmcp-1.0.3-1.el6.x86_64
parted-2.1-10.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libevent-1.4.13-1.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
psacct-6.3.2-63.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
checkpolicy-2.0.22-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
flex-2.5.35-8.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
selinux-policy-3.7.19-54.el6.noarch
ltrace-0.5-16.45svn.1.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
crontabs-1.10-32.1.el6.noarch
coreutils-libs-8.4-9.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
mtr-0.75-5.el6.x86_64
openssl-1.0.0-4.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
libgudev1-147-2.29.el6.x86_64
ctags-5.8-2.el6.x86_64
redhat-bookmarks-6-1.el6.noarch
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
passwd-0.77-4.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
orca-2.28.2-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
slang-2.2.1-1.el6.x86_64
subversion-1.6.11-2.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
openswan-2.6.24-8.el6.x86_64
gtk-doc-1.11-5.1.el6.noarch
libdaemon-0.14-1.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
xml-common-0.6.3-32.el6.noarch
gtk2-devel-2.18.9-4.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
notification-daemon-0.5.0-1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
libgcc-4.4.4-13.el6.i686
ncurses-libs-5.7-3.20090208.el6.x86_64
ppp-2.4.5-5.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
info-4.13a-8.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
docbook-style-dsssl-1.79-10.el6.noarch
pam_ldap-185-5.el6.x86_64
glib2-2.22.5-5.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
readline-6.0-3.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
at-3.1.10-42.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
samba-winbind-clients-3.5.4-68.el6.x86_64
gmp-4.3.1-7.el6.x86_64
gnome-panel-libs-2.30.2-5.el6.x86_64
perl-version-0.77-115.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
perl-5.10.1-115.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
curl-7.19.7-16.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
httpd-tools-2.2.15-5.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
libavc1394-0.5.3-9.1.el6.x86_64
which-2.19-5.1.el6.x86_64
perl-BSD-Resource-1.29.03-3.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
keyutils-libs-1.4-1.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
iso-codes-3.16-2.el6.noarch
libxslt-1.1.26-2.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-1.0.5-1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
giflib-4.1.6-3.1.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
report-0.18-7.el6.x86_64
libX11-1.3-2.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
grubby-7.0.15-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
eggdbus-0.6-3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
httpd-2.2.15-5.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
ppl-0.10.2-11.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
file-libs-5.04-5.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
bc-1.06.95-1.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
NetworkManager-0.8.1-5.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
dracut-kernel-004-32.el6.noarch
cpio-2.10-9.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
unzip-6.0-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
check-0.9.8-1.1.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
libgssglue-0.1-8.1.el6.x86_64
db4-cxx-4.7.25-16.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
libnih-1.0.1-6.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
fcoe-utils-1.0.14-9.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
zip-3.0-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
usermode-1.102-3.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
php-xml-5.3.2-6.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
crash-5.0.0-23.el6.x86_64
libthai-0.1.12-3.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
zenity-2.28.0-1.el6.x86_64
report-newt-0.18-7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
boost-test-1.41.0-11.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
tzdata-2010l-1.el6.noarch
ncurses-5.7-3.20090208.el6.x86_64
nspr-4.8.6-1.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
dnsmasq-2.48-4.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
nss-3.12.7-2.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
udev-147-2.29.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
postgresql-libs-8.4.4-2.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
avahi-ui-0.6.25-8.el6.x86_64
device-mapper-multipath-libs-0.4.9-31.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
udisks-1.0.1-2.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
libaio-0.3.107-10.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
evolution-data-server-devel-2.28.3-10.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
elfutils-devel-0.148-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
cas-0.15-1.el6.1.noarch
libgnome-devel-2.28.0-11.el6.x86_64
kernel-devel-2.6.32-59.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
dstat-0.7.0-1.el6.noarch
perl-XML-Dumper-0.81-6.el6.noarch
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
zd1211-firmware-1.4-4.el6.noarch
ivtv-firmware-20080701-20.2.noarch
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
libnl-1.1-12.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
mysql-5.1.47-4.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
iptables-1.4.7-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
perl-Time-HiRes-1.9721-115.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
systemtap-1.2-9.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
eog-2.28.2-4.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
postgresql-server-8.4.4-2.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
gnome-settings-daemon-2.28.2-11.el6.x86_64
usbutils-0.86-2.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
python-psycopg2-2.0.13-2.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
tcsh-6.17-8.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
kernel-devel-2.6.32-70.el6.x86_64
bison-2.4.1-5.el6.x86_64
busybox-1.15.1-10.el6.x86_64
lsof-4.82-1.2.el6.x86_64
swig-1.3.40-5.el6.x86_64
hal-0.5.14-8.el6.x86_64
powertop-1.11-3.1.el6.x86_64
rdate-1.4-16.el6.x86_64
kernel-2.6.32-59.el6.x86_64
libtopology-0.3-7.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
openldap-devel-2.4.19-15.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
kernel-2.6.32-71.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
libxml2-python-2.7.6-1.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
libcanberra-0.22-1.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
python-gudev-147.1-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
mailcap-2.1.31-1.1.el6.noarch
wpa_supplicant-0.6.8-10.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
cracklib-python-2.8.16-2.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
gnome-python2-libwnck-2.28.0-4.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
openjade-1.3.2-36.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
popt-1.13-7.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
system-gnome-theme-60.0.2-1.el6.noarch
db4-4.7.25-16.el6.x86_64
wget-1.12-1.4.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
fipscheck-1.2.0-4.1.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
gawk-3.1.7-6.el6.x86_64
cvs-1.11.23-11.el6.x86_64
php-common-5.3.2-6.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
tcp_wrappers-libs-7.6-56.3.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
atk-1.28.0-2.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
libacl-2.2.49-4.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
findutils-4.4.2-6.el6.x86_64
libiec61883-1.2.0-4.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
grep-2.6.3-2.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
libgcrypt-1.4.5-3.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
pixman-0.16.6-1.el6.x86_64
iw-0.9.17-4.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
libxcb-1.5-1.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
comps-extras-17.8-1.el6.noarch
libsoup-2.28.2-1.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
xfsprogs-3.1.1-4.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
libXv-1.0.5-1.el6.x86_64
polkit-0.96-2.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
rtkit-0.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
libIDL-0.8.13-2.1.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
ed-1.1-3.3.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
tar-1.23-3.el6.x86_64
libconfig-1.3.2-1.1.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
pciutils-libs-3.1.4-9.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
mod_ssl-2.2.15-5.el6.x86_64
kbd-misc-1.15-11.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
rng-tools-2-8.el6.x86_64
pax-3.4-10.1.el6.x86_64
control-center-2.28.1-25.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
php-gd-5.3.2-6.el6.x86_64
libtasn1-2.3-3.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
irqbalance-0.55-27.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
yajl-1.0.7-3.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libXpm-3.5.8-2.el6.x86_64
pango-1.28.1-3.el6.x86_64
gucharmap-2.28.2-2.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
net-tools-1.60-102.el6.x86_64
exempi-2.1.0-5.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
DeviceKit-power-014-1.el6.x86_64
make-3.81-19.el6.x86_64
unique-1.1.4-2.el6.x86_64
rhn-setup-1.0.0-38.el6.noarch
boost-signals-1.41.0-11.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
python-iwlib-0.1-1.2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
cronie-1.4.4-2.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
libcollection-0.5.0-28.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
libudev-147-2.29.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
libuser-0.56.13-4.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
device-mapper-multipath-0.4.9-31.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
perl-URI-1.40-2.el6.noarch
dbus-glib-devel-0.86-5.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
seekwatcher-0.12-4.1.el6.noarch
perf-2.6.32-71.el6.noarch
libglade2-devel-2.6.4-3.1.el6.x86_64
glibc-2.12-1.7.el6.i686
polkit-docs-0.96-2.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
libXi-devel-1.3-3.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
mysql-devel-5.1.47-4.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
iotop-0.3.2-3.el6.noarch
python-meh-0.9-1.el6.noarch
bzip2-devel-1.0.5-6.1.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
atmel-firmware-1.3-7.el6.noarch
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
libstdc++-4.4.4-13.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
libXi-1.3-3.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
nautilus-extensions-2.28.4-15.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
libss-1.41.12-3.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
glx-utils-7.7-2.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
cpp-4.4.4-13.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
ipa-client-2.0-9.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
gnome-vfs2-smb-2.24.2-6.el6.x86_64
xdg-user-dirs-0.12-4.el6.x86_64
gdb-7.1-29.el6.x86_64
gok-2.28.1-5.el6.x86_64
SDL-1.2.14-2.el6.x86_64
postgresql-docs-8.4.4-2.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mod_perl-2.0.4-10.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
prelink-0.4.3-4.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
gnome-session-xsession-2.28.0-15.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
crypto-utils-2.4.1-24.2.el6.x86_64
PyGreSQL-3.8.1-2.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
postgresql-odbc-08.04.0200-1.el6.x86_64
git-1.7.1-2.el6.x86_64
report-gtk-0.18-7.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
libvirt-devel-0.8.1-27.el6.x86_64
audit-2.0.4-1.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
attr-2.4.44-4.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
latrace-0.5.9-2.el6.x86_64
byacc-1.9.20070509-6.1.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
nscd-2.12-1.7.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
vte-0.25.1-5.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
gcc-c++-4.4.4-13.el6.x86_64
firefox-3.6.9-2.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
libgnomecanvas-devel-2.26.0-4.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
perl-XML-Grove-0.46alpha-40.el6.noarch
automake-1.11.1-1.2.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
system-config-services-docs-1.1.8-1.el6.noarch
pyOpenSSL-0.10-2.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
zlib-1.2.3-25.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
audit-libs-devel-2.0.4-1.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
libstdc++-4.4.4-13.el6.i686
libdrm-2.4.20-2.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
docbook-utils-0.6.14-24.el6.noarch
freetype-2.3.11-5.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
gnome-python2-desktop-2.28.0-4.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
words-3.0-17.el6.noarch
libselinux-utils-2.0.94-2.el6.x86_64
gamin-0.1.10-9.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
mailx-12.4-6.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
keyutils-1.4-1.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
openssh-5.3p1-20.el6.x86_64
m4-1.4.13-5.el6.x86_64
autofs-5.0.5-23.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
gvfs-archive-1.4.3-9.el6.x86_64
man-1.6f-29.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
gdm-2.30.4-21.el6.x86_64
libusb-0.1.12-23.el6.x86_64
webalizer-2.21_02-3.3.el6.x86_64
time-1.7-37.1.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
less-436-4.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
gettext-libs-0.17-16.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
NetworkManager-gnome-0.8.1-5.el6.x86_64
readahead-1.5.6-1.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
php-5.3.2-6.el6.x86_64
libical-0.43-5.1.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-panel-2.30.2-5.el6.x86_64
latencytop-0.5-3.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
kbd-1.15-11.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
rcs-5.7-37.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
boost-program-options-1.41.0-11.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
iputils-20071127-13.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
glibc-2.12-1.7.el6.x86_64
gzip-1.3.12-18.el6.x86_64
cscope-15.6-6.el6.x86_64
certmonger-0.24-4.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
openldap-2.4.19-15.el6.x86_64
eject-2.1.5-17.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
qt-4.6.2-16.el6.x86_64
diffstat-1.51-2.el6.x86_64
libgail-gnome-1.20.1-4.1.el6.x86_64
sssd-1.2.1-28.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
newt-0.52.11-2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
nspluginwrapper-1.3.0-14.el6.x86_64
mysql-server-5.1.47-4.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
rhn-setup-gnome-1.0.0-38.el6.noarch
atk-devel-1.28.0-2.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
filesystem-2.4.30-2.1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
libcom_err-devel-1.41.12-3.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
m2crypto-0.20.2-7.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
screen-4.0.3-15.el6.x86_64
alsa-lib-devel-1.0.21-3.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
mobile-broadband-provider-info-1.20100122-1.el6.noarch
xorg-x11-docs-1.3-6.1.el6.noarch
gnome-themes-2.28.1-6.el6.noarch
libselinux-2.0.94-2.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
libxcb-devel-1.5-1.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
pam_krb5-2.3.11-1.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
pytz-2010h-2.el6.noarch
libidn-1.18-2.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
acl-2.2.49-4.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
jline-0.9.94-0.8.el6.noarch
libXt-1.0.7-1.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
procps-3.2.8-14.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
gnome-screensaver-2.28.3-8.el6.x86_64
rpm-4.8.0-12.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
quota-3.17-10.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
rpm-build-4.8.0-12.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
nano-2.0.9-7.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
system-config-services-0.99.45-1.el6.3.noarch
perl-parent-0.221-115.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
hal-info-20090716-3.1.el6.noarch
mlocate-0.22.2-3.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
libicu-4.2.1-9.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
yp-tools-2.9-10.el6.x86_64
coreutils-8.4-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
rfkill-0.3-4.el6.x86_64
at-spi-1.28.1-2.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
lldpad-0.9.38-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
gnome-python2-bonobo-2.28.0-3.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
evolution-data-server-doc-2.28.3-10.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
yelp-2.28.1-8.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
python-2.6.5-3.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/tile09/ifconfig.txt                                     0000644 0000000 0000000 00000001637 11524350047 023372  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:90:00:09  
          inet addr:10.1.216.159  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe90:9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:511342232 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160638711 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:727052663587 (677.1 GiB)  TX bytes:16129634909 (15.0 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:255612 errors:0 dropped:0 overruns:0 frame:0
          TX packets:255612 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:326386183 (311.2 MiB)  TX bytes:326386183 (311.2 MiB)

                                                                                                 Physical_Configuration/Clients/tb3-client03/tile09/chkconfig.txt                                    0000644 0000000 0000000 00000006556 11524350030 023536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:off	4:on	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
fcoe           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:off	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:off	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lldpad         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
multipathd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
mysqld         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postgresql     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                  Physical_Configuration/Clients/tb3-client03/running-vms.txt                                         0000644 0000000 0000000 00000004103 11524347745 022765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   root      5582 53.2 11.2 4041896 3708192 ?     Sl   10:29 334:49 /usr/libexec/qemu-kvm -name rh6-vct06 -drive file=/var/lib/libvirt/images/rh6-vct06.img,if=virtio,boot=on,cache=writeback -net nic,model=virtio,vlan=0,macaddr=00:50:56:90:00:06 -net tap,vlan=0,ifname=vct06,script=/etc/kvm/qemu-ifup-br1 -m 3584 -vnc :6106 -cpu qemu64 -smp 2 -monitor telnet::13006,server,nowait -serial telnet::14006,server,nowait -daemonize
root      5626 54.6 11.2 4052140 3703576 ?     Sl   10:29 343:13 /usr/libexec/qemu-kvm -name rh6-vct07 -drive file=/var/lib/libvirt/images/rh6-vct07.img,if=virtio,boot=on,cache=writeback -net nic,model=virtio,vlan=0,macaddr=00:50:56:90:00:07 -net tap,vlan=0,ifname=vct07,script=/etc/kvm/qemu-ifup-br2 -m 3584 -vnc :6107 -cpu qemu64 -smp 2 -monitor telnet::13007,server,nowait -serial telnet::14007,server,nowait -daemonize
root      5682 56.2 11.2 4041896 3703736 ?     Sl   10:29 353:11 /usr/libexec/qemu-kvm -name rh6-vct08 -drive file=/var/lib/libvirt/images/rh6-vct08.img,if=virtio,boot=on,cache=writeback -net nic,model=virtio,vlan=0,macaddr=00:50:56:90:00:08 -net tap,vlan=0,ifname=vct08,script=/etc/kvm/qemu-ifup-br3 -m 3584 -vnc :6108 -cpu qemu64 -smp 2 -monitor telnet::13008,server,nowait -serial telnet::14008,server,nowait -daemonize
root      5747 55.9 11.2 4072628 3709940 ?     Sl   10:29 351:44 /usr/libexec/qemu-kvm -name rh6-vct09 -drive file=/var/lib/libvirt/images/rh6-vct09.img,if=virtio,boot=on,cache=writeback -net nic,model=virtio,vlan=0,macaddr=00:50:56:90:00:09 -net tap,vlan=0,ifname=vct09,script=/etc/kvm/qemu-ifup-br4 -m 3584 -vnc :6109 -cpu qemu64 -smp 2 -monitor telnet::13009,server,nowait -serial telnet::14009,server,nowait -daemonize
root      5800 56.1 11.2 4041896 3706944 ?     Sl   10:29 352:38 /usr/libexec/qemu-kvm -name rh6-vct10 -drive file=/var/lib/libvirt/images/rh6-vct10.img,if=virtio,boot=on,cache=writeback -net nic,model=virtio,vlan=0,macaddr=00:50:56:90:00:0a -net tap,vlan=0,ifname=vct10,script=/etc/kvm/qemu-ifup-br5 -m 3584 -vnc :6110 -cpu qemu64 -smp 2 -monitor telnet::13010,server,nowait -serial telnet::14010,server,nowait -daemonize
                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-client03/rpmpkgs.txt                                             0000644 0000000 0000000 00000106507 11524347745 022200  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   gnome-user-docs-2.28.0-4.el6.noarch
elfutils-0.148-1.el6.x86_64
wqy-zenhei-fonts-0.9.45-3.el6.noarch
khmeros-fonts-common-5.0-9.el6.noarch
iso-codes-3.16-2.el6.noarch
python-virtinst-0.500.3-7.el6.noarch
mod_dnssd-0.6-2.el6.x86_64
lohit-kannada-fonts-2.4.5-2.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
mobile-broadband-provider-info-1.20100122-1.el6.noarch
acl-2.2.49-4.el6.x86_64
sil-padauk-fonts-2.6.1-1.el6.noarch
libX11-1.3-2.el6.x86_64
freetype-2.3.11-5.el6.x86_64
ibus-pinyin-1.3.8-1.el6.x86_64
rtkit-0.5-1.el6.x86_64
scenery-backgrounds-6.0.0-1.el6.noarch
libXtst-1.0.99.2-3.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
nautilus-sendto-2.28.2-3.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
libXv-1.0.5-1.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
time-1.7-37.1.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
pango-1.28.1-3.el6.x86_64
gawk-3.1.7-6.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
libtar-1.2.11-16.el6.x86_64
words-3.0-17.el6.noarch
libsoup-2.28.2-1.el6.x86_64
glib2-2.22.5-5.el6.x86_64
gedit-2.28.4-3.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
tigervnc-server-1.0.90-0.10.20100115svn3945.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
libthai-0.1.12-3.el6.x86_64
screen-4.0.3-15.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
openswan-2.6.24-8.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
PackageKit-0.5.8-13.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
libidn-1.18-2.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
slang-2.2.1-1.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
iok-1.3.10-2.el6.x86_64
bluez-libs-4.66-1.el6.x86_64
tmpwatch-2.9.16-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
gtkspell-2.0.16-1.el6.x86_64
gmp-4.3.1-7.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
exempi-2.1.0-5.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
sysvinit-tools-2.87-3.dsf.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
m17n-contrib-1.1.10-3.el6.noarch
xdg-user-dirs-0.12-4.el6.x86_64
perl-5.10.1-115.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
perl-DBI-1.609-4.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
usermode-1.102-3.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
pam-1.1.1-4.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
cyrus-sasl-2.1.23-8.el6.x86_64
qt-4.6.2-16.el6.x86_64
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
zenity-2.28.0-1.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
lvm2-libs-2.02.72-8.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
grub-0.97-68.el6.x86_64
libgpod-0.7.2-6.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
desktop-effects-0.8.4-7.el6.x86_64
m17n-contrib-oriya-1.1.10-3.el6.noarch
crontabs-1.10-32.1.el6.noarch
e2fsprogs-1.41.12-3.el6.x86_64
ibus-qt-1.3.0-2.el6.x86_64
m17n-contrib-tamil-1.1.10-3.el6.noarch
ebtables-2.0.9-5.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
autofs-5.0.5-23.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
libgnomeui-2.24.1-4.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
orca-2.28.2-1.el6.x86_64
python-mako-0.3.4-1.el6.noarch
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
openjpeg-libs-1.3-7.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
neon-0.29.3-1.2.el6.x86_64
control-center-2.28.1-25.el6.x86_64
obexd-0.19-2.el6.x86_64
un-core-dotum-fonts-1.0.2-0.15.080608.el6.noarch
perl-DBIx-Simple-1.32-3.el6.noarch
ntp-4.2.4p8-2.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
perl-HTML-Parser-3.64-2.el6.x86_64
gnome-session-xsession-2.28.0-15.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
m17n-db-1.5.5-1.1.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
lohit-bengali-fonts-2.4.3-5.el6.noarch
perl-Time-Piece-1.15-115.el6.x86_64
un-core-fonts-common-1.0.2-0.15.080608.el6.noarch
dejavu-fonts-common-2.30-2.el6.noarch
firstboot-1.110.8-1.el6.x86_64
tibetan-machine-uni-fonts-1.901-5.el6.noarch
gstreamer-0.10.29-1.el6.x86_64
comps-extras-17.8-1.el6.noarch
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
gnome-applets-2.28.0-7.el6.x86_64
stix-fonts-0.9-13.1.el6.noarch
polkit-0.96-2.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
ibus-anthy-1.2.1-1.el6.x86_64
redhat-lsb-printing-4.0-2.1.el6.x86_64
patch-2.6-6.el6.x86_64
ibus-libs-1.3.4-3.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
gnome-screensaver-2.28.3-8.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
man-1.6f-29.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
gnome-power-manager-2.28.3-3.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
libvirt-0.8.1-27.el6.x86_64
glibc-2.12-1.7.el6.i686
ethtool-2.6.33-0.3.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
virt-viewer-0.2.1-2.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
gtkmm24-2.18.2-1.el6.x86_64
libcap-2.16-5.2.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libisofs-0.6.32-1.el6.x86_64
gtksourceview2-2.8.2-4.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
PackageKit-gstreamer-plugin-0.5.8-13.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
libgxim-0.3.3-3.1.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
usbutils-0.86-2.el6.x86_64
lzop-1.02-0.9.rc1.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
pixman-0.16.6-1.el6.x86_64
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
gtk-vnc-python-0.3.10-3.el6.x86_64
iptables-1.4.7-3.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
pywebkitgtk-1.1.6-3.el6.x86_64
libxcb-1.5-1.el6.x86_64
attr-2.4.44-4.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
pinentry-gtk-0.7.6-5.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gamin-python-0.1.10-9.el6.x86_64
ghostscript-8.70-6.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
compat-libcap1-1.10-1.x86_64
pakchois-0.4-3.2.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
liboil-0.3.16-4.1.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
perl-URI-1.40-2.el6.noarch
device-mapper-1.02.53-8.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
kbd-1.15-11.el6.x86_64
openldap-2.4.19-15.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
postfix-2.6.6-2.el6.x86_64
libuser-0.56.13-4.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
icedax-1.1.9-11.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
m17n-db-assamese-1.5.5-1.1.el6.noarch
setuptool-1.19.9-3.el6.x86_64
NetworkManager-glib-0.8.1-5.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
m17n-db-hindi-1.5.5-1.1.el6.noarch
dhclient-4.1.1-12.P1.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
m17n-db-sinhala-1.5.5-1.1.el6.noarch
avahi-glib-0.6.25-8.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
cjkuni-uming-fonts-0.2.20080216.1-34.el6.noarch
report-newt-0.18-7.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libiptcdata-1.0.4-2.1.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libproxy-python-0.3.0-2.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
avahi-autoipd-0.6.25-8.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
ghostscript-fonts-5.50-23.1.el6.noarch
ibus-gtk-1.3.4-3.el6.x86_64
dvd+rw-tools-7.1-5.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
perl-XML-RegExp-0.03-7.el6.noarch
yum-rhn-plugin-0.9.1-5.el6.noarch
fipscheck-lib-1.2.0-4.1.el6.x86_64
dstat-0.7.0-1.el6.noarch
perl-libxml-perl-0.08-10.el6.noarch
rpcbind-0.2.0-8.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
system-config-services-0.99.45-1.el6.3.noarch
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
libiec61883-1.2.0-4.el6.x86_64
tzdata-2010l-1.el6.noarch
thai-scalable-fonts-common-0.4.12-2.1.el6.noarch
keyutils-1.4-1.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
poppler-data-0.4.0-1.el6.noarch
crash-5.0.0-23.el6.x86_64
basesystem-10.0-4.el6.noarch
compat-glibc-headers-2.5-46.2.x86_64
iw-0.9.17-4.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
lockdev-1.0.1-18.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dbus-c++-0.5.0-0.10.20090203git13281b3.1.el6.x86_64
popt-1.13-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
libpng-1.2.44-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
abrt-1.1.13-4.el6.x86_64
libjpeg-6b-46.el6.x86_64
libXt-1.0.7-1.el6.x86_64
libopenraw-0.0.5-4.1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libgomp-4.4.4-13.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
libhugetlbfs-2.8-2.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
atk-1.28.0-2.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
libchewing-0.3.2-27.el6.x86_64
sed-4.2.1-5.el6.x86_64
pangomm-2.26.0-1.el6.x86_64
scrub-2.2-1.el6.x86_64
libattr-2.4.44-4.el6.x86_64
brasero-2.28.3-6.el6.x86_64
pax-3.4-10.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
poppler-glib-0.12.4-3.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
libnl-1.1-12.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
gsm-1.0.13-4.el6.x86_64
grep-2.6.3-2.el6.x86_64
gtk-vnc-0.3.10-3.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
glibmm24-2.22.1-1.el6.x86_64
libxklavier-4.0-7.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
procps-3.2.8-14.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
libffi-3.0.5-3.2.el6.x86_64
findutils-4.4.2-6.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
report-0.18-7.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
webkitgtk-1.2.3-1.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
apr-1.3.9-3.el6.x86_64
kasumi-2.5-1.1.el6.x86_64
python-gudev-147.1-4.el6.x86_64
libtasn1-2.3-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
wpa_supplicant-0.6.8-10.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
cracklib-python-2.8.16-2.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
python-markupsafe-0.9.2-4.el6.x86_64
libatasmart-0.17-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
libaio-0.3.107-10.el6.x86_64
gnome-python2-libwnck-2.28.0-4.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
hivex-1.2.2-1.el6.x86_64
kbd-misc-1.15-11.el6.noarch
perl-Module-Load-Conditional-0.30-115.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
usbmuxd-1.0.2-1.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
less-436-4.el6.x86_64
openssh-5.3p1-20.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
openssl-1.0.0-4.el6.x86_64
dnsmasq-2.48-4.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
module-init-tools-3.9-17.el6.x86_64
libvirt-python-0.8.1-27.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
libao-0.8.8-7.1.el6.x86_64
passwd-0.77-4.el6.x86_64
gucharmap-2.28.2-2.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
hal-0.5.14-8.el6.x86_64
m17n-contrib-bengali-1.1.10-3.el6.noarch
nss-softokn-3.12.7-1.1.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
m17n-contrib-assamese-1.1.10-3.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
m17n-contrib-kannada-1.1.10-3.el6.noarch
bc-1.06.95-1.el6.x86_64
cronie-1.4.4-2.el6.x86_64
m17n-contrib-hindi-1.1.10-3.el6.noarch
m4-1.4.13-5.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
m17n-contrib-malayalam-1.1.10-3.el6.noarch
libicu-4.2.1-9.el6.x86_64
avahi-0.6.25-8.el6.x86_64
m17n-contrib-sinhala-1.1.10-3.el6.noarch
upstart-0.6.5-6.1.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
gnome-python2-bonobo-2.28.0-3.el6.x86_64
pyxdg-0.18-1.el6.noarch
gpgme-1.1.8-3.el6.x86_64
gnome-settings-daemon-2.28.2-11.el6.x86_64
pytz-2010h-2.el6.noarch
libdaemon-0.14-1.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
gvfs-obexftp-1.4.3-9.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
boost-filesystem-1.41.0-11.el6.x86_64
im-chooser-1.3.1-2.el6.x86_64
urw-fonts-2.4-10.el6.noarch
ppp-2.4.5-5.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
perl-IO-String-1.08-9.el6.noarch
apr-util-ldap-1.3.9-3.el6.x86_64
rhn-setup-1.0.0-38.el6.noarch
perl-XML-XPathEngine-0.12-3.el6.noarch
mysql-libs-5.1.47-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
at-3.1.10-42.el6.x86_64
perf-2.6.32-71.el6.noarch
lohit-assamese-fonts-2.4.3-4.el6.noarch
system-config-date-1.9.60-1.el6.noarch
liberation-serif-fonts-1.05.1.20090721-4.el6.noarch
python-meh-0.9-1.el6.noarch
kurdit-unikurd-web-fonts-20020502-6.el6.noarch
media-player-info-6-1.el6.noarch
lohit-gujarati-fonts-2.4.4-3.el6.noarch
kernel-firmware-2.6.32-71.el6.noarch
lohit-tamil-fonts-2.4.5-3.el6.noarch
gnote-0.6.3-3.el6.x86_64
lohit-oriya-fonts-2.4.3-4.el6.noarch
ibus-chewing-1.3.5.20100714-1.el6.x86_64
redhat-lsb-graphics-4.0-2.1.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
nautilus-open-terminal-0.17-3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
eog-2.28.2-4.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
gvfs-afc-1.4.3-9.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
mousetweaks-2.28.2-1.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
vino-2.28.1-3.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
sysstat-9.0.4-11.el6.x86_64
tigervnc-1.0.90-0.10.20100115svn3945.el6.x86_64
gnome-system-monitor-2.28.0-7.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
virt-top-1.0.4-3.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
latencytop-0.5-3.el6.x86_64
compat-glibc-2.5-46.2.x86_64
libhugetlbfs-utils-2.8-2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
tcsh-6.17-8.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
nano-2.0.9-7.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
rfkill-0.3-4.el6.x86_64
latrace-0.5.9-2.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
dracut-kernel-004-32.el6.noarch
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
pulseaudio-module-bluetooth-0.9.21-13.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
totem-2.28.6-2.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
glx-utils-7.7-2.el6.x86_64
gdm-2.30.4-21.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
virt-v2v-0.6.2-4.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
rhn-setup-gnome-1.0.0-38.el6.noarch
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
system-config-firewall-1.2.27-1.el6.noarch
smc-meera-fonts-04.2-11.el6.noarch
perl-core-5.10.1-115.el6.x86_64
m17n-contrib-marathi-1.1.10-3.el6.noarch
compat-db-4.6.21-15.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
wodim-1.1.9-11.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
xkeyboard-config-1.6-7.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
smc-fonts-common-04.2-11.el6.noarch
ca-certificates-2010.63-3.el6.noarch
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
control-center-filesystem-2.28.1-25.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
grubby-7.0.15-2.el6.x86_64
seabios-0.5.1-3.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
libgphoto2-2.4.7-4.el6.x86_64
libXext-1.1-3.el6.x86_64
zlib-1.2.3-25.el6.x86_64
abrt-libs-1.1.13-4.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
info-4.13a-8.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
nspr-4.8.6-1.el6.x86_64
db4-utils-4.7.25-16.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
db4-4.7.25-16.el6.x86_64
ed-1.1-3.3.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
readline-6.0-3.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
kpathsea-2007-56.el6.x86_64
unique-1.1.4-2.el6.x86_64
gamin-0.1.10-9.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
desktop-file-utils-0.15-9.el6.x86_64
libhangul-0.0.10-1.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
dbus-1.2.24-3.el6.x86_64
libevent-1.4.13-1.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
polkit-gnome-0.96-3.el6.x86_64
libsigc++20-2.2.4.2-1.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
pcre-7.8-3.1.el6.x86_64
libmpcdec-1.2.6-6.1.el6.x86_64
obex-data-server-0.4.3-4.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
file-libs-5.04-5.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
festival-lib-1.96-18.el6.x86_64
libXau-1.0.5-1.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pygtksourceview-2.8.0-1.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
geoclue-0.11.1.1-0.13.20091026git73b6729.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
libopenraw-gnome-0.0.5-4.1.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
gettext-0.17-16.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
tar-1.23-3.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
evince-libs-2.28.2-14.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
python-crypto-2.0.1-22.el6.x86_64
libXres-1.0.4-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
notify-python-0.1.1-10.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
yajl-1.0.7-3.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-python2-desktop-2.28.0-4.el6.x86_64
perl-version-0.77-115.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
imsettings-0.108.0-3.4.el6.x86_64
numactl-2.0.3-9.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
perl-hivex-1.2.2-1.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
busybox-1.15.1-10.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
parted-2.1-10.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
yum-3.2.27-14.el6.noarch
libvirt-client-0.8.1-27.el6.x86_64
libarchive-2.8.3-2.el6.x86_64
gconfmm26-2.28.0-1.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
cdrdao-1.2.3-4.el6.x86_64
metacity-2.28.0-20.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libplist-1.2-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
lvm2-2.02.72-8.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
hal-info-20090716-3.1.el6.noarch
openobex-1.4-7.el6.x86_64
m17n-db-punjabi-1.5.5-1.1.el6.noarch
libmtp-1.0.1-2.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
m17n-db-oriya-1.5.5-1.1.el6.noarch
wireless-tools-29-5.1.1.el6.x86_64
mailx-12.4-6.el6.x86_64
m17n-db-telugu-1.5.5-1.1.el6.noarch
cronie-anacron-1.4.4-2.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
m17n-db-tamil-1.5.5-1.1.el6.noarch
httpd-2.2.15-5.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
m17n-db-gujarati-1.5.5-1.1.el6.noarch
samba-common-3.5.4-68.el6.x86_64
libnih-1.0.1-6.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
sos-2.2-2.el6.noarch
gvfs-1.4.3-9.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
python-beaker-1.3.1-6.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
anthy-9100h-10.1.el6.x86_64
python-decorator-3.0.1-3.1.el6.noarch
nautilus-extensions-2.28.4-15.el6.x86_64
libgfortran-4.4.4-13.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
abrt-gui-1.1.13-4.el6.x86_64
xorg-x11-font-utils-7.2-10.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
gnome-session-2.28.0-15.el6.x86_64
libimobiledevice-0.9.7-4.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
libpanelappletmm-2.26.0-3.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
httpd-tools-2.2.15-5.el6.x86_64
perl-XML-DOM-1.44-7.el6.noarch
gnome-panel-2.30.2-5.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
system-config-services-docs-1.1.8-1.el6.noarch
dejavu-serif-fonts-2.30-2.el6.noarch
system-config-date-docs-1.0.9-1.el6.noarch
dejavu-sans-mono-fonts-2.30-2.el6.noarch
authconfig-gtk-6.1.4-6.el6.x86_64
paktype-tehreer-fonts-2.0-8.el6.noarch
cjkuni-fonts-common-0.2.20080216.1-34.el6.noarch
lohit-devanagari-fonts-2.4.3-6.el6.noarch
NetworkManager-gnome-0.8.1-5.el6.x86_64
lohit-punjabi-fonts-2.4.4-1.el6.noarch
ibus-sayura-1.2.99.20100209-3.el6.x86_64
madan-fonts-2.000-3.el6.noarch
ibus-hangul-1.3.0.20100329-1.el6.x86_64
gnome-backgrounds-2.28.0-2.el6.noarch
evince-2.28.2-14.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
file-roller-2.28.2-6.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
cheese-2.28.1-7.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gvfs-gphoto2-1.4.3-9.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
gnome-utils-2.28.1-10.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
seahorse-2.28.1-4.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
gnome-packagekit-2.28.3-3.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
gcalctool-5.28.2-3.el6.x86_64
ppl-0.10.2-11.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
rng-tools-2-8.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
gtk2-immodule-xim-2.18.9-4.el6.x86_64
abrt-cli-1.1.13-4.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
wget-1.12-1.4.el6.x86_64
audit-2.0.4-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
irqbalance-0.55-27.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
setserial-2.17-25.el6.x86_64
rdate-1.4-16.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
libdrm-2.4.20-2.el6.x86_64
kernel-2.6.32-71.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
bluez-4.66-1.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
compiz-0.8.2-24.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
compiz-gnome-0.8.2-24.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
virt-manager-0.8.4-8.el6.noarch
abrt-desktop-1.1.13-4.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
aic94xx-firmware-30-2.el6.noarch
vlgothic-fonts-20091202-2.el6.noarch
khmeros-base-fonts-5.0-9.el6.noarch
cas-0.15-1.el6.1.noarch
m17n-contrib-urdu-1.1.10-3.el6.noarch
man-pages-overrides-1.0-1.el6.noarch
polkit-desktop-policy-0.96-2.el6.noarch
setup-2.8.14-10.el6.noarch
system-config-users-1.2.104-1.el6.noarch
perl-Digest-SHA-5.47-115.el6.x86_64
lklug-fonts-0.6-4.20090803cvs.el6.noarch
vlgothic-fonts-common-20091202-2.el6.noarch
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
gstreamer-tools-0.10.29-1.el6.x86_64
liberation-mono-fonts-1.05.1.20090721-4.el6.noarch
vgabios-0.6b-3.4.el6.noarch
glibc-2.12-1.7.el6.x86_64
rhythmbox-0.12.8-1.el6.x86_64
eggdbus-0.6-3.el6.x86_64
lohit-telugu-fonts-2.4.5-4.el6.noarch
startup-notification-0.10-2.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
ibus-rawcode-1.3.0.20100421-2.el6.x86_64
lsof-4.82-1.2.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
libXcursor-1.1.10-2.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
brasero-nautilus-2.28.3-6.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
cairomm-1.8.0-2.1.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
gthumb-2.10.11-8.el6.x86_64
mtools-4.0.12-1.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
libglade2-2.6.4-3.1.el6.x86_64
libusb-0.1.12-23.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
libgcc-4.4.4-13.el6.i686
at-spi-1.28.1-2.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
sound-juicer-2.28.1-6.el6.x86_64
m17n-lib-1.5.5-2.el6.x86_64
cpp-4.4.4-13.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
libacl-2.2.49-4.el6.x86_64
readahead-1.5.6-1.el6.x86_64
libburn-0.7.0-1.el6.x86_64
PackageKit-gtk-module-0.5.8-13.el6.x86_64
which-2.19-5.1.el6.x86_64
evince-dvi-2.28.2-14.el6.x86_64
libvpx-0.9.0-7.el6.x86_64
imsettings-libs-0.108.0-3.4.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
lzo-2.03-3.1.el6.x86_64
xorg-x11-xkb-utils-7.4-6.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
python-2.6.5-3.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
gstreamer-python-0.10.16-1.1.el6.x86_64
psmisc-22.6-15.el6.x86_64
rsync-3.0.6-5.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
mtr-0.75-5.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
libspectre-0.2.4-1.el6.x86_64
net-tools-1.60-102.el6.x86_64
eject-2.1.5-17.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
xorg-x11-drv-void-1.3.0-4.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gnome-python2-extras-2.25.3-20.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
gnome-bluetooth-2.28.6-8.el6.x86_64
python-slip-0.2.11-1.el6.noarch
iputils-20071127-13.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
gzip-1.3.12-18.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
vorbis-tools-1.2.0-7.el6.x86_64
udisks-1.0.1-2.el6.x86_64
gdm-libs-2.30.4-21.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
m17n-contrib-punjabi-1.1.10-3.el6.noarch
crda-1.1.1_2009.11.25-3.el6.x86_64
curl-7.19.7-16.el6.x86_64
libguestfs-1.2.7-1.24.el6.x86_64
m17n-contrib-telugu-1.1.10-3.el6.noarch
qemu-kvm-0.12.1.2-2.113.el6.x86_64
enchant-1.5.0-4.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
m17n-contrib-gujarati-1.1.10-3.el6.noarch
gnome-vfs2-2.24.2-6.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
gnome-python2-applet-2.28.0-4.el6.x86_64
cdparanoia-10.2-5.1.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
numpy-1.3.0-6.2.el6.x86_64
ibus-1.3.4-3.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
perl-CPANPLUS-0.88-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
fipscheck-1.2.0-4.1.el6.x86_64
iotop-0.3.2-3.el6.noarch
perl-XML-DOM-XPath-0.14-4.el6.noarch
yelp-2.28.1-8.el6.x86_64
jomolhari-fonts-0.003-8.1.el6.noarch
libavc1394-0.5.3-9.1.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
xml-common-0.6.3-32.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
abyssinica-fonts-1.0-5.1.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
poppler-0.12.4-3.el6.x86_64
paktype-fonts-common-2.0-8.el6.noarch
NetworkManager-0.8.1-5.el6.x86_64
paktype-naqsh-fonts-2.0-8.el6.noarch
ModemManager-0.4.0-3.git20100628.el6.x86_64
libX11-common-1.3-2.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
ibus-m17n-1.3.0-1.el6.x86_64
m17n-db-thai-1.5.5-1.1.el6.noarch
nc-1.84-22.el6.x86_64
libXi-1.3-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
gnome-user-share-2.28.2-3.el6.x86_64
rootfiles-8.1-6.1.el6.noarch
rpm-4.8.0-12.el6.x86_64
libXinerama-1.1-1.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
gvfs-archive-1.4.3-9.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
make-3.81-19.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
gnome-vfs2-smb-2.24.2-6.el6.x86_64
man-pages-3.22-12.el6.noarch
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
gok-2.28.1-5.el6.x86_64
xorg-x11-fonts-misc-7.2-9.1.el6.noarch
dmidecode-2.10-1.30.1.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
libgudev1-147-2.29.el6.x86_64
quota-3.17-10.el6.x86_64
gcc-4.4.4-13.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
brasero-libs-2.28.3-6.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
prelink-0.4.3-4.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
xvattr-1.3-18.el6.x86_64
libdiscid-0.2.2-4.1.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
newt-0.52.11-2.el6.x86_64
festival-1.96-18.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
psacct-6.3.2-63.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
gstreamer-plugins-bad-free-0.10.19-2.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
oprofile-0.9.6-7.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
gnome-utils-libs-2.28.1-10.el6.x86_64
cpio-2.10-9.el6.x86_64
unzip-6.0-1.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
zip-3.0-1.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
libtopology-0.3-7.el6.x86_64
SDL-1.2.14-2.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
dracut-004-32.el6.noarch
hicolor-icon-theme-0.11-1.1.el6.noarch
gnome-python2-gnomekeyring-2.28.0-4.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
report-gtk-0.18-7.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
udev-147-2.29.el6.x86_64
iproute-2.6.32-10.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
coreutils-8.4-9.el6.x86_64
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
vte-0.25.1-5.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
dmraid-1.0.0.rc16-10.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
m17n-db-bengali-1.5.5-1.1.el6.noarch
DeviceKit-power-014-1.el6.x86_64
nss-3.12.7-2.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
m17n-db-kannada-1.5.5-1.1.el6.noarch
rsyslog-4.6.2-2.el6.x86_64
libss-1.41.12-3.el6.x86_64
totem-nautilus-2.28.6-2.el6.x86_64
m17n-db-malayalam-1.5.5-1.1.el6.noarch
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
perl-libguestfs-1.2.7-1.24.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
gnome-panel-libs-2.30.2-5.el6.x86_64
libical-0.43-5.1.el6.x86_64
ibus-table-additional-1.2.0.20100111-4.el6.noarch
python-dateutil-1.4.1-6.el6.noarch
avahi-ui-0.6.25-8.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libmusicbrainz3-3.0.2-7.el6.x86_64
libgail-gnome-1.20.1-4.1.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
thai-scalable-waree-fonts-0.4.12-2.1.el6.noarch
perl-parent-0.221-115.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
m17n-contrib-maithili-1.1.10-3.el6.noarch
perl-libwww-perl-5.833-2.el6.noarch
ibus-table-1.2.0.20100111-4.el6.noarch
cvs-1.11.23-11.el6.x86_64
                                                                                                                                                                                         Physical_Configuration/Clients/tb3-client03/ifconfig.txt                                            0000644 0000000 0000000 00000022077 11524347743 022276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   br0       Link encap:Ethernet  HWaddr E4:1F:13:32:5D:60  
          inet addr:10.1.216.13  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::e61f:13ff:fe32:5d60/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:79704 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4926 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5829054 (5.5 MiB)  TX bytes:1928415 (1.8 MiB)

br1       Link encap:Ethernet  HWaddr E2:BE:FE:B4:AB:D0  
          inet addr:10.1.3.1  Bcast:10.1.3.1  Mask:255.255.255.255
          inet6 addr: fe80::e61f:13ff:fe32:5d62/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:77093 errors:0 dropped:0 overruns:0 frame:0
          TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5200239 (4.9 MiB)  TX bytes:8100 (7.9 KiB)

br2       Link encap:Ethernet  HWaddr 00:15:17:D1:28:BC  
          inet addr:10.1.3.2  Bcast:10.1.3.2  Mask:255.255.255.255
          inet6 addr: fe80::215:17ff:fed1:28bc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:77087 errors:0 dropped:0 overruns:0 frame:0
          TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5198570 (4.9 MiB)  TX bytes:8146 (7.9 KiB)

br3       Link encap:Ethernet  HWaddr 00:15:17:D1:28:BD  
          inet addr:10.1.3.3  Bcast:10.1.3.3  Mask:255.255.255.255
          inet6 addr: fe80::215:17ff:fed1:28bd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:77082 errors:0 dropped:0 overruns:0 frame:0
          TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5199147 (4.9 MiB)  TX bytes:8192 (8.0 KiB)

br4       Link encap:Ethernet  HWaddr 00:15:17:D1:2A:22  
          inet addr:10.1.3.4  Bcast:10.1.3.4  Mask:255.255.255.255
          inet6 addr: fe80::215:17ff:fed1:2a22/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:77083 errors:0 dropped:0 overruns:0 frame:0
          TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5199072 (4.9 MiB)  TX bytes:8008 (7.8 KiB)

br5       Link encap:Ethernet  HWaddr 00:15:17:D1:2A:23  
          inet addr:10.1.3.5  Bcast:10.1.3.5  Mask:255.255.255.255
          inet6 addr: fe80::215:17ff:fed1:2a23/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:77074 errors:0 dropped:0 overruns:0 frame:0
          TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5197572 (4.9 MiB)  TX bytes:8100 (7.9 KiB)

eth0      Link encap:Ethernet  HWaddr E4:1F:13:32:5D:60  
          inet6 addr: fe80::e61f:13ff:fe32:5d60/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:79690 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5636 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7258724 (6.9 MiB)  TX bytes:1997830 (1.9 MiB)
          Interrupt:28 Memory:92000000-92012800 

eth1      Link encap:Ethernet  HWaddr E4:1F:13:32:5D:62  
          inet6 addr: fe80::e61f:13ff:fe32:5d62/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512396829 errors:0 dropped:0 overruns:0 frame:0
          TX packets:162305301 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:731430076702 (681.1 GiB)  TX bytes:16919616926 (15.7 GiB)
          Interrupt:40 Memory:94000000-94012800 

eth2      Link encap:Ethernet  HWaddr 00:15:17:D1:28:BC  
          inet6 addr: fe80::215:17ff:fed1:28bc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512315020 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160510697 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:728173521713 (678.1 GiB)  TX bytes:16130466642 (15.0 GiB)
          Memory:97b60000-97b80000 

eth3      Link encap:Ethernet  HWaddr 00:15:17:D1:28:BD  
          inet6 addr: fe80::215:17ff:fed1:28bd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512998580 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160515961 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:729934959871 (679.8 GiB)  TX bytes:16148520815 (15.0 GiB)
          Memory:97b20000-97b40000 

eth4      Link encap:Ethernet  HWaddr 00:15:17:D1:2A:22  
          inet6 addr: fe80::215:17ff:fed1:2a22/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:511368756 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160638181 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:727054680235 (677.1 GiB)  TX bytes:16128971645 (15.0 GiB)
          Memory:97a60000-97a80000 

eth5      Link encap:Ethernet  HWaddr 00:15:17:D1:2A:23  
          inet6 addr: fe80::215:17ff:fed1:2a23/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:512678891 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160609241 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:729354701542 (679.2 GiB)  TX bytes:16153576517 (15.0 GiB)
          Memory:97a20000-97a40000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:69 errors:0 dropped:0 overruns:0 frame:0
          TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:6460 (6.3 KiB)  TX bytes:6460 (6.3 KiB)

usb0      Link encap:Ethernet  HWaddr E6:1F:13:2B:AD:63  
          inet addr:169.254.95.120  Bcast:169.254.95.255  Mask:255.255.255.0
          inet6 addr: fe80::e41f:13ff:fe2b:ad63/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15392 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7816 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1038842 (1014.4 KiB)  TX bytes:377154 (368.3 KiB)

vct06     Link encap:Ethernet  HWaddr E2:BE:FE:B4:AB:D0  
          inet6 addr: fe80::e0be:feff:feb4:abd0/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:162305224 errors:0 dropped:0 overruns:0 frame:0
          TX packets:512395770 errors:0 dropped:0 overruns:20163 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:16270373016 (15.1 GiB)  TX bytes:729380398838 (679.2 GiB)

vct07     Link encap:Ethernet  HWaddr EE:FE:F1:76:B1:42  
          inet6 addr: fe80::ecfe:f1ff:fe76:b142/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:160510619 errors:0 dropped:0 overruns:0 frame:0
          TX packets:512313957 errors:0 dropped:0 overruns:11209 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:16130457894 (15.0 GiB)  TX bytes:728173431244 (678.1 GiB)

vct08     Link encap:Ethernet  HWaddr 0A:D4:56:A7:E8:C7  
          inet6 addr: fe80::8d4:56ff:fea7:e8c7/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:160515882 errors:0 dropped:0 overruns:0 frame:0
          TX packets:512997511 errors:0 dropped:0 overruns:16735 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:16148512021 (15.0 GiB)  TX bytes:729934868563 (679.8 GiB)

vct09     Link encap:Ethernet  HWaddr 06:E2:38:BA:C0:62  
          inet6 addr: fe80::4e2:38ff:feba:c062/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:160638104 errors:0 dropped:0 overruns:0 frame:0
          TX packets:511367664 errors:0 dropped:0 overruns:15275 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:16128962943 (15.0 GiB)  TX bytes:727054586216 (677.1 GiB)

vct10     Link encap:Ethernet  HWaddr FE:68:4A:1F:CA:84  
          inet6 addr: fe80::fc68:4aff:fe1f:ca84/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:160609163 errors:0 dropped:0 overruns:0 frame:0
          TX packets:512677778 errors:0 dropped:0 overruns:10975 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:16153567769 (15.0 GiB)  TX bytes:729354606001 (679.2 GiB)

virbr0    Link encap:Ethernet  HWaddr 42:1C:EC:5D:3F:3B  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:344 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:19479 (19.0 KiB)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-client03/chkconfig.txt                                           0000644 0000000 0000000 00000006237 11524347724 022444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:on	4:on	5:on	6:off
abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:off	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:on	4:on	5:on	6:off
bluetooth      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
cgconfig       	0:off	1:off	2:on	3:on	4:on	5:on	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ebtables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirtd       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sysstat        	0:off	1:on	2:on	3:on	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
vncserver      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-master/                                                          0000777 0000000 0000000 00000000000 11524350245 017606  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/proc/                                                     0000777 0000000 0000000 00000000000 11524350243 020547  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/proc/cpuinfo                                              0000644 0000000 0000000 00000025336 11524350242 022141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 0
cpu cores	: 4
apicid		: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips	: 4533.60
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: [8]

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 1
cpu cores	: 4
apicid		: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips	: 4533.66
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: [8]

processor	: 2
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 2
cpu cores	: 4
apicid		: 4
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips	: 4533.40
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: [8]

processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 6
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips	: 4533.40
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: [8]

processor	: 4
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 0
cpu cores	: 4
apicid		: 16
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips	: 4533.50
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: [8]

processor	: 5
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 1
cpu cores	: 4
apicid		: 18
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips	: 4533.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: [8]

processor	: 6
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 2
cpu cores	: 4
apicid		: 20
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips	: 4533.44
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: [8]

processor	: 7
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 22
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips	: 4533.44
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: [8]

processor	: 8
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 0
cpu cores	: 4
apicid		: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips	: 4533.75
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: [8]

processor	: 9
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 1
cpu cores	: 4
apicid		: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips	: 4533.45
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: [8]

processor	: 10
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 2
cpu cores	: 4
apicid		: 5
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips	: 4533.43
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: [8]

processor	: 11
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 0
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 7
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips	: 4533.43
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: [8]

processor	: 12
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 0
cpu cores	: 4
apicid		: 17
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips	: 4533.69
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: [8]

processor	: 13
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 1
cpu cores	: 4
apicid		: 19
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips	: 4533.43
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: [8]

processor	: 14
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 2
cpu cores	: 4
apicid		: 21
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips	: 4533.44
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: [8]

processor	: 15
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
stepping	: 5
cpu MHz		: 1596.000
cache size	: 8192 KB
physical id	: 1
siblings	: 8
core id		: 3
cpu cores	: 4
apicid		: 23
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc nonstop_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
bogomips	: 4533.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: [8]

                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-master/proc/swaps                                                0000644 0000000 0000000 00000000145 11524350243 021623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/mapper/VolGroup00-LogVol01         partition	34996216	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-master/proc/devices                                              0000644 0000000 0000000 00000000663 11524350242 022114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  6 lp
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
216 rfcomm
253 uio
254 pcmcia

Block devices:
  1 ramdisk
  3 ide0
  8 sd
  9 md
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
253 device-mapper
254 mdp
                                                                             Physical_Configuration/Clients/tb3-master/proc/modules                                              0000644 0000000 0000000 00000012117 11524350243 022140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ipt_MASQUERADE 36801 1 - Live 0xffffffff887ac000
iptable_nat 40773 1 - Live 0xffffffff887a1000
ip_nat 53101 2 ipt_MASQUERADE,iptable_nat, Live 0xffffffff88793000
xt_state 35265 1 - Live 0xffffffff88789000
ip_conntrack 91621 4 ipt_MASQUERADE,iptable_nat,ip_nat,xt_state, Live 0xffffffff88771000
nfnetlink 40457 2 ip_nat,ip_conntrack, Live 0xffffffff88766000
ipt_REJECT 38977 2 - Live 0xffffffff8875b000
xt_tcpudp 36289 4 - Live 0xffffffff88751000
iptable_filter 36161 1 - Live 0xffffffff88747000
ip_tables 55201 2 iptable_nat,iptable_filter, Live 0xffffffff88738000
x_tables 50505 6 ipt_MASQUERADE,iptable_nat,xt_state,ipt_REJECT,xt_tcpudp,ip_tables, Live 0xffffffff8872a000
bridge 91761 0 - Live 0xffffffff88712000
autofs4 63049 3 - Live 0xffffffff88701000
hidp 83521 2 - Live 0xffffffff886eb000
rfcomm 104681 0 - Live 0xffffffff886d0000
l2cap 89281 10 hidp,rfcomm, Live 0xffffffff886b9000
bluetooth 118853 5 hidp,rfcomm,l2cap, Live 0xffffffff8869a000
lockd 101553 0 - Live 0xffffffff88680000
sunrpc 199945 2 lockd, Live 0xffffffff8864e000
cpufreq_ondemand 42449 16 - Live 0xffffffff88642000
acpi_cpufreq 47937 0 - Live 0xffffffff88635000
freq_table 38977 2 cpufreq_ondemand,acpi_cpufreq, Live 0xffffffff8862a000
be2iscsi 91477 0 - Live 0xffffffff88612000
ib_iser 69569 0 - Live 0xffffffff88600000
rdma_cm 68437 1 ib_iser, Live 0xffffffff885ee000
ib_cm 72809 1 rdma_cm, Live 0xffffffff885db000
iw_cm 43465 1 rdma_cm, Live 0xffffffff885cf000
ib_sa 74953 2 rdma_cm,ib_cm, Live 0xffffffff885bb000
ib_mad 70628 2 ib_cm,ib_sa, Live 0xffffffff885a8000
ib_core 104901 6 ib_iser,rdma_cm,ib_cm,iw_cm,ib_sa,ib_mad, Live 0xffffffff8858d000
ib_addr 41929 1 rdma_cm, Live 0xffffffff88581000
iscsi_tcp 50509 0 - Live 0xffffffff88573000
bnx2i 74593 0 - Live 0xffffffff8855f000
cnic 78297 1 bnx2i, Live 0xffffffff8854a000
uio 45777 1 cnic, Live 0xffffffff8853d000
cxgb3i 77489 0 - Live 0xffffffff88529000
cxgb3 214705 1 cxgb3i, Live 0xffffffff884f3000
8021q 57425 1 cxgb3, Live 0xffffffff884e3000
libiscsi_tcp 53317 2 iscsi_tcp,cxgb3i, Live 0xffffffff884d4000
libiscsi2 77765 6 be2iscsi,ib_iser,iscsi_tcp,bnx2i,cxgb3i,libiscsi_tcp, Live 0xffffffff884c0000
scsi_transport_iscsi2 74073 8 be2iscsi,ib_iser,iscsi_tcp,bnx2i,cxgb3i,libiscsi2, Live 0xffffffff884ac000
scsi_transport_iscsi 35017 1 scsi_transport_iscsi2, Live 0xffffffff884a2000
dm_multipath 56921 0 - Live 0xffffffff88493000
scsi_dh 42177 1 dm_multipath, Live 0xffffffff88487000
video 53197 0 - Live 0xffffffff88479000
backlight 39873 1 video, Live 0xffffffff8846e000
sbs 49921 0 - Live 0xffffffff88460000
power_meter 46925 0 - Live 0xffffffff88453000
hwmon 36553 1 power_meter, Live 0xffffffff88449000
i2c_ec 38593 1 sbs, Live 0xffffffff8843e000
dell_wmi 37601 0 - Live 0xffffffff88433000
wmi 41985 1 dell_wmi, Live 0xffffffff88427000
button 40545 0 - Live 0xffffffff8841c000
battery 43849 0 - Live 0xffffffff88410000
asus_acpi 50917 0 - Live 0xffffffff88402000
acpi_memhotplug 40261 0 - Live 0xffffffff883f7000
ac 38729 0 - Live 0xffffffff883ec000
ipv6 435361 130 cnic, Live 0xffffffff88380000
xfrm_nalgo 43333 1 ipv6, Live 0xffffffff88374000
crypto_api 42945 1 xfrm_nalgo, Live 0xffffffff88368000
parport_pc 62313 0 - Live 0xffffffff88357000
lp 47121 0 - Live 0xffffffff8834a000
parport 73165 2 parport_pc,lp, Live 0xffffffff88337000
ksm 51808 0 - Live 0xffffffff88329000 (U)
kvm_intel 86920 0 - Live 0xffffffff88312000 (U)
kvm 226208 2 ksm,kvm_intel, Live 0xffffffff882d9000 (U)
joydev 43969 0 - Live 0xffffffff882cd000
sg 70377 0 - Live 0xffffffff882ba000
ide_cd 73825 0 - Live 0xffffffff882a6000
cdc_ether 39489 0 - Live 0xffffffff88299000
bnx2 216525 0 - Live 0xffffffff88261000
i2c_i801 41813 0 - Live 0xffffffff88253000
usbnet 51273 1 cdc_ether, Live 0xffffffff88245000
i2c_core 56641 2 i2c_ec,i2c_i801, Live 0xffffffff88236000
e1000e 161057 0 - Live 0xffffffff8820b000
cdrom 68713 1 ide_cd, Live 0xffffffff881f9000
pcspkr 36289 0 - Live 0xffffffff881ef000
dm_raid45 99657 0 - Live 0xffffffff881d5000
dm_message 36289 1 dm_raid45, Live 0xffffffff881cb000
dm_region_hash 46145 1 dm_raid45, Live 0xffffffff881be000
dm_mem_cache 38977 1 dm_raid45, Live 0xffffffff881b3000
dm_snapshot 52233 0 - Live 0xffffffff881a5000
dm_zero 35265 0 - Live 0xffffffff8819b000
dm_mirror 54737 0 - Live 0xffffffff8818c000
dm_log 44993 3 dm_raid45,dm_region_hash,dm_mirror, Live 0xffffffff88180000
dm_mod 101649 11 dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log, Live 0xffffffff88166000
ata_piix 56901 0 - Live 0xffffffff88157000
libata 209489 1 ata_piix, Live 0xffffffff88122000
shpchp 70637 0 - Live 0xffffffff8810f000
mptsas 83025 2 - Live 0xffffffff880f9000
mptscsih 69441 1 mptsas, Live 0xffffffff880e7000
mptbase 121349 2 mptsas,mptscsih, Live 0xffffffff880c8000
scsi_transport_sas 66753 1 mptsas, Live 0xffffffff880b6000
sd_mod 56513 3 - Live 0xffffffff880a7000
scsi_mod 196953 14 be2iscsi,ib_iser,iscsi_tcp,bnx2i,cxgb3i,libiscsi2,scsi_transport_iscsi2,scsi_dh,sg,libata,mptsas,mptscsih,scsi_transport_sas,sd_mod, Live 0xffffffff88075000
ext3 168913 2 - Live 0xffffffff8804a000
jbd 94769 1 ext3, Live 0xffffffff88031000
uhci_hcd 57433 0 - Live 0xffffffff88021000
ohci_hcd 56309 0 - Live 0xffffffff88012000
ehci_hcd 66125 0 - Live 0xffffffff88000000
                                                                                                                                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-master/proc/partitions                                           0000644 0000000 0000000 00000000242 11524350243 022660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

   8     0  140623872 sda
   8     1     104391 sda1
   8     2  140512522 sda2
 253     0  105512960 dm-0
 253     1   34996224 dm-1
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-master/proc/meminfo                                              0000644 0000000 0000000 00000001411 11524350242 022114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:     32934096 kB
MemFree:      30864060 kB
Buffers:        367624 kB
Cached:        1247912 kB
SwapCached:          0 kB
Active:         798292 kB
Inactive:      1040568 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:     32934096 kB
LowFree:      30864060 kB
SwapTotal:    34996216 kB
SwapFree:     34996216 kB
Dirty:           13812 kB
Writeback:           0 kB
AnonPages:      225952 kB
Mapped:          55972 kB
Slab:           130308 kB
PageTables:      33476 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:  51463264 kB
Committed_AS:   694012 kB
VmallocTotal: 34359738367 kB
VmallocUsed:    286836 kB
VmallocChunk: 34359450943 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     2048 kB
                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-master/vgdisplay.txt                                             0000644 0000000 0000000 00000001162 11524350245 022345  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                     --- Volume group ---
  VG Name               VolGroup00
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               134.00 GB
  PE Size               32.00 MB
  Total PE              4288
  Alloc PE / Size       4288 / 134.00 GB
  Free  PE / Size       0 / 0   
  VG UUID               l6pLUh-rW9F-N2Bg-lbKJ-gOf0-rztL-gGezPu
   
                                                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-master/brctl-show.txt                                            0000644 0000000 0000000 00000000116 11524350220 022416  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge name	bridge id		STP enabled	interfaces
virbr0		8000.000000000000	yes		
                                                                                                                                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-master/tile.tb3-master/                                          0000777 0000000 0000000 00000000000 11524350244 022522  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/tile.tb3-master/proc/                                     0000777 0000000 0000000 00000000000 11524350244 023465  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/tile.tb3-master/proc/cpuinfo                              0000644 0000000 0000000 00000000000 11524350244 025035  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/tile.tb3-master/proc/swaps                                0000644 0000000 0000000 00000000000 11524350244 024527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/tile.tb3-master/proc/devices                              0000644 0000000 0000000 00000000000 11524350244 025014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/tile.tb3-master/proc/modules                              0000644 0000000 0000000 00000000000 11524350244 025042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/tile.tb3-master/proc/partitions                           0000644 0000000 0000000 00000000000 11524350244 025566  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/tile.tb3-master/proc/meminfo                              0000644 0000000 0000000 00000000000 11524350244 025024  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/tile.tb3-master/lspci.txt                                 0000644 0000000 0000000 00000000000 11524350244 024357  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/tile.tb3-master/df.txt                                    0000644 0000000 0000000 00000000000 11524350243 023635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/tile.tb3-master/mount.txt                                 0000644 0000000 0000000 00000000000 11524350244 024407  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/tile.tb3-master/rpmpkgs.txt                               0000644 0000000 0000000 00000000000 11524350244 024730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/tile.tb3-master/ifconfig.txt                              0000644 0000000 0000000 00000000000 11524350243 025030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/tile.tb3-master/chkconfig.txt                             0000644 0000000 0000000 00000000000 11524350243 025177  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/lspci.txt                                                 0000644 0000000 0000000 00000010004 11524350242 021445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 5520 I/O Hub to ESI Port (rev 13)
00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 13)
00:02.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 2 (rev 13)
00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 13)
00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 13)
00:10.0 PIC: Intel Corporation 5520/5500/X58 Physical and Link Layer Registers Port 0 (rev 13)
00:10.1 PIC: Intel Corporation 5520/5500/X58 Routing and Protocol Layer Registers Port 0 (rev 13)
00:11.0 PIC: Intel Corporation 5520/5500 Physical and Link Layer Registers Port 1 (rev 13)
00:11.1 PIC: Intel Corporation 5520/5500 Routing & Protocol Layer Register Port 1 (rev 13)
00:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers (rev 13)
00:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 13)
00:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 13)
00:14.3 PIC: Intel Corporation 5520/5500/X58 I/O Hub Throttle Registers (rev 13)
00:15.0 PIC: Intel Corporation 5520/5500/X58 Trusted Execution Technology Registers (rev 13)
00:16.0 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.1 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.2 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.3 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.4 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.5 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.6 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:16.7 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 13)
00:1a.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
00:1a.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5
00:1a.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1
00:1c.4 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 5
00:1d.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
00:1d.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
00:1d.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
00:1d.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller
00:1f.2 IDE interface: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1
00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
00:1f.5 IDE interface: Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller #2
01:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068E PCI-Express Fusion-MPT SAS (rev 08)
06:00.0 PCI bridge: Vitesse Semiconductor VSC452 [SuperBMC] (rev 01)
07:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200EV
0b:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
0b:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
15:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
15:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
1a:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
1a:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-master/df.txt                                                    0000644 0000000 0000000 00000000434 11524350221 020727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                     102208760  12487156  84445956  13% /
/dev/sda1               101086     12645     83222  14% /boot
tmpfs                 16467048         0  16467048   0% /dev/shm
                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-master/lvdisplay.txt                                             0000644 0000000 0000000 00000001727 11524350242 022356  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                     --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                1w8SyB-XcJz-jwCo-tV8v-5v8p-d64O-Qs3KLN
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                100.62 GB
  Current LE             3220
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                aUyFca-Xl2a-goCx-62e4-UcOF-NMGL-CmfCS3
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                33.38 GB
  Current LE             1068
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
                                         Physical_Configuration/Clients/tb3-master/mount.txt                                                 0000644 0000000 0000000 00000000534 11524350242 021504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw) [/boot]
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                                                                    Physical_Configuration/Clients/tb3-master/etc/                                                      0000777 0000000 0000000 00000000000 11524350242 020356  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/etc/rc.d/                                                 0000777 0000000 0000000 00000000000 11524350232 021203  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/                                           0000777 0000000 0000000 00000000000 11524350241 022114  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S95anacron                                 0000755 0000000 0000000 00000002641 11524350241 023763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# Startup script for anacron
#
# chkconfig: 2345 95 05
# description: Run cron jobs that were left out due to downtime
# pidfile: /var/run/anacron.pid
#
# Source function library.
. /etc/rc.d/init.d/functions

[ -f /usr/sbin/anacron ] || exit 0

prog="anacron"
PIDFILE=/var/run/${prog}.pid
LOCKFILE=/var/lock/subsys/$prog
#
#  NOTE: anacron exits after it has determined it has no more work to do.
#        Hence, its initscript cannot do normal lock file management.
#        The anacron binary now creates its own /var/run/anacron.pid pid file
#        and /var/lock/subsys lock files, and removes them automatically at exit,
#        so at least there will be no more "anacron is dead but subsys locked" 
#        messages.
#

start() {
    echo -n $"Starting $prog: " 
    daemon +19 anacron -s
    RETVAL=$?
    if [ $RETVAL -ne 0 ]; then
	failure;
    fi;
    echo
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -f $PIDFILE ]; then
	killproc anacron
	RETVAL=$?
	if [ $RETVAL -ne 0 ]; then 
	    failure;
	fi;
    else
	RETVAL=1
	failure;
    fi
    echo
    return $RETVAL
}

case "$1" in
	start)
	    start
	    ;;
	
	stop)
	    stop
	    ;;
	
	status)
	    status anacron
	    ;;

	restart)
	    stop
	    start
	    ;;

	condrestart)
	    if [ -f $LOCKFILE ]; then
		stop
		start
	    fi
	    ;;
	
	*)
	    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
	    exit 1

esac

exit $RETVAL
                                                                                               Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K69rpcsvcgssd                              0000755 0000000 0000000 00000004662 11524350233 024522  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# Authors:	Chuck Lever <cel@netapp.com>
#
# chkconfig: - 19 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFSv4 server.

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# See if we are configured to start 
[ "${SECURE_NFS}" != "yes" ] && exit 6

RETVAL=0
LOCKFILE=/var/lock/subsys/rpcsvcgssd
prog="rpc.svcgssd"

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condstart|condrestart|status}"
	RETVAL=3
	;;
esac

exit $RETVAL
                                                                              Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K99readahead_later                         0000755 0000000 0000000 00000001642 11524350235 025426  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# readahead:	Prereads programs required for startup into memory
#
# chkconfig: 5 96 99
# description:  This service causes the programs used during startup \
#		to be loaded into memory before they are needed,\
#		thus improving startup performance 
#
#

# Sanity checks.
[ -x /usr/sbin/readahead ] || exit 0

# Check for > 384 MB
free -m | gawk '/Mem:/ {exit ($2 >= 384)?0:1}' || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

start() {
    echo -n $"Starting background readahead: "
    FILES=$( ls /etc/readahead.d/*.later )
    /usr/sbin/readahead $FILES >/dev/null &
    echo_success
    echo
}


stop() {
   /bin/true
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        ;;
    restart)
	stop
	start
	;;
    condrestart)
	;;
    reload)
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	;;
esac
exit $RETVAL
                                                                                              Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S18rpcidmapd                               0000755 0000000 0000000 00000004030 11524350236 024276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# Authors:	Chuck Lever <cel@netapp.com>
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
LOCKFILE=/var/lock/subsys/rpcidmapd
prog="rpc.idmapd"

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {	
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condstart|condrestart|status}"
	RETVAL=3
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S99firstboot                               0000755 0000000 0000000 00000003655 11524350241 024367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# firstboot:         Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description:       Firstboot is a druid style program that runs on the first time \
#                    a machine is booted after install.  It checks for the existence \
#                    of an /etc/sysconfig/firstboot file.  If it doesn't find the file, \
#                    then the firstboot program needs to run.  If it finds the file, \
#                    firstboot will not be run.
#                    If /etc/reconfigSys exists, run the reconfiguration
#		     program and remove /etc/reconfigSys when done.
#
#                    Also will run if 'reconfig' is on the kernel cmdline.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot
LOCKFILE=/var/lock/subsys/firstboot

[ -z "$HOME" ] && export HOME=/

case "$1" in
 start)
	action=run

	[ -f "$LOCKFILE" ] && exit 0

	if [ -f "$FILENAME" ] && ! grep -q '^RUN_FIRSTBOOT=YES' "$FILENAME"; then
	    action=skip
	fi

	if grep -i reconfig /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
	    action=reconfig
	fi

	[ $action = skip ] && exit 0

	runlevel=$(set -- $(runlevel); eval "echo \$$#" )
	if grep -q "^id:5:initdefault:" /etc/inittab && [ "x$runlevel" = x5 ]; then
	    . /etc/sysconfig/i18n
	    if [ ! -f /etc/X11/xorg.conf -a ! -f /etc/X11/XF86Config ] ; then
		echo -n $"X is not configured.  Running system-config-display"
		/usr/bin/system-config-display
		echo -n $"X is now configured.  Starting Setup Agent"
	    fi
	fi

	if [ $action = reconfig ]; then
	    echo -n $"Running system reconfiguration tool"
	    /usr/sbin/firstboot --reconfig
	    exit 0
	fi

	touch $LOCKFILE
	/usr/sbin/firstboot
	RETVAL=$?

	if [ "$RETVAL" -eq 0 ]; then
	    action "" /bin/true
	else
	    action "" /bin/false
	fi

	exit 0
	;;

 stop)
   rm -f $LOCKFILE
   ;;

 *)
   echo $"Usage: $0 {start|stop}"
   RETVAL=1
esac

exit $RETVAL
                                                                                   Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S07iscsid                                  0000755 0000000 0000000 00000003537 11524350235 023621  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

# Source function library.
. /etc/init.d/functions

PATH=/sbin:/bin:/usr/sbin:/usr/bin

RETVAL=0

start()
{
	echo -n $"Starting iSCSI daemon: "
	modprobe -q cxgb3i
	modprobe -q bnx2i
	modprobe -q iscsi_tcp
	modprobe -q ib_iser
	modprobe -q be2iscsi
	daemon brcm_iscsiuio
	daemon iscsid
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] || return

	touch /var/lock/subsys/iscsid

	success
	echo
}

stop()
{
	rm -f /var/lock/subsys/iscsid

        # If this is a final shutdown/halt, do nothing since
        # we may need iscsid for as long as possible (halt script kills
	# us at the last second)
        if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
                success
                return
        fi

        # don't turn off iscsi if root is possibly on a iscsi disk
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
        if [[ "$rootopts" =~ "_netdev" ]] ; then
                echo $"Can not shutdown iSCSI. Root is on a iSCSI disk."
                exit 1
        fi

	echo -n $"Stopping iSCSI daemon: "

	iscsiadm -k 0
	echo

	killproc brcm_iscsiuio
	rm -f /var/run/brcm_iscsiuio.pid

	# only remove the iscsi drivers when offload is used
	rmmod be2iscsi 2>/dev/null

	rmmod bnx2i 2>/dev/null
	rmmod cnic 2>/dev/null

	rmmod cxgb3i 2>/dev/null

	modprobe -r ib_iser 2>/dev/null
	modprobe -r iscsi_tcp 2>/dev/null
}

restart()
{
	stop
	start
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	restart)
	        stop
		start
		;;
	status)
		status iscsid
		RETVAL=$?
		;;
        condrestart)
	        [ -f /var/lock/subsys/iscsid ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart}"
		exit 1
esac

exit $RETVAL
                                                                                                                                                                 Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S55sshd                                    0000755 0000000 0000000 00000006526 11524350240 023304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Init file for OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: OpenSSH server daemon
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ ! "$RETVAL" = 0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	# Create keys if necessary
	do_rsa1_keygen
	do_rsa_keygen
	do_dsa_keygen
	
	cp -af /etc/localtime /var/empty/sshd/etc

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ "$RETVAL" = 0 ] && touch /var/lock/subsys/sshd
	echo
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    killall $prog 2>/dev/null
	fi
	[ "$RETVAL" = 0 ] && rm -f /var/lock/subsys/sshd
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	restart)
		stop
		start
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/sshd ] ; then
			do_restart_sanity_check
			if [ "$RETVAL" = 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			fi
		fi
		;;
	status)
		status -p $PID_FILE openssh-daemon
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}"
		RETVAL=1
esac
exit $RETVAL
                                                                                                                                                                          Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K15httpd                                   0000755 0000000 0000000 00000006277 11524350232 023456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: Apache is a World Wide Web server.  It is used to serve \
#	       HTML files and CGI.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd.pid

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# check for 1.3 configuration
check13 () {
	CONFFILE=/etc/httpd/conf/httpd.conf
	GONE="(ServerType|BindAddress|Port|AddModule|ClearModuleList|"
	GONE="${GONE}AgentLog|RefererLog|RefererIgnore|FancyIndexing|"
	GONE="${GONE}AccessConfig|ResourceConfig)"
	if LANG=C grep -Eiq "^[[:space:]]*($GONE)" $CONFFILE; then
		echo
		echo 1>&2 " Apache 1.3 configuration directives found"
		echo 1>&2 " please read /usr/share/doc/httpd-2.2.3/migration.html"
		failure "Apache 1.3 config directives test"
		echo
		exit 1
	fi
}

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        check13 || exit 1
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=$?
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart)
	if [ -f ${pidfile} ] ; then
		stop
		start
	fi
	;;
  reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K35smb                                     0000755 0000000 0000000 00000004141 11524350233 023103  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 91 35
# description: Starts and stops the Samba smbd and nmbd daemons \
#	       used to provide SMB network services.
#
# pidfile: /var/run/samba/smbd.pid
# pidfile: /var/run/samba/nmbd.pid
# config:  /etc/samba/smb.conf


# Source function library.
if [ -f /etc/init.d/functions ] ; then
  . /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
  . /etc/rc.d/init.d/functions
else
  exit 1
fi

# Avoid using root's TMPDIR
unset TMPDIR

# Source networking configuration.
. /etc/sysconfig/network

if [ -f /etc/sysconfig/samba ]; then
   . /etc/sysconfig/samba
fi

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 1

# Check that smb.conf exists.
[ -f /etc/samba/smb.conf ] || exit 6

RETVAL=0


start() {
        KIND="SMB"
	echo -n $"Starting $KIND services: "
	daemon smbd $SMBDOPTIONS
	RETVAL=$?
	echo
        KIND="NMB"
	echo -n $"Starting $KIND services: "
	daemon nmbd $NMBDOPTIONS
	RETVAL2=$?
	echo
	[ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && touch /var/lock/subsys/smb || \
	   RETVAL=1
	return $RETVAL
}	

stop() {
        KIND="SMB"
	echo -n $"Shutting down $KIND services: "
	killproc smbd
	RETVAL=$?
	echo
	KIND="NMB"
	echo -n $"Shutting down $KIND services: "
	killproc nmbd
	RETVAL2=$?
	[ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && rm -f /var/lock/subsys/smb
	echo ""
	return $RETVAL
}	

restart() {
	stop
	start
}	

reload() {
        echo -n $"Reloading smb.conf file: "
	killproc smbd -HUP
	RETVAL=$?
	echo
	return $RETVAL
}	

rhstatus() {
	status smbd
	RETVAL=$?
	status nmbd
	RETVAL2=$?
	if [ $RETVAL -ne 0 ] ; then
		return $RETVAL
	fi
	if [ $RETVAL2 -ne 0 ] ; then
		return $RETVAL2
	fi
}	


# Allow status as non-root.
if [ "$1" = status ]; then
       rhstatus
       exit $?
fi

# Check that we can write to it... so non-root users stop here
[ -w /etc/samba/smb.conf ] || exit 4



case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  restart)
  	restart
	;;
  reload)
  	reload
	;;
  status)
  	rhstatus
	;;
  condrestart)
  	[ -f /var/lock/subsys/smb ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K05wdaemon                                 0000755 0000000 0000000 00000003730 11524350232 023753  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/wdaemon
#
# Starts the wdaemon
#
# chkconfig: - 95 5
# description: helps X.org to support Wacom tablets hotplugging by creating \
#    permanent uinput devices that may be feeded by real tablets events while \
#    the hardware is present.
# processname: wdaemon

# Source function library.
. /etc/init.d/functions

test -x /usr/bin/wdaemon || exit 0

RETVAL=0

#
#	See how we were called.
#

prog="wdaemon"

start() {
	# Check if there's already a configuration present
	if [ ! -f /etc/wdaemon.conf ]; then
	    echo "wdaemon configuration file not present yet";
	    return 0;
	fi
	# Check if wdaemon is already running
	if [ ! -f /var/lock/subsys/wdaemon ]; then
	    if [ -z "$(lsmod | grep uinput)" ]; then
	       echo -n $"Loading uinput module: "
	       modprobe uinput;
	       RETVAL=$?
	       [ $RETVAL -eq 0 ] && success || (failure; return $RETVAL);
	       echo;
	       for count in $(seq 1 3); do
	          if [ -e /dev/uinput ]; then
	             break;
	          fi
                  sleep 1;
               done
	       if [ ! -e /dev/uinput ]; then
	          logger -p daemon.err -t wdaemon "/dev/uinput not available";
	          failure;
	          return 1;
               fi
            fi
	    echo -n $"Starting $prog: "
	    daemon /usr/bin/wdaemon -c /etc/wdaemon.conf -f >/dev/null;
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && (success; touch /var/lock/subsys/wdaemon) || failure;
	    echo
	fi
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc /usr/bin/wdaemon
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/wdaemon
	echo
        return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

status_at() {
 	status /usr/bin/wdaemon
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload|restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/wdaemon ]; then
	    restart
	fi
	;;
status)
	status_at
	;;
*)
	echo $"Usage: $0 {start|stop|restart|condrestart|status}"
	exit 1
esac

exit $?
exit $RETVAL
                                        Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K35winbind                                 0000755 0000000 0000000 00000003027 11524350233 023756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 91 35
# description: Starts and stops the Samba winbind daemon
#	       #
# pidfile: /var/run/winbindd.pid
# config:  /etc/samba/smb.conf


# Source function library.
if [ -f /etc/init.d/functions ] ; then
  . /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
  . /etc/rc.d/init.d/functions
else
  exit 1
fi

# Avoid using root's TMPDIR
unset TMPDIR

# Source networking configuration.
. /etc/sysconfig/network

if [ -f /etc/sysconfig/samba ]; then
   . /etc/sysconfig/samba
fi

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 1

# Check that smb.conf exists.
[ -f /etc/samba/smb.conf ] || exit 4

RETVAL=0


start() {
        KIND="Winbind"
	echo -n $"Starting $KIND services: "
	daemon winbindd "$WINBINDOPTIONS"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/winbindd || RETVAL=1
	return $RETVAL
}	

stop() {
        echo
	KIND="Winbind"
	echo -n $"Shutting down $KIND services: "
	killproc winbindd
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/winbindd
	echo ""
	return $RETVAL
}	

restart() {
	stop
	start
}	

reload() {
        echo -n $"Reloading smb.conf file: "
	killproc winbindd -HUP
	RETVAL=$?
	echo
	return $RETVAL
}	

rhstatus() {
	status winbindd
	return $?
}	

case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  restart)
  	restart
	;;
  reload)
  	reload
	;;
  status)
  	rhstatus
	;;
  condrestart)
  	[ -f /var/lock/subsys/winbindd ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K89rdisc                                   0000755 0000000 0000000 00000002553 11524350234 023445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
# rdisc:        Starts the rdisc Daemon
#
# chkconfig: - 41 89
# description: This is a daemon which discovers routers on the local subnet.
# processname: rdisc
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


# Check that networking is configured.
[ ${NETWORKING} = "no" ] && exit 0

start() {
	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=1
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rdisc
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=1
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/rdisc
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 1
esac

exit $?
                                                                                                                                                     Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S56xinetd                                  0000755 0000000 0000000 00000004701 11524350240 023630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

# Check that we are root ... so non-root users stop here
[ `id -u` = 0 ] || exit 1

# Check that networking is up.
[ "${NETWORKING}" = "yes" ] || exit 0

[ -f /usr/sbin/xinetd ] || exit 1
[ -f /etc/xinetd.conf ] || exit 1

RETVAL=0

prog="xinetd"

start(){
    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    echo -n $"Stopping $prog: "
    killproc $prog
    RETVAL=$?
    echo
    rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    [ -e /var/lock/subsys/xinetd ] && restart
    return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
	status $prog
	;;
    restart)
	restart
	;;
    reload)
	reload
	;;
    condrestart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=1
esac

exit $RETVAL
                                                               Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S22messagebus                              0000755 0000000 0000000 00000003433 11524350237 024473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85 
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $processname
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S99smartd                                  0000755 0000000 0000000 00000005264 11524350241 023644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: 2345 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd

start()
{
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|reload|force-reload|report|restart|try-restart|status}"
		RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K00ipmievd                                 0000755 0000000 0000000 00000003753 11524350232 023756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/ipmievd
#
#       Based on example sysvinitfiles script
#       Copyright (c) 2000 Red Hat Software, Inc.
#
# chkconfig: - 99 00
# description: ipmievd daemon to send events to syslog
# processname: ipmievd
# config:      /etc/sysconfig/ipmievd
#
### BEGIN INIT INFO
# Provides:          ipmievd
# Required-Start:    $syslog ipmi
# Should-Start: $time
# Required-Stop:     $syslog ipmi
# Should-Stop: $time
# Default-Start:
# Default-Stop:
# Short-Description: ipmievd daemon to send events to syslog
# Description:       Start ipmievd to read events from BMC and
#	             log them to syslog.  Events correspond to hardware faults,
#	             state transitions such as power on and off, and sensor
#	             readings such as temperature, voltage and fan speed that
#	             are abnormal.
### END INIT INFO

IPMIEVD_BIN=/usr/sbin/ipmievd
test -x $IPMIEVD_BIN || { echo "$IPMIEVD_BIN not installed";
        if [ "$1" = "stop" ]; then exit 0;
        else exit 5; fi; }

# Check for existence of needed config file
IPMIEVD_CONFIG=/etc/sysconfig/ipmievd
test -r $IPMIEVD_CONFIG || { echo "$IPMIEVD_CONFIG does not exist";
        if [ "$1" = "stop" ]; then exit 0;
        else exit 6; fi; }

# Read config file
. $IPMIEVD_CONFIG

# Source function library.
. /etc/init.d/functions

start() {
	echo "Starting ipmievd:"
	if [ -f /var/lock/subsys/ipmievd ]; then
		return 0
	fi
	daemon $IPMIEVD_BIN $IPMIEVD_OPTIONS
	ret=$?
	[ $ret -eq 0 ] && touch /var/lock/subsys/ipmievd
	return $ret
}	

stop() {
	echo "Shutting down ipmievd:"
	killproc $IPMIEVD_BIN
	ret=$?
	[ $ret -eq 0 ] && rm -f /var/lock/subsys/ipmievd
	return $ret
}

restart() {
	stop
	start
}

case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
	status $IPMIEVD_BIN
	;;
    restart|reload|force-reload)
	restart
	;;
    try-restart|condrestart)
	[ -f /var/lock/subsys/ipmievd ] && restart || :
	;;
    *)
	echo "Usage: ipmievd {start|stop|status|reload|restart|condrestart}"
	exit 1
	;;
esac
exit $?
                     Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S13irqbalance                              0000755 0000000 0000000 00000004221 11524350236 024431  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# irqbalance       Start/Stop irq balancing daemon
#
# chkconfig: 2345 13 87
# description: The irqbalance daemon will distribute interrupts across  \
#              the cpus on a multiprocessor system with the purpose of \
#              spreading the load. \
# processname: irqbalance


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 4 


prog="irqbalance"

# Check that networking is up.
if [ "$NETWORKING" = "no" ]
then
	exit 1 
fi

[ -f /usr/sbin/irqbalance ] || exit 5

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
	export ONESHOT=$ONESHOT
	export IRQBALANCE_BANNED_INTERRUPTS=$IRQBALANCE_BANNED_INTERRUPTS
	export IRQBALANCE_BANNED_CPUS=$IRQBALANCE_BANNED_CPUS
        if [ -f /var/lock/irqbalance ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        if [ $RETVAL -eq 0 ]; then
                if [ -n "$ONESHOT" ]; then
                        touch /var/lock/subsys/irqbalance
                else
                        touch /var/lock/irqbalance
                fi
        fi
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        echo
        rm -f /var/lock/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S19rpcgssd                                 0000755 0000000 0000000 00000004775 11524350236 024021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# Authors:	Chuck Lever <cel@netapp.com>
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFSv4 client.

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# See if we are configured to start 
[ "${SECURE_NFS}" != "yes" ] && exit 6

# Try to use machine credentials by default
RETVAL=0
LOCKFILE=/var/lock/subsys/rpcgssd
prog="rpc.gssd"

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condstart|condrestart|status}"
	RETVAL=3
	;;
esac

exit $RETVAL
   Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S80sendmail                                0000755 0000000 0000000 00000006425 11524350240 024133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sendmail      This shell script takes care of starting and stopping
#               sendmail.
#
# chkconfig: 2345 80 30
# description: Sendmail is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: sendmail
# config: /etc/mail/sendmail.cf
# pidfile: /var/run/sendmail.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Source sendmail configureation.
if [ -f /etc/sysconfig/sendmail ] ; then
	. /etc/sysconfig/sendmail
else
	DAEMON=no
	QUEUE=1h
fi
[ -z "$SMQUEUE" ] && SMQUEUE="$QUEUE"
[ -z "$SMQUEUE" ] && SMQUEUE=1h

# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0

[ -f /usr/sbin/sendmail ] || exit 0

RETVAL=0
prog="sendmail"

start() {
	# Start daemons.

	echo -n $"Starting $prog: "
	if test -x /usr/bin/make -a -f /etc/mail/Makefile ; then
	  make all -C /etc/mail -s > /dev/null
	else
	  for i in virtusertable access domaintable mailertable ; do
	    if [ -f /etc/mail/$i ] ; then
		makemap hash /etc/mail/$i < /etc/mail/$i
	    fi
	  done
	fi
	/usr/bin/newaliases > /dev/null 2>&1
	daemon /usr/sbin/sendmail $([ "x$DAEMON" = xyes ] && echo -bd) \
			$([ -n "$QUEUE" ] && echo -q$QUEUE) $SENDMAIL_OPTARG
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/sendmail

	if ! test -f /var/run/sm-client.pid ; then
	echo -n $"Starting sm-client: "
	touch /var/run/sm-client.pid
	chown smmsp:smmsp /var/run/sm-client.pid
	if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
	    /sbin/restorecon /var/run/sm-client.pid
	fi
	daemon --check sm-client /usr/sbin/sendmail -L sm-msp-queue -Ac \
			-q$SMQUEUE $SENDMAIL_OPTARG
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sm-client
        fi

	return $RETVAL
}

reload() {
	# Stop daemons.
    	echo -n $"reloading $prog: "
	/usr/bin/newaliases > /dev/null 2>&1
	if [ -x /usr/bin/make -a -f /etc/mail/Makefile ]; then
	  make all -C /etc/mail -s > /dev/null
	else
	  for i in virtusertable access domaintable mailertable ; do
	    if [ -f /etc/mail/$i ] ; then
		makemap hash /etc/mail/$i < /etc/mail/$i
	    fi
	  done
	fi
	daemon /usr/sbin/sendmail $([ "x$DAEMON" = xyes ] && echo -bd) \
	    $([ -n "$QUEUE" ] && echo -q$QUEUE)
	RETVAL=$?
	killproc sendmail -HUP
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 -a -f /var/run/sm-client.pid ]; then
		echo -n $"reloading sm-client: "
		killproc sm-client -HUP
		RETVAL=$?
		echo
	fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	if test -f /var/run/sm-client.pid ; then
		echo -n $"Shutting down sm-client: "
		killproc sm-client
		RETVAL=$?
		echo
		[ $RETVAL -eq 0 ] && rm -f /var/run/sm-client.pid
		[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sm-client
	fi
	echo -n $"Shutting down $prog: "
	killproc sendmail
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sendmail
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  reload)
	reload
	RETVAL=$?
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  condrestart)
	if [ -f /var/lock/subsys/sendmail ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status sendmail
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K88wpa_supplicant                          0000755 0000000 0000000 00000003142 11524350234 025364  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 12 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ "$NETWORKING" = "no" ] && exit 0

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
	echo -n $"Starting $prog: $conf $INTERFACES $DRIVERS $OTHER_ARGS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S98avahi-daemon                            0000755 0000000 0000000 00000003525 11524350241 024700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# avahi-daemon:       Starts the Avahi Daemon
#
# chkconfig: 345 98 02
# description: This is a daemon which runs on client machines to perform \
#              Zeroconf service discovery on a network. avahi-daemon must be \
#              running on systems  that use Avahi for service discovery. \
#              Avahi-daemon should not be running otherwise.
# processname: avahi-daemon
# config: 

OTHER_AVAHI_OPTS=""

# Source function library.
. /etc/init.d/functions

. /etc/sysconfig/network

# Check that networking is configured.
[ ${NETWORKING} = "no" ] && exit 0

AVAHI_BIN=/usr/sbin/avahi-daemon
test -x $AVAHI_BIN || exit 5

LOCKFILE=/var/lock/subsys/avahi-daemon

base=${0##*/}

start() {
	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        $AVAHI_BIN -D
	RETVAL=$?
	if [ $RETVAL = 0 ]; then
		touch $LOCKFILE
		success $"$base startup"
	else
		failure $"$base startup"
	fi
	echo
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        $AVAHI_BIN -k
	RETVAL=$?
	[ $RETVAL = 0 ] && success $"$base shutdown" || failure $"$base shutdown"
	rm -f $LOCKFILE
	echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        $AVAHI_BIN -r
	RETVAL=$?
	[ $RETVAL = 0 ] && success $"$base reload" || failure $"$base reload"
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        $AVAHI_BIN -c
    	RETVAL=$?
    	[ $RETVAL = 0 ] && echo $"Avahi daemon is running" || echo $"Avahi daemon is not running"
	;;
  restart)
	restart
	;;
  reload)
        reload 
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 1
esac

exit $RETVAL

                                                                                                                                                                           Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K05conman                                  0000755 0000000 0000000 00000002676 11524350232 023604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 95 5
# description: The ConMan daemon is used for console management.
#

CONMAND=/usr/sbin/conmand

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Default params, override in /etc/sysconfig/conman
CONFIG=/etc/conman.conf
OPTIONS=
USER=root
NICE=
#SIGHUP_RELOAD=
#PIDFILE=

. /etc/sysconfig/conman

RETVAL="0"

# Disable suppression of stderr msgs.
INITLOG_ARGS=""

# See how we were called.
case "$1" in
  start)
	echo -n "Starting ConMan: "
	if [ ! -x "$CONMAND" ]; then
        	echo_failure; echo
		exit 5
	fi
	CONSOLES=`grep -c "^CONSOLE" $CONFIG`
	RETVAL=$?
	if [ "$RETVAL" -ge "1" ]; then
		echo
		echo -n "  ERROR: No CONSOLE(s) defined! "
		echo_failure
	else
		daemon $NICE --user $USER $CONMAND -c $CONFIG $OPTIONS
		RETVAL=$?
	fi
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/conman
	;;
  stop)
	echo -n "Stopping ConMan: "
	if [ ! -x "$CONMAND" ]; then
        	echo_failure; echo
		exit 5
	fi
	killproc conmand
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/conman
	;;
  status)
	status conmand
	RETVAL=$?
	;;
  restart)
	$0 status >/dev/null && $0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	[ -f "/var/lock/subsys/conman" ] && $0 restart || :
	RETVAL=$?
	echo
	;;
  reload)
	echo -n "Reloading ConMan: "
	killproc conmand -HUP
	RETVAL=$?
	echo
	;;
  *)
	echo "Usage: $0 {start|stop|status|restart|reload}"
	exit 3
esac

exit $RETVAL
                                                                  Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S91vncserver                               0000755 0000000 0000000 00000004003 11524350241 024345  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 91 35
# description: Starts and stops vncserver. \
#	       used to provide remote X administration services.

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

unset VNCSERVERARGS
VNCSERVERS=""
[ -f /etc/sysconfig/vncservers ] && . /etc/sysconfig/vncservers

prog=$"VNC server"

start() {
    echo -n $"Starting $prog: "
    ulimit -S -c 0 >/dev/null 2>&1
    RETVAL=0
    if [ ! -d /tmp/.X11-unix ]
    then
        mkdir -m 1777 /tmp/.X11-unix || :
        restorecon /tmp/.X11-unix 2>/dev/null || :
    fi
    NOSERV=1
    for display in ${VNCSERVERS}
    do
        NOSERV=
        echo -n "${display} "
	unset BASH_ENV ENV
	DISP="${display%%:*}"
	export USER="${display##*:}"
	export VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
        runuser -l ${USER} -c "cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
        RETVAL=$?
        [ "$RETVAL" -ne 0 ] && break
    done
    if test -n "$NOSERV"; then echo -n "no displays configured "; fi
    [ "$RETVAL" -eq 0 ] && success $"vncserver startup" || \
        failure $"vncserver start"
    echo
    [ "$RETVAL" -eq 0 ] && touch /var/lock/subsys/vncserver
}

stop() {
    echo -n $"Shutting down $prog: "
    for display in ${VNCSERVERS}
    do
        echo -n "${display} "
	unset BASH_ENV ENV
	export USER="${display##*:}"
	runuser ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
    done
    RETVAL=$?
    [ "$RETVAL" -eq 0 ] && success $"vncserver shutdown" || \
        failure $"vncserver shutdown"
    echo
    [ "$RETVAL" -eq 0 ] && rm -f /var/lock/subsys/vncserver
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|reload)
	stop
	sleep 3
	start
	;;
  condrestart)
	if [ -f /var/lock/subsys/vncserver ]; then
	    stop
	    sleep 3
	    start
	fi
	;;
  status)
	status Xvnc
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|status}"
	exit 1
esac

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S97libvirtd                                0000755 0000000 0000000 00000005247 11524350241 024170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: libvirtd
# Should-Start: xend
# Default-Start: 3 4 5
# Short-Description: daemon for libvirt virtualization API
# Description: This is a daemon for managing guest instances
#              and libvirt virtual networks
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirtd:   guest and virtual network management daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon for managing guest instances
#               and libvirt virtual networks
#               See http://libvirt.org
#
# processname: libvirtd
# pidfile: /var/run/libvirtd.pid
#

# Sanity checks.
[ -x /usr/sbin/libvirtd ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

SERVICE=libvirtd
PROCESS=libvirtd
OLD_PROCESS=libvirt_qemud

LIBVIRTD_CONFIG=
LIBVIRTD_ARGS=
KRB5_KTNAME=/etc/libvirt/krb5.tab

test -f /etc/sysconfig/libvirtd && . /etc/sysconfig/libvirtd

LIBVIRTD_CONFIG_ARGS=
if [ -n "$LIBVIRTD_CONFIG" ]
then
    LIBVIRTD_CONFIG_ARGS="--config $LIBVIRTD_CONFIG"
fi

RETVAL=0

start() {
    echo -n $"Starting $SERVICE daemon: "
    mkdir -p /var/cache/libvirt
    rm -rf /var/cache/libvirt/*
    KRB5_KTNAME=$KRB5_KTNAME daemon --check $SERVICE $PROCESS --daemon $LIBVIRTD_CONFIG_ARGS $LIBVIRTD_ARGS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SERVICE
}

stop() {
    echo -n $"Stopping $SERVICE daemon: "

    if [ "$(pidofproc $OLD_PROCESS)" != "" ]; then
        killproc $OLD_PROCESS
        RETVAL=$?
    else
        killproc $PROCESS
        RETVAL=$?
    fi
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$SERVICE
        rm -f /var/run/$SERVICE.pid
	rm -rf /var/cache/libvirt/*
    fi
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading $SERVICE configuration: "

    if [ "$(pidofproc $OLD_PROCESS)" != "" ]; then
        killproc $OLD_PROCESS -HUP
        RETVAL=$?
    else
        killproc $PROCESS -HUP
        RETVAL=$?
    fi
    echo
    return $RETVAL
}

# See how we were called.
case "$1" in
    start|stop|restart|reload)
        $1
        ;;
    status)
        if [ "$(pidofproc $OLD_PROCESS)" != "" ]; then
            status $OLD_PROCESS
            RETVAL=$?
	else
            status $PROCESS
            RETVAL=$?
	fi
        ;;
    force-reload)
        reload
	;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$SERVICE ] && restart || :
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K24irda                                    0000755 0000000 0000000 00000003130 11524350233 023234  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# irda          This shell script takes care of starting and stopping
#               IrDA support
#
# chkconfig: - 45 24
# description: IrDA(TM) (Infrared Data Association) is an industry standard  \
# for wireless, infrared communication between devices. IrDA speeds range \
# from 9600 bps to 4 Mbps, and IrDA can be used by many modern devices \
# including laptops, LAN adapters, PDAs, printers, and mobile phones.
#

# Source function library.
. /etc/rc.d/init.d/functions

# Source IrDA networking configuration.
. /etc/sysconfig/irda

prog="IrDA"

start() {
        # Attach irda device 
        echo -n $"Starting $prog: "
	/sbin/modprobe ircomm-tty 2>/dev/null
	/sbin/modprobe irtty-sir 2>/dev/null
	/sbin/modprobe irnet 2>/dev/null
	daemon /usr/sbin/irattach ${DEVICE} ${ARGS}
	[ -f /var/run/irattach.pid ] && success $"irattach startup" || failure $"irattach startup"
        echo
}

stop() {
        # Stop service.
        echo -n $"Shutting down $prog: "
        [ -f /var/run/irattach.pid ] && killproc irattach || success $"irattach shutdown"
        echo
}

# Check that irda is up.
[ ${IRDA} = "no" ] && exit 0

[ -f /usr/sbin/irattach ] || exit 0

ARGS=
if [ -n "$DONGLE" ]; then
	ARGS="$ARGS -d $DONGLE"
fi
if [ "$DISCOVERY" = "yes" ];then
	ARGS="$ARGS -s"
fi

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status irattach
	;;
  restart|reload)
	stop
	start
	;;
  condrestart)
	[ -e /var/run/irdattach.pid ] && (stop; start)
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit 0
                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S85gpm                                     0000755 0000000 0000000 00000003362 11524350240 023124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: 2345 85 15
# description: GPM adds mouse support to text-based Linux applications such \
#              as the Midnight Commander. It also allows mouse-based console \
#              cut-and-paste operations, and includes support for pop-up \
#              menus on the console.
# processname: gpm
# pidfile: /var/run/gpm.pid
# config: /etc/sysconfig/mouse

# source function library
. /etc/init.d/functions

if test -e /etc/sysconfig/mouse ; then
    . /etc/sysconfig/mouse
fi

RETVAL=0

start() {
	echo -n $"Starting console mouse services: "

	if [ -z "$MOUSETYPE" ]; then
	    MOUSETYPE="exps2"
	fi

	if [ -z "$DEVICE" ]; then
	    DEVICE="/dev/input/mice"
	fi

	if [ "$MOUSETYPE" = "none" ]; then
		echo $"(no mouse is configured)"
		exit 0
	fi

	if [ "$MOUSETYPE" = "Microsoft" ]; then
		MOUSETYPE=ms
	fi

	if [ -n "$IMOUSETYPE" ]; then
                if [ "$(pidofproc inputattach)" = "" ]; then
			modprobe sermouse > /dev/null 2>&1
			/usr/sbin/inputattach -$IMOUSETYPE $DEVICE --daemon
			DEVICE="/dev/input/mice"
			MOUSETYPE="exps2"
		fi
        fi

	if [ -n "$MOUSETYPE" ]; then
		daemon gpm -m $DEVICE -t $MOUSETYPE $OPTIONS
	else
		daemon gpm -m $DEVICE $OPTIONS
	fi
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/gpm
}

stop() {
	echo -n $"Shutting down console mouse services: "
	killproc gpm
	if [ -n "$IMOUSETYPE" ]; then
		killproc inputattach
	fi
	RETVAL=$?

	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/gpm
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|reload)
	stop
	start
	;;
  condrestart)
	if [ -f /var/lock/subsys/gpm ]; then
	    stop
	    start
	fi
	;;
  status)
	status gpm
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S90xfs                                     0000755 0000000 0000000 00000007476 11524350240 023147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id:$
#
# xfs:       Starts the X Font Server
#
# Version:      @(#) /etc/init.d/xfs 2.0
#
# chkconfig: 2345 90 10
# description: Starts and stops the X Font Server at boot time and shutdown. \
#              It also takes care of (re-)generating font lists.
#
# processname: xfs
# config: /etc/X11/fs/config
# hide: true

# Source function library.
export LANG=C
. /etc/init.d/functions
# Set umask to ensure fonts.dir and similar files get created mode 0644
umask 133

prog=xfs

buildfontlist() {
   pushd . &> /dev/null
   # chkfontpath output filtering, strips all of the junk output by
   # chkfontpath that we do not want, including headers, FPE numbers and
   # whitespace and other junk.  Also filters out FPE's with trailing
   # modifiers such as ":unscaled" et al.
   for dir in $(/usr/sbin/chkfontpath --list | sed -e '/^Current/d;s#^[0-9]*: ##g;s#:unscaled$##g;/^[[:space:]]*$/d' | sort | uniq) ;do
      if [ -d "$dir" ]; then
         cd "$dir"
         # If fonts.dir does not exist, or if there are files in the
         # directory with a newer change time, regenerate fonts.dir, etc.
         # Using "-cnewer" here fixes bug #53737
         if [ ! -e fonts.dir ] || [ -n "$(find . -maxdepth 1 -type f -cnewer fonts.dir -not -name 'fonts.cache*' 2>/dev/null)" ]; then
            rm -f fonts.dir &>/dev/null
            if ls | grep -iqs '\.ot[cf]$' ; then
               # Opentype fonts found, generate fonts.scale and fonts.dir
               mkfontscale . && mkfontdir . &>/dev/null
            elif ls | grep -iqs '\.tt[cf]$' ; then
               # TrueType fonts found, generate fonts.scale and fonts.dir
               ttmkfdir -d . -o fonts.scale && mkfontdir . &>/dev/null
            elif ls | grep -Eiqsv '(^fonts\.(scale|alias|cache.*)$|.+(\.[ot]t[cf]|dir)$)' ; then
               # This directory contains non-TrueType/non-Opentype fonts
               mkfontdir . &>/dev/null
            fi
         fi
      fi
   done
   popd &> /dev/null
}

start() {
   FONT_UNIX_DIR=/tmp/.font-unix
   echo -n $"Starting $prog: "
   [ -x /usr/sbin/chkfontpath ] && buildfontlist
   # Make sure .font-unix dir, exists.
   if [ ! -d $FONT_UNIX_DIR ]
   then
       mkdir -m 1777 $FONT_UNIX_DIR || :
       restorecon $FONT_UNIX_DIR 2>/dev/null || :
   fi

   # Fix needed for SELinux for bug (#130421,130969)
   [ -x /sbin/restorecon ] && /sbin/restorecon $FONT_UNIX_DIR

   daemon xfs -droppriv -daemon
   ret=$?
   [ $ret -eq 0 ] && touch /var/lock/subsys/xfs
   echo
   return $ret
}	

stop() {
   echo -n $"Shutting down $prog: "
   killproc xfs
   ret=$?
   [ $ret -eq 0 ] && rm -f /var/lock/subsys/xfs
   echo
   return $ret
}	

rhstatus() {
   status xfs
}	

reload() {
   if [ -f /var/lock/subsys/xfs ]; then
      echo -n $"Reloading $prog: "
      [ -x /usr/sbin/chkfontpath ] && buildfontlist
      killproc xfs -USR1
      ret=$?
      echo
      return $ret
   else
      stop
      start
   fi
}

restart() {
   echo $"Restarting $prog:"
   stop
   start
}

condrestart() {
   # NOTE: We reload normally, to ensure the xfs<->Xserver connection does
   # not get broken on xfs upgrades, however we must force a restart on
   # upgrades that are migrating from monolithic Xorg (6.8.x or older) to
   # modular X, to avoid bug #173271.  The modular xfs %preun script will
   # now check for the old config file to determine if migration should be
   # done, and touch the following migration file if necessary.
   if [ -e /etc/X11/fs/xfs-migrate ] ; then
      restart
      rm -f /etc/X11/fs/xfs-migrate || : &> /dev/null
   else
      reload
   fi
}

case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  restart)
    restart
    ;;
  reload)
  	reload
	;;
  condrestart)
  	[ -f /var/lock/subsys/xfs ] && condrestart || :
	;;
  status)
  	rhstatus
	;;
  *)
	echo $"Usage: $prog {start|stop|status|restart|reload|condrestart}"
	exit 1
esac

exit $?
                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S95atd                                     0000755 0000000 0000000 00000002404 11524350241 023107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/atd
#
# Starts the at daemon
#
# chkconfig: 345 95 5
# description: Runs commands scheduled by the at command at the time \
#    specified when at was run, and runs batch commands when the load \
#    average is low enough.
# processname: atd

# Source function library.
. /etc/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/atd ] && . /etc/sysconfig/atd

test -x /usr/sbin/atd || exit 0

RETVAL=0

#
#	See how we were called.
#

prog="atd"

start() {
	# Check if atd is already running
	if [ ! -f /var/lock/subsys/atd ]; then
	    echo -n $"Starting $prog: "
	    daemon /usr/sbin/atd $OPTS && success || failure
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/atd
	    echo
	fi
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc /usr/sbin/atd
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/atd
	echo
        return $RETVAL
}


restart() {
	stop
	start
}	

reload() {
	restart
}	

status_at() {
 	status /usr/sbin/atd
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload|restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/atd ]; then
	    restart
	fi
	;;
status)
	status_at
	;;
*)
	echo $"Usage: $0 {start|stop|restart|condrestart|status}"
	exit 1
esac

exit $?
exit $RETVAL
                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S56rawdevices                              0000755 0000000 0000000 00000004305 11524350240 024471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rawdevices       This shell script assignes rawdevices to block devices
#
# chkconfig: 345 56 44
# description: This scripts assignes raw devices to block devices \
#              (such as hard drive partitions). This is for the use \
#	       of applications such as Oracle. You can set up the \
#	       raw device to block device mapping by editing \
#	       the file /etc/sysconfig/rawdevices. 
#
# config: /etc/sysconfig/rawdevices

[ -f /bin/raw ] || exit 0
[ -f /etc/sysconfig/rawdevices ] || exit 0
# Exit if the file just has the default comments.
LC_ALL=C /bin/egrep -q -v "^ *#" /etc/sysconfig/rawdevices 2>/dev/null || exit 0

. /etc/init.d/functions

function assign_raw()
{
   LC_ALL=C egrep -v '^ *#' /etc/sysconfig/rawdevices |
   while read RAW BLOCK; do 
     if [ -n "$RAW" -a -n "$BLOCK" ]; then 
	 rawdirname=${RAW%/*}
         if [ "$rawdirname" = "/dev" -a -d /dev/raw ]; then
           echo $"  Please correct your /etc/sysconfig/rawdevices:"
           echo $"     rawdevices are now located in the directory /dev/raw/ "
           echo $"  If the command 'raw' still refers to /dev/raw as a file."
           echo $"   you'll have to upgrade your util-linux package"
           exit 0
         fi
         if [ "$rawdirname" = "/dev/raw" -a -f /dev/raw ]; then
           echo $"  Please correct your /etc/sysconfig/rawdevices:"
           echo $"     rawdevices are now located in the directory /dev/raw/ "
           echo $"  If the command 'raw' still refers to /dev/raw as a file."
           echo $"   you'll have to upgrade your util-linux package"
           exit 0
         fi

       echo "           $RAW  -->   $BLOCK"; 
       raw $RAW $BLOCK
     fi
   done
}

# See how we were called.
case "$1" in
  start)
        # Assign devices
        echo $"Assigning devices: "
        assign_raw
        echo $"done"
        ;;
  stop)
        # No action to be taken here
        ;;

  status)
        ID=`id -u`
        if [ $ID -eq 0 ]; then 
          raw -qa
        else
          echo $"You need to be root to use this command ! "
        fi
        ;;

  restart|reload)
        $0 start
        ;;

  *)
        echo $"Usage: $0 {start|stop|status|restart}"
        exit 1
esac

exit 0
                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S23setroubleshoot                          0000755 0000000 0000000 00000007346 11524350237 025426  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# setroubleshootd       This starts and stops setroubleshootd daemon
#
# chkconfig: 345 23 1
# description: This starts the SELinux Troubleshooting Daemon
#
# processname: /usr/sbin/setroubleshootd
# config: /etc/setroubleshoot/setroubleshoot.cfg
# pidfile: /var/run/setroubleshootd.pid
#

# Return values according to LSB for all commands but status:
# 0	success
# 1	generic or unspecified error (current practice)
# 2	invalid or excess argument(s)
# 3	unimplemented feature (for example, "reload")
# 4	user had insufficient privilege
# 5	program is not installed
# 6	program is not configured
# 7	program is not running

# Command argument
# start		start the service
# stop		stop the service
# restart	stop and restart the service if the service is already running, otherwise start the service
# try-restart	restart the service if the service is already running
# reload	cause the configuration of the service to be reloaded without actually stopping and restarting the service
# force-reload	cause the configuration to be reloaded if the service supports this, otherwise restart the service if it is running
# status	print the current status of the service

# start, stop, restart, force-reload, and status actions must be supported
# reload and the try-restart actions are optional.
# the init script.

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

RETVAL=0
prog="setroubleshootd"
pidfile="/var/run/setroubleshootd.pid"
lockfile="/var/lock/subsys/setroubleshoot"

usage(){
    echo $"Usage: $0 {start|stop|status|restart|try-restart|condrestart|reload|force-reload|cleardb [test][verbose]}"
}

command=$1
shift

[ $command ] || (usage; exit 3)

# look for extra options
while [ $# -gt 0 ]; do
    arg=$1
    case "$arg" in
	test)
	    EXTRAOPTIONS="$EXTRAOPTIONS -c audit.text_protocol_socket_path=/tmp/audispd_events"
	    ;;
	verbose)
	    EXTRAOPTIONS="$EXTRAOPTIONS -V"
	    ;;
	*)
	    echo "unknown arg $arg"
    esac
    shift
done

rhstatus(){
    status -p $pidfile $prog
    RETVAL=$?
    return $RETVAL
}

# Allow status as non-root and also if SELinux is disabled
if [ "$command" = status ]; then
	rhstatus
	RETVAL=$?
	exit $RETVAL
fi

# Silently exit is SELinux is not enabled
[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 1

# Check that we are root ... so non-root users stop here
if test `id -u` != 0; then
	echo "You must be root"
	exit 4
fi

start(){
    echo -n $"Starting $prog: "
    unset HOME MAIL USER USERNAME
    daemon $prog "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    if test $RETVAL = 0 ; then
        touch $lockfile
    fi
    if test $RETVAL = 3 ; then
	echo -n $"Cannot start $prog: SELinux not enabled"
    fi
    return $RETVAL
}

stop(){
    echo -n $"Stopping $prog: "
    killproc -p $pidfile $prog
    RETVAL=$?
    echo
    rm -f $lockfile
    return $RETVAL
}

reload(){
    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
    RETVAL=$?
    return $RETVAL
}

condrestart(){
    [ -e $lockfile ] && restart
    RETVAL=0
    return $RETVAL
}

cleardb(){
    running=0
    [ -e $lockfile ] && running=1
    [ $running == 1 ] && stop
    echo $"Clearing database"
    rm -f /var/lib/setroubleshoot/database.xml
    rm -f /var/lib/setroubleshoot/audit_listener_database.xml
    [ $running == 1 ] && start
    RETVAL=0
    return $RETVAL
}

# See how we were called.
case "$command" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	rhstatus
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    force-reload|reload)
	reload
	RETVAL=$?
	;;
    try-restart|condrestart)
	condrestart
	RETVAL=$?
	;;
    cleardb)
	cleardb
	RETVAL=$?
	;;
    *)
	usage
	RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S13iscsi                                   0000755 0000000 0000000 00000002537 11524350236 023452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup
#
# Source function library.
. /etc/init.d/functions

PATH=/sbin:/bin:/usr/sbin:/usr/bin

RETVAL=0

start()
{

	status iscsid
	RETVAL=$?

	if [ $RETVAL -ne 0 ]; then
		/etc/init.d/iscsid start
	fi

	echo -n $"Setting up iSCSI targets: "
	# this script is normally called from startup so log into
	# nodes marked node.startup=automatic
	iscsiadm -m node --loginall=automatic
	touch /var/lock/subsys/iscsi
	success
	echo
}

stop()
{
	rm -f /var/lock/subsys/iscsi

	# If this is a final shutdown/halt, do nothing since
	# lvm/dm, md, power path, etc do not always handle this
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		success
		return
	fi

	# don't turn off iscsi if root is possibly on a iscsi disk
	rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	if [[ "$rootopts" =~ "_netdev" ]] ; then
		echo $"Can not shutdown iSCSI. Root is on a iSCSI disk."
		exit 1
	fi

	iscsiadm -m node --logoutall=all
	/etc/init.d/iscsid stop
	success
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	restart)
		stop
		start
		;;
	status)
		status iscsid
		RETVAL=$?
		;;
	condrestart)
		[ -f /var/lock/subsys/iscsi ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart}"
		exit 1
esac
exit $RETVAL
                                                                                                                                                                 Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S08mcstrans                                0000755 0000000 0000000 00000003572 11524350235 024175  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# mcstransd        This starts and stops mcstransd
#
# chkconfig: 2345 08 87
# description: This starts the SELinux Context Translation System Daemon
#
# processname: /sbin/mcstransd
# pidfile: /var/run/mcstransd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="mcstransd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

# If selinux is not enabled, return success
test -x /usr/sbin/selinuxenabled && /usr/sbin/selinuxenabled || exit 0

RETVAL=0

start(){
	test -x /sbin/mcstransd  || exit 5
	echo -n $"Starting $prog: "
	if status $prog > /dev/null; then
		echo -n $"$prog: already running"
		failure
		echo
		return 1
	fi

	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
        	touch /var/lock/subsys/mcstrans
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/mcstrans
	return $RETVAL
}

reload(){
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/mcstrans ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload)
	reload
	;;
    condrestart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|rotate}"
	RETVAL=3
esac

exit $RETVAL
                                                                                                                                      Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S15mdmonitor                               0000755 0000000 0000000 00000004115 11524350236 024344  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status mdadm; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S97rhnsd                                   0000755 0000000 0000000 00000003363 11524350241 023464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every other hour.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

# Sanity checks.
[ -x /usr/sbin/rhnsd ] || exit 6
[ -f /etc/sysconfig/rhn/systemid ] || exit 6

# Source function library.
. /etc/rc.d/init.d/functions

# read configuration settings (interval) for rhnsd, if present.
if [ -f /etc/sysconfig/rhn/rhnsd ]; then
  . /etc/sysconfig/rhn/rhnsd
fi

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd --interval $INTERVAL
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart)
	stop
	start
	;;
    condrestart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
  	killproc rhnsd -HUP
	RETVAL=$?
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        exit 1
esac
exit $RETVAL
                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K74ntpd                                    0000755 0000000 0000000 00000006441 11524350233 023277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

if [ -f /etc/sysconfig/ntpd ];then
        . /etc/sysconfig/ntpd
fi

ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers


RETVAL=0
prog="ntpd"

sync_hwclock() {
	ARC=0
	SRM=0
	UTC=0

	if [ -f /etc/sysconfig/clock ]; then
	   . /etc/sysconfig/clock

	   # convert old style clock config to new values
	   if [ "${CLOCKMODE}" = "GMT" ]; then
	      UTC=true
	   elif [ "${CLOCKMODE}" = "ARC" ]; then
	      ARC=true
	   fi
	fi

	CLOCKFLAGS="$CLOCKFLAGS --systohc"

	case "$UTC" in
	    yes|true)	CLOCKFLAGS="$CLOCKFLAGS --utc";;
	    no|false)	CLOCKFLAGS="$CLOCKFLAGS --localtime";;
	esac
	case "$ARC" in
	    yes|true)	CLOCKFLAGS="$CLOCKFLAGS --arc";;
	esac
	case "$SRM" in
	    yes|true)	CLOCKFLAGS="$CLOCKFLAGS --srm";;
	esac

	action $"Syncing hardware clock to system time" /sbin/hwclock $CLOCKFLAGS
}

readconf() {
	dostep=''
	dropstr=''
	OPTIND=1
	while getopts ":46aAbc:dD:f:gi:k:l:LnN:p:P:qr:s:t:u:v:V:x" args $OPTIONS;
	do 
	  case "$args" in
	    x) dostep=yes;;
	    c) ntpconf="$OPTARG";;
	    u) dropstr="-U $(echo $OPTARG | sed 's/:.*//')";;
	  esac
	done

	[ -x /usr/sbin/ntpd -a -f $ntpconf ] || exit 0

	tickers=''
	if [ -s "$ntpstep" ]; then
	    tickers=$(sed 's/#.*//' $ntpstep)
	    echo "$tickers" | grep -qi '[a-z0-9]' && dostep=yes || tickers=''
	fi
	if [ -n "$dostep" -a -z "$tickers" ]; then
	    # -x option is used, but step-tickers doesn't exist or contain
	    # anything useful, use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
	        fgrep -v 127.127.1.0)
	fi
}

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "no" ] && exit 1

	readconf;

	if [ -n "$dostep" ]; then
	    echo -n $"$prog: Synchronizing with time server: "
	    /usr/sbin/ntpdate $dropstr -s -b $NTPDATE_OPTIONS $tickers &>/dev/null
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && success || failure
	    echo
	    if [ $RETVAL -eq 0 ]; then
	        [ "$SYNC_HWCLOCK" = "yes" ] && sync_hwclock
	    else
	        OPTIONS="$OPTIONS -g"
	    fi
	else
	    # -g can replace the grep for time servers
	    # as it permits ntpd to violate its 1000s limit once.
	    OPTIONS="$OPTIONS -g"
	fi
        # Start daemons.
        echo -n $"Starting $prog: "
        daemon ntpd $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ntpd
	return $RETVAL
}

stop() {
        echo -n $"Shutting down $prog: "
	killproc ntpd
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/ntpd
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status ntpd
	RETVAL=$?
	;;
  restart|reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart)
	if [ -f /var/lock/subsys/ntpd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|status}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S12syslog                                  0000755 0000000 0000000 00000003773 11524350236 023662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# syslog        Starts syslogd/klogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run syslog.
### BEGIN INIT INFO
# Provides: $syslog
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0

start() {
	[ -x /sbin/syslogd ] || exit 5
	[ -x /sbin/klogd ] || exit 5

	# Source config
	if [ -f /etc/sysconfig/syslog ] ; then
		. /etc/sysconfig/syslog
	else
		SYSLOGD_OPTIONS="-m 0"
		KLOGD_OPTIONS="-2"
	fi

	if [ -z "$SYSLOG_UMASK" ] ; then
	      SYSLOG_UMASK=077;
	fi
	umask $SYSLOG_UMASK

 	echo -n $"Starting system logger: "
	daemon syslogd $SYSLOGD_OPTIONS
	RETVAL=$?
	echo
	echo -n $"Starting kernel logger: "
	daemon klogd $KLOGD_OPTIONS
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/syslog
	return $RETVAL
}	
stop() {
	echo -n $"Shutting down kernel logger: "
	killproc klogd
	echo
	echo -n $"Shutting down system logger: "
	killproc syslogd
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/syslog
	return $RETVAL
}
rhstatus() {
	status syslogd
	status klogd
}
restart() {
	stop
	start
}	
reload()  {
    RETVAL=1
    syslog=`cat /var/run/syslogd.pid 2>/dev/null`
    echo -n "Reloading syslogd..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    RETVAL=1
    echo -n "Reloading klogd..."
    klog=`cat /var/run/klogd.pid 2>/dev/null`
    if [ -n "${klog}" ] && [ -e /proc/"${klog}" ]; then
	kill -USR2 "$klog";
        RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo    
    return $RETVAL
}
case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  status)
  	rhstatus
	;;
  restart)
  	restart
	;;
  reload)
	reload
	;;
  condrestart)
  	[ -f /var/lock/subsys/syslog ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
esac

exit $?

     Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K80kdump                                   0000755 0000000 0000000 00000026154 11524350234 023453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

#
#  kdump
#
#  Description:  The kdump init script provides the support necessary for
#  		 loading a kdump kernel into memory at system bootup time,
#		 and for copying away a vmcore at system panic time.
#
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_INITRDEXT=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"

LOGGER="/usr/bin/logger -p info -t kdump"

ARCH=`uname -m`

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	cp --sparse=always /proc/vmcore $coredir/vmcore-incomplete
	exitcode=$?
	if [ $exitcode == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
	return $exitcode
}

function run_kdump_post()
{
	kdumpsuccess=$1
	KDUMP_POST=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
	if [ -x "$KDUMP_POST" ]; then
		$KDUMP_POST $kdumpsuccess
		$LOGGER "run \"$KDUMP_POST $kdumpsuccess\""
	fi
}

function check_config()
{
	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed -r 's/(smp|xen)//g'`
		# on i686 xen, if any portion of memory is mapped above 4G,
		# we need to use kernel-PAE for kdump
		if [ "$ARCH" == "i686" ] && [ -e /proc/xen ]; then
			need_64bit_headers
			if [ $? == 1 ]; then
				kdump_kver=${kdump_kver}PAE
			fi
		fi
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}${KDUMP_INITRDEXT}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		/sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

	#check to see if config file or kdump post has been modified
	#since last build of the image file
	image_time=`stat -c "%Y" $kdump_initrd`
	EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
	CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
	EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
	CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
	EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
	CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
	EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
	FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
	files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
	modified_files=""
	for file in $files; do
		time_stamp=0
		if [ -f "$file" ]; then
			time_stamp=`stat -c "%Y" $file`
		else
			modified_files="$modified_files $file"
			continue
		fi
		if [ "$time_stamp" -gt "$image_time" ]; then
			modified_files="$modified_files $file"
		fi
	done

	if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
	then
		modified_files="force_rebuild"
	fi

	if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
		if [ "$modified_files" != "force_rebuild" ]
		then
			echo "Detected change(s) the following file(s):"
			echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
		fi
		echo "Rebuilding $kdump_initrd"
		/sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			return 1
		fi
	fi
	return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{

	MEMSZ=`sed -e's/\(^[0-9]\+.*\)/0x\1/' -e's/\(-\)\(.*\)/ 0x\2/' /proc/iomem | \
	awk 'BEGIN {
		totalmem=0;
		segmentmem=0;
	     }
	     /.*RAM.*/ {
		start = strtonum($1);
		end = strtonum($2);
		segmentmem=end-start;
		totalmem=totalmem+(segmentmem/1024);
		if (end >= 4194304) {
			totalmem=totalmem+4194304;
		}
	     }
	     END {
		printf "%d", (totalmem+1);
	     }'`

	#The AWK script above computes the total number of KB 
	#in the RAM areas of /proc/iomem
	#Note also that we set totalmem to 4GB in the event that
	#any physical address is larger than 4GB.  This lets us
	#default to 64 bit ELF headers for PAE kernels, which 
	#need then to access those higher addresses.

	#This comparison tells us if the above amount is more than 
	#4GB (4096 KB).  I do the funny math to avoid overflow
	if [ $MEMSZ -ge 4194304 ]
	then
		return 1
	fi
	return 0
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{

	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	ARCH=`uname -m`
	if [ "$ARCH" == "ppc64" ]
	then
		MEM_RESERVED=`grep "crashkernel=[0-9]\+[MmKkGg]@[0-9]\+[MmGgKk]" /proc/cmdline`
	else
		MEM_RESERVED=`grep "Crash kernel" /proc/iomem | grep -v "00000000-00000000"`
	fi
	if [ -z "$MEM_RESERVED" ]
	then
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[0-9]\+[MmKkGg]@[0-9]\+[MmGgKk]//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e's/mem=[0-9]\+[GMKgmk]* *//'`

	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	KEXEC_OUTPUT=`$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>&1`
	if [ $? == 0 ]; then
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		$LOGGER $KEXEC_OUTPUT
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	cat $KEYFILE | ssh -x $SSH_USER@$SSH_SERVER "mkdir -p ~$SSH_USER/.ssh; chmod 700 ~$SSH_USER/.ssh;  cat >> ~$SSH_USER/.ssh/authorized_keys2; chmod 600 ~$SSH_USER/.ssh/authorized_keys2"
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys2 on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi
	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
	fi
}

function do_final_action()
{
	reboot
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		run_kdump_post $?
		do_final_action
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=1
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=1
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
	EXIT_CODE=1
	status
	case "$?" in
	0)
		stop
		start
		EXIT_CODE=0
	;;
	esac
	exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K73ypbind                                  0000755 0000000 0000000 00000006676 11524350233 023630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ypbind:       Starts the ypbind Daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf

OTHER_YPBIND_OPTS=""

# Source function library.
. /etc/init.d/functions

. /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

[ -z "$NISTIMEOUT" ] && NISTIMEOUT=20

# Check that networking is configured.
[ ${NETWORKING} = "no" ] && exit 0

selinux_on() {
        [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
	echo $"Turning on allow_ypbind SELinux boolean"
        setsebool allow_ypbind=1
}

selinux_off() {
        [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
	allow_ypbind=0
	.  /etc/selinux/config
	if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
		. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
	fi
	if [ $allow_ypbind == 0 ]; then
		echo $"Turning off allow_ypbind SELinux boolean"
		setsebool allow_ypbind=$allow_ypbind
	fi
}

start() {
	DOMAINNAME=`domainname`
	if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	   if [ -n "$NISDOMAIN" ]; then
		action $"Setting NIS domain name $NISDOMAIN: " domainname $NISDOMAIN
	   else
		action $"Error: NIS domain name is not set." false
	        exit 1
	   fi
	fi
	#/etc/rpc check
	grep ypbind /etc/rpc > /dev/null 2>&1
	if [ $? -ne 0 ]; then
		action $"Error: Missing ypbind entry in /etc/rpc." false
		exit 1
	fi

	selinux_on
	echo -n $"Binding to the NIS domain: "
	daemon ypbind $OTHER_YPBIND_OPTS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
	    selinux_off
	    return $RETVAL
	fi
	# the following fixes problems with the init scripts continuing
	# even when we are really not bound yet to a server, and then things
	# that need NIS fail.
	echo -n $"Listening for an NIS domain server."
	for (( times = 1; times < $NISTIMEOUT; times++ )); do
	    /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind && ypwhich > /dev/null 2>&1
	    RETVAL=$?
	    if [ $RETVAL -eq 0 ]; then
		break;
	    fi
	    sleep 1
	    echo -n "."
	done
	if [ $RETVAL -eq 0 ]; then
	    logger -t ypbind "bound to NIS server `ypwhich 2> /dev/null`"
	    touch /var/lock/subsys/ypbind
	else
	    killproc ypbind
	    # if  we used brute force (like kill -9) we don't want those around
	    if [ x$(domainname) != x ] ; then
		rm -f /var/yp/binding/$(domainname)*
	    fi
	    failure "attempting to contact yp server"
	    selinux_off
	fi
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down NIS services: "
	killproc ypbind
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
	  rm -f /var/lock/subsys/ypbind
	  # if  we used brute force (like kill -9) we don't want those around
	  if [ x$(domainname) != x ] ; then
	    rm -f /var/yp/binding/$(domainname)*
	  fi
	fi
	echo
       	#selinux_off
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status ypbind
	;;
  restart|reload)
	restart
	;;
  condrestart)
        [ -f /var/lock/subsys/ypbind ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 1
esac

exit $?
                                                                  Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S10network                                 0000755 0000000 0000000 00000020101 11524350235 024010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 0
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

# Even if IPX is configured, without the utilities we can't do much
[ ! -x /sbin/ipx_internal_net -o ! -x /sbin/ipx_configure ] && IPX=

# Even if VLAN is configured, without the utility we can't do much
[ ! -x /sbin/vconfig ] && VLAN=

CWD=`pwd`
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')

rc=0
# See how we were called.
case "$1" in
  start)
  	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ "$NETWORKING_IPV6" = "yes" ]; then
		if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
			/etc/sysconfig/network-scripts/init.ipv6-global start pre
		fi
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$IPX" in
	  yes|true)
	    /sbin/ipx_configure --auto_primary=$IPXAUTOPRIMARY \
				   --auto_interface=$IPXAUTOFRAME
	    if [ "$IPXINTERNALNETNUM" != "0" ]; then
	       /sbin/ipx_internal_net add $IPXINTERNALNETNUM $IPXINTERNALNODENUM
	    fi
	    ;;
	esac

	case "$VLAN" in
	  yes)
	    if [ -d /proc/net/vlan ] || modprobe 8021q >/dev/null 2>&1 ; then
		test -z "$VLAN_NAME_TYPE" && VLAN_NAME_TYPE=DEV_PLUS_VID_NO_PAD
		action $"Setting 802.1Q VLAN parameters: " /sbin/vconfig set_name_type "$VLAN_NAME_TYPE"
	    else
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	vpninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "${DEVICE##cipcb}" != "$DEVICE" ] ; then
			vpninterfaces="$vpninterfaces $i"
			continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi
		if [ "$TYPE" = "IPSEC" ]; then
			vpninterfaces="$vpninterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		rc=$((rc+$?))
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces $vpninterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		rc=$((rc+$?))
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ "$NETWORKING_IPV6" = "yes" ]; then
 		if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 			/etc/sysconfig/network-scripts/init.ipv6-global start post
 		fi
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" =~ "^nfs" ]] || [[ "$rootopts" =~ "_netdev|_rnetdev" ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=`LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts`
		SMBMTAB=`LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts`
		NCPMTAB=`LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts`
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
 	# IPv6 hook (pre IPv4 stop)
 	if [ "$NETWORKING_IPV6" = "yes" ]; then
 		if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 			/etc/sysconfig/network-scripts/init.ipv6-global stop pre
 		fi
 	fi
 
	vlaninterfaces=""
	vpninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "${DEVICE##cipcb}" != "$DEVICE" ] ; then
			vpninterfaces="$vpninterfaces $i"
			continue
		fi
		if [ "$TYPE" = "IPSEC" ]; then
			vpninterfaces="$vpninterfaces $i"
			continue
		fi
		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $vpninterfaces $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   rc=$((rc+$?))
		fi
		)
	done

	case "$IPX" in
	  yes|true)
	    if [ "$IPXINTERNALNETNUM" != "0" ]; then
	       /sbin/ipx_internal_net del
	    fi
	    ;;
	esac

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	if [ -d /proc/sys/net/ipv4 ]; then
	  if [ -f /proc/sys/net/ipv4/ip_forward ]; then
		if [ `cat /proc/sys/net/ipv4/ip_forward` != 0 ]; then
			action $"Disabling IPv4 packet forwarding: " sysctl -w net.ipv4.ip_forward=0
		fi
	  fi
	  if [ -f /proc/sys/net/ipv4/ip_always_defrag ]; then
	        if [ `cat /proc/sys/net/ipv4/ip_always_defrag` != 0 ]; then
		        action $"Disabling IPv4 automatic defragmentation: " sysctl -w net.ipv4.ip_always_defrag=0
		fi
	  fi
	fi

	# IPv6 hook (post IPv4 stop)
	if [ "$NETWORKING_IPV6" = "yes" ]; then
		if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
			/etc/sysconfig/network-scripts/init.ipv6-global stop post
		fi
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload)
        cd "$CWD"
	$0 stop
	$0 start
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|status}"
        exit 1
esac

exit $rc
                                                                                                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S90crond                                   0000755 0000000 0000000 00000003560 11524350240 023442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.
# processname: crond
# config: /etc/crontab
# pidfile: /var/run/crond.pid

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/crond
t=${CRON_VALIDATE_MAILRCPTS:-UNSET}
[ "$t" != "UNSET" ] && export CRON_VALIDATE_MAILRCPTS="$t"
 
# See how we were called.
  
prog="crond"

start() {
	echo -n $"Starting $prog: "	
        if [ -e /var/lock/subsys/crond ]; then
	    if [ -e /var/run/crond.pid ] && [ -e /proc/`cat /var/run/crond.pid` ]; then
		echo -n $"cannot start crond: crond is already running.";
		failure $"cannot start crond: crond already running.";
		echo
		return 1
	    fi
	fi
	daemon crond $CRONDARGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/crond;
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
        if [ ! -e /var/lock/subsys/crond ]; then
	    echo -n $"cannot stop crond: crond is not running."
	    failure $"cannot stop crond: crond is not running."
	    echo
	    return 1;
	fi
	killproc crond
	RETVAL=$?
	echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/crond;
	return $RETVAL
}	

rhstatus() {
	status crond
}	

restart() {
  	stop
	start
}	

reload() {
	echo -n $"Reloading cron daemon configuration: "
	killproc crond -HUP
	RETVAL=$?
	echo
	return $RETVAL
}	

case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  restart)
  	restart
	;;
  reload)
  	reload
	;;
  status)
  	rhstatus
	;;
  condrestart)
  	[ -f /var/lock/subsys/crond ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}"
	exit 1
esac
                                                                                                                                                Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S11auditd                                  0000755 0000000 0000000 00000006400 11524350235 023600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K87multipathd                              0000755 0000000 0000000 00000004226 11524350234 024511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/multipathd
#
# Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manage device-mapper multipath devices
# processname: multipathd

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
system=redhat
 
if [ $system = redhat ]; then
	# Source function library.
	. $initdir/functions
fi
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done
		
else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S26haldaemon                               0000755 0000000 0000000 00000002716 11524350237 024274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Sanity checks.
[ -x /usr/sbin/hald ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

start() {
    echo -n $"Starting HAL daemon: "
    daemon --check $servicename $processname
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping HAL daemon: "

    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/haldaemon.pid
	rm -f /var/lib/hal/system-power-hibernate-output
	rm -f /var/lib/hal/system-power-suspend-output
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $processname
        RETVAL=$?
        ;;
    restart)
        stop
	sleep 3
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
	    sleep 3
            start
        fi
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart}"
        ;;
esac
exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S00microcode_ctl                           0000755 0000000 0000000 00000003606 11524350235 025137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# vars:
#
# START			distribution specific way of kicking programs
# END			distribution specific way of checking return status
# PROGRAM		the executable to run
# ARGUMENTS		the argument we're going to call PROGRAM with

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DEVICE=/dev/cpu/microcode
ARGUMENTS=-Qu
RETVAL=0
PROGRAM=/sbin/microcode_ctl
DATAFILE=/etc/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c $DEVICE ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 1;
	done

	# Lets just be sure we have a device file...
	if [ ! -e $DEVICE ]; then
		echo $"$0: microcode device $DEVICE doesn't exist?"
		exit 1
	elif [ ! -c $DEVICE ]; then
		echo $"$0: $DEVICE not a character device?"
		exit 1
	fi

	daemon $PROGRAM $ARGUMENTS
	RETVAL=$?

	# trap the most common case, errno 19 = no device
	if [ $RETVAL -eq 19 ]; then
		echo $"$0: kernel does not have CPU microcode device support"
	fi
	/sbin/rmmod microcode
	echo

	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/microcode_ctl
	return $RETVAL
}

stop()
{
	rm -f /var/lock/subsys/microcode_ctl
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
    stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                          Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S05kudzu                                   0000755 0000000 0000000 00000002576 11524350235 023505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# kudzu		This scripts runs the kudzu hardware probe.
#
# chkconfig: 345 05 95
# description: 	This runs the hardware probe, and optionally configures \
#		changed hardware.

# Source function library.
. /etc/init.d/functions

KUDZU_ARGS=

# Do we want to do a safe probe?
. /etc/sysconfig/kudzu

if [ "$SAFE" != "no" ]; then
	KUDZU_ARGS="-s"
fi

RETVAL=$?

case "$1" in
 start)
	echo -n $"Checking for hardware changes"
	rm -f /var/run/Xconfig
	rm -f /var/run/Xconfig-failed

        # Have a 30 second timeout.
 	/sbin/kudzu $KUDZU_ARGS
	RETVAL=$?
	if [ "$RETVAL" -eq 0 ]; then
  	   action "" /bin/true
	else
	   action "" /bin/false
	fi

	# We don't want to run this on random runlevel changes.
	touch /var/lock/subsys/kudzu
	# However, if they did configure X and want runlevel 5, let's
	# switch to it...
	if [ -f /var/run/Xconfig ]; then
	    grep -q "^id:5:initdefault:" /etc/inittab && telinit 5
	    rm -f /var/run/Xconfig
	fi
	# If X configuration failed, give them a sane default.
	if [ -f /var/run/Xconfig-failed ]; then
	    telinit 3
	    rm -f /var/run/Xconfig-failed
	fi
	;;
 status)
 	base=kudzu
 	if [ -f /var/lock/subsys/kudzu ]; then
	  echo $"${base} has run"
	  exit 0
	fi
	echo $"${base} is stopped"
	exit 3
	;;
 stop)
 	# Do not re-run without user intervention
 	# rm -f /var/lock/subsys/kudzu
 	;;
 *)
 	echo $"Usage: $0 {start|stop}"
	exit 1
	;;
esac

exit $RETVAL
                                                                                                                                  Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K89pand                                    0000755 0000000 0000000 00000002263 11524350234 023261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# pand:		Bluetooth Personal Area Networking Daemon.
#
# chkconfig:	- 26 89
# description:	Bluetooth Personal Area Networking Daemon. Provides network \
#		services over Bluetooth.
#

# Source function library.
. /etc/rc.d/init.d/functions

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

[ "${NETWORKING}" = "yes" ] || exit 0

[ -r /etc/sysconfig/pand ] && . /etc/sysconfig/pand

start() 
{
	[ -z "$PANDARGS" ] && exit 0
        [ -x /etc/bluetooth/pan/system-up ] && /etc/bluetooth/pan/system-up

        echo -n $"Starting pand: "
        daemon /usr/bin/pand $PANDARGS

	touch /var/lock/subsys/pand
        echo
}

stop() 
{
        echo -n $"Shutting down pand: "
	/usr/bin/pand -K
	killproc pand

        [ -x /etc/bluetooth/pan/system-down ] && /etc/bluetooth/pan/system-down
	rm -f  /var/lock/subsys/pand
        echo
}

[ -f /usr/bin/pand ] || exit 0

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  restart|reload)
	stop
	start
	;;
  condrestart)
	[ -e /var/lock/subsys/pand ] && (stop; start)
	;;
  status)
  	status pand
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|condrestart}"
        exit 1
esac

exit 0
                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S04readahead_early                         0000755 0000000 0000000 00000001643 11524350235 025426  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# readahead:	Prereads programs required for startup into memory
#
# chkconfig: 2345 4 99
# description:  This service causes the programs used during startup \
#		to be loaded into memory before they are needed,\
#		thus improving startup performance 
#
#

# Sanity checks.
[ -x /usr/sbin/readahead ] || exit 0

# Check for > 384 MB
free -m | gawk '/Mem:/ {exit ($2 >= 384)?0:1}' || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

start() {
    echo -n $"Starting background readahead: "
    FILES=$( ls /etc/readahead.d/*.early )
    /usr/sbin/readahead $FILES >/dev/null &
    echo_success
    echo
}

stop() {
   /bin/true
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        ;;
    restart)
	stop
	start
	;;
    condrestart)
	;;
    reload)
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	;;
esac
exit $RETVAL
                                                                                             Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S25pcscd                                   0000755 0000000 0000000 00000003744 11524350237 023441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# pcscd        Starts the pcscd Daemon
#
# chkconfig:   2345 25 88
# description: The PC/SC smart card daemon is a resource manager for the \
#              PC/SC lite and Musclecard frameworks.  It coordinates \
#              communications with smart card readers, smart cards, and \
#              cryptographic tokens that are connected to the system.
#
# processname: pcscd
# config:      /etc/reader.conf
#
### BEGIN INIT INFO
# Provides: pcscd
# Should-Start: $syslog openct
# Should-Stop: $syslog openct
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: PC/SC smart card daemon
# Description: The PC/SC smart card daemon is a resource manager for the
#              PC/SC lite and Musclecard frameworks.  It coordinates
#              communications with smart card readers, smart cards, and
#              cryptographic tokens that are connected to the system.
### END INIT INFO
#
# Note!  pcscd should be started after pcmcia, and shut down before it
# for smooth experience with PCMCIA readers.

. /etc/init.d/functions

umask 077

exec=/usr/sbin/pcscd
prog=$(basename $exec)
lockfile=/var/lock/subsys/$prog
PCSCD_OPTIONS=

# Source config
if [ -f /etc/sysconfig/pcscd ] ; then
    . /etc/sysconfig/pcscd
fi

start() {
    echo -n $"Starting PC/SC smart card daemon ($prog): "
    /usr/sbin/update-reader.conf && daemon $prog $PCSCD_OPTIONS
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}
stop() {
    echo -n $"Stopping PC/SC smart card daemon ($prog): "
    killproc $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}
restart() {
    stop
    start
}


case "$1" in
    start|stop|restart)
        $1
        ;;
    reload|force-reload)
        restart
        ;;
    status)
        status $prog
        ;;
    condrestart|try-restart)
        [ ! -f $lockfile ] || restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
        exit 2
esac
                            Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S56cups                                    0000755 0000000 0000000 00000003626 11524350240 023314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# "$Id: cups.sh,v 1.10 2000/03/30 05:19:16 mike Exp $"
#
#   Startup/shutdown script for the Common UNIX Printing System (CUPS).
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 56 10
#   description: Startup/shutdown script for the Common UNIX \
#                Printing System (CUPS).
#
#   Copyright 1997-2000 by Easy Software Products, all rights reserved.
#
#   These coded instructions, statements, and computer programs are the
#   property of Easy Software Products and are protected by Federal
#   copyright law.  Distribution and use rights are outlined in the file
#   "LICENSE.txt" which should have been included with this file.  If this
#   file is missing or damaged please contact Easy Software Products
#   at:
#
#       Attn: CUPS Licensing Information
#       Easy Software Products
#       44141 Airport View Drive, Suite 204
#       Hollywood, Maryland 20636-3111 USA
#
#       Voice: (301) 373-9603
#       EMail: cups-info@cups.org
#         WWW: http://www.cups.org
#
# heavily edited so that it's more like other scripts in init.d on Red Hat
# Linux

# Source function library.
. /etc/init.d/functions

DAEMON=cupsd

prog=cups

start () {
	echo -n $"Starting $prog: "

	# start daemon
	daemon $DAEMON
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	return $RETVAL
}

stop () {
	# stop daemon
	echo -n $"Stopping $prog: "
	killproc $DAEMON
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
}

restart() {
	stop
	start
}

case $1 in
	start)
		start
	;;
	stop)
		stop
	;;
	restart)
		restart
	;;
	condrestart)
		[ -f /var/lock/subsys/cups ] && restart || :
	;;	
	reload)
		echo -n $"Reloading $prog: "
		killproc $DAEMON -HUP
		RETVAL=$?
		echo
	;;
	status)
		status $DAEMON
		RETVAL=$?
	;;
	restartlog)
		stop
		cat /dev/null >/var/log/cups/error_log
		start
	;;
	*)

	echo $"Usage: $prog {start|stop|restart|condrestart|reload|status}"
	exit 3
esac

exit $RETVAL
                                                                                                          Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K89dund                                    0000755 0000000 0000000 00000001744 11524350234 023274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# dund:		Bluetooth Dial-Up-Networking Daemon.
#
# chkconfig:	- 26 89
# description:	Bluetooth Dial-Up-Networking Daemon. Provides PPP over RFCOMM \
#		services.
#

# Source function library.
. /etc/rc.d/init.d/functions

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

[ "${NETWORKING}" = "yes" ] || exit 0

[ -r /etc/sysconfig/dund ] && . /etc/sysconfig/dund

start() 
{
	[ -z "$DUNDARGS" ] && exit 0

        echo -n $"Starting dund: "
        daemon /usr/bin/dund $DUNDARGS

	touch /var/lock/subsys/dund
        echo
}

stop() 
{
        echo -n $"Shutting down dund: "
	/usr/bin/dund -K
	killproc dund

	rm -f  /var/lock/subsys/dund
        echo
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  restart|reload)
	stop
	start
	;;
  condrestart)
	[ -e /var/lock/subsys/dund ] && (stop; start)
	;;
  status)
  	status dund
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|condrestart}"
        exit 1
esac

exit 0
                            Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K10psacct                                  0000755 0000000 0000000 00000002006 11524350232 023565  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	action $"Starting process accounting: " /sbin/accton $ACCTFILE
	touch /var/lock/subsys/psacct
}

stop() {
	action $"Shutting down process accounting: " /sbin/accton
	rm -f /var/lock/subsys/psacct
}
# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e /var/lock/subsys/psacct ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 1
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S26acpid                                   0000755 0000000 0000000 00000003036 11524350237 023420  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	echo -n $"Starting acpi daemon: "	
	daemon /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	echo
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}

restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}


case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	restart
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K20nfs                                     0000755 0000000 0000000 00000011074 11524350232 023104  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 60 20
# description: NFS is a popular protocol for file sharing across TCP/IP \
#              networks. This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }
	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Load preload module so arguments to rpc.nfsd will take effect
	[ -n "$RPCNFSDARGS" -a "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}

	action $"Starting NFS services: " /usr/sbin/exportfs -r

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL
	touch /var/lock/subsys/nfs

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		RETVAL=$?
		echo
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
	else
		action $"Shutting down NFS services: " /bin/false
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfs
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	status nfsd
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
	fi
	RETVAL=$?
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfs
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfs ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfs ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfs ] && {
		$0 stop
		$0 start
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|condrestart}"
	RETVAL=3
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S13cpuspeed                                0000755 0000000 0000000 00000023356 11524350236 024152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# Startup script for cpuspeed
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 0 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    cpu_model=$(awk '/model\t/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_stepping=$(awk '/stepping/{print $3}' /proc/cpuinfo | tail -n 1)

    # http://www.intel.com/Assets/PDF/specupdate/314554.pdf
    #
    # AL30 “A Machine Check Exception (MCE) Occurring during an Enhanced Intel
    # SpeedStep® Technology Ratio Change May Cause Both Processor Cores to Lock
    # Up”, so do not start cpuspeed
    if [ "$cpu_vendor" == GenuineIntel ] && [ "$cpu_family" -eq 15 ] \
        && [ "$cpu_model" -eq 6 ] && [ "$cpu_stepping" -eq 8 ]; then
      $logger "Intel® Xeon® 7100 series CPU's errata will not allow cpuspeed to run."
      $logger "See errata AL30 in http://www.intel.com/Assets/PDF/specupdate/314554.pdf"
      echo -n "Frequency scaling disabled due to CPU bug (see syslog): "
      warning
      echo
      return 6
    fi

    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
        # Try loading powernow-k8 if this is an AMD processor,
        # family 7 or greater (Athlon XP/MP was family 6)
        pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
        if [ "$?" -eq 0 ]; then
          /sbin/modprobe powernow-k8 2> /dev/null
          [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
        fi
      elif [ -d /proc/acpi ]; then
        # try ACPI
        /sbin/modprobe acpi-cpufreq 2> /dev/null
	# last resort, try speedstep-centrino, if its modular
        if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r acpi-cpufreq 2> /dev/null
	  cm=$(/sbin/modinfo speedstep-centrino > /dev/null 2>&1)
          if [ "$?" -eq 0 ]; then
            /sbin/modprobe speedstep-centrino 2> /dev/null
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r speedstep-centrino 2> /dev/null
          fi
        fi
      elif [ $(grep -c "$flags.* est" /proc/cpuinfo) -ge 1 ]; then
        # we might still have a shot with speedstep-centrino...
	cm=$(/sbin/modinfo speedstep-centrino > /dev/null 2>&1)
        if [ "$?" -eq 0 ]; then
          /sbin/modprobe speedstep-centrino 2> /dev/null
          [ -d ${cpu0freqd} ] || /sbin/modprobe -r speedstep-centrino 2> /dev/null
        fi
      else
        # No scaling. Just exit.
        return 6
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # p4-clockmod's latency and lack of actual freq scaling ability
	# makes performance a much better default than ondemand here
        default_governor=performance
        ;;
      *)
        default_governor=userspace
        ;;
    esac

    # Frequency scaling on AMD rev F CPUs under Xen can result in
    # timekeeping problems for fully virtualized guests, so we disable
    # it by default.
    if [ -d "$xendir" ] && [ "$cpu_vendor" == AuthenticAMD ] \
       && [ "$cpu_family" -le 15 ]; then
      default_governor=performance
    fi

    governor=${GOVERNOR:-${default_governor}}

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      if [ ! -d "$xendir" ]; then
        start_cpuspeed
        RETVAL=$?
      else
        $logger "The userspace CPU freq scaling governor does not support Xen"
	RETVAL=6
      fi
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    # cpuspeed is already started
    RETVAL=1
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
    else
      status $prog
      RETVAL=$?
    fi
    ;;

  restart|reload|force-reload)
    stop
    start
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S99dnsmasq                                 0000755 0000000 0000000 00000002577 11524350241 024024  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 99 01
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S99local                                   0000755 0000000 0000000 00000000334 11524350241 023435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S14nfslock                                 0000755 0000000 0000000 00000006346 11524350236 024002  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       TCP/IP networks. This service provides NFS file \
#	       locking functionality.
# probe: true

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Start lockd from userland only if kernel <= 2.2.18
OS_RELEASE=`uname --release`
OS_RELEASE_MAJOR=`echo "$OS_RELEASE" | sed 's/\(^[0-9]\)\..*/\1/'`
OS_RELEASE_MINOR=`echo "$OS_RELEASE" | sed 's/\(^[0-9]\)\.\([0-9]*\)\..*/\2/'`
OS_RELEASE_VERSION=`echo "$OS_RELEASE" | sed 's/\(^[0-9]\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`

if [ "$OS_RELEASE_MAJOR" -le 2 -a "$OS_RELEASE_MINOR" -le 2 -a "$OS_RELEASE_VERSION" -le 18 ] ; then
    USERLAND_LOCKD="yes"
else
    USERLAND_LOCKD=
fi

RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	if [ "$USERLAND_LOCKD" ] ; then
    	[ -x /sbin/rpc.lockd ] || exit 5
	fi
	[ -x /sbin/rpc.statd ] || exit 5 

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/nfslock

	# Start daemons.
	if [ "$USERLAND_LOCKD" ]; then
	  echo -n $"Starting NFS locking: "
	  daemon rpc.lockd
	  echo
	else 
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
	[ -n "$LOCKD_TCPPORT" ] && \
		/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
	[ -n "$LOCKD_UDPPORT" ] && \
		/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi  
	echo -n $"Starting NFS statd: "

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/nfslock
    return $RETVAL
}

stop() {
	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/nfslock
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	if [ "$USERLAND_LOCKD" ]; then
	  status lockd
	fi 
	status rpc.statd
	;;
  restart)
        stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfslock ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1; STATD="$?"
	if [ "$USERLAND_LOCKD" ]; then
	   /sbin/pidof lockd >/dev/null 2>&1; LOCKD="$?"
	else
	   LOCKD=0
	fi
	if [ $STATD = 1 -o $LOCKD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart)
  	[ -f /var/lock/subsys/nfslock ] && {
		stop
		start
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|probe|condrestart}"
	RETVAL=3
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K89netplugd                                0000755 0000000 0000000 00000002352 11524350234 024160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# netplugd     This shell script takes care of starting and stopping
#              the network plug management daemon.
#
# chkconfig: - 11 89
# description: netplugd is a daemon for managing non-static network \
#              interfaces.
# processname: netplugd
# pidfile: /var/run/netplugd.pid

# Copyright 2003 Key Research, Inc.

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

if [ -f /etc/sysconfig/netplugd ]; then
    . /etc/sysconfig/netplugd
fi

# See how we were called.
case "$1" in
  start)
	# Start daemon.
	[ ${NETWORKING} = "no" ] && exit 1
	[ -x /sbin/netplugd ] || exit 1
	echo -n $"Starting network plug daemon: "
	daemon /sbin/netplugd ${NETPLUGDARGS} -p /var/run/netplugd.pid
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/netplugd
	;;
  stop)
	# Stop daemon.
	echo -n $"Shutting down network plug daemon: "
	killproc netplugd
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/netplugd
	;;
  status)
	status netplugd
	RETVAL=$?
	;;
  restart|reload)
	$0 stop
	$0 start
	;;
  condrestart)
	[ -f /var/lock/subsys/netplugd ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart}"
	RETVAL=3
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K50netconsole                              0000755 0000000 0000000 00000005662 11524350233 024501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=`uname -r | cut -d. -f1-2`

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=1
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
netconsole_failure ()
{
	echo -n "$1"
	failure
	echo
	exit 1
}

start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 0
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
	if ! [[ "$SYSLOGADDR" =~ "^([0-9]{1,3}\.){3}[0-9]{1,3}$" ]]; then
		SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
	fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 1
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		netconsole_failure "syslog server address resolution"
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                              Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S26hidd                                    0000755 0000000 0000000 00000001706 11524350237 023252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# hidd:		Bluetooth Human Interface Device Daemon.
#
# chkconfig:	2345 26 89
# description:	Bluetooth Human Interface Device Daemon. Provides keyboard, \
#		mouse etc. functionality over Bluetooth.
#

# Source function library.
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/hidd ] && . /etc/sysconfig/hidd

start() 
{
	[ -z "$HIDDARGS" ] && exit 0

        echo -n $"Starting hidd: "
        daemon /usr/bin/hidd $HIDDARGS

	touch /var/lock/subsys/hidd
        echo
}

stop() 
{
        echo -n $"Shutting down hidd: "
	/usr/bin/hidd -K
	killproc hidd

	rm -f  /var/lock/subsys/hidd
        echo
}

[ -f /usr/bin/hidd ] || exit 0

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  restart|reload)
	stop
	start
	;;
  condrestart)
	[ -e /var/lock/subsys/hidd ] && (stop; start)
	;;
  status)
  	status hidd
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|condrestart}"
        exit 1
esac

exit 0
                                                          Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K74ipmi                                    0000755 0000000 0000000 00000033240 11524350233 023265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#############################################################################
#
# ipmi:		OpenIPMI Driver init script
#
# Authors:	Matt Domsch <Matt_Domsch@dell.com>
#               Chris Poblete <Chris_Poblete@dell.com>
#
# chkconfig: - 13 87
# description: OpenIPMI Driver init script
#
### BEGIN INIT INFO
# Provides: ipmidrv
# Required-Start: $local_fs $remote_fs $syslog
# Required-Stop: $local_fs $remote_fs $syslog
# Default-Start:
# Default-Stop:
# Short-Description: OpenIPMI Driver init script
# Description: OpenIPMI Driver init script
### END INIT INFO
#
# Status return code bits
# no bits set = no errors
# bit 0 set = minimum modules aren't loaded
# bit 1 set = requested feature module isn't loaded
# bit 2 set = /dev/ipmi0 (or /dev/imb if using that instead) doesn't exist
# bit 3 set = /dev/watchdog doesn't exist
# bit 4 set = lockfile doesn't exist
# bit 5 set = modules are loaded even when asked to be unloaded

#
#############################################################################
# for log_success_msg and friends
if [ -r /lib/lsb/init-functions ]; then
# LSB, SLES, ...
    . /lib/lsb/init-functions
elif [ -r /etc/init.d/functions ]; then
# Red Hat / VMware
    . /etc/init.d/functions
    my_log_message()
    {
	ACTION=$1
	shift
	
	case "$ACTION" in
	    success)
		echo -n $*
		success "$*"
		echo
		;;
	    failure)
		echo -n $*
		failure "$*"
		echo
		;;
	    warning)
		echo -n $*
		warning "$*"
		echo
		;;
	    *)
		;;
	esac
    }
    log_success_msg()
    {
	my_log_message success "$*"
    }
    log_failure_msg()
    {
	my_log_message failure "$*"
    }
    log_warning_msg()
    {
	my_log_message warning "$*"
    }
fi

CONFIGFILE=/etc/sysconfig/ipmi
# source config info
[ -r ${CONFIGFILE} ] && . ${CONFIGFILE}

#############################################################################
# GLOBALS
#############################################################################
MODULE_NAME="ipmi"
INTF_NUM=0

IPMI_SMB_MODULE_NAME="ipmi_smb"
IPMI_SI_MODULE_NAME="ipmi_si"
kernel=`uname -r | cut -d. -f1-2`
if [ "${kernel}" == "2.4" ]; then
    IPMI_SMB_MODULE_NAME="ipmi_smb_intf"
    IPMI_SI_MODULE_NAME="ipmi_si_drv"
fi

MODULES_INTERFACES=""
[ "${DEV_IPMI}" = "yes" ] && MODULES_INTERFACES="${MODULES_INTERFACES} ipmi_devintf"
[ "${IPMI_IMB}" = "yes" ] && MODULES_INTERFACES="${MODULES_INTERFACES} ipmi_imb"

MODULES_FEATURES=""
[ "${IPMI_WATCHDOG}" = "yes" ] && MODULES_FEATURES="${MODULES_FEATURES} ipmi_watchdog"
[ "${IPMI_POWEROFF}" = "yes" ] && MODULES_FEATURES="${MODULES_FEATURES} ipmi_poweroff"

MODULES_HW=""
[ "${IPMI_SI}"  = "yes" ] && MODULES_HW="${MODULES_HW} ${IPMI_SI_MODULE_NAME}"
[ "${IPMI_SMB}" = "yes" ] && MODULES_HW="${MODULES_HW} ${IPMI_SMB_MODULE_NAME}"

MODULES_BASE="ipmi_msghandler"
MODULES="${MODULES_INTERFACES} ${MODULES_FEATURES} ${MODULES_HW} ${MODULES_BASE}"

RETVAL=0
LOCKFILE=/var/lock/subsys/ipmi
DEV_IPMI_TIMEOUT=15

UDEV_EXISTS=0
if [ -e /sbin/udev -o -e /sbin/udevd ]; then
    UDEV_EXISTS=1
fi

#############################################################################
# NOTES:
# * /dev/ipmi0 is unconditionally deleted here on ipmi_devintf unload,
#   because SLES9 and RHEL4 kernels don't send a message for udev to delete
#   it for us.
# 
#############################################################################

modules_loaded_verbose()
{
	OnePlusLoaded=0
	OnePlusUnloaded=0
	for m in $@; do
		if /sbin/lsmod | grep $m >/dev/null 2>&1 ; then
			echo "$m module loaded."
			OnePlusLoaded=1
		else
			echo "$m module not loaded."
			OnePlusUnloaded=1
		fi
	done
}

modules_loaded()
{
	OnePlusLoaded=0
	OnePlusUnloaded=0
	for m in $@; do
		if /sbin/lsmod | grep $m >/dev/null 2>&1 ; then
			OnePlusLoaded=1
		else
			OnePlusUnloaded=1
		fi
	done
}

device_node_exists ()
{
	if [ -e "$1" ]; then
		echo "$1 exists."
		return 1
	fi
	echo "$1 does not exist."
	return 0
}

minimum_modules_loaded()
{
        rc_base=1
	rc_hw=1
        modules_loaded_verbose "${MODULES_BASE}"
	[ ${OnePlusLoaded} -eq 0 ] && rc_base=0
	    
	modules_loaded_verbose "${MODULES_HW}"
	[ ${OnePlusLoaded} -eq 0 ] && rc_hw=0
	
	return $((rc_base && rc_hw))
}

#############################################################################

load_si()
{
	if [ "${IPMI_SI}" = "yes" ]; then
		modprobe ${IPMI_SI_MODULE_NAME} > /dev/null 2>&1
		modules_loaded ${IPMI_SI_MODULE_NAME}
		[ ${OnePlusLoaded} -ne 1 ] && RETVAL=$((RETVAL | 1))
	fi
}

load_smb()
{
	if [ "${IPMI_SMB}" = "yes" ]; then
		modprobe ${IPMI_SMB_MODULE_NAME} > /dev/null 2>&1
		modules_loaded ${IPMI_SMB_MODULE_NAME}
		[ ${OnePlusLoaded} -ne 1 ] && RETVAL=$((RETVAL | 1))
	fi
}

load_hw_modules()
{
	load_si
	load_smb
}

start_watchdog_common()
{

	if [ -e /dev/watchdog ]; then
		log_failure_msg "/dev/watchdog already exists "
		RETVAL=$((RETVAL | 8))
		return
	fi
	load_hw_modules
	modprobe ipmi_watchdog ${IPMI_WATCHDOG_OPTIONS} > /dev/null 2>&1
	modules_loaded ipmi_watchdog
	[ ${OnePlusUnloaded} -ne 0 ] &&
		RETVAL=$((RETVAL | 2)) &&
		log_failure_msg &&
		return
	if [ ${UDEV_EXISTS} -eq 0 -a ! -e /dev/watchdog ]; then
		mknod -m 0600 /dev/watchdog c 10 130
		[ $? -ne 0 ] &&
			RETVAL=$((RETVAL | 8)) &&
			log_failure_msg &&
			return
	fi
	log_success_msg
}

start_watchdog_quiet()
{
	[ "${IPMI_WATCHDOG}" != "yes" ] &&
		return
	echo -n $"Starting ipmi_watchdog driver: "
	start_watchdog_common
}

start_watchdog()
{
	echo -n $"Starting ipmi_watchdog driver: "
	[ "${IPMI_WATCHDOG}" != "yes" ] &&
		RETVAL=$((RETVAL | 2)) &&
		log_failure_msg "not configured" &&
		return
	start_watchdog_common
}

stop_watchdog()
{
	echo -n $"Stopping ipmi_watchdog driver: "
	modprobe -q -r ipmi_watchdog > /dev/null 2>&1
	modules_loaded ipmi_watchdog
	if [ ${OnePlusLoaded} -ne 0 ]; then
	    RETVAL=$((RETVAL | 32))
	    log_failure_msg
	else
	    if [ "${IPMI_WATCHDOG}" = "yes" ]; then
		[ ${UDEV_EXISTS} -eq 0 ] && rm -f /dev/watchdog
	    fi
	    log_success_msg
	fi
}

stop_watchdog_quiet()
{
	modprobe -q -r ipmi_watchdog > /dev/null 2>&1
	modules_loaded ipmi_watchdog
	if [ ${OnePlusLoaded} -ne 0 ]; then
	    RETVAL=$((RETVAL | 32))
	else
	    if [ "${IPMI_WATCHDOG}" = "yes" ]; then
		[ ${UDEV_EXISTS} -eq 0 ] && rm -f /dev/watchdog
	    fi
	fi
}

start_powercontrol_common()
{
	local poweroff_opts=""
	load_hw_modules
	if [ "${IPMI_POWERCYCLE}" == "yes" ]; then
	    modinfo ipmi_poweroff 2>/dev/null | grep poweroff_control > /dev/null 2>&1 && \
		poweroff_opts="poweroff_control=2"
	    modinfo ipmi_poweroff 2>/dev/null | grep poweroff_powercycle > /dev/null 2>&1 && \
		poweroff_opts="poweroff_powercycle=1"
	fi
	modprobe ipmi_poweroff "${poweroff_opts}" > /dev/null 2>&1
	modules_loaded ipmi_poweroff
	[ ${OnePlusUnloaded} -ne 0 ] &&
		RETVAL=$((RETVAL | 2)) &&
		log_failure_msg &&
		return
	log_success_msg
}

start_powercontrol_quiet()
{
	[ "${IPMI_POWEROFF}" != "yes" ] &&
		return
	echo -n $"Starting ipmi_poweroff driver: "
	start_powercontrol_common
}

start_powercontrol()
{
	echo -n $"Starting ipmi_poweroff driver: "
	[ "${IPMI_POWEROFF}" != "yes" ] &&
		RETVAL=$((RETVAL | 2)) &&
		log_failure_msg "not configured" &&
		return
	start_powercontrol_common
}

stop_powercontrol()
{
	echo -n $"Stopping ipmi_poweroff driver: "
	modprobe -q -r ipmi_poweroff > /dev/null 2>&1
	modules_loaded ipmi_poweroff
	if [ ${OnePlusLoaded} -ne 0 ]; then
	    RETVAL=$((RETVAL | 32))
	    log_failure_msg
	else
	    log_success_msg
	fi
}

stop_powercontrol_quiet()
{
	modprobe -q -r ipmi_poweroff > /dev/null 2>&1
	modules_loaded ipmi_poweroff
	[ ${OnePlusLoaded} -ne 0 ] && RETVAL=$((RETVAL | 32))
}

#############################################################################
unload_all_ipmi_modules()
{
	stop_watchdog_quiet
	stop_powercontrol_quiet
	for m in ${MODULES}; do
		modprobe -q -r ${m} > /dev/null 2>&1
	done
        # delete interface node ONLY if ipmi_devintf is unloaded
        [ `lsmod | grep -c "ipmi_devintf"` -eq 0 ] &&
	        rm -f "/dev/ipmi${INTF_NUM}"
}

unload_ipmi_modules_leave_features()
{
	for m in ${MODULES_INTERFACES}; do
		modprobe -q -r ${m} > /dev/null 2>&1
	done
        # delete interface node ONLY if ipmi_devintf is unloaded
        [ `lsmod | grep -c "ipmi_devintf"` -eq 0 ] &&
	        rm -f "/dev/ipmi${INTF_NUM}"
	lsmod | egrep -q "ipmi_(poweroff|watchdog)" > /dev/null 2>&1
	if [ "$?" -ne "0" ]; then
		stop_watchdog_quiet
		stop_powercontrol_quiet
		for m in ${MODULES}; do
			modprobe -q -r ${m} > /dev/null 2>&1
		done
	fi
}

#############################################################################
load_ipmi_modules ()
{
	local locdelay
	modprobe ipmi_msghandler > /dev/null 2>&1
	modules_loaded ipmi_msghandler
	[ ${OnePlusLoaded} -ne 1 ] && unload_all_ipmi_modules && RETVAL=$((RETVAL | 1)) && return
	load_hw_modules
	[ $((RETVAL & 1)) -eq 1 ] && unload_all_ipmi_modules && RETVAL=$((RETVAL | 1)) && return

	if [ "${DEV_IPMI}" = "yes" ]; then
		modprobe ipmi_devintf > /dev/null 2>&1
		modules_loaded ipmi_devintf
		RETVAL=$((RETVAL & ~2))
		[ ${OnePlusLoaded} -eq 0 ] && RETVAL=$((RETVAL | 2))
		if [ ${OnePlusLoaded} -eq 1 ]; then
			if [ ${UDEV_EXISTS} -eq 0 ]; then
				DEVMAJOR=`cat /proc/devices | awk '/ipmidev/{print $1}'`
				rm -f /dev/ipmi${INTF_NUM}
				mknod -m 0600 /dev/ipmi${INTF_NUM} c ${DEVMAJOR} 0 || RETVAL=$((RETVAL | 4))
			fi

			# udev can take several seconds to create /dev/ipmi0, 
			# but it happens asynchronously, so delay here
			locdelay=${DEV_IPMI_TIMEOUT}
			while [ ! -e /dev/ipmi${INTF_NUM} -a ${locdelay} -gt 0 ]; do
				locdelay=$((locdelay - 1))
				sleep 1
			done
		fi
	fi

	if [ "${IPMI_IMB}" = "yes" ]; then
		modprobe ipmi_imb > /dev/null 2>&1
		modules_loaded ipmi_imb
		RETVAL=$((RETVAL & ~2))
		[ ${OnePlusLoaded} -eq 0 ] && RETVAL=$((RETVAL | 2))
		if [ ${OnePlusLoaded} -eq 1 ]; then
			DEVMAJOR=`cat /proc/devices | awk '/imb/{print $1}'`
			rm -f /dev/imb
			mknod -m 0600 /dev/imb c ${DEVMAJOR} 0 || RETVAL=$((RETVAL | 4))
		fi
	fi

	# Per Corey Minyard, essentially no one uses ipmi_radisys
	# and we don't want to encourage its further use
	# so it won't be handled here.
	return
}

#############################################################################
start()
{
	echo -n "Starting ${MODULE_NAME} drivers: "
	load_ipmi_modules
	if [ ${RETVAL} -eq 0 ]; then
		touch ${LOCKFILE} && log_success_msg
	else
		if [ $((RETVAL & 1)) -eq 1 ]; then
			log_failure_msg
		else
			touch ${LOCKFILE} && log_warning_msg
		fi
	fi
	start_watchdog_quiet
	start_powercontrol_quiet
}

#############################################################################
stop()
{
	echo -n "Stopping ${MODULE_NAME} drivers: "
	unload_ipmi_modules_leave_features
	modules_loaded ${MODULES_INTERFACES}
	if [ ${OnePlusLoaded} -ne 0 ]; then
		RETVAL=$((RETVAL | 32))
		log_failure_msg "may be in use"
	else
		rm -f ${LOCKFILE}
		log_success_msg
	fi
}

stop_all()
{
	echo -n $"Stopping all ${MODULE_NAME} drivers: "
	unload_all_ipmi_modules
	modules_loaded ${MODULES}
	if [ ${OnePlusLoaded} -ne 0 ]; then
		RETVAL=$((RETVAL | 32))
		log_failure_msg "may be in use"
	else
		rm -f ${LOCKFILE}
		log_success_msg
	fi
}

#############################################################################
restart()
{
	stop_all
	RETVAL=0
	start
}

#############################################################################

status_all()
{
	minimum_modules_loaded
	[ $? -eq 0 ] && RETVAL=$((RETVAL | 1))
	
	modules_loaded_verbose ${MODULES_FEATURES} ${MODULES_INTERFACES}
	[ ${OnePlusUnloaded} -ne 0 ] && RETVAL=$((RETVAL | 2))

	if [ "${DEV_IPMI}" = "yes" ]; then 
	    device_node_exists /dev/ipmi${INTF_NUM}
	    [ $? -eq 0 ] && RETVAL=$((RETVAL | 4))
	fi

	if [ "${IPMI_IMB}" = "yes" ]; then
	    device_node_exists /dev/imb
	    [ $? -eq 0 ] && RETVAL=$((RETVAL | 4))
	fi

	if [ "${IPMI_WATCHDOG}" = "yes" ]; then
	    device_node_exists /dev/watchdog
	    [ $? -eq 0 ] && RETVAL=$((RETVAL | 8))
	fi

	[ ! -e ${LOCKFILE} ] && RETVAL=$((RETVAL | 16))
}

status()
{
	minimum_modules_loaded
	[ $? -eq 0 ] && RETVAL=$((RETVAL | 1))
	
	if [ "${DEV_IPMI}" = "yes" ]; then 
	    modules_loaded_verbose ipmi_devintf
	    [ ${OnePlusLoaded} -eq 0 ] && RETVAL=$((RETVAL | 2))

	    device_node_exists /dev/ipmi${INTF_NUM}
	    [ $? -eq 0 ] && RETVAL=$((RETVAL | 4))
	fi

	if [ "${IPMI_IMB}" = "yes" ]; then
	    device_node_exists /dev/imb
	    [ $? -eq 0 ] && RETVAL=$((RETVAL | 4))
	fi
}

status_watchdog()
{
	minimum_modules_loaded
	[ $? -eq 0 ] && RETVAL=$((RETVAL | 1))

	modules_loaded_verbose ipmi_watchdog
	[ ${OnePlusLoaded} -eq 0 ] && RETVAL=$((RETVAL | 2))

	device_node_exists /dev/watchdog
	[ $? -eq 0 ] && RETVAL=$((RETVAL | 8))
}

status_powercontrol()
{
	minimum_modules_loaded
	[ $? -eq 0 ] && RETVAL=$((RETVAL | 1))

	modules_loaded_verbose ipmi_powercontrol
	[ ${OnePlusLoaded} -eq 0 ] && RETVAL=$((RETVAL | 2))
}

#############################################################################
usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart" 1>&2
	echo $"          start-watchdog|stop-watchdog|status-watchdog" 1>&2
	echo $"          start-powercontrol|stop-powercontrol|status-powercontrol" 1>&2
	echo $"          stop-all|status-all}" 1>&2
	RETVAL=1
}

condrestart ()
{
	[ -e ${LOCKFILE} ] && restart
}

#############################################################################
# MAIN
#############################################################################
case "$1" in
	start) start ;;
	stop)  stop ;;
	restart) restart ;;
	status)	status ;;
	status-all) status_all ;;
	condrestart) condrestart ;;
	try-restart) condrestart ;;
	start-watchdog) start_watchdog ;;
	stop-watchdog) stop_watchdog ;;
	status-watchdog) status_watchdog ;;
	start-powercontrol) start_powercontrol ;;
	stop-powercontrol) stop_powercontrol ;;
	status-powercontrol) status_powercontrol ;;
	stop-all) stop_all ;;
	*) usage ;;
esac

exit ${RETVAL}

#############################################################################
# end of file
#############################################################################

                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K05saslauthd                               0000755 0000000 0000000 00000003214 11524350232 024306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon.
#
# chkconfig: - 95 05
# description: saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd

# Ugh. Switch to a specific copy of saslauthd if there's one with $MECH
# in its name, in case it wasn't included in the base cyrus-sasl package
# because it would have dragged in too many undesirable dependencies.
if test -x ${path}.${MECH} ; then
	path=/usr/sbin/saslauthd.$MECH
fi

start() {
	echo -n $"Starting $prog: "
	daemon $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $path
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

rh_status_q() {
	status $prog >/dev/null 2>&1
}            

case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  status)
	status $path
	;;
  condrestart)
  	[ -f /var/lock/subsys/$prog ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}"
	exit 1
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K02avahi-dnsconfd                          0000755 0000000 0000000 00000003440 11524350232 025200  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# avahi-daemon:       Starts the Avahi dns configuration daemon
#
# chkconfig: - 98 02
# description: avahi-dnsconfd connects to a running avahi-daemon and runs  the  script \
#       /etc/avahi/dnsconf.action for each unicast DNS server that is announced \
#       on the local LAN. This is useful for configuring unicast DNS servers in \
#       a DHCP-like fashion with mDNS.
# processname: avahi-dnsconfd
# config: 

OTHER_AVAHI_OPTS=""

# Source function library.
. /etc/init.d/functions

. /etc/sysconfig/network

# Check that networking is configured.
[ ${NETWORKING} = "no" ] && exit 0

AVAHI_BIN=/usr/sbin/avahi-dnsconfd
test -x $AVAHI_BIN || exit 5

LOCKFILE=/var/lock/subsys/avahi-dnsconfd

start() {
	echo -n $"Starting Avahi DNS daemon... "
        $AVAHI_BIN -D
	RETVAL=$?
	if [ $RETVAL = 0 ]; then
		touch $LOCKFILE
		success $"$base startup"
	else
		failure $"$base startup"
	fi
	echo
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi DNS daemon: "
        $AVAHI_BIN -k
	RETVAL=$?
	[ $RETVAL = 0 ] && success $"$base shutdown" || failure $"$base shutdown"
	rm -f $LOCKFILE
	echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi DNS daemon... "
        $AVAHI_BIN -r
	RETVAL=$?
	[ $RETVAL = 0 ] && success $"$base startup" || failure $"$base startup"
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        $AVAHI_BIN -c
        RETVAL=$?
        [ $RETVAL = 0 ] && echo $"Avahi DNS daemon is running" || echo $"Avahi DNS daemon is not running"
	;;
  restart)
	restart
	;;
  reload)
        reload 
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 1
	;;
esac

exit $RETVAL

                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K02NetworkManager                          0000755 0000000 0000000 00000003551 11524350232 025243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 98 02
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --check $servicename $processname --pid-file=$pidfile --ppp-dns-workaround
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                       Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S02lvm2-monitor                            0000755 0000000 0000000 00000003614 11524350235 024677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#	       
### BEGIN INIT INFO
# Provides: 
### END INIT INFO

. /etc/init.d/functions

VGCHANGE="/usr/sbin/vgchange"
WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGS=`vgs --noheadings -o name 2> /dev/null`
	for vg in $VGS
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGS=`vgs --noheadings -o name 2> /dev/null`
	for vg in $VGS
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

result=1

# See how we were called.
case "$1" in
  start)
	start
	result=$?
	;;

  force-stop)
	WARN=0
	stop
	result=$?
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	result=$?
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	result=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $result
                                                                                                                    Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S28autofs                                  0000755 0000000 0000000 00000005754 11524350240 023646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rc.autofs.in,v 1.63 2006/03/30 02:09:51 raven Exp $
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand

#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS 
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/autofs
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/autofs
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	stop
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	*)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 1;
		;;
esac

exit $?

                    Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S97yum-updatesd                            0000755 0000000 0000000 00000002732 11524350241 024766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# yum           Update notification daemon
#
# Author:       Jeremy Katz <katzj@redhat.com>
#
# chkconfig:	345 97 03
#
# description:  This is a daemon which periodically checks for updates \
#               and can send notifications via mail, dbus or syslog.
# processname:  yum-updatesd
# config: /etc/yum/yum-updatesd.conf
# pidfile: /var/run/yum-updatesd.pid
#

### BEGIN INIT INFO
# Provides: yum-updatesd
# Required-Start: $syslog $local_fs messagebus
# Required-Stop: $syslog $local_fs messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Update notification daemon
# Description: Daemon which notifies about available updates via mail, dbus or
#     syslog.  Can also be configured to automatically apply updates.
### END INIT INFO


# source function library
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
	echo -n $"Starting yum-updatesd: "
	daemon +19 'yum-updatesd &'
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/yum-updatesd
}

stop() {
	echo -n $"Stopping yum-updatesd: "
	killproc yum-updatesd
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/yum-updatesd
}

restart() {
	stop
	start
}

case "$1" in
  start)
	start
	;;
  stop) 
	stop
	;;
  restart|force-reload|reload)
	restart
	;;
  condrestart|try-restart)
	[ -f /var/lock/subsys/yum-updatesd ] && restart
	;;
  status)
	status yum-updatesd
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}"
	exit 1
esac

exit $RETVAL
                                      Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S25bluetooth                               0000755 0000000 0000000 00000002705 11524350237 024346  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# bluetooth:	Start/stop bluetooth services
#
# chkconfig:	2345 25 90
# description:	Bluetooth services for service discovery, authentication, \
#		Human Interface Devices, etc.
#


# Source function library.
. /etc/rc.d/init.d/functions

UART_CONF="/etc/bluetooth/uart"

[ -e /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth

start_uarts()
{
	[ -f $UART_CONF ] || return
	grep -v '^#' $UART_CONF | while read i; do
		/usr/sbin/hciattach $i
	done
}

stop_uarts()
{
	killproc hciattach > /dev/null 2>&1
}

start()
{
	echo -n $"Starting Bluetooth services:"
	daemon /usr/sbin/hcid
	touch /var/lock/subsys/hcid
	daemon /usr/sbin/sdpd
	touch /var/lock/subsys/sdpd
	[ "$HID2HCI_ENABLE" = "true" ] && hid2hci --tohci > /dev/null 2>&1 || :
	start_uarts
	rfcomm bind all
	touch /var/lock/subsys/bluetooth
	echo ""
}

stop()
{
	echo -n "Stopping Bluetooth services:"
	stop_uarts
	rfcomm release all
	[ "$HID2HCI_UNDO" = "true" ] && hid2hci --tohid > /dev/null 2>&1 || :
	killproc sdpd
	rm -f /var/lock/subsys/sdpd
	killproc hcid
	rm -f /var/lock/subsys/hcid
	rm -f /var/lock/subsys/bluetooth
	echo ""
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|reload)
        stop
        start
        ;;
  condrestart)
        [ -e /var/lock/subsys/bluetooth ] && (stop; start)
        ;;
  status)
        status hcid
        status sdpd
        ;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
        exit 1
	;;
esac

exit 0
                                                           Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K85mdmpd                                   0000755 0000000 0000000 00000003115 11524350234 023431  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmdp		This starts, stops, and reloads the mdmpd-based
#		multipath device monitoring and management facility
#
# chkconfig: - 15 85
# description: multipath device monitoring and management
#

# Copyright 2002 Red Hat, Inc.

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0

prog=mdmpd

# Source function library.
. /etc/rc.d/init.d/functions

# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
#[ -f /etc/mdadm.conf ] || exit 0
#grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || exit 0


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|condrestart}"
    RETVAL=1
}


start ()
{
    ulimit -S -c 0 >/dev/null 2>&1
    # clean up in case we went down unexpectedly
    rm -f /var/run/$prog/*
    echo -n $"Starting $prog: "
    daemon mdmpd
    # hack: wait for mdadm to die, assume success if it doesn't die quickly
    usleep 100000
    pid=`pidof -o $$ -o $PPID -o %PPID -x $prog`
    if [ -n "$pid" ] ; then
	success $"mdmpd"
        touch /var/lock/subsys/$prog
	echo "$pid" > /var/run/$prog.pid
	RETVAL=0
    else
	failure $"mdmpd"
	RETVAL=1
    fi
    echo
}

stop ()
{
    echo -n $"Stopping $prog: "
    killproc $prog
    echo
    rm -f /var/run/$prog.pid
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart
}


case "$1" in
    start) start ;;
    stop) stop ;;
    status) status $prog ;;
    restart|reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S12restorecond                             0000755 0000000 0000000 00000003401 11524350236 024655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	2345 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 0

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|condrestart}"
        RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S55autobench                               0000755 0000000 0000000 00000005063 11524350240 024306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K74nscd                                    0000755 0000000 0000000 00000004725 11524350233 023264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    secure=""
#   for table in passwd group hosts
#   do
#   	if egrep -q '^'$table':.*nisplus' /etc/nsswitch.conf; then
#   	    /usr/lib/nscd_nischeck $table || secure="$secure -S $table,yes"
#   	fi
#   done
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $secure $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ -e /var/lock/subsys/nscd ] && restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
	killproc /usr/sbin/nscd -HUP
	RETVAL=$?
	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                           Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S25netfs                                   0000755 0000000 0000000 00000013331 11524350237 023455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       SMB/CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $local_fs $remote_fs
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0

NFSFSTAB=`LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab`
SMBFSTAB=`LC_ALL=C awk '!/^#/ && $3 == "smbfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab`
CIFSFSTAB=`LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab`
NCPFSTAB=`LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab`
NETDEVFSTAB=`LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab`

NFSMTAB=`LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts`
SMBMTAB=`LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts`
CIFSMTAB=`LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts`
NCPMTAB=`LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts`
NETDEVMTAB=`LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab`

# See how we were called.
case "$1" in
  start)
	# Let udev handle any backlog before trying to mount file systems
	/sbin/udevsettle --timeout=30
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/portmap ] && service portmap start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$SMBFSTAB" ] && action $"Mounting SMB filesystems: " mount -a -t smbfs
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s 
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath.static ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath.static -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a"
		fi
	    fi
	    if [ -x /sbin/lvm.static ]; then
		if /sbin/lvm.static vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm.static vgchange -a y
		fi
	    fi
	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
	    	if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
			/usr/bin/rhgb-client --details=yes >/dev/null 2>&1
		fi
	        
                failure "$STRING"
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,smbfs,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$SMBMTAB" ] && action $"Unmounting SMB filesystems: " umount -a -t smbfs
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$SMBFSTAB" ] && {
		     echo $"Configured SMB mountpoints: "
		     for fs in $SMBFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$SMBMTAB" ] && {
                      echo $"Active SMB mountpoints: "
		      for fs in $SMBMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 2
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload)
        $0 start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 1
esac

exit 0
                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S08ip6tables                               0000755 0000000 0000000 00000016567 11524350235 024244  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"/sbin/$IP6TABLES does not exist."; warning; echo
    exit 0
fi

if lsmod 2>/dev/null | grep -q ipchains ; then
    echo -n $"ipchains and $IP6TABLES can not be used together."; warning; echo
    exit 1
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=`lsmod | awk "/^${mod}/ { print \\\$4; }" | tr ',' ' '` \
	|| ref=`lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1`

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	let ret+=$?;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ -e "$PROC_IP6TABLES_NAMES" ] || return 1

    # Check if firewall is configured (has tables)
    tables=`cat $PROC_IP6TABLES_NAMES 2>/dev/null`
    [ -z "$tables" ] && return 1

    echo -n $"Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $tables; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 1

    # Check if firewall is configured (has tables)
    tables=`cat $PROC_IP6TABLES_NAMES 2>/dev/null`
    [ -z "$tables" ] && return 1

    echo -n $"Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ -f "$IP6TABLES_DATA" ] || return 1

    echo -n $"Applying $IP6TABLES firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"Loading additional $IP6TABLES modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ -e "$PROC_IP6TABLES_NAMES" ] || return 1

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"Unloading $IP6TABLES modules: "
	ret=0
	rmmod_r ${IPV}_tables
	let ret+=$?;
	rmmod_r ${IPV}_conntrack
	let ret+=$?;
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 1

    # Check if firewall is configured (has tables)
    tables=`cat $PROC_IP6TABLES_NAMES 2>/dev/null`
    [ -z "$tables" ] && return 1

    echo -n $"Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=`/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX` \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=`stat -c '%s' $TMP_FILE` && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    tables=`cat $PROC_IP6TABLES_NAMES 2>/dev/null`

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable module is loaded
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$tables" ]; then
	echo $"Firewall is stopped."
	return 1
    fi

    # Check if firewall is configured (has tables)
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"Firewall is not configured. "
	return 1
    fi
    if [ -z "$tables" ]; then
	echo $"Firewall is not configured. "
	return 1
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $tables; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}

case "$1" in
    start)
	stop
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    condrestart)
	[ -e "$VAR_SUBSYS_IP6TABLES" ] && restart
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|restart|condrestart|status|panic|save}"
	exit 1
	;;
esac

exit $RETVAL
                                                                                                                                         Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/K92iptables                                0000755 0000000 0000000 00000016444 11524350234 024142  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"/sbin/$IPTABLES does not exist."; warning; echo
    exit 0
fi

if lsmod 2>/dev/null | grep -q ipchains ; then
    echo -n $"ipchains and $IPTABLES can not be used together."; warning; echo
    exit 1
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=`lsmod | awk "/^${mod}/ { print \\\$4; }" | tr ',' ' '` \
	|| ref=`lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1`

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	let ret+=$?;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ -e "$PROC_IPTABLES_NAMES" ] || return 1

    # Check if firewall is configured (has tables)
    tables=`cat $PROC_IPTABLES_NAMES 2>/dev/null`
    [ -z "$tables" ] && return 1

    echo -n $"Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $tables; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 1

    # Check if firewall is configured (has tables)
    tables=`cat $PROC_IPTABLES_NAMES 2>/dev/null`
    [ -z "$tables" ] && return 1

    echo -n $"Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ -f "$IPTABLES_DATA" ] || return 1

    echo -n $"Applying $IPTABLES firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"Loading additional $IPTABLES modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ -e "$PROC_IPTABLES_NAMES" ] || return 1

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"Unloading $IPTABLES modules: "
	ret=0
	rmmod_r ${IPV}_tables
	let ret+=$?;
	rmmod_r ${IPV}_conntrack
	let ret+=$?;
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 1

    # Check if firewall is configured (has tables)
    tables=`cat $PROC_IPTABLES_NAMES 2>/dev/null`
    [ -z "$tables" ] && return 1

    echo -n $"Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=`/bin/mktemp -q /tmp/$IPTABLES.XXXXXX` \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=`stat -c '%s' $TMP_FILE` && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    tables=`cat $PROC_IPTABLES_NAMES 2>/dev/null`

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable module is loaded
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$tables" ]; then
	echo $"Firewall is stopped."
	return 1
    fi

    # Check if firewall is configured (has tables)
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"Firewall is not configured. "
	return 1
    fi
    if [ -z "$tables" ]; then
	echo $"Firewall is not configured. "
	return 1
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $tables; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}

case "$1" in
    start)
	stop
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    condrestart)
	[ -e "$VAR_SUBSYS_IPTABLES" ] && restart
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|restart|condrestart|status|panic|save}"
	exit 1
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-master/etc/rc.d/rc3.d/S13portmap                                 0000755 0000000 0000000 00000003525 11524350236 024020  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# portmap       Start/Stop RPC portmapper
#
# chkconfig: 345 13 87
# description: The portmapper manages RPC connections, which are used by \
#              protocols such as NFS and NIS. The portmap server must be \
#              running on machines which act as servers for protocols which \
#              make use of the RPC mechanism.
# processname: portmap


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Get config.
if [ -f /etc/sysconfig/network ]; then
    . /etc/sysconfig/network
else
    echo $"Networking not configured - exiting"
    exit 1
fi

prog="portmap"

# Check that networking is up.
if [ "$NETWORKING" = "no" ]; then
	exit 0
fi

[ -f /sbin/portmap ] || exit 0

[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0

start() {
        echo -n $"Starting $prog: "
        daemon portmap $PMAP_ARGS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/portmap
	return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc portmap
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/portmap
	return $RETVAL
}

restart() {
  	pmap_dump > /var/run/portmap.state
	stop
	start
	pmap_set < /var/run/portmap.state
	rm -f /var/run/portmap.state
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status portmap
	;;
  restart|reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/portmap ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	exit 1
esac

exit $?
                                                                                                                                                                           Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/                                          0000777 0000000 0000000 00000000000 11524350231 022367  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/network                                   0000755 0000000 0000000 00000020101 11524350226 024000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 0
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

# Even if IPX is configured, without the utilities we can't do much
[ ! -x /sbin/ipx_internal_net -o ! -x /sbin/ipx_configure ] && IPX=

# Even if VLAN is configured, without the utility we can't do much
[ ! -x /sbin/vconfig ] && VLAN=

CWD=`pwd`
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')

rc=0
# See how we were called.
case "$1" in
  start)
  	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ "$NETWORKING_IPV6" = "yes" ]; then
		if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
			/etc/sysconfig/network-scripts/init.ipv6-global start pre
		fi
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$IPX" in
	  yes|true)
	    /sbin/ipx_configure --auto_primary=$IPXAUTOPRIMARY \
				   --auto_interface=$IPXAUTOFRAME
	    if [ "$IPXINTERNALNETNUM" != "0" ]; then
	       /sbin/ipx_internal_net add $IPXINTERNALNETNUM $IPXINTERNALNODENUM
	    fi
	    ;;
	esac

	case "$VLAN" in
	  yes)
	    if [ -d /proc/net/vlan ] || modprobe 8021q >/dev/null 2>&1 ; then
		test -z "$VLAN_NAME_TYPE" && VLAN_NAME_TYPE=DEV_PLUS_VID_NO_PAD
		action $"Setting 802.1Q VLAN parameters: " /sbin/vconfig set_name_type "$VLAN_NAME_TYPE"
	    else
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	vpninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "${DEVICE##cipcb}" != "$DEVICE" ] ; then
			vpninterfaces="$vpninterfaces $i"
			continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi
		if [ "$TYPE" = "IPSEC" ]; then
			vpninterfaces="$vpninterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		rc=$((rc+$?))
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces $vpninterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		rc=$((rc+$?))
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ "$NETWORKING_IPV6" = "yes" ]; then
 		if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 			/etc/sysconfig/network-scripts/init.ipv6-global start post
 		fi
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" =~ "^nfs" ]] || [[ "$rootopts" =~ "_netdev|_rnetdev" ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=`LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts`
		SMBMTAB=`LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts`
		NCPMTAB=`LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts`
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
 	# IPv6 hook (pre IPv4 stop)
 	if [ "$NETWORKING_IPV6" = "yes" ]; then
 		if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 			/etc/sysconfig/network-scripts/init.ipv6-global stop pre
 		fi
 	fi
 
	vlaninterfaces=""
	vpninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "${DEVICE##cipcb}" != "$DEVICE" ] ; then
			vpninterfaces="$vpninterfaces $i"
			continue
		fi
		if [ "$TYPE" = "IPSEC" ]; then
			vpninterfaces="$vpninterfaces $i"
			continue
		fi
		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $vpninterfaces $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   rc=$((rc+$?))
		fi
		)
	done

	case "$IPX" in
	  yes|true)
	    if [ "$IPXINTERNALNETNUM" != "0" ]; then
	       /sbin/ipx_internal_net del
	    fi
	    ;;
	esac

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	if [ -d /proc/sys/net/ipv4 ]; then
	  if [ -f /proc/sys/net/ipv4/ip_forward ]; then
		if [ `cat /proc/sys/net/ipv4/ip_forward` != 0 ]; then
			action $"Disabling IPv4 packet forwarding: " sysctl -w net.ipv4.ip_forward=0
		fi
	  fi
	  if [ -f /proc/sys/net/ipv4/ip_always_defrag ]; then
	        if [ `cat /proc/sys/net/ipv4/ip_always_defrag` != 0 ]; then
		        action $"Disabling IPv4 automatic defragmentation: " sysctl -w net.ipv4.ip_always_defrag=0
		fi
	  fi
	fi

	# IPv6 hook (post IPv4 stop)
	if [ "$NETWORKING_IPV6" = "yes" ]; then
		if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
			/etc/sysconfig/network-scripts/init.ipv6-global stop post
		fi
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload)
        cd "$CWD"
	$0 stop
	$0 start
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|status}"
        exit 1
esac

exit $rc
                                                                                                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/cups-config-daemon                        0000755 0000000 0000000 00000000453 11524350223 025772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# cups-config-daemon:   Cups configuration daemon (obsolete)
#
# chkconfig: - 98 02 
# description: cups-config-daemon is obsolete\
#              This script just avoids that the postun script\
#              of hal-cups-utils < 0.6.0 fails 

echo cups-config-daemon is obsolete
exit 0
                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/saslauthd                                 0000755 0000000 0000000 00000003214 11524350230 024300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon.
#
# chkconfig: - 95 05
# description: saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd

# Ugh. Switch to a specific copy of saslauthd if there's one with $MECH
# in its name, in case it wasn't included in the base cyrus-sasl package
# because it would have dragged in too many undesirable dependencies.
if test -x ${path}.${MECH} ; then
	path=/usr/sbin/saslauthd.$MECH
fi

start() {
	echo -n $"Starting $prog: "
	daemon $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $path
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

rh_status_q() {
	status $prog >/dev/null 2>&1
}            

case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  status)
	status $path
	;;
  condrestart)
  	[ -f /var/lock/subsys/$prog ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}"
	exit 1
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/messagebus                                0000755 0000000 0000000 00000003433 11524350226 024456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85 
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $processname
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/mcstrans                                  0000755 0000000 0000000 00000003572 11524350225 024155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# mcstransd        This starts and stops mcstransd
#
# chkconfig: 2345 08 87
# description: This starts the SELinux Context Translation System Daemon
#
# processname: /sbin/mcstransd
# pidfile: /var/run/mcstransd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="mcstransd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

# If selinux is not enabled, return success
test -x /usr/sbin/selinuxenabled && /usr/sbin/selinuxenabled || exit 0

RETVAL=0

start(){
	test -x /sbin/mcstransd  || exit 5
	echo -n $"Starting $prog: "
	if status $prog > /dev/null; then
		echo -n $"$prog: already running"
		failure
		echo
		return 1
	fi

	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
        	touch /var/lock/subsys/mcstrans
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/mcstrans
	return $RETVAL
}

reload(){
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/mcstrans ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload)
	reload
	;;
    condrestart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|rotate}"
	RETVAL=3
esac

exit $RETVAL
                                                                                                                                      Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/autobench                                 0000755 0000000 0000000 00000005063 11524350222 024265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/atd                                       0000755 0000000 0000000 00000002404 11524350222 023061  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/atd
#
# Starts the at daemon
#
# chkconfig: 345 95 5
# description: Runs commands scheduled by the at command at the time \
#    specified when at was run, and runs batch commands when the load \
#    average is low enough.
# processname: atd

# Source function library.
. /etc/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/atd ] && . /etc/sysconfig/atd

test -x /usr/sbin/atd || exit 0

RETVAL=0

#
#	See how we were called.
#

prog="atd"

start() {
	# Check if atd is already running
	if [ ! -f /var/lock/subsys/atd ]; then
	    echo -n $"Starting $prog: "
	    daemon /usr/sbin/atd $OPTS && success || failure
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/atd
	    echo
	fi
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc /usr/sbin/atd
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/atd
	echo
        return $RETVAL
}


restart() {
	stop
	start
}	

reload() {
	restart
}	

status_at() {
 	status /usr/sbin/atd
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload|restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/atd ]; then
	    restart
	fi
	;;
status)
	status_at
	;;
*)
	echo $"Usage: $0 {start|stop|restart|condrestart|status}"
	exit 1
esac

exit $?
exit $RETVAL
                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/auditd                                    0000755 0000000 0000000 00000006400 11524350222 023563  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/kudzu                                     0000755 0000000 0000000 00000002576 11524350225 023470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# kudzu		This scripts runs the kudzu hardware probe.
#
# chkconfig: 345 05 95
# description: 	This runs the hardware probe, and optionally configures \
#		changed hardware.

# Source function library.
. /etc/init.d/functions

KUDZU_ARGS=

# Do we want to do a safe probe?
. /etc/sysconfig/kudzu

if [ "$SAFE" != "no" ]; then
	KUDZU_ARGS="-s"
fi

RETVAL=$?

case "$1" in
 start)
	echo -n $"Checking for hardware changes"
	rm -f /var/run/Xconfig
	rm -f /var/run/Xconfig-failed

        # Have a 30 second timeout.
 	/sbin/kudzu $KUDZU_ARGS
	RETVAL=$?
	if [ "$RETVAL" -eq 0 ]; then
  	   action "" /bin/true
	else
	   action "" /bin/false
	fi

	# We don't want to run this on random runlevel changes.
	touch /var/lock/subsys/kudzu
	# However, if they did configure X and want runlevel 5, let's
	# switch to it...
	if [ -f /var/run/Xconfig ]; then
	    grep -q "^id:5:initdefault:" /etc/inittab && telinit 5
	    rm -f /var/run/Xconfig
	fi
	# If X configuration failed, give them a sane default.
	if [ -f /var/run/Xconfig-failed ]; then
	    telinit 3
	    rm -f /var/run/Xconfig-failed
	fi
	;;
 status)
 	base=kudzu
 	if [ -f /var/lock/subsys/kudzu ]; then
	  echo $"${base} has run"
	  exit 0
	fi
	echo $"${base} is stopped"
	exit 3
	;;
 stop)
 	# Do not re-run without user intervention
 	# rm -f /var/lock/subsys/kudzu
 	;;
 *)
 	echo $"Usage: $0 {start|stop}"
	exit 1
	;;
esac

exit $RETVAL
                                                                                                                                  Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/avahi-dnsconfd                            0000755 0000000 0000000 00000003440 11524350223 025177  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# avahi-daemon:       Starts the Avahi dns configuration daemon
#
# chkconfig: - 98 02
# description: avahi-dnsconfd connects to a running avahi-daemon and runs  the  script \
#       /etc/avahi/dnsconf.action for each unicast DNS server that is announced \
#       on the local LAN. This is useful for configuring unicast DNS servers in \
#       a DHCP-like fashion with mDNS.
# processname: avahi-dnsconfd
# config: 

OTHER_AVAHI_OPTS=""

# Source function library.
. /etc/init.d/functions

. /etc/sysconfig/network

# Check that networking is configured.
[ ${NETWORKING} = "no" ] && exit 0

AVAHI_BIN=/usr/sbin/avahi-dnsconfd
test -x $AVAHI_BIN || exit 5

LOCKFILE=/var/lock/subsys/avahi-dnsconfd

start() {
	echo -n $"Starting Avahi DNS daemon... "
        $AVAHI_BIN -D
	RETVAL=$?
	if [ $RETVAL = 0 ]; then
		touch $LOCKFILE
		success $"$base startup"
	else
		failure $"$base startup"
	fi
	echo
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi DNS daemon: "
        $AVAHI_BIN -k
	RETVAL=$?
	[ $RETVAL = 0 ] && success $"$base shutdown" || failure $"$base shutdown"
	rm -f $LOCKFILE
	echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi DNS daemon... "
        $AVAHI_BIN -r
	RETVAL=$?
	[ $RETVAL = 0 ] && success $"$base startup" || failure $"$base startup"
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        $AVAHI_BIN -c
        RETVAL=$?
        [ $RETVAL = 0 ] && echo $"Avahi DNS daemon is running" || echo $"Avahi DNS daemon is not running"
	;;
  restart)
	restart
	;;
  reload)
        reload 
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 1
	;;
esac

exit $RETVAL

                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/irqbalance                                0000755 0000000 0000000 00000004221 11524350225 024414  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# irqbalance       Start/Stop irq balancing daemon
#
# chkconfig: 2345 13 87
# description: The irqbalance daemon will distribute interrupts across  \
#              the cpus on a multiprocessor system with the purpose of \
#              spreading the load. \
# processname: irqbalance


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 4 


prog="irqbalance"

# Check that networking is up.
if [ "$NETWORKING" = "no" ]
then
	exit 1 
fi

[ -f /usr/sbin/irqbalance ] || exit 5

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
	export ONESHOT=$ONESHOT
	export IRQBALANCE_BANNED_INTERRUPTS=$IRQBALANCE_BANNED_INTERRUPTS
	export IRQBALANCE_BANNED_CPUS=$IRQBALANCE_BANNED_CPUS
        if [ -f /var/lock/irqbalance ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        if [ $RETVAL -eq 0 ]; then
                if [ -n "$ONESHOT" ]; then
                        touch /var/lock/subsys/irqbalance
                else
                        touch /var/lock/irqbalance
                fi
        fi
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        echo
        rm -f /var/lock/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/acpid                                     0000755 0000000 0000000 00000003036 11524350222 023373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	echo -n $"Starting acpi daemon: "	
	daemon /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	echo
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}

restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}


case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	restart
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/iscsid                                    0000755 0000000 0000000 00000003537 11524350225 023602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

# Source function library.
. /etc/init.d/functions

PATH=/sbin:/bin:/usr/sbin:/usr/bin

RETVAL=0

start()
{
	echo -n $"Starting iSCSI daemon: "
	modprobe -q cxgb3i
	modprobe -q bnx2i
	modprobe -q iscsi_tcp
	modprobe -q ib_iser
	modprobe -q be2iscsi
	daemon brcm_iscsiuio
	daemon iscsid
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] || return

	touch /var/lock/subsys/iscsid

	success
	echo
}

stop()
{
	rm -f /var/lock/subsys/iscsid

        # If this is a final shutdown/halt, do nothing since
        # we may need iscsid for as long as possible (halt script kills
	# us at the last second)
        if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
                success
                return
        fi

        # don't turn off iscsi if root is possibly on a iscsi disk
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
        if [[ "$rootopts" =~ "_netdev" ]] ; then
                echo $"Can not shutdown iSCSI. Root is on a iSCSI disk."
                exit 1
        fi

	echo -n $"Stopping iSCSI daemon: "

	iscsiadm -k 0
	echo

	killproc brcm_iscsiuio
	rm -f /var/run/brcm_iscsiuio.pid

	# only remove the iscsi drivers when offload is used
	rmmod be2iscsi 2>/dev/null

	rmmod bnx2i 2>/dev/null
	rmmod cnic 2>/dev/null

	rmmod cxgb3i 2>/dev/null

	modprobe -r ib_iser 2>/dev/null
	modprobe -r iscsi_tcp 2>/dev/null
}

restart()
{
	stop
	start
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	restart)
	        stop
		start
		;;
	status)
		status iscsid
		RETVAL=$?
		;;
        condrestart)
	        [ -f /var/lock/subsys/iscsid ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart}"
		exit 1
esac

exit $RETVAL
                                                                                                                                                                 Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/nscd                                      0000755 0000000 0000000 00000004725 11524350227 023255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    secure=""
#   for table in passwd group hosts
#   do
#   	if egrep -q '^'$table':.*nisplus' /etc/nsswitch.conf; then
#   	    /usr/lib/nscd_nischeck $table || secure="$secure -S $table,yes"
#   	fi
#   done
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $secure $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ -e /var/lock/subsys/nscd ] && restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
	killproc /usr/sbin/nscd -HUP
	RETVAL=$?
	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                           Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/mdmpd                                     0000755 0000000 0000000 00000003115 11524350226 023416  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmdp		This starts, stops, and reloads the mdmpd-based
#		multipath device monitoring and management facility
#
# chkconfig: - 15 85
# description: multipath device monitoring and management
#

# Copyright 2002 Red Hat, Inc.

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0

prog=mdmpd

# Source function library.
. /etc/rc.d/init.d/functions

# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
#[ -f /etc/mdadm.conf ] || exit 0
#grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || exit 0


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|condrestart}"
    RETVAL=1
}


start ()
{
    ulimit -S -c 0 >/dev/null 2>&1
    # clean up in case we went down unexpectedly
    rm -f /var/run/$prog/*
    echo -n $"Starting $prog: "
    daemon mdmpd
    # hack: wait for mdadm to die, assume success if it doesn't die quickly
    usleep 100000
    pid=`pidof -o $$ -o $PPID -o %PPID -x $prog`
    if [ -n "$pid" ] ; then
	success $"mdmpd"
        touch /var/lock/subsys/$prog
	echo "$pid" > /var/run/$prog.pid
	RETVAL=0
    else
	failure $"mdmpd"
	RETVAL=1
    fi
    echo
}

stop ()
{
    echo -n $"Stopping $prog: "
    killproc $prog
    echo
    rm -f /var/run/$prog.pid
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart
}


case "$1" in
    start) start ;;
    stop) stop ;;
    status) status $prog ;;
    restart|reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/rpcidmapd                                 0000755 0000000 0000000 00000004030 11524350230 024250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# Authors:	Chuck Lever <cel@netapp.com>
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
LOCKFILE=/var/lock/subsys/rpcidmapd
prog="rpc.idmapd"

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {	
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condstart|condrestart|status}"
	RETVAL=3
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/nfs                                       0000755 0000000 0000000 00000011074 11524350226 023106  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 60 20
# description: NFS is a popular protocol for file sharing across TCP/IP \
#              networks. This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }
	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Load preload module so arguments to rpc.nfsd will take effect
	[ -n "$RPCNFSDARGS" -a "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}

	action $"Starting NFS services: " /usr/sbin/exportfs -r

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL
	touch /var/lock/subsys/nfs

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		RETVAL=$?
		echo
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
	else
		action $"Shutting down NFS services: " /bin/false
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfs
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	status nfsd
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
	fi
	RETVAL=$?
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfs
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfs ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfs ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfs ] && {
		$0 stop
		$0 start
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|condrestart}"
	RETVAL=3
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/readahead_later                           0000755 0000000 0000000 00000001642 11524350230 025400  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# readahead:	Prereads programs required for startup into memory
#
# chkconfig: 5 96 99
# description:  This service causes the programs used during startup \
#		to be loaded into memory before they are needed,\
#		thus improving startup performance 
#
#

# Sanity checks.
[ -x /usr/sbin/readahead ] || exit 0

# Check for > 384 MB
free -m | gawk '/Mem:/ {exit ($2 >= 384)?0:1}' || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

start() {
    echo -n $"Starting background readahead: "
    FILES=$( ls /etc/readahead.d/*.later )
    /usr/sbin/readahead $FILES >/dev/null &
    echo_success
    echo
}


stop() {
   /bin/true
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        ;;
    restart)
	stop
	start
	;;
    condrestart)
	;;
    reload)
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	;;
esac
exit $RETVAL
                                                                                              Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/dund                                      0000755 0000000 0000000 00000001744 11524350223 023252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# dund:		Bluetooth Dial-Up-Networking Daemon.
#
# chkconfig:	- 26 89
# description:	Bluetooth Dial-Up-Networking Daemon. Provides PPP over RFCOMM \
#		services.
#

# Source function library.
. /etc/rc.d/init.d/functions

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

[ "${NETWORKING}" = "yes" ] || exit 0

[ -r /etc/sysconfig/dund ] && . /etc/sysconfig/dund

start() 
{
	[ -z "$DUNDARGS" ] && exit 0

        echo -n $"Starting dund: "
        daemon /usr/bin/dund $DUNDARGS

	touch /var/lock/subsys/dund
        echo
}

stop() 
{
        echo -n $"Shutting down dund: "
	/usr/bin/dund -K
	killproc dund

	rm -f  /var/lock/subsys/dund
        echo
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  restart|reload)
	stop
	start
	;;
  condrestart)
	[ -e /var/lock/subsys/dund ] && (stop; start)
	;;
  status)
  	status dund
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|condrestart}"
        exit 1
esac

exit 0
                            Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/crond                                     0000755 0000000 0000000 00000003560 11524350223 023423  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.
# processname: crond
# config: /etc/crontab
# pidfile: /var/run/crond.pid

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/crond
t=${CRON_VALIDATE_MAILRCPTS:-UNSET}
[ "$t" != "UNSET" ] && export CRON_VALIDATE_MAILRCPTS="$t"
 
# See how we were called.
  
prog="crond"

start() {
	echo -n $"Starting $prog: "	
        if [ -e /var/lock/subsys/crond ]; then
	    if [ -e /var/run/crond.pid ] && [ -e /proc/`cat /var/run/crond.pid` ]; then
		echo -n $"cannot start crond: crond is already running.";
		failure $"cannot start crond: crond already running.";
		echo
		return 1
	    fi
	fi
	daemon crond $CRONDARGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/crond;
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
        if [ ! -e /var/lock/subsys/crond ]; then
	    echo -n $"cannot stop crond: crond is not running."
	    failure $"cannot stop crond: crond is not running."
	    echo
	    return 1;
	fi
	killproc crond
	RETVAL=$?
	echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/crond;
	return $RETVAL
}	

rhstatus() {
	status crond
}	

restart() {
  	stop
	start
}	

reload() {
	echo -n $"Reloading cron daemon configuration: "
	killproc crond -HUP
	RETVAL=$?
	echo
	return $RETVAL
}	

case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  restart)
  	restart
	;;
  reload)
  	reload
	;;
  status)
  	rhstatus
	;;
  condrestart)
  	[ -f /var/lock/subsys/crond ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}"
	exit 1
esac
                                                                                                                                                Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/ip6tables                                 0000755 0000000 0000000 00000016567 11524350224 024223  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"/sbin/$IP6TABLES does not exist."; warning; echo
    exit 0
fi

if lsmod 2>/dev/null | grep -q ipchains ; then
    echo -n $"ipchains and $IP6TABLES can not be used together."; warning; echo
    exit 1
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=`lsmod | awk "/^${mod}/ { print \\\$4; }" | tr ',' ' '` \
	|| ref=`lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1`

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	let ret+=$?;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ -e "$PROC_IP6TABLES_NAMES" ] || return 1

    # Check if firewall is configured (has tables)
    tables=`cat $PROC_IP6TABLES_NAMES 2>/dev/null`
    [ -z "$tables" ] && return 1

    echo -n $"Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $tables; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 1

    # Check if firewall is configured (has tables)
    tables=`cat $PROC_IP6TABLES_NAMES 2>/dev/null`
    [ -z "$tables" ] && return 1

    echo -n $"Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ -f "$IP6TABLES_DATA" ] || return 1

    echo -n $"Applying $IP6TABLES firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"Loading additional $IP6TABLES modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ -e "$PROC_IP6TABLES_NAMES" ] || return 1

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"Unloading $IP6TABLES modules: "
	ret=0
	rmmod_r ${IPV}_tables
	let ret+=$?;
	rmmod_r ${IPV}_conntrack
	let ret+=$?;
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 1

    # Check if firewall is configured (has tables)
    tables=`cat $PROC_IP6TABLES_NAMES 2>/dev/null`
    [ -z "$tables" ] && return 1

    echo -n $"Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=`/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX` \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=`stat -c '%s' $TMP_FILE` && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    tables=`cat $PROC_IP6TABLES_NAMES 2>/dev/null`

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable module is loaded
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$tables" ]; then
	echo $"Firewall is stopped."
	return 1
    fi

    # Check if firewall is configured (has tables)
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"Firewall is not configured. "
	return 1
    fi
    if [ -z "$tables" ]; then
	echo $"Firewall is not configured. "
	return 1
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $tables; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}

case "$1" in
    start)
	stop
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    condrestart)
	[ -e "$VAR_SUBSYS_IP6TABLES" ] && restart
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|restart|condrestart|status|panic|save}"
	exit 1
	;;
esac

exit $RETVAL
                                                                                                                                         Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/firstboot                                 0000755 0000000 0000000 00000003655 11524350223 024336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# firstboot:         Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description:       Firstboot is a druid style program that runs on the first time \
#                    a machine is booted after install.  It checks for the existence \
#                    of an /etc/sysconfig/firstboot file.  If it doesn't find the file, \
#                    then the firstboot program needs to run.  If it finds the file, \
#                    firstboot will not be run.
#                    If /etc/reconfigSys exists, run the reconfiguration
#		     program and remove /etc/reconfigSys when done.
#
#                    Also will run if 'reconfig' is on the kernel cmdline.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot
LOCKFILE=/var/lock/subsys/firstboot

[ -z "$HOME" ] && export HOME=/

case "$1" in
 start)
	action=run

	[ -f "$LOCKFILE" ] && exit 0

	if [ -f "$FILENAME" ] && ! grep -q '^RUN_FIRSTBOOT=YES' "$FILENAME"; then
	    action=skip
	fi

	if grep -i reconfig /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
	    action=reconfig
	fi

	[ $action = skip ] && exit 0

	runlevel=$(set -- $(runlevel); eval "echo \$$#" )
	if grep -q "^id:5:initdefault:" /etc/inittab && [ "x$runlevel" = x5 ]; then
	    . /etc/sysconfig/i18n
	    if [ ! -f /etc/X11/xorg.conf -a ! -f /etc/X11/XF86Config ] ; then
		echo -n $"X is not configured.  Running system-config-display"
		/usr/bin/system-config-display
		echo -n $"X is now configured.  Starting Setup Agent"
	    fi
	fi

	if [ $action = reconfig ]; then
	    echo -n $"Running system reconfiguration tool"
	    /usr/sbin/firstboot --reconfig
	    exit 0
	fi

	touch $LOCKFILE
	/usr/sbin/firstboot
	RETVAL=$?

	if [ "$RETVAL" -eq 0 ]; then
	    action "" /bin/true
	else
	    action "" /bin/false
	fi

	exit 0
	;;

 stop)
   rm -f $LOCKFILE
   ;;

 *)
   echo $"Usage: $0 {start|stop}"
   RETVAL=1
esac

exit $RETVAL
                                                                                   Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/autofs                                    0000755 0000000 0000000 00000005754 11524350222 023625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rc.autofs.in,v 1.63 2006/03/30 02:09:51 raven Exp $
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand

#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS 
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/autofs
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/autofs
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	stop
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	*)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 1;
		;;
esac

exit $?

                    Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/sshd                                      0000755 0000000 0000000 00000006526 11524350231 023263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Init file for OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: OpenSSH server daemon
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ ! "$RETVAL" = 0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	# Create keys if necessary
	do_rsa1_keygen
	do_rsa_keygen
	do_dsa_keygen
	
	cp -af /etc/localtime /var/empty/sshd/etc

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ "$RETVAL" = 0 ] && touch /var/lock/subsys/sshd
	echo
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    killall $prog 2>/dev/null
	fi
	[ "$RETVAL" = 0 ] && rm -f /var/lock/subsys/sshd
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	restart)
		stop
		start
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/sshd ] ; then
			do_restart_sanity_check
			if [ "$RETVAL" = 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			fi
		fi
		;;
	status)
		status -p $PID_FILE openssh-daemon
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}"
		RETVAL=1
esac
exit $RETVAL
                                                                                                                                                                          Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/libvirtd                                  0000755 0000000 0000000 00000005247 11524350225 024143  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: libvirtd
# Should-Start: xend
# Default-Start: 3 4 5
# Short-Description: daemon for libvirt virtualization API
# Description: This is a daemon for managing guest instances
#              and libvirt virtual networks
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirtd:   guest and virtual network management daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon for managing guest instances
#               and libvirt virtual networks
#               See http://libvirt.org
#
# processname: libvirtd
# pidfile: /var/run/libvirtd.pid
#

# Sanity checks.
[ -x /usr/sbin/libvirtd ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

SERVICE=libvirtd
PROCESS=libvirtd
OLD_PROCESS=libvirt_qemud

LIBVIRTD_CONFIG=
LIBVIRTD_ARGS=
KRB5_KTNAME=/etc/libvirt/krb5.tab

test -f /etc/sysconfig/libvirtd && . /etc/sysconfig/libvirtd

LIBVIRTD_CONFIG_ARGS=
if [ -n "$LIBVIRTD_CONFIG" ]
then
    LIBVIRTD_CONFIG_ARGS="--config $LIBVIRTD_CONFIG"
fi

RETVAL=0

start() {
    echo -n $"Starting $SERVICE daemon: "
    mkdir -p /var/cache/libvirt
    rm -rf /var/cache/libvirt/*
    KRB5_KTNAME=$KRB5_KTNAME daemon --check $SERVICE $PROCESS --daemon $LIBVIRTD_CONFIG_ARGS $LIBVIRTD_ARGS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SERVICE
}

stop() {
    echo -n $"Stopping $SERVICE daemon: "

    if [ "$(pidofproc $OLD_PROCESS)" != "" ]; then
        killproc $OLD_PROCESS
        RETVAL=$?
    else
        killproc $PROCESS
        RETVAL=$?
    fi
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$SERVICE
        rm -f /var/run/$SERVICE.pid
	rm -rf /var/cache/libvirt/*
    fi
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading $SERVICE configuration: "

    if [ "$(pidofproc $OLD_PROCESS)" != "" ]; then
        killproc $OLD_PROCESS -HUP
        RETVAL=$?
    else
        killproc $PROCESS -HUP
        RETVAL=$?
    fi
    echo
    return $RETVAL
}

# See how we were called.
case "$1" in
    start|stop|restart|reload)
        $1
        ;;
    status)
        if [ "$(pidofproc $OLD_PROCESS)" != "" ]; then
            status $OLD_PROCESS
            RETVAL=$?
	else
            status $PROCESS
            RETVAL=$?
	fi
        ;;
    force-reload)
        reload
	;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$SERVICE ] && restart || :
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/avahi-daemon                              0000755 0000000 0000000 00000003525 11524350222 024647  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# avahi-daemon:       Starts the Avahi Daemon
#
# chkconfig: 345 98 02
# description: This is a daemon which runs on client machines to perform \
#              Zeroconf service discovery on a network. avahi-daemon must be \
#              running on systems  that use Avahi for service discovery. \
#              Avahi-daemon should not be running otherwise.
# processname: avahi-daemon
# config: 

OTHER_AVAHI_OPTS=""

# Source function library.
. /etc/init.d/functions

. /etc/sysconfig/network

# Check that networking is configured.
[ ${NETWORKING} = "no" ] && exit 0

AVAHI_BIN=/usr/sbin/avahi-daemon
test -x $AVAHI_BIN || exit 5

LOCKFILE=/var/lock/subsys/avahi-daemon

base=${0##*/}

start() {
	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        $AVAHI_BIN -D
	RETVAL=$?
	if [ $RETVAL = 0 ]; then
		touch $LOCKFILE
		success $"$base startup"
	else
		failure $"$base startup"
	fi
	echo
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        $AVAHI_BIN -k
	RETVAL=$?
	[ $RETVAL = 0 ] && success $"$base shutdown" || failure $"$base shutdown"
	rm -f $LOCKFILE
	echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        $AVAHI_BIN -r
	RETVAL=$?
	[ $RETVAL = 0 ] && success $"$base reload" || failure $"$base reload"
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        $AVAHI_BIN -c
    	RETVAL=$?
    	[ $RETVAL = 0 ] && echo $"Avahi daemon is running" || echo $"Avahi daemon is not running"
	;;
  restart)
	restart
	;;
  reload)
        reload 
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 1
esac

exit $RETVAL

                                                                                                                                                                           Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/iscsi                                     0000755 0000000 0000000 00000002537 11524350225 023435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup
#
# Source function library.
. /etc/init.d/functions

PATH=/sbin:/bin:/usr/sbin:/usr/bin

RETVAL=0

start()
{

	status iscsid
	RETVAL=$?

	if [ $RETVAL -ne 0 ]; then
		/etc/init.d/iscsid start
	fi

	echo -n $"Setting up iSCSI targets: "
	# this script is normally called from startup so log into
	# nodes marked node.startup=automatic
	iscsiadm -m node --loginall=automatic
	touch /var/lock/subsys/iscsi
	success
	echo
}

stop()
{
	rm -f /var/lock/subsys/iscsi

	# If this is a final shutdown/halt, do nothing since
	# lvm/dm, md, power path, etc do not always handle this
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		success
		return
	fi

	# don't turn off iscsi if root is possibly on a iscsi disk
	rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	if [[ "$rootopts" =~ "_netdev" ]] ; then
		echo $"Can not shutdown iSCSI. Root is on a iSCSI disk."
		exit 1
	fi

	iscsiadm -m node --logoutall=all
	/etc/init.d/iscsid stop
	success
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	restart)
		stop
		start
		;;
	status)
		status iscsid
		RETVAL=$?
		;;
	condrestart)
		[ -f /var/lock/subsys/iscsi ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart}"
		exit 1
esac
exit $RETVAL
                                                                                                                                                                 Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/ypbind                                    0000755 0000000 0000000 00000006676 11524350231 023615  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ypbind:       Starts the ypbind Daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf

OTHER_YPBIND_OPTS=""

# Source function library.
. /etc/init.d/functions

. /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

[ -z "$NISTIMEOUT" ] && NISTIMEOUT=20

# Check that networking is configured.
[ ${NETWORKING} = "no" ] && exit 0

selinux_on() {
        [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
	echo $"Turning on allow_ypbind SELinux boolean"
        setsebool allow_ypbind=1
}

selinux_off() {
        [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
	allow_ypbind=0
	.  /etc/selinux/config
	if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
		. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
	fi
	if [ $allow_ypbind == 0 ]; then
		echo $"Turning off allow_ypbind SELinux boolean"
		setsebool allow_ypbind=$allow_ypbind
	fi
}

start() {
	DOMAINNAME=`domainname`
	if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	   if [ -n "$NISDOMAIN" ]; then
		action $"Setting NIS domain name $NISDOMAIN: " domainname $NISDOMAIN
	   else
		action $"Error: NIS domain name is not set." false
	        exit 1
	   fi
	fi
	#/etc/rpc check
	grep ypbind /etc/rpc > /dev/null 2>&1
	if [ $? -ne 0 ]; then
		action $"Error: Missing ypbind entry in /etc/rpc." false
		exit 1
	fi

	selinux_on
	echo -n $"Binding to the NIS domain: "
	daemon ypbind $OTHER_YPBIND_OPTS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
	    selinux_off
	    return $RETVAL
	fi
	# the following fixes problems with the init scripts continuing
	# even when we are really not bound yet to a server, and then things
	# that need NIS fail.
	echo -n $"Listening for an NIS domain server."
	for (( times = 1; times < $NISTIMEOUT; times++ )); do
	    /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind && ypwhich > /dev/null 2>&1
	    RETVAL=$?
	    if [ $RETVAL -eq 0 ]; then
		break;
	    fi
	    sleep 1
	    echo -n "."
	done
	if [ $RETVAL -eq 0 ]; then
	    logger -t ypbind "bound to NIS server `ypwhich 2> /dev/null`"
	    touch /var/lock/subsys/ypbind
	else
	    killproc ypbind
	    # if  we used brute force (like kill -9) we don't want those around
	    if [ x$(domainname) != x ] ; then
		rm -f /var/yp/binding/$(domainname)*
	    fi
	    failure "attempting to contact yp server"
	    selinux_off
	fi
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down NIS services: "
	killproc ypbind
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
	  rm -f /var/lock/subsys/ypbind
	  # if  we used brute force (like kill -9) we don't want those around
	  if [ x$(domainname) != x ] ; then
	    rm -f /var/yp/binding/$(domainname)*
	  fi
	fi
	echo
       	#selinux_off
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status ypbind
	;;
  restart|reload)
	restart
	;;
  condrestart)
        [ -f /var/lock/subsys/ypbind ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 1
esac

exit $?
                                                                  Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/psacct                                    0000755 0000000 0000000 00000002006 11524350227 023571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	action $"Starting process accounting: " /sbin/accton $ACCTFILE
	touch /var/lock/subsys/psacct
}

stop() {
	action $"Shutting down process accounting: " /sbin/accton
	rm -f /var/lock/subsys/psacct
}
# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e /var/lock/subsys/psacct ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 1
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/readahead_early                           0000755 0000000 0000000 00000001643 11524350227 025414  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# readahead:	Prereads programs required for startup into memory
#
# chkconfig: 2345 4 99
# description:  This service causes the programs used during startup \
#		to be loaded into memory before they are needed,\
#		thus improving startup performance 
#
#

# Sanity checks.
[ -x /usr/sbin/readahead ] || exit 0

# Check for > 384 MB
free -m | gawk '/Mem:/ {exit ($2 >= 384)?0:1}' || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

start() {
    echo -n $"Starting background readahead: "
    FILES=$( ls /etc/readahead.d/*.early )
    /usr/sbin/readahead $FILES >/dev/null &
    echo_success
    echo
}

stop() {
   /bin/true
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        ;;
    restart)
	stop
	start
	;;
    condrestart)
	;;
    reload)
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	;;
esac
exit $RETVAL
                                                                                             Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/anacron                                   0000755 0000000 0000000 00000002641 11524350222 023735  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# Startup script for anacron
#
# chkconfig: 2345 95 05
# description: Run cron jobs that were left out due to downtime
# pidfile: /var/run/anacron.pid
#
# Source function library.
. /etc/rc.d/init.d/functions

[ -f /usr/sbin/anacron ] || exit 0

prog="anacron"
PIDFILE=/var/run/${prog}.pid
LOCKFILE=/var/lock/subsys/$prog
#
#  NOTE: anacron exits after it has determined it has no more work to do.
#        Hence, its initscript cannot do normal lock file management.
#        The anacron binary now creates its own /var/run/anacron.pid pid file
#        and /var/lock/subsys lock files, and removes them automatically at exit,
#        so at least there will be no more "anacron is dead but subsys locked" 
#        messages.
#

start() {
    echo -n $"Starting $prog: " 
    daemon +19 anacron -s
    RETVAL=$?
    if [ $RETVAL -ne 0 ]; then
	failure;
    fi;
    echo
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -f $PIDFILE ]; then
	killproc anacron
	RETVAL=$?
	if [ $RETVAL -ne 0 ]; then 
	    failure;
	fi;
    else
	RETVAL=1
	failure;
    fi
    echo
    return $RETVAL
}

case "$1" in
	start)
	    start
	    ;;
	
	stop)
	    stop
	    ;;
	
	status)
	    status anacron
	    ;;

	restart)
	    stop
	    start
	    ;;

	condrestart)
	    if [ -f $LOCKFILE ]; then
		stop
		start
	    fi
	    ;;
	
	*)
	    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
	    exit 1

esac

exit $RETVAL
                                                                                               Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/xinetd                                    0000755 0000000 0000000 00000004701 11524350231 023606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

# Check that we are root ... so non-root users stop here
[ `id -u` = 0 ] || exit 1

# Check that networking is up.
[ "${NETWORKING}" = "yes" ] || exit 0

[ -f /usr/sbin/xinetd ] || exit 1
[ -f /etc/xinetd.conf ] || exit 1

RETVAL=0

prog="xinetd"

start(){
    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    echo -n $"Stopping $prog: "
    killproc $prog
    RETVAL=$?
    echo
    rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    [ -e /var/lock/subsys/xinetd ] && restart
    return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
	status $prog
	;;
    restart)
	restart
	;;
    reload)
	reload
	;;
    condrestart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=1
esac

exit $RETVAL
                                                               Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/nfslock                                   0000755 0000000 0000000 00000006346 11524350227 023766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       TCP/IP networks. This service provides NFS file \
#	       locking functionality.
# probe: true

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Start lockd from userland only if kernel <= 2.2.18
OS_RELEASE=`uname --release`
OS_RELEASE_MAJOR=`echo "$OS_RELEASE" | sed 's/\(^[0-9]\)\..*/\1/'`
OS_RELEASE_MINOR=`echo "$OS_RELEASE" | sed 's/\(^[0-9]\)\.\([0-9]*\)\..*/\2/'`
OS_RELEASE_VERSION=`echo "$OS_RELEASE" | sed 's/\(^[0-9]\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`

if [ "$OS_RELEASE_MAJOR" -le 2 -a "$OS_RELEASE_MINOR" -le 2 -a "$OS_RELEASE_VERSION" -le 18 ] ; then
    USERLAND_LOCKD="yes"
else
    USERLAND_LOCKD=
fi

RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	if [ "$USERLAND_LOCKD" ] ; then
    	[ -x /sbin/rpc.lockd ] || exit 5
	fi
	[ -x /sbin/rpc.statd ] || exit 5 

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/nfslock

	# Start daemons.
	if [ "$USERLAND_LOCKD" ]; then
	  echo -n $"Starting NFS locking: "
	  daemon rpc.lockd
	  echo
	else 
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
	[ -n "$LOCKD_TCPPORT" ] && \
		/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
	[ -n "$LOCKD_UDPPORT" ] && \
		/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi  
	echo -n $"Starting NFS statd: "

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/nfslock
    return $RETVAL
}

stop() {
	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/nfslock
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	if [ "$USERLAND_LOCKD" ]; then
	  status lockd
	fi 
	status rpc.statd
	;;
  restart)
        stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfslock ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1; STATD="$?"
	if [ "$USERLAND_LOCKD" ]; then
	   /sbin/pidof lockd >/dev/null 2>&1; LOCKD="$?"
	else
	   LOCKD=0
	fi
	if [ $STATD = 1 -o $LOCKD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart)
  	[ -f /var/lock/subsys/nfslock ] && {
		stop
		start
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|probe|condrestart}"
	RETVAL=3
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/ipmi                                      0000755 0000000 0000000 00000033240 11524350224 023253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#############################################################################
#
# ipmi:		OpenIPMI Driver init script
#
# Authors:	Matt Domsch <Matt_Domsch@dell.com>
#               Chris Poblete <Chris_Poblete@dell.com>
#
# chkconfig: - 13 87
# description: OpenIPMI Driver init script
#
### BEGIN INIT INFO
# Provides: ipmidrv
# Required-Start: $local_fs $remote_fs $syslog
# Required-Stop: $local_fs $remote_fs $syslog
# Default-Start:
# Default-Stop:
# Short-Description: OpenIPMI Driver init script
# Description: OpenIPMI Driver init script
### END INIT INFO
#
# Status return code bits
# no bits set = no errors
# bit 0 set = minimum modules aren't loaded
# bit 1 set = requested feature module isn't loaded
# bit 2 set = /dev/ipmi0 (or /dev/imb if using that instead) doesn't exist
# bit 3 set = /dev/watchdog doesn't exist
# bit 4 set = lockfile doesn't exist
# bit 5 set = modules are loaded even when asked to be unloaded

#
#############################################################################
# for log_success_msg and friends
if [ -r /lib/lsb/init-functions ]; then
# LSB, SLES, ...
    . /lib/lsb/init-functions
elif [ -r /etc/init.d/functions ]; then
# Red Hat / VMware
    . /etc/init.d/functions
    my_log_message()
    {
	ACTION=$1
	shift
	
	case "$ACTION" in
	    success)
		echo -n $*
		success "$*"
		echo
		;;
	    failure)
		echo -n $*
		failure "$*"
		echo
		;;
	    warning)
		echo -n $*
		warning "$*"
		echo
		;;
	    *)
		;;
	esac
    }
    log_success_msg()
    {
	my_log_message success "$*"
    }
    log_failure_msg()
    {
	my_log_message failure "$*"
    }
    log_warning_msg()
    {
	my_log_message warning "$*"
    }
fi

CONFIGFILE=/etc/sysconfig/ipmi
# source config info
[ -r ${CONFIGFILE} ] && . ${CONFIGFILE}

#############################################################################
# GLOBALS
#############################################################################
MODULE_NAME="ipmi"
INTF_NUM=0

IPMI_SMB_MODULE_NAME="ipmi_smb"
IPMI_SI_MODULE_NAME="ipmi_si"
kernel=`uname -r | cut -d. -f1-2`
if [ "${kernel}" == "2.4" ]; then
    IPMI_SMB_MODULE_NAME="ipmi_smb_intf"
    IPMI_SI_MODULE_NAME="ipmi_si_drv"
fi

MODULES_INTERFACES=""
[ "${DEV_IPMI}" = "yes" ] && MODULES_INTERFACES="${MODULES_INTERFACES} ipmi_devintf"
[ "${IPMI_IMB}" = "yes" ] && MODULES_INTERFACES="${MODULES_INTERFACES} ipmi_imb"

MODULES_FEATURES=""
[ "${IPMI_WATCHDOG}" = "yes" ] && MODULES_FEATURES="${MODULES_FEATURES} ipmi_watchdog"
[ "${IPMI_POWEROFF}" = "yes" ] && MODULES_FEATURES="${MODULES_FEATURES} ipmi_poweroff"

MODULES_HW=""
[ "${IPMI_SI}"  = "yes" ] && MODULES_HW="${MODULES_HW} ${IPMI_SI_MODULE_NAME}"
[ "${IPMI_SMB}" = "yes" ] && MODULES_HW="${MODULES_HW} ${IPMI_SMB_MODULE_NAME}"

MODULES_BASE="ipmi_msghandler"
MODULES="${MODULES_INTERFACES} ${MODULES_FEATURES} ${MODULES_HW} ${MODULES_BASE}"

RETVAL=0
LOCKFILE=/var/lock/subsys/ipmi
DEV_IPMI_TIMEOUT=15

UDEV_EXISTS=0
if [ -e /sbin/udev -o -e /sbin/udevd ]; then
    UDEV_EXISTS=1
fi

#############################################################################
# NOTES:
# * /dev/ipmi0 is unconditionally deleted here on ipmi_devintf unload,
#   because SLES9 and RHEL4 kernels don't send a message for udev to delete
#   it for us.
# 
#############################################################################

modules_loaded_verbose()
{
	OnePlusLoaded=0
	OnePlusUnloaded=0
	for m in $@; do
		if /sbin/lsmod | grep $m >/dev/null 2>&1 ; then
			echo "$m module loaded."
			OnePlusLoaded=1
		else
			echo "$m module not loaded."
			OnePlusUnloaded=1
		fi
	done
}

modules_loaded()
{
	OnePlusLoaded=0
	OnePlusUnloaded=0
	for m in $@; do
		if /sbin/lsmod | grep $m >/dev/null 2>&1 ; then
			OnePlusLoaded=1
		else
			OnePlusUnloaded=1
		fi
	done
}

device_node_exists ()
{
	if [ -e "$1" ]; then
		echo "$1 exists."
		return 1
	fi
	echo "$1 does not exist."
	return 0
}

minimum_modules_loaded()
{
        rc_base=1
	rc_hw=1
        modules_loaded_verbose "${MODULES_BASE}"
	[ ${OnePlusLoaded} -eq 0 ] && rc_base=0
	    
	modules_loaded_verbose "${MODULES_HW}"
	[ ${OnePlusLoaded} -eq 0 ] && rc_hw=0
	
	return $((rc_base && rc_hw))
}

#############################################################################

load_si()
{
	if [ "${IPMI_SI}" = "yes" ]; then
		modprobe ${IPMI_SI_MODULE_NAME} > /dev/null 2>&1
		modules_loaded ${IPMI_SI_MODULE_NAME}
		[ ${OnePlusLoaded} -ne 1 ] && RETVAL=$((RETVAL | 1))
	fi
}

load_smb()
{
	if [ "${IPMI_SMB}" = "yes" ]; then
		modprobe ${IPMI_SMB_MODULE_NAME} > /dev/null 2>&1
		modules_loaded ${IPMI_SMB_MODULE_NAME}
		[ ${OnePlusLoaded} -ne 1 ] && RETVAL=$((RETVAL | 1))
	fi
}

load_hw_modules()
{
	load_si
	load_smb
}

start_watchdog_common()
{

	if [ -e /dev/watchdog ]; then
		log_failure_msg "/dev/watchdog already exists "
		RETVAL=$((RETVAL | 8))
		return
	fi
	load_hw_modules
	modprobe ipmi_watchdog ${IPMI_WATCHDOG_OPTIONS} > /dev/null 2>&1
	modules_loaded ipmi_watchdog
	[ ${OnePlusUnloaded} -ne 0 ] &&
		RETVAL=$((RETVAL | 2)) &&
		log_failure_msg &&
		return
	if [ ${UDEV_EXISTS} -eq 0 -a ! -e /dev/watchdog ]; then
		mknod -m 0600 /dev/watchdog c 10 130
		[ $? -ne 0 ] &&
			RETVAL=$((RETVAL | 8)) &&
			log_failure_msg &&
			return
	fi
	log_success_msg
}

start_watchdog_quiet()
{
	[ "${IPMI_WATCHDOG}" != "yes" ] &&
		return
	echo -n $"Starting ipmi_watchdog driver: "
	start_watchdog_common
}

start_watchdog()
{
	echo -n $"Starting ipmi_watchdog driver: "
	[ "${IPMI_WATCHDOG}" != "yes" ] &&
		RETVAL=$((RETVAL | 2)) &&
		log_failure_msg "not configured" &&
		return
	start_watchdog_common
}

stop_watchdog()
{
	echo -n $"Stopping ipmi_watchdog driver: "
	modprobe -q -r ipmi_watchdog > /dev/null 2>&1
	modules_loaded ipmi_watchdog
	if [ ${OnePlusLoaded} -ne 0 ]; then
	    RETVAL=$((RETVAL | 32))
	    log_failure_msg
	else
	    if [ "${IPMI_WATCHDOG}" = "yes" ]; then
		[ ${UDEV_EXISTS} -eq 0 ] && rm -f /dev/watchdog
	    fi
	    log_success_msg
	fi
}

stop_watchdog_quiet()
{
	modprobe -q -r ipmi_watchdog > /dev/null 2>&1
	modules_loaded ipmi_watchdog
	if [ ${OnePlusLoaded} -ne 0 ]; then
	    RETVAL=$((RETVAL | 32))
	else
	    if [ "${IPMI_WATCHDOG}" = "yes" ]; then
		[ ${UDEV_EXISTS} -eq 0 ] && rm -f /dev/watchdog
	    fi
	fi
}

start_powercontrol_common()
{
	local poweroff_opts=""
	load_hw_modules
	if [ "${IPMI_POWERCYCLE}" == "yes" ]; then
	    modinfo ipmi_poweroff 2>/dev/null | grep poweroff_control > /dev/null 2>&1 && \
		poweroff_opts="poweroff_control=2"
	    modinfo ipmi_poweroff 2>/dev/null | grep poweroff_powercycle > /dev/null 2>&1 && \
		poweroff_opts="poweroff_powercycle=1"
	fi
	modprobe ipmi_poweroff "${poweroff_opts}" > /dev/null 2>&1
	modules_loaded ipmi_poweroff
	[ ${OnePlusUnloaded} -ne 0 ] &&
		RETVAL=$((RETVAL | 2)) &&
		log_failure_msg &&
		return
	log_success_msg
}

start_powercontrol_quiet()
{
	[ "${IPMI_POWEROFF}" != "yes" ] &&
		return
	echo -n $"Starting ipmi_poweroff driver: "
	start_powercontrol_common
}

start_powercontrol()
{
	echo -n $"Starting ipmi_poweroff driver: "
	[ "${IPMI_POWEROFF}" != "yes" ] &&
		RETVAL=$((RETVAL | 2)) &&
		log_failure_msg "not configured" &&
		return
	start_powercontrol_common
}

stop_powercontrol()
{
	echo -n $"Stopping ipmi_poweroff driver: "
	modprobe -q -r ipmi_poweroff > /dev/null 2>&1
	modules_loaded ipmi_poweroff
	if [ ${OnePlusLoaded} -ne 0 ]; then
	    RETVAL=$((RETVAL | 32))
	    log_failure_msg
	else
	    log_success_msg
	fi
}

stop_powercontrol_quiet()
{
	modprobe -q -r ipmi_poweroff > /dev/null 2>&1
	modules_loaded ipmi_poweroff
	[ ${OnePlusLoaded} -ne 0 ] && RETVAL=$((RETVAL | 32))
}

#############################################################################
unload_all_ipmi_modules()
{
	stop_watchdog_quiet
	stop_powercontrol_quiet
	for m in ${MODULES}; do
		modprobe -q -r ${m} > /dev/null 2>&1
	done
        # delete interface node ONLY if ipmi_devintf is unloaded
        [ `lsmod | grep -c "ipmi_devintf"` -eq 0 ] &&
	        rm -f "/dev/ipmi${INTF_NUM}"
}

unload_ipmi_modules_leave_features()
{
	for m in ${MODULES_INTERFACES}; do
		modprobe -q -r ${m} > /dev/null 2>&1
	done
        # delete interface node ONLY if ipmi_devintf is unloaded
        [ `lsmod | grep -c "ipmi_devintf"` -eq 0 ] &&
	        rm -f "/dev/ipmi${INTF_NUM}"
	lsmod | egrep -q "ipmi_(poweroff|watchdog)" > /dev/null 2>&1
	if [ "$?" -ne "0" ]; then
		stop_watchdog_quiet
		stop_powercontrol_quiet
		for m in ${MODULES}; do
			modprobe -q -r ${m} > /dev/null 2>&1
		done
	fi
}

#############################################################################
load_ipmi_modules ()
{
	local locdelay
	modprobe ipmi_msghandler > /dev/null 2>&1
	modules_loaded ipmi_msghandler
	[ ${OnePlusLoaded} -ne 1 ] && unload_all_ipmi_modules && RETVAL=$((RETVAL | 1)) && return
	load_hw_modules
	[ $((RETVAL & 1)) -eq 1 ] && unload_all_ipmi_modules && RETVAL=$((RETVAL | 1)) && return

	if [ "${DEV_IPMI}" = "yes" ]; then
		modprobe ipmi_devintf > /dev/null 2>&1
		modules_loaded ipmi_devintf
		RETVAL=$((RETVAL & ~2))
		[ ${OnePlusLoaded} -eq 0 ] && RETVAL=$((RETVAL | 2))
		if [ ${OnePlusLoaded} -eq 1 ]; then
			if [ ${UDEV_EXISTS} -eq 0 ]; then
				DEVMAJOR=`cat /proc/devices | awk '/ipmidev/{print $1}'`
				rm -f /dev/ipmi${INTF_NUM}
				mknod -m 0600 /dev/ipmi${INTF_NUM} c ${DEVMAJOR} 0 || RETVAL=$((RETVAL | 4))
			fi

			# udev can take several seconds to create /dev/ipmi0, 
			# but it happens asynchronously, so delay here
			locdelay=${DEV_IPMI_TIMEOUT}
			while [ ! -e /dev/ipmi${INTF_NUM} -a ${locdelay} -gt 0 ]; do
				locdelay=$((locdelay - 1))
				sleep 1
			done
		fi
	fi

	if [ "${IPMI_IMB}" = "yes" ]; then
		modprobe ipmi_imb > /dev/null 2>&1
		modules_loaded ipmi_imb
		RETVAL=$((RETVAL & ~2))
		[ ${OnePlusLoaded} -eq 0 ] && RETVAL=$((RETVAL | 2))
		if [ ${OnePlusLoaded} -eq 1 ]; then
			DEVMAJOR=`cat /proc/devices | awk '/imb/{print $1}'`
			rm -f /dev/imb
			mknod -m 0600 /dev/imb c ${DEVMAJOR} 0 || RETVAL=$((RETVAL | 4))
		fi
	fi

	# Per Corey Minyard, essentially no one uses ipmi_radisys
	# and we don't want to encourage its further use
	# so it won't be handled here.
	return
}

#############################################################################
start()
{
	echo -n "Starting ${MODULE_NAME} drivers: "
	load_ipmi_modules
	if [ ${RETVAL} -eq 0 ]; then
		touch ${LOCKFILE} && log_success_msg
	else
		if [ $((RETVAL & 1)) -eq 1 ]; then
			log_failure_msg
		else
			touch ${LOCKFILE} && log_warning_msg
		fi
	fi
	start_watchdog_quiet
	start_powercontrol_quiet
}

#############################################################################
stop()
{
	echo -n "Stopping ${MODULE_NAME} drivers: "
	unload_ipmi_modules_leave_features
	modules_loaded ${MODULES_INTERFACES}
	if [ ${OnePlusLoaded} -ne 0 ]; then
		RETVAL=$((RETVAL | 32))
		log_failure_msg "may be in use"
	else
		rm -f ${LOCKFILE}
		log_success_msg
	fi
}

stop_all()
{
	echo -n $"Stopping all ${MODULE_NAME} drivers: "
	unload_all_ipmi_modules
	modules_loaded ${MODULES}
	if [ ${OnePlusLoaded} -ne 0 ]; then
		RETVAL=$((RETVAL | 32))
		log_failure_msg "may be in use"
	else
		rm -f ${LOCKFILE}
		log_success_msg
	fi
}

#############################################################################
restart()
{
	stop_all
	RETVAL=0
	start
}

#############################################################################

status_all()
{
	minimum_modules_loaded
	[ $? -eq 0 ] && RETVAL=$((RETVAL | 1))
	
	modules_loaded_verbose ${MODULES_FEATURES} ${MODULES_INTERFACES}
	[ ${OnePlusUnloaded} -ne 0 ] && RETVAL=$((RETVAL | 2))

	if [ "${DEV_IPMI}" = "yes" ]; then 
	    device_node_exists /dev/ipmi${INTF_NUM}
	    [ $? -eq 0 ] && RETVAL=$((RETVAL | 4))
	fi

	if [ "${IPMI_IMB}" = "yes" ]; then
	    device_node_exists /dev/imb
	    [ $? -eq 0 ] && RETVAL=$((RETVAL | 4))
	fi

	if [ "${IPMI_WATCHDOG}" = "yes" ]; then
	    device_node_exists /dev/watchdog
	    [ $? -eq 0 ] && RETVAL=$((RETVAL | 8))
	fi

	[ ! -e ${LOCKFILE} ] && RETVAL=$((RETVAL | 16))
}

status()
{
	minimum_modules_loaded
	[ $? -eq 0 ] && RETVAL=$((RETVAL | 1))
	
	if [ "${DEV_IPMI}" = "yes" ]; then 
	    modules_loaded_verbose ipmi_devintf
	    [ ${OnePlusLoaded} -eq 0 ] && RETVAL=$((RETVAL | 2))

	    device_node_exists /dev/ipmi${INTF_NUM}
	    [ $? -eq 0 ] && RETVAL=$((RETVAL | 4))
	fi

	if [ "${IPMI_IMB}" = "yes" ]; then
	    device_node_exists /dev/imb
	    [ $? -eq 0 ] && RETVAL=$((RETVAL | 4))
	fi
}

status_watchdog()
{
	minimum_modules_loaded
	[ $? -eq 0 ] && RETVAL=$((RETVAL | 1))

	modules_loaded_verbose ipmi_watchdog
	[ ${OnePlusLoaded} -eq 0 ] && RETVAL=$((RETVAL | 2))

	device_node_exists /dev/watchdog
	[ $? -eq 0 ] && RETVAL=$((RETVAL | 8))
}

status_powercontrol()
{
	minimum_modules_loaded
	[ $? -eq 0 ] && RETVAL=$((RETVAL | 1))

	modules_loaded_verbose ipmi_powercontrol
	[ ${OnePlusLoaded} -eq 0 ] && RETVAL=$((RETVAL | 2))
}

#############################################################################
usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart" 1>&2
	echo $"          start-watchdog|stop-watchdog|status-watchdog" 1>&2
	echo $"          start-powercontrol|stop-powercontrol|status-powercontrol" 1>&2
	echo $"          stop-all|status-all}" 1>&2
	RETVAL=1
}

condrestart ()
{
	[ -e ${LOCKFILE} ] && restart
}

#############################################################################
# MAIN
#############################################################################
case "$1" in
	start) start ;;
	stop)  stop ;;
	restart) restart ;;
	status)	status ;;
	status-all) status_all ;;
	condrestart) condrestart ;;
	try-restart) condrestart ;;
	start-watchdog) start_watchdog ;;
	stop-watchdog) stop_watchdog ;;
	status-watchdog) status_watchdog ;;
	start-powercontrol) start_powercontrol ;;
	stop-powercontrol) stop_powercontrol ;;
	status-powercontrol) status_powercontrol ;;
	stop-all) stop_all ;;
	*) usage ;;
esac

exit ${RETVAL}

#############################################################################
# end of file
#############################################################################

                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/rawdevices                                0000755 0000000 0000000 00000004305 11524350227 024454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rawdevices       This shell script assignes rawdevices to block devices
#
# chkconfig: 345 56 44
# description: This scripts assignes raw devices to block devices \
#              (such as hard drive partitions). This is for the use \
#	       of applications such as Oracle. You can set up the \
#	       raw device to block device mapping by editing \
#	       the file /etc/sysconfig/rawdevices. 
#
# config: /etc/sysconfig/rawdevices

[ -f /bin/raw ] || exit 0
[ -f /etc/sysconfig/rawdevices ] || exit 0
# Exit if the file just has the default comments.
LC_ALL=C /bin/egrep -q -v "^ *#" /etc/sysconfig/rawdevices 2>/dev/null || exit 0

. /etc/init.d/functions

function assign_raw()
{
   LC_ALL=C egrep -v '^ *#' /etc/sysconfig/rawdevices |
   while read RAW BLOCK; do 
     if [ -n "$RAW" -a -n "$BLOCK" ]; then 
	 rawdirname=${RAW%/*}
         if [ "$rawdirname" = "/dev" -a -d /dev/raw ]; then
           echo $"  Please correct your /etc/sysconfig/rawdevices:"
           echo $"     rawdevices are now located in the directory /dev/raw/ "
           echo $"  If the command 'raw' still refers to /dev/raw as a file."
           echo $"   you'll have to upgrade your util-linux package"
           exit 0
         fi
         if [ "$rawdirname" = "/dev/raw" -a -f /dev/raw ]; then
           echo $"  Please correct your /etc/sysconfig/rawdevices:"
           echo $"     rawdevices are now located in the directory /dev/raw/ "
           echo $"  If the command 'raw' still refers to /dev/raw as a file."
           echo $"   you'll have to upgrade your util-linux package"
           exit 0
         fi

       echo "           $RAW  -->   $BLOCK"; 
       raw $RAW $BLOCK
     fi
   done
}

# See how we were called.
case "$1" in
  start)
        # Assign devices
        echo $"Assigning devices: "
        assign_raw
        echo $"done"
        ;;
  stop)
        # No action to be taken here
        ;;

  status)
        ID=`id -u`
        if [ $ID -eq 0 ]; then 
          raw -qa
        else
          echo $"You need to be root to use this command ! "
        fi
        ;;

  restart|reload)
        $0 start
        ;;

  *)
        echo $"Usage: $0 {start|stop|status|restart}"
        exit 1
esac

exit 0
                                                                                                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/cups                                      0000755 0000000 0000000 00000003626 11524350223 023273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# "$Id: cups.sh,v 1.10 2000/03/30 05:19:16 mike Exp $"
#
#   Startup/shutdown script for the Common UNIX Printing System (CUPS).
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 56 10
#   description: Startup/shutdown script for the Common UNIX \
#                Printing System (CUPS).
#
#   Copyright 1997-2000 by Easy Software Products, all rights reserved.
#
#   These coded instructions, statements, and computer programs are the
#   property of Easy Software Products and are protected by Federal
#   copyright law.  Distribution and use rights are outlined in the file
#   "LICENSE.txt" which should have been included with this file.  If this
#   file is missing or damaged please contact Easy Software Products
#   at:
#
#       Attn: CUPS Licensing Information
#       Easy Software Products
#       44141 Airport View Drive, Suite 204
#       Hollywood, Maryland 20636-3111 USA
#
#       Voice: (301) 373-9603
#       EMail: cups-info@cups.org
#         WWW: http://www.cups.org
#
# heavily edited so that it's more like other scripts in init.d on Red Hat
# Linux

# Source function library.
. /etc/init.d/functions

DAEMON=cupsd

prog=cups

start () {
	echo -n $"Starting $prog: "

	# start daemon
	daemon $DAEMON
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	return $RETVAL
}

stop () {
	# stop daemon
	echo -n $"Stopping $prog: "
	killproc $DAEMON
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
}

restart() {
	stop
	start
}

case $1 in
	start)
		start
	;;
	stop)
		stop
	;;
	restart)
		restart
	;;
	condrestart)
		[ -f /var/lock/subsys/cups ] && restart || :
	;;	
	reload)
		echo -n $"Reloading $prog: "
		killproc $DAEMON -HUP
		RETVAL=$?
		echo
	;;
	status)
		status $DAEMON
		RETVAL=$?
	;;
	restartlog)
		stop
		cat /dev/null >/var/log/cups/error_log
		start
	;;
	*)

	echo $"Usage: $prog {start|stop|restart|condrestart|reload|status}"
	exit 3
esac

exit $RETVAL
                                                                                                          Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/portmap                                   0000755 0000000 0000000 00000003525 11524350227 024005  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# portmap       Start/Stop RPC portmapper
#
# chkconfig: 345 13 87
# description: The portmapper manages RPC connections, which are used by \
#              protocols such as NFS and NIS. The portmap server must be \
#              running on machines which act as servers for protocols which \
#              make use of the RPC mechanism.
# processname: portmap


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Get config.
if [ -f /etc/sysconfig/network ]; then
    . /etc/sysconfig/network
else
    echo $"Networking not configured - exiting"
    exit 1
fi

prog="portmap"

# Check that networking is up.
if [ "$NETWORKING" = "no" ]; then
	exit 0
fi

[ -f /sbin/portmap ] || exit 0

[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0

start() {
        echo -n $"Starting $prog: "
        daemon portmap $PMAP_ARGS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/portmap
	return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc portmap
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/portmap
	return $RETVAL
}

restart() {
  	pmap_dump > /var/run/portmap.state
	stop
	start
	pmap_set < /var/run/portmap.state
	rm -f /var/run/portmap.state
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status portmap
	;;
  restart|reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/portmap ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	exit 1
esac

exit $?
                                                                                                                                                                           Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/haldaemon                                 0000755 0000000 0000000 00000002716 11524350224 024251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Sanity checks.
[ -x /usr/sbin/hald ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

start() {
    echo -n $"Starting HAL daemon: "
    daemon --check $servicename $processname
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping HAL daemon: "

    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/haldaemon.pid
	rm -f /var/lib/hal/system-power-hibernate-output
	rm -f /var/lib/hal/system-power-suspend-output
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $processname
        RETVAL=$?
        ;;
    restart)
        stop
	sleep 3
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
	    sleep 3
            start
        fi
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart}"
        ;;
esac
exit $RETVAL
                                                  Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/irda                                      0000755 0000000 0000000 00000003130 11524350224 023227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# irda          This shell script takes care of starting and stopping
#               IrDA support
#
# chkconfig: - 45 24
# description: IrDA(TM) (Infrared Data Association) is an industry standard  \
# for wireless, infrared communication between devices. IrDA speeds range \
# from 9600 bps to 4 Mbps, and IrDA can be used by many modern devices \
# including laptops, LAN adapters, PDAs, printers, and mobile phones.
#

# Source function library.
. /etc/rc.d/init.d/functions

# Source IrDA networking configuration.
. /etc/sysconfig/irda

prog="IrDA"

start() {
        # Attach irda device 
        echo -n $"Starting $prog: "
	/sbin/modprobe ircomm-tty 2>/dev/null
	/sbin/modprobe irtty-sir 2>/dev/null
	/sbin/modprobe irnet 2>/dev/null
	daemon /usr/sbin/irattach ${DEVICE} ${ARGS}
	[ -f /var/run/irattach.pid ] && success $"irattach startup" || failure $"irattach startup"
        echo
}

stop() {
        # Stop service.
        echo -n $"Shutting down $prog: "
        [ -f /var/run/irattach.pid ] && killproc irattach || success $"irattach shutdown"
        echo
}

# Check that irda is up.
[ ${IRDA} = "no" ] && exit 0

[ -f /usr/sbin/irattach ] || exit 0

ARGS=
if [ -n "$DONGLE" ]; then
	ARGS="$ARGS -d $DONGLE"
fi
if [ "$DISCOVERY" = "yes" ];then
	ARGS="$ARGS -s"
fi

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status irattach
	;;
  restart|reload)
	stop
	start
	;;
  condrestart)
	[ -e /var/run/irdattach.pid ] && (stop; start)
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit 0
                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/xfs                                       0000755 0000000 0000000 00000007476 11524350231 023127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id:$
#
# xfs:       Starts the X Font Server
#
# Version:      @(#) /etc/init.d/xfs 2.0
#
# chkconfig: 2345 90 10
# description: Starts and stops the X Font Server at boot time and shutdown. \
#              It also takes care of (re-)generating font lists.
#
# processname: xfs
# config: /etc/X11/fs/config
# hide: true

# Source function library.
export LANG=C
. /etc/init.d/functions
# Set umask to ensure fonts.dir and similar files get created mode 0644
umask 133

prog=xfs

buildfontlist() {
   pushd . &> /dev/null
   # chkfontpath output filtering, strips all of the junk output by
   # chkfontpath that we do not want, including headers, FPE numbers and
   # whitespace and other junk.  Also filters out FPE's with trailing
   # modifiers such as ":unscaled" et al.
   for dir in $(/usr/sbin/chkfontpath --list | sed -e '/^Current/d;s#^[0-9]*: ##g;s#:unscaled$##g;/^[[:space:]]*$/d' | sort | uniq) ;do
      if [ -d "$dir" ]; then
         cd "$dir"
         # If fonts.dir does not exist, or if there are files in the
         # directory with a newer change time, regenerate fonts.dir, etc.
         # Using "-cnewer" here fixes bug #53737
         if [ ! -e fonts.dir ] || [ -n "$(find . -maxdepth 1 -type f -cnewer fonts.dir -not -name 'fonts.cache*' 2>/dev/null)" ]; then
            rm -f fonts.dir &>/dev/null
            if ls | grep -iqs '\.ot[cf]$' ; then
               # Opentype fonts found, generate fonts.scale and fonts.dir
               mkfontscale . && mkfontdir . &>/dev/null
            elif ls | grep -iqs '\.tt[cf]$' ; then
               # TrueType fonts found, generate fonts.scale and fonts.dir
               ttmkfdir -d . -o fonts.scale && mkfontdir . &>/dev/null
            elif ls | grep -Eiqsv '(^fonts\.(scale|alias|cache.*)$|.+(\.[ot]t[cf]|dir)$)' ; then
               # This directory contains non-TrueType/non-Opentype fonts
               mkfontdir . &>/dev/null
            fi
         fi
      fi
   done
   popd &> /dev/null
}

start() {
   FONT_UNIX_DIR=/tmp/.font-unix
   echo -n $"Starting $prog: "
   [ -x /usr/sbin/chkfontpath ] && buildfontlist
   # Make sure .font-unix dir, exists.
   if [ ! -d $FONT_UNIX_DIR ]
   then
       mkdir -m 1777 $FONT_UNIX_DIR || :
       restorecon $FONT_UNIX_DIR 2>/dev/null || :
   fi

   # Fix needed for SELinux for bug (#130421,130969)
   [ -x /sbin/restorecon ] && /sbin/restorecon $FONT_UNIX_DIR

   daemon xfs -droppriv -daemon
   ret=$?
   [ $ret -eq 0 ] && touch /var/lock/subsys/xfs
   echo
   return $ret
}	

stop() {
   echo -n $"Shutting down $prog: "
   killproc xfs
   ret=$?
   [ $ret -eq 0 ] && rm -f /var/lock/subsys/xfs
   echo
   return $ret
}	

rhstatus() {
   status xfs
}	

reload() {
   if [ -f /var/lock/subsys/xfs ]; then
      echo -n $"Reloading $prog: "
      [ -x /usr/sbin/chkfontpath ] && buildfontlist
      killproc xfs -USR1
      ret=$?
      echo
      return $ret
   else
      stop
      start
   fi
}

restart() {
   echo $"Restarting $prog:"
   stop
   start
}

condrestart() {
   # NOTE: We reload normally, to ensure the xfs<->Xserver connection does
   # not get broken on xfs upgrades, however we must force a restart on
   # upgrades that are migrating from monolithic Xorg (6.8.x or older) to
   # modular X, to avoid bug #173271.  The modular xfs %preun script will
   # now check for the old config file to determine if migration should be
   # done, and touch the following migration file if necessary.
   if [ -e /etc/X11/fs/xfs-migrate ] ; then
      restart
      rm -f /etc/X11/fs/xfs-migrate || : &> /dev/null
   else
      reload
   fi
}

case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  restart)
    restart
    ;;
  reload)
  	reload
	;;
  condrestart)
  	[ -f /var/lock/subsys/xfs ] && condrestart || :
	;;
  status)
  	rhstatus
	;;
  *)
	echo $"Usage: $prog {start|stop|status|restart|reload|condrestart}"
	exit 1
esac

exit $?
                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/rhnsd                                     0000755 0000000 0000000 00000003363 11524350230 023433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every other hour.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

# Sanity checks.
[ -x /usr/sbin/rhnsd ] || exit 6
[ -f /etc/sysconfig/rhn/systemid ] || exit 6

# Source function library.
. /etc/rc.d/init.d/functions

# read configuration settings (interval) for rhnsd, if present.
if [ -f /etc/sysconfig/rhn/rhnsd ]; then
  . /etc/sysconfig/rhn/rhnsd
fi

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd --interval $INTERVAL
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart)
	stop
	start
	;;
    condrestart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
  	killproc rhnsd -HUP
	RETVAL=$?
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        exit 1
esac
exit $RETVAL
                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/dnsmasq                                   0000755 0000000 0000000 00000002577 11524350223 023773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 99 01
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/functions                                 0000755 0000000 0000000 00000033260 11524350223 024326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="`/sbin/consoletype`"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" ] ; then
  . /etc/profile.d/lang.sh
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

if [ "${BOOTUP:-}" != "verbose" ]; then
   INITLOG_ARGS="-q"
else
   INITLOG_ARGS=
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		sleep 2
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 5
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 5
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p
		read line < "$pid_file"
		for p in $line ; do
			[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
		done
	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $nice runuser -s /bin/bash - $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi
	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
	esac
	# See if /var/lock/subsys/${base} exists
	if [ -f /var/lock/subsys/${base} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ "$GRAPHICAL" = "yes" -a -x /usr/bin/rhgb-client ]; then
    /usr/bin/rhgb-client --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  #if [ -z "${IN_INITLOG:-}" ]; then
  #   initlog $INITLOG_ARGS -n $0 -s "$1" -e 1
  #fi
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  #if [ -z "${IN_INITLOG:-}" ]; then
  #   initlog $INITLOG_ARGS -n $0 -s "$1" -e 2
  #fi
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --details=yes
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  #if [ -z "${IN_INITLOG:-}" ]; then
  #   initlog $INITLOG_ARGS -n $0 -s "$1" -e 1
  #fi
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  #if [ -z "${IN_INITLOG:-}" ]; then
  #   initlog $INITLOG_ARGS -n $0 -s "$1" -e 1
  #fi
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  if [ "${RHGB_STARTED:-}" != "" -a -w /etc/rhgb/temp/rhgb-console ]; then
      echo -n "$STRING " > /etc/rhgb/temp/rhgb-console
  fi
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  if [ "${RHGB_STARTED:-}" != "" -a -w /etc/rhgb/temp/rhgb-console ]; then
      if [ "$rc" = "0" ]; then
      	echo_success > /etc/rhgb/temp/rhgb-console
      else
        echo_failure > /etc/rhgb/temp/rhgb-console
	[ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --details=yes
      fi
      echo > /etc/rhgb/temp/rhgb-console
  fi
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --details=yes
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --details=no
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# find the working name for a running dm device with the same table as one
# that dmraid would create
resolve_dm_name() {
(
    name="$1"

    line=$(/sbin/dmraid -ay -t --ignorelocking | \
        egrep -iv "no block devices found|No RAID disks" | \
        awk -F ':' "{ if (\$1 ~ /^$name$/) { print \$2; }}")
    for x in $line ; do
        if [[ "$x" =~ "^/dev/" ]] ; then
            majmin=$(get_numeric_dev dec $x)
            line=$(echo "$line" | sed -e "s,$x\( \|$\),$majmin\1,g")
        fi
    done
    line=$(echo "$line" | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//' \
               -e 's/ core [12] [[:digit:]]\+ / core [12] [[:digit:]]\\+ /')
    /sbin/dmsetup table | \
        sed -n -e "s/.*\(no block devices found\|No devices found\).*//" \
               -e "s/\(^[^:]\+\): $line\( \+$\|$\)/\1/p"
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}
# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/pcscd                                     0000755 0000000 0000000 00000003744 11524350227 023422  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# pcscd        Starts the pcscd Daemon
#
# chkconfig:   2345 25 88
# description: The PC/SC smart card daemon is a resource manager for the \
#              PC/SC lite and Musclecard frameworks.  It coordinates \
#              communications with smart card readers, smart cards, and \
#              cryptographic tokens that are connected to the system.
#
# processname: pcscd
# config:      /etc/reader.conf
#
### BEGIN INIT INFO
# Provides: pcscd
# Should-Start: $syslog openct
# Should-Stop: $syslog openct
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: PC/SC smart card daemon
# Description: The PC/SC smart card daemon is a resource manager for the
#              PC/SC lite and Musclecard frameworks.  It coordinates
#              communications with smart card readers, smart cards, and
#              cryptographic tokens that are connected to the system.
### END INIT INFO
#
# Note!  pcscd should be started after pcmcia, and shut down before it
# for smooth experience with PCMCIA readers.

. /etc/init.d/functions

umask 077

exec=/usr/sbin/pcscd
prog=$(basename $exec)
lockfile=/var/lock/subsys/$prog
PCSCD_OPTIONS=

# Source config
if [ -f /etc/sysconfig/pcscd ] ; then
    . /etc/sysconfig/pcscd
fi

start() {
    echo -n $"Starting PC/SC smart card daemon ($prog): "
    /usr/sbin/update-reader.conf && daemon $prog $PCSCD_OPTIONS
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}
stop() {
    echo -n $"Stopping PC/SC smart card daemon ($prog): "
    killproc $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}
restart() {
    stop
    start
}


case "$1" in
    start|stop|restart)
        $1
        ;;
    reload|force-reload)
        restart
        ;;
    status)
        status $prog
        ;;
    condrestart|try-restart)
        [ ! -f $lockfile ] || restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
        exit 2
esac
                            Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/pand                                      0000755 0000000 0000000 00000002263 11524350227 023243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# pand:		Bluetooth Personal Area Networking Daemon.
#
# chkconfig:	- 26 89
# description:	Bluetooth Personal Area Networking Daemon. Provides network \
#		services over Bluetooth.
#

# Source function library.
. /etc/rc.d/init.d/functions

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

[ "${NETWORKING}" = "yes" ] || exit 0

[ -r /etc/sysconfig/pand ] && . /etc/sysconfig/pand

start() 
{
	[ -z "$PANDARGS" ] && exit 0
        [ -x /etc/bluetooth/pan/system-up ] && /etc/bluetooth/pan/system-up

        echo -n $"Starting pand: "
        daemon /usr/bin/pand $PANDARGS

	touch /var/lock/subsys/pand
        echo
}

stop() 
{
        echo -n $"Shutting down pand: "
	/usr/bin/pand -K
	killproc pand

        [ -x /etc/bluetooth/pan/system-down ] && /etc/bluetooth/pan/system-down
	rm -f  /var/lock/subsys/pand
        echo
}

[ -f /usr/bin/pand ] || exit 0

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  restart|reload)
	stop
	start
	;;
  condrestart)
	[ -e /var/lock/subsys/pand ] && (stop; start)
	;;
  status)
  	status pand
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|condrestart}"
        exit 1
esac

exit 0
                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/kdump                                     0000755 0000000 0000000 00000026154 11524350225 023444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

#
#  kdump
#
#  Description:  The kdump init script provides the support necessary for
#  		 loading a kdump kernel into memory at system bootup time,
#		 and for copying away a vmcore at system panic time.
#
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_INITRDEXT=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"

LOGGER="/usr/bin/logger -p info -t kdump"

ARCH=`uname -m`

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	cp --sparse=always /proc/vmcore $coredir/vmcore-incomplete
	exitcode=$?
	if [ $exitcode == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
	return $exitcode
}

function run_kdump_post()
{
	kdumpsuccess=$1
	KDUMP_POST=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
	if [ -x "$KDUMP_POST" ]; then
		$KDUMP_POST $kdumpsuccess
		$LOGGER "run \"$KDUMP_POST $kdumpsuccess\""
	fi
}

function check_config()
{
	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed -r 's/(smp|xen)//g'`
		# on i686 xen, if any portion of memory is mapped above 4G,
		# we need to use kernel-PAE for kdump
		if [ "$ARCH" == "i686" ] && [ -e /proc/xen ]; then
			need_64bit_headers
			if [ $? == 1 ]; then
				kdump_kver=${kdump_kver}PAE
			fi
		fi
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}${KDUMP_INITRDEXT}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		/sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

	#check to see if config file or kdump post has been modified
	#since last build of the image file
	image_time=`stat -c "%Y" $kdump_initrd`
	EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
	CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
	EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
	CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
	EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
	CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
	EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
	FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
	files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
	modified_files=""
	for file in $files; do
		time_stamp=0
		if [ -f "$file" ]; then
			time_stamp=`stat -c "%Y" $file`
		else
			modified_files="$modified_files $file"
			continue
		fi
		if [ "$time_stamp" -gt "$image_time" ]; then
			modified_files="$modified_files $file"
		fi
	done

	if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
	then
		modified_files="force_rebuild"
	fi

	if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
		if [ "$modified_files" != "force_rebuild" ]
		then
			echo "Detected change(s) the following file(s):"
			echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
		fi
		echo "Rebuilding $kdump_initrd"
		/sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			return 1
		fi
	fi
	return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{

	MEMSZ=`sed -e's/\(^[0-9]\+.*\)/0x\1/' -e's/\(-\)\(.*\)/ 0x\2/' /proc/iomem | \
	awk 'BEGIN {
		totalmem=0;
		segmentmem=0;
	     }
	     /.*RAM.*/ {
		start = strtonum($1);
		end = strtonum($2);
		segmentmem=end-start;
		totalmem=totalmem+(segmentmem/1024);
		if (end >= 4194304) {
			totalmem=totalmem+4194304;
		}
	     }
	     END {
		printf "%d", (totalmem+1);
	     }'`

	#The AWK script above computes the total number of KB 
	#in the RAM areas of /proc/iomem
	#Note also that we set totalmem to 4GB in the event that
	#any physical address is larger than 4GB.  This lets us
	#default to 64 bit ELF headers for PAE kernels, which 
	#need then to access those higher addresses.

	#This comparison tells us if the above amount is more than 
	#4GB (4096 KB).  I do the funny math to avoid overflow
	if [ $MEMSZ -ge 4194304 ]
	then
		return 1
	fi
	return 0
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{

	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	ARCH=`uname -m`
	if [ "$ARCH" == "ppc64" ]
	then
		MEM_RESERVED=`grep "crashkernel=[0-9]\+[MmKkGg]@[0-9]\+[MmGgKk]" /proc/cmdline`
	else
		MEM_RESERVED=`grep "Crash kernel" /proc/iomem | grep -v "00000000-00000000"`
	fi
	if [ -z "$MEM_RESERVED" ]
	then
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[0-9]\+[MmKkGg]@[0-9]\+[MmGgKk]//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e's/mem=[0-9]\+[GMKgmk]* *//'`

	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	KEXEC_OUTPUT=`$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>&1`
	if [ $? == 0 ]; then
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		$LOGGER $KEXEC_OUTPUT
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	cat $KEYFILE | ssh -x $SSH_USER@$SSH_SERVER "mkdir -p ~$SSH_USER/.ssh; chmod 700 ~$SSH_USER/.ssh;  cat >> ~$SSH_USER/.ssh/authorized_keys2; chmod 600 ~$SSH_USER/.ssh/authorized_keys2"
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys2 on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi
	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
	fi
}

function do_final_action()
{
	reboot
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		run_kdump_post $?
		do_final_action
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=1
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=1
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
	EXIT_CODE=1
	status
	case "$?" in
	0)
		stop
		start
		EXIT_CODE=0
	;;
	esac
	exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/iptables                                  0000755 0000000 0000000 00000016444 11524350224 024127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"/sbin/$IPTABLES does not exist."; warning; echo
    exit 0
fi

if lsmod 2>/dev/null | grep -q ipchains ; then
    echo -n $"ipchains and $IPTABLES can not be used together."; warning; echo
    exit 1
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=`lsmod | awk "/^${mod}/ { print \\\$4; }" | tr ',' ' '` \
	|| ref=`lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1`

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	let ret+=$?;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ -e "$PROC_IPTABLES_NAMES" ] || return 1

    # Check if firewall is configured (has tables)
    tables=`cat $PROC_IPTABLES_NAMES 2>/dev/null`
    [ -z "$tables" ] && return 1

    echo -n $"Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $tables; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 1

    # Check if firewall is configured (has tables)
    tables=`cat $PROC_IPTABLES_NAMES 2>/dev/null`
    [ -z "$tables" ] && return 1

    echo -n $"Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ -f "$IPTABLES_DATA" ] || return 1

    echo -n $"Applying $IPTABLES firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"Loading additional $IPTABLES modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ -e "$PROC_IPTABLES_NAMES" ] || return 1

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"Unloading $IPTABLES modules: "
	ret=0
	rmmod_r ${IPV}_tables
	let ret+=$?;
	rmmod_r ${IPV}_conntrack
	let ret+=$?;
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 1

    # Check if firewall is configured (has tables)
    tables=`cat $PROC_IPTABLES_NAMES 2>/dev/null`
    [ -z "$tables" ] && return 1

    echo -n $"Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=`/bin/mktemp -q /tmp/$IPTABLES.XXXXXX` \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=`stat -c '%s' $TMP_FILE` && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    tables=`cat $PROC_IPTABLES_NAMES 2>/dev/null`

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable module is loaded
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$tables" ]; then
	echo $"Firewall is stopped."
	return 1
    fi

    # Check if firewall is configured (has tables)
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"Firewall is not configured. "
	return 1
    fi
    if [ -z "$tables" ]; then
	echo $"Firewall is not configured. "
	return 1
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $tables; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}

case "$1" in
    start)
	stop
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    condrestart)
	[ -e "$VAR_SUBSYS_IPTABLES" ] && restart
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|restart|condrestart|status|panic|save}"
	exit 1
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/krb524                                    0000755 0000000 0000000 00000002463 11524350225 023332  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# krb524       Start and stop the krb524 service.
#
# chkconfig:   - 35 65
# description: Kerberos 5 is a trusted third-party authentication system.  \
#	       This script starts and stops krb524d, which converts \
#              Kerberos 5 credentials to Kerberos IV credentials.
# processname: krb524d
# config: /etc/sysconfig/krb524
#

# Get config.
. /etc/sysconfig/network

# Get config.
[ -r /etc/sysconfig/krb524 ] && . /etc/sysconfig/krb524

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0
prog="Kerberos 5-to-4 Server"
krb524d=/usr/kerberos/sbin/krb524d

# Shell functions to cut down on unnecessary shell invocations.
start() {
  	[ -f /var/kerberos/krb5kdc/principal ] || exit 6
	[ -x $krb524d ] || exit 5
	echo -n $"Starting $prog: "
	daemon ${krb524d} ${KRB524D_ARGS:--m}
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/krb524
}
stop() {
	echo -n $"Stopping $prog: "
	killproc ${krb524d}
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/krb524
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	;;
  status)
	status ${krb524d}
	;;
  condrestart)
	if [ -f /var/lock/subsys/krb524 ] ; then
		stop
		start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/multipathd                                0000755 0000000 0000000 00000004226 11524350226 024474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/multipathd
#
# Starts the multipath daemon
#
# chkconfig: - 06 87
# description: Manage device-mapper multipath devices
# processname: multipathd

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig
syspath=/sys/block

 
system=redhat
 
if [ $system = redhat ]; then
	# Source function library.
	. $initdir/functions
fi
 
test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

teardown_slaves()
{
pushd $1 > /dev/null
if [ -d "slaves" ]; then
for slave in slaves/*;
do
	if [ "$slave" = "slaves/*" ]; then
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
	else
		local_slave=`readlink -f $slave`;
		teardown_slaves $local_slave;
	fi
	done
		
else
		read dev <  $1/dev
		tablename=`dmsetup table --target multipath | sed -n "s/\(.*\): .* $dev .*/\1/p"`
		if ! [ -z $tablename ]; then
			echo "Root is on a multipathed device, multipathd can not be stopped"
			exit 1
		fi
fi
popd > /dev/null
}

#
# See how we were called.
#

start() {
	test -x $DAEMON || exit 5
	echo -n $"Starting $prog daemon: "
	daemon $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockdir/$prog
	echo
}

stop() {
        root_dev=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/mtab)
	dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2> /dev/null`
	if [ $? -eq 0 ]; then
		root_dm_device="dm-$dm_num"
		[ -d $syspath/$root_dm_device ] && teardown_slaves $syspath/$root_dm_device
	fi

	echo -n $"Stopping $prog daemon: "
	killproc $DAEMON
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
	echo
}

restart() {
	stop
	start
}	

reload() {
	echo -n "Reloading $prog: "
	trap "" SIGHUP
	killproc $DAEMON -HUP
	RETVAL=$?
	echo
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $lockdir/$prog ]; then
	    restart
	fi
	;;
status)
	status $prog
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/NetworkManager                            0000755 0000000 0000000 00000003551 11524350222 025241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 98 02
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --check $servicename $processname --pid-file=$pidfile --ppp-dns-workaround
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                       Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/netplugd                                  0000755 0000000 0000000 00000002352 11524350226 024141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# netplugd     This shell script takes care of starting and stopping
#              the network plug management daemon.
#
# chkconfig: - 11 89
# description: netplugd is a daemon for managing non-static network \
#              interfaces.
# processname: netplugd
# pidfile: /var/run/netplugd.pid

# Copyright 2003 Key Research, Inc.

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

if [ -f /etc/sysconfig/netplugd ]; then
    . /etc/sysconfig/netplugd
fi

# See how we were called.
case "$1" in
  start)
	# Start daemon.
	[ ${NETWORKING} = "no" ] && exit 1
	[ -x /sbin/netplugd ] || exit 1
	echo -n $"Starting network plug daemon: "
	daemon /sbin/netplugd ${NETPLUGDARGS} -p /var/run/netplugd.pid
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/netplugd
	;;
  stop)
	# Stop daemon.
	echo -n $"Shutting down network plug daemon: "
	killproc netplugd
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/netplugd
	;;
  status)
	status netplugd
	RETVAL=$?
	;;
  restart|reload)
	$0 stop
	$0 start
	;;
  condrestart)
	[ -f /var/lock/subsys/netplugd ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart}"
	RETVAL=3
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                      Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/setroubleshoot                            0000755 0000000 0000000 00000007346 11524350230 025403  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# setroubleshootd       This starts and stops setroubleshootd daemon
#
# chkconfig: 345 23 1
# description: This starts the SELinux Troubleshooting Daemon
#
# processname: /usr/sbin/setroubleshootd
# config: /etc/setroubleshoot/setroubleshoot.cfg
# pidfile: /var/run/setroubleshootd.pid
#

# Return values according to LSB for all commands but status:
# 0	success
# 1	generic or unspecified error (current practice)
# 2	invalid or excess argument(s)
# 3	unimplemented feature (for example, "reload")
# 4	user had insufficient privilege
# 5	program is not installed
# 6	program is not configured
# 7	program is not running

# Command argument
# start		start the service
# stop		stop the service
# restart	stop and restart the service if the service is already running, otherwise start the service
# try-restart	restart the service if the service is already running
# reload	cause the configuration of the service to be reloaded without actually stopping and restarting the service
# force-reload	cause the configuration to be reloaded if the service supports this, otherwise restart the service if it is running
# status	print the current status of the service

# start, stop, restart, force-reload, and status actions must be supported
# reload and the try-restart actions are optional.
# the init script.

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

RETVAL=0
prog="setroubleshootd"
pidfile="/var/run/setroubleshootd.pid"
lockfile="/var/lock/subsys/setroubleshoot"

usage(){
    echo $"Usage: $0 {start|stop|status|restart|try-restart|condrestart|reload|force-reload|cleardb [test][verbose]}"
}

command=$1
shift

[ $command ] || (usage; exit 3)

# look for extra options
while [ $# -gt 0 ]; do
    arg=$1
    case "$arg" in
	test)
	    EXTRAOPTIONS="$EXTRAOPTIONS -c audit.text_protocol_socket_path=/tmp/audispd_events"
	    ;;
	verbose)
	    EXTRAOPTIONS="$EXTRAOPTIONS -V"
	    ;;
	*)
	    echo "unknown arg $arg"
    esac
    shift
done

rhstatus(){
    status -p $pidfile $prog
    RETVAL=$?
    return $RETVAL
}

# Allow status as non-root and also if SELinux is disabled
if [ "$command" = status ]; then
	rhstatus
	RETVAL=$?
	exit $RETVAL
fi

# Silently exit is SELinux is not enabled
[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 1

# Check that we are root ... so non-root users stop here
if test `id -u` != 0; then
	echo "You must be root"
	exit 4
fi

start(){
    echo -n $"Starting $prog: "
    unset HOME MAIL USER USERNAME
    daemon $prog "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    if test $RETVAL = 0 ; then
        touch $lockfile
    fi
    if test $RETVAL = 3 ; then
	echo -n $"Cannot start $prog: SELinux not enabled"
    fi
    return $RETVAL
}

stop(){
    echo -n $"Stopping $prog: "
    killproc -p $pidfile $prog
    RETVAL=$?
    echo
    rm -f $lockfile
    return $RETVAL
}

reload(){
    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
    RETVAL=$?
    return $RETVAL
}

condrestart(){
    [ -e $lockfile ] && restart
    RETVAL=0
    return $RETVAL
}

cleardb(){
    running=0
    [ -e $lockfile ] && running=1
    [ $running == 1 ] && stop
    echo $"Clearing database"
    rm -f /var/lib/setroubleshoot/database.xml
    rm -f /var/lib/setroubleshoot/audit_listener_database.xml
    [ $running == 1 ] && start
    RETVAL=0
    return $RETVAL
}

# See how we were called.
case "$command" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	rhstatus
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    force-reload|reload)
	reload
	RETVAL=$?
	;;
    try-restart|condrestart)
	condrestart
	RETVAL=$?
	;;
    cleardb)
	cleardb
	RETVAL=$?
	;;
    *)
	usage
	RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/netconsole                                0000755 0000000 0000000 00000005662 11524350226 024477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=`uname -r | cut -d. -f1-2`

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=1
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
netconsole_failure ()
{
	echo -n "$1"
	failure
	echo
	exit 1
}

start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 0
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
	if ! [[ "$SYSLOGADDR" =~ "^([0-9]{1,3}\.){3}[0-9]{1,3}$" ]]; then
		SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
	fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 1
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		netconsole_failure "syslog server address resolution"
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                              Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/rpcgssd                                   0000755 0000000 0000000 00000004775 11524350230 023772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# Authors:	Chuck Lever <cel@netapp.com>
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFSv4 client.

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# See if we are configured to start 
[ "${SECURE_NFS}" != "yes" ] && exit 6

# Try to use machine credentials by default
RETVAL=0
LOCKFILE=/var/lock/subsys/rpcgssd
prog="rpc.gssd"

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condstart|condrestart|status}"
	RETVAL=3
	;;
esac

exit $RETVAL
   Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/wdaemon                                   0000755 0000000 0000000 00000003730 11524350231 023746  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/wdaemon
#
# Starts the wdaemon
#
# chkconfig: - 95 5
# description: helps X.org to support Wacom tablets hotplugging by creating \
#    permanent uinput devices that may be feeded by real tablets events while \
#    the hardware is present.
# processname: wdaemon

# Source function library.
. /etc/init.d/functions

test -x /usr/bin/wdaemon || exit 0

RETVAL=0

#
#	See how we were called.
#

prog="wdaemon"

start() {
	# Check if there's already a configuration present
	if [ ! -f /etc/wdaemon.conf ]; then
	    echo "wdaemon configuration file not present yet";
	    return 0;
	fi
	# Check if wdaemon is already running
	if [ ! -f /var/lock/subsys/wdaemon ]; then
	    if [ -z "$(lsmod | grep uinput)" ]; then
	       echo -n $"Loading uinput module: "
	       modprobe uinput;
	       RETVAL=$?
	       [ $RETVAL -eq 0 ] && success || (failure; return $RETVAL);
	       echo;
	       for count in $(seq 1 3); do
	          if [ -e /dev/uinput ]; then
	             break;
	          fi
                  sleep 1;
               done
	       if [ ! -e /dev/uinput ]; then
	          logger -p daemon.err -t wdaemon "/dev/uinput not available";
	          failure;
	          return 1;
               fi
            fi
	    echo -n $"Starting $prog: "
	    daemon /usr/bin/wdaemon -c /etc/wdaemon.conf -f >/dev/null;
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && (success; touch /var/lock/subsys/wdaemon) || failure;
	    echo
	fi
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc /usr/bin/wdaemon
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/wdaemon
	echo
        return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

status_at() {
 	status /usr/bin/wdaemon
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload|restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/wdaemon ]; then
	    restart
	fi
	;;
status)
	status_at
	;;
*)
	echo $"Usage: $0 {start|stop|restart|condrestart|status}"
	exit 1
esac

exit $?
exit $RETVAL
                                        Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/lvm2-monitor                              0000755 0000000 0000000 00000003614 11524350225 024665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#	       
### BEGIN INIT INFO
# Provides: 
### END INIT INFO

. /etc/init.d/functions

VGCHANGE="/usr/sbin/vgchange"
WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGS=`vgs --noheadings -o name 2> /dev/null`
	for vg in $VGS
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGS=`vgs --noheadings -o name 2> /dev/null`
	for vg in $VGS
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

result=1

# See how we were called.
case "$1" in
  start)
	start
	result=$?
	;;

  force-stop)
	WARN=0
	stop
	result=$?
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	result=$?
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	result=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $result
                                                                                                                    Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/halt                                      0000755 0000000 0000000 00000013135 11524350224 023246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

action() {
   echo -n "$1 "
   shift
   if [ "$BOOTUP" = "color" ]; then
      "$@" && echo_success || echo_failure
   else
      "$@"
   fi
   echo
}

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

action $"Sending all processes the TERM signal..." /sbin/killall5 -15
sleep 5
action $"Sending all processes the KILL signal..."  /sbin/killall5 -9

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
grep -q "\(alsa\)" /proc/devices
if [ $? = 0 -a -x /usr/sbin/alsactl ]; then
   action $"Saving mixer settings" alsactl store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

# Sync the system clock.
ARC=0
SRM=0
UTC=0

if [ -f /etc/sysconfig/clock ]; then
   . /etc/sysconfig/clock

   # convert old style clock config to new values
   if [ "${CLOCKMODE}" = "GMT" ]; then
      UTC=true
   elif [ "${CLOCKMODE}" = "ARC" ]; then
      ARC=true
   fi
fi

CLOCKDEF=""
CLOCKFLAGS="$CLOCKFLAGS --systohc"

case "$UTC" in
   yes|true)
	CLOCKFLAGS="$CLOCKFLAGS -u";
	CLOCKDEF="$CLOCKDEF (utc)";
	;;
   no|false)
	CLOCKFLAGS="$CLOCKFLAGS --localtime";
	CLOCKDEF="$CLOCKDEF (localtime)";
	;;
esac

case "$ARC" in
   yes|true)
	CLOCKFLAGS="$CLOCKFLAGS -A";
	CLOCKDEF="$CLOCKDEF (arc)";
	;;
esac
case "$SRM" in
   yes|true)
	CLOCKFLAGS="$CLOCKFLAGS -S";
	CLOCKDEF="$CLOCKDEF (srm)";
	;;
esac

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock $CLOCKFLAGS

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=`awk '! /^Filename/ { print $1 }' /proc/swaps`
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ "^/dev/mapper" ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

if [ "$command" = /sbin/halt -a -r /etc/ups/upsmon.conf -a -f /etc/killpower -a -f /etc/sysconfig/ups ] ; then
	. /etc/sysconfig/ups
	if [ "$SERVER" = "yes" -a "$MODEL" = "upsdrvctl" ] ; then
		/sbin/upsdrvctl shutdown
	elif [ "$SERVER" = "yes" -a "$MODEL" != "NONE" -a -n "$MODEL" -a -n "$DEVICE" ] ; then
		$MODEL $OPTIONS_HALT -k $DEVICE
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                                                                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/vncserver                                 0000755 0000000 0000000 00000004003 11524350231 024323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 91 35
# description: Starts and stops vncserver. \
#	       used to provide remote X administration services.

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

unset VNCSERVERARGS
VNCSERVERS=""
[ -f /etc/sysconfig/vncservers ] && . /etc/sysconfig/vncservers

prog=$"VNC server"

start() {
    echo -n $"Starting $prog: "
    ulimit -S -c 0 >/dev/null 2>&1
    RETVAL=0
    if [ ! -d /tmp/.X11-unix ]
    then
        mkdir -m 1777 /tmp/.X11-unix || :
        restorecon /tmp/.X11-unix 2>/dev/null || :
    fi
    NOSERV=1
    for display in ${VNCSERVERS}
    do
        NOSERV=
        echo -n "${display} "
	unset BASH_ENV ENV
	DISP="${display%%:*}"
	export USER="${display##*:}"
	export VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
        runuser -l ${USER} -c "cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
        RETVAL=$?
        [ "$RETVAL" -ne 0 ] && break
    done
    if test -n "$NOSERV"; then echo -n "no displays configured "; fi
    [ "$RETVAL" -eq 0 ] && success $"vncserver startup" || \
        failure $"vncserver start"
    echo
    [ "$RETVAL" -eq 0 ] && touch /var/lock/subsys/vncserver
}

stop() {
    echo -n $"Shutting down $prog: "
    for display in ${VNCSERVERS}
    do
        echo -n "${display} "
	unset BASH_ENV ENV
	export USER="${display##*:}"
	runuser ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
    done
    RETVAL=$?
    [ "$RETVAL" -eq 0 ] && success $"vncserver shutdown" || \
        failure $"vncserver shutdown"
    echo
    [ "$RETVAL" -eq 0 ] && rm -f /var/lock/subsys/vncserver
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|reload)
	stop
	sleep 3
	start
	;;
  condrestart)
	if [ -f /var/lock/subsys/vncserver ]; then
	    stop
	    sleep 3
	    start
	fi
	;;
  status)
	status Xvnc
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|status}"
	exit 1
esac

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/single                                    0000755 0000000 0000000 00000001207 11524350230 023571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/syslog                                    0000755 0000000 0000000 00000003773 11524350231 023643  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# syslog        Starts syslogd/klogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run syslog.
### BEGIN INIT INFO
# Provides: $syslog
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0

start() {
	[ -x /sbin/syslogd ] || exit 5
	[ -x /sbin/klogd ] || exit 5

	# Source config
	if [ -f /etc/sysconfig/syslog ] ; then
		. /etc/sysconfig/syslog
	else
		SYSLOGD_OPTIONS="-m 0"
		KLOGD_OPTIONS="-2"
	fi

	if [ -z "$SYSLOG_UMASK" ] ; then
	      SYSLOG_UMASK=077;
	fi
	umask $SYSLOG_UMASK

 	echo -n $"Starting system logger: "
	daemon syslogd $SYSLOGD_OPTIONS
	RETVAL=$?
	echo
	echo -n $"Starting kernel logger: "
	daemon klogd $KLOGD_OPTIONS
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/syslog
	return $RETVAL
}	
stop() {
	echo -n $"Shutting down kernel logger: "
	killproc klogd
	echo
	echo -n $"Shutting down system logger: "
	killproc syslogd
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/syslog
	return $RETVAL
}
rhstatus() {
	status syslogd
	status klogd
}
restart() {
	stop
	start
}	
reload()  {
    RETVAL=1
    syslog=`cat /var/run/syslogd.pid 2>/dev/null`
    echo -n "Reloading syslogd..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    RETVAL=1
    echo -n "Reloading klogd..."
    klog=`cat /var/run/klogd.pid 2>/dev/null`
    if [ -n "${klog}" ] && [ -e /proc/"${klog}" ]; then
	kill -USR2 "$klog";
        RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo    
    return $RETVAL
}
case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  status)
  	rhstatus
	;;
  restart)
  	restart
	;;
  reload)
	reload
	;;
  condrestart)
  	[ -f /var/lock/subsys/syslog ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
esac

exit $?

     Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/hidd                                      0000755 0000000 0000000 00000001706 11524350224 023227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# hidd:		Bluetooth Human Interface Device Daemon.
#
# chkconfig:	2345 26 89
# description:	Bluetooth Human Interface Device Daemon. Provides keyboard, \
#		mouse etc. functionality over Bluetooth.
#

# Source function library.
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/hidd ] && . /etc/sysconfig/hidd

start() 
{
	[ -z "$HIDDARGS" ] && exit 0

        echo -n $"Starting hidd: "
        daemon /usr/bin/hidd $HIDDARGS

	touch /var/lock/subsys/hidd
        echo
}

stop() 
{
        echo -n $"Shutting down hidd: "
	/usr/bin/hidd -K
	killproc hidd

	rm -f  /var/lock/subsys/hidd
        echo
}

[ -f /usr/bin/hidd ] || exit 0

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  restart|reload)
	stop
	start
	;;
  condrestart)
	[ -e /var/lock/subsys/hidd ] && (stop; start)
	;;
  status)
  	status hidd
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|condrestart}"
        exit 1
esac

exit 0
                                                          Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/mdmonitor                                 0000755 0000000 0000000 00000004115 11524350226 024326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status mdadm; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/restorecond                               0000755 0000000 0000000 00000003401 11524350230 024635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	2345 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 0

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|reload|condrestart}"
        RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/bluetooth                                 0000755 0000000 0000000 00000002705 11524350223 024323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# bluetooth:	Start/stop bluetooth services
#
# chkconfig:	2345 25 90
# description:	Bluetooth services for service discovery, authentication, \
#		Human Interface Devices, etc.
#


# Source function library.
. /etc/rc.d/init.d/functions

UART_CONF="/etc/bluetooth/uart"

[ -e /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth

start_uarts()
{
	[ -f $UART_CONF ] || return
	grep -v '^#' $UART_CONF | while read i; do
		/usr/sbin/hciattach $i
	done
}

stop_uarts()
{
	killproc hciattach > /dev/null 2>&1
}

start()
{
	echo -n $"Starting Bluetooth services:"
	daemon /usr/sbin/hcid
	touch /var/lock/subsys/hcid
	daemon /usr/sbin/sdpd
	touch /var/lock/subsys/sdpd
	[ "$HID2HCI_ENABLE" = "true" ] && hid2hci --tohci > /dev/null 2>&1 || :
	start_uarts
	rfcomm bind all
	touch /var/lock/subsys/bluetooth
	echo ""
}

stop()
{
	echo -n "Stopping Bluetooth services:"
	stop_uarts
	rfcomm release all
	[ "$HID2HCI_UNDO" = "true" ] && hid2hci --tohid > /dev/null 2>&1 || :
	killproc sdpd
	rm -f /var/lock/subsys/sdpd
	killproc hcid
	rm -f /var/lock/subsys/hcid
	rm -f /var/lock/subsys/bluetooth
	echo ""
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|reload)
        stop
        start
        ;;
  condrestart)
        [ -e /var/lock/subsys/bluetooth ] && (stop; start)
        ;;
  status)
        status hcid
        status sdpd
        ;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
        exit 1
	;;
esac

exit 0
                                                           Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/wpa_supplicant                            0000755 0000000 0000000 00000003142 11524350231 025342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 12 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ "$NETWORKING" = "no" ] && exit 0

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
	echo -n $"Starting $prog: $conf $INTERFACES $DRIVERS $OTHER_ARGS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/cpuspeed                                  0000755 0000000 0000000 00000023356 11524350223 024133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# Startup script for cpuspeed
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 0 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    cpu_model=$(awk '/model\t/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_stepping=$(awk '/stepping/{print $3}' /proc/cpuinfo | tail -n 1)

    # http://www.intel.com/Assets/PDF/specupdate/314554.pdf
    #
    # AL30 “A Machine Check Exception (MCE) Occurring during an Enhanced Intel
    # SpeedStep® Technology Ratio Change May Cause Both Processor Cores to Lock
    # Up”, so do not start cpuspeed
    if [ "$cpu_vendor" == GenuineIntel ] && [ "$cpu_family" -eq 15 ] \
        && [ "$cpu_model" -eq 6 ] && [ "$cpu_stepping" -eq 8 ]; then
      $logger "Intel® Xeon® 7100 series CPU's errata will not allow cpuspeed to run."
      $logger "See errata AL30 in http://www.intel.com/Assets/PDF/specupdate/314554.pdf"
      echo -n "Frequency scaling disabled due to CPU bug (see syslog): "
      warning
      echo
      return 6
    fi

    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
        # Try loading powernow-k8 if this is an AMD processor,
        # family 7 or greater (Athlon XP/MP was family 6)
        pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
        if [ "$?" -eq 0 ]; then
          /sbin/modprobe powernow-k8 2> /dev/null
          [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
        fi
      elif [ -d /proc/acpi ]; then
        # try ACPI
        /sbin/modprobe acpi-cpufreq 2> /dev/null
	# last resort, try speedstep-centrino, if its modular
        if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r acpi-cpufreq 2> /dev/null
	  cm=$(/sbin/modinfo speedstep-centrino > /dev/null 2>&1)
          if [ "$?" -eq 0 ]; then
            /sbin/modprobe speedstep-centrino 2> /dev/null
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r speedstep-centrino 2> /dev/null
          fi
        fi
      elif [ $(grep -c "$flags.* est" /proc/cpuinfo) -ge 1 ]; then
        # we might still have a shot with speedstep-centrino...
	cm=$(/sbin/modinfo speedstep-centrino > /dev/null 2>&1)
        if [ "$?" -eq 0 ]; then
          /sbin/modprobe speedstep-centrino 2> /dev/null
          [ -d ${cpu0freqd} ] || /sbin/modprobe -r speedstep-centrino 2> /dev/null
        fi
      else
        # No scaling. Just exit.
        return 6
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # p4-clockmod's latency and lack of actual freq scaling ability
	# makes performance a much better default than ondemand here
        default_governor=performance
        ;;
      *)
        default_governor=userspace
        ;;
    esac

    # Frequency scaling on AMD rev F CPUs under Xen can result in
    # timekeeping problems for fully virtualized guests, so we disable
    # it by default.
    if [ -d "$xendir" ] && [ "$cpu_vendor" == AuthenticAMD ] \
       && [ "$cpu_family" -le 15 ]; then
      default_governor=performance
    fi

    governor=${GOVERNOR:-${default_governor}}

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      if [ ! -d "$xendir" ]; then
        start_cpuspeed
        RETVAL=$?
      else
        $logger "The userspace CPU freq scaling governor does not support Xen"
	RETVAL=6
      fi
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    # cpuspeed is already started
    RETVAL=1
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
    else
      status $prog
      RETVAL=$?
    fi
    ;;

  restart|reload|force-reload)
    stop
    start
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/yum-updatesd                              0000755 0000000 0000000 00000002732 11524350232 024737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# yum           Update notification daemon
#
# Author:       Jeremy Katz <katzj@redhat.com>
#
# chkconfig:	345 97 03
#
# description:  This is a daemon which periodically checks for updates \
#               and can send notifications via mail, dbus or syslog.
# processname:  yum-updatesd
# config: /etc/yum/yum-updatesd.conf
# pidfile: /var/run/yum-updatesd.pid
#

### BEGIN INIT INFO
# Provides: yum-updatesd
# Required-Start: $syslog $local_fs messagebus
# Required-Stop: $syslog $local_fs messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Update notification daemon
# Description: Daemon which notifies about available updates via mail, dbus or
#     syslog.  Can also be configured to automatically apply updates.
### END INIT INFO


# source function library
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
	echo -n $"Starting yum-updatesd: "
	daemon +19 'yum-updatesd &'
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/yum-updatesd
}

stop() {
	echo -n $"Stopping yum-updatesd: "
	killproc yum-updatesd
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/yum-updatesd
}

restart() {
	stop
	start
}

case "$1" in
  start)
	start
	;;
  stop) 
	stop
	;;
  restart|force-reload|reload)
	restart
	;;
  condrestart|try-restart)
	[ -f /var/lock/subsys/yum-updatesd ] && restart
	;;
  status)
	status yum-updatesd
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}"
	exit 1
esac

exit $RETVAL
                                      Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/winbind                                   0000755 0000000 0000000 00000003027 11524350231 023745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 91 35
# description: Starts and stops the Samba winbind daemon
#	       #
# pidfile: /var/run/winbindd.pid
# config:  /etc/samba/smb.conf


# Source function library.
if [ -f /etc/init.d/functions ] ; then
  . /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
  . /etc/rc.d/init.d/functions
else
  exit 1
fi

# Avoid using root's TMPDIR
unset TMPDIR

# Source networking configuration.
. /etc/sysconfig/network

if [ -f /etc/sysconfig/samba ]; then
   . /etc/sysconfig/samba
fi

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 1

# Check that smb.conf exists.
[ -f /etc/samba/smb.conf ] || exit 4

RETVAL=0


start() {
        KIND="Winbind"
	echo -n $"Starting $KIND services: "
	daemon winbindd "$WINBINDOPTIONS"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/winbindd || RETVAL=1
	return $RETVAL
}	

stop() {
        echo
	KIND="Winbind"
	echo -n $"Shutting down $KIND services: "
	killproc winbindd
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/winbindd
	echo ""
	return $RETVAL
}	

restart() {
	stop
	start
}	

reload() {
        echo -n $"Reloading smb.conf file: "
	killproc winbindd -HUP
	RETVAL=$?
	echo
	return $RETVAL
}	

rhstatus() {
	status winbindd
	return $?
}	

case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  restart)
  	restart
	;;
  reload)
  	reload
	;;
  status)
  	rhstatus
	;;
  condrestart)
  	[ -f /var/lock/subsys/winbindd ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/netfs                                     0000755 0000000 0000000 00000013331 11524350226 023435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       SMB/CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $local_fs $remote_fs
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0

NFSFSTAB=`LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab`
SMBFSTAB=`LC_ALL=C awk '!/^#/ && $3 == "smbfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab`
CIFSFSTAB=`LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab`
NCPFSTAB=`LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab`
NETDEVFSTAB=`LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab`

NFSMTAB=`LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts`
SMBMTAB=`LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts`
CIFSMTAB=`LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts`
NCPMTAB=`LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts`
NETDEVMTAB=`LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab`

# See how we were called.
case "$1" in
  start)
	# Let udev handle any backlog before trying to mount file systems
	/sbin/udevsettle --timeout=30
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/portmap ] && service portmap start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$SMBFSTAB" ] && action $"Mounting SMB filesystems: " mount -a -t smbfs
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s 
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath.static ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath.static -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a"
		fi
	    fi
	    if [ -x /sbin/lvm.static ]; then
		if /sbin/lvm.static vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm.static vgchange -a y
		fi
	    fi
	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
	    	if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
			/usr/bin/rhgb-client --details=yes >/dev/null 2>&1
		fi
	        
                failure "$STRING"
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,smbfs,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$SMBMTAB" ] && action $"Unmounting SMB filesystems: " umount -a -t smbfs
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$SMBFSTAB" ] && {
		     echo $"Configured SMB mountpoints: "
		     for fs in $SMBFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$SMBMTAB" ] && {
                      echo $"Active SMB mountpoints: "
		      for fs in $SMBMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 2
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload)
        $0 start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 1
esac

exit 0
                                                                                                                                                                                                                                                                                                       Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/rpcsvcgssd                                0000755 0000000 0000000 00000004662 11524350230 024501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# Authors:	Chuck Lever <cel@netapp.com>
#
# chkconfig: - 19 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFSv4 server.

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# See if we are configured to start 
[ "${SECURE_NFS}" != "yes" ] && exit 6

RETVAL=0
LOCKFILE=/var/lock/subsys/rpcsvcgssd
prog="rpc.svcgssd"

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condstart|condrestart|status}"
	RETVAL=3
	;;
esac

exit $RETVAL
                                                                              Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/conman                                    0000755 0000000 0000000 00000002676 11524350223 023600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 95 5
# description: The ConMan daemon is used for console management.
#

CONMAND=/usr/sbin/conmand

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Default params, override in /etc/sysconfig/conman
CONFIG=/etc/conman.conf
OPTIONS=
USER=root
NICE=
#SIGHUP_RELOAD=
#PIDFILE=

. /etc/sysconfig/conman

RETVAL="0"

# Disable suppression of stderr msgs.
INITLOG_ARGS=""

# See how we were called.
case "$1" in
  start)
	echo -n "Starting ConMan: "
	if [ ! -x "$CONMAND" ]; then
        	echo_failure; echo
		exit 5
	fi
	CONSOLES=`grep -c "^CONSOLE" $CONFIG`
	RETVAL=$?
	if [ "$RETVAL" -ge "1" ]; then
		echo
		echo -n "  ERROR: No CONSOLE(s) defined! "
		echo_failure
	else
		daemon $NICE --user $USER $CONMAND -c $CONFIG $OPTIONS
		RETVAL=$?
	fi
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/conman
	;;
  stop)
	echo -n "Stopping ConMan: "
	if [ ! -x "$CONMAND" ]; then
        	echo_failure; echo
		exit 5
	fi
	killproc conmand
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/conman
	;;
  status)
	status conmand
	RETVAL=$?
	;;
  restart)
	$0 status >/dev/null && $0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	[ -f "/var/lock/subsys/conman" ] && $0 restart || :
	RETVAL=$?
	echo
	;;
  reload)
	echo -n "Reloading ConMan: "
	killproc conmand -HUP
	RETVAL=$?
	echo
	;;
  *)
	echo "Usage: $0 {start|stop|status|restart|reload}"
	exit 3
esac

exit $RETVAL
                                                                  Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/killall                                   0000755 0000000 0000000 00000001214 11524350225 023736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/rdisc                                     0000755 0000000 0000000 00000002553 11524350227 023427  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
# rdisc:        Starts the rdisc Daemon
#
# chkconfig: - 41 89
# description: This is a daemon which discovers routers on the local subnet.
# processname: rdisc
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


# Check that networking is configured.
[ ${NETWORKING} = "no" ] && exit 0

start() {
	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=1
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rdisc
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=1
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/rdisc
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 1
esac

exit $?
                                                                                                                                                     Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/httpd                                     0000755 0000000 0000000 00000006277 11524350224 023452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: Apache is a World Wide Web server.  It is used to serve \
#	       HTML files and CGI.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd.pid

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# check for 1.3 configuration
check13 () {
	CONFFILE=/etc/httpd/conf/httpd.conf
	GONE="(ServerType|BindAddress|Port|AddModule|ClearModuleList|"
	GONE="${GONE}AgentLog|RefererLog|RefererIgnore|FancyIndexing|"
	GONE="${GONE}AccessConfig|ResourceConfig)"
	if LANG=C grep -Eiq "^[[:space:]]*($GONE)" $CONFFILE; then
		echo
		echo 1>&2 " Apache 1.3 configuration directives found"
		echo 1>&2 " please read /usr/share/doc/httpd-2.2.3/migration.html"
		failure "Apache 1.3 config directives test"
		echo
		exit 1
	fi
}

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        check13 || exit 1
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=$?
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart)
	if [ -f ${pidfile} ] ; then
		stop
		start
	fi
	;;
  reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/ntpd                                      0000755 0000000 0000000 00000006441 11524350227 023270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

if [ -f /etc/sysconfig/ntpd ];then
        . /etc/sysconfig/ntpd
fi

ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers


RETVAL=0
prog="ntpd"

sync_hwclock() {
	ARC=0
	SRM=0
	UTC=0

	if [ -f /etc/sysconfig/clock ]; then
	   . /etc/sysconfig/clock

	   # convert old style clock config to new values
	   if [ "${CLOCKMODE}" = "GMT" ]; then
	      UTC=true
	   elif [ "${CLOCKMODE}" = "ARC" ]; then
	      ARC=true
	   fi
	fi

	CLOCKFLAGS="$CLOCKFLAGS --systohc"

	case "$UTC" in
	    yes|true)	CLOCKFLAGS="$CLOCKFLAGS --utc";;
	    no|false)	CLOCKFLAGS="$CLOCKFLAGS --localtime";;
	esac
	case "$ARC" in
	    yes|true)	CLOCKFLAGS="$CLOCKFLAGS --arc";;
	esac
	case "$SRM" in
	    yes|true)	CLOCKFLAGS="$CLOCKFLAGS --srm";;
	esac

	action $"Syncing hardware clock to system time" /sbin/hwclock $CLOCKFLAGS
}

readconf() {
	dostep=''
	dropstr=''
	OPTIND=1
	while getopts ":46aAbc:dD:f:gi:k:l:LnN:p:P:qr:s:t:u:v:V:x" args $OPTIONS;
	do 
	  case "$args" in
	    x) dostep=yes;;
	    c) ntpconf="$OPTARG";;
	    u) dropstr="-U $(echo $OPTARG | sed 's/:.*//')";;
	  esac
	done

	[ -x /usr/sbin/ntpd -a -f $ntpconf ] || exit 0

	tickers=''
	if [ -s "$ntpstep" ]; then
	    tickers=$(sed 's/#.*//' $ntpstep)
	    echo "$tickers" | grep -qi '[a-z0-9]' && dostep=yes || tickers=''
	fi
	if [ -n "$dostep" -a -z "$tickers" ]; then
	    # -x option is used, but step-tickers doesn't exist or contain
	    # anything useful, use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
	        fgrep -v 127.127.1.0)
	fi
}

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "no" ] && exit 1

	readconf;

	if [ -n "$dostep" ]; then
	    echo -n $"$prog: Synchronizing with time server: "
	    /usr/sbin/ntpdate $dropstr -s -b $NTPDATE_OPTIONS $tickers &>/dev/null
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && success || failure
	    echo
	    if [ $RETVAL -eq 0 ]; then
	        [ "$SYNC_HWCLOCK" = "yes" ] && sync_hwclock
	    else
	        OPTIONS="$OPTIONS -g"
	    fi
	else
	    # -g can replace the grep for time servers
	    # as it permits ntpd to violate its 1000s limit once.
	    OPTIONS="$OPTIONS -g"
	fi
        # Start daemons.
        echo -n $"Starting $prog: "
        daemon ntpd $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ntpd
	return $RETVAL
}

stop() {
        echo -n $"Shutting down $prog: "
	killproc ntpd
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/ntpd
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status ntpd
	RETVAL=$?
	;;
  restart|reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart)
	if [ -f /var/lock/subsys/ntpd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|status}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/smartd                                    0000755 0000000 0000000 00000005264 11524350230 023611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: 2345 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd

start()
{
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|reload|force-reload|report|restart|try-restart|status}"
		RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/ipmievd                                   0000755 0000000 0000000 00000003753 11524350224 023760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/ipmievd
#
#       Based on example sysvinitfiles script
#       Copyright (c) 2000 Red Hat Software, Inc.
#
# chkconfig: - 99 00
# description: ipmievd daemon to send events to syslog
# processname: ipmievd
# config:      /etc/sysconfig/ipmievd
#
### BEGIN INIT INFO
# Provides:          ipmievd
# Required-Start:    $syslog ipmi
# Should-Start: $time
# Required-Stop:     $syslog ipmi
# Should-Stop: $time
# Default-Start:
# Default-Stop:
# Short-Description: ipmievd daemon to send events to syslog
# Description:       Start ipmievd to read events from BMC and
#	             log them to syslog.  Events correspond to hardware faults,
#	             state transitions such as power on and off, and sensor
#	             readings such as temperature, voltage and fan speed that
#	             are abnormal.
### END INIT INFO

IPMIEVD_BIN=/usr/sbin/ipmievd
test -x $IPMIEVD_BIN || { echo "$IPMIEVD_BIN not installed";
        if [ "$1" = "stop" ]; then exit 0;
        else exit 5; fi; }

# Check for existence of needed config file
IPMIEVD_CONFIG=/etc/sysconfig/ipmievd
test -r $IPMIEVD_CONFIG || { echo "$IPMIEVD_CONFIG does not exist";
        if [ "$1" = "stop" ]; then exit 0;
        else exit 6; fi; }

# Read config file
. $IPMIEVD_CONFIG

# Source function library.
. /etc/init.d/functions

start() {
	echo "Starting ipmievd:"
	if [ -f /var/lock/subsys/ipmievd ]; then
		return 0
	fi
	daemon $IPMIEVD_BIN $IPMIEVD_OPTIONS
	ret=$?
	[ $ret -eq 0 ] && touch /var/lock/subsys/ipmievd
	return $ret
}	

stop() {
	echo "Shutting down ipmievd:"
	killproc $IPMIEVD_BIN
	ret=$?
	[ $ret -eq 0 ] && rm -f /var/lock/subsys/ipmievd
	return $ret
}

restart() {
	stop
	start
}

case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
	status $IPMIEVD_BIN
	;;
    restart|reload|force-reload)
	restart
	;;
    try-restart|condrestart)
	[ -f /var/lock/subsys/ipmievd ] && restart || :
	;;
    *)
	echo "Usage: ipmievd {start|stop|status|reload|restart|condrestart}"
	exit 1
	;;
esac
exit $?
                     Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/smb                                       0000755 0000000 0000000 00000004141 11524350231 023072  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 91 35
# description: Starts and stops the Samba smbd and nmbd daemons \
#	       used to provide SMB network services.
#
# pidfile: /var/run/samba/smbd.pid
# pidfile: /var/run/samba/nmbd.pid
# config:  /etc/samba/smb.conf


# Source function library.
if [ -f /etc/init.d/functions ] ; then
  . /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
  . /etc/rc.d/init.d/functions
else
  exit 1
fi

# Avoid using root's TMPDIR
unset TMPDIR

# Source networking configuration.
. /etc/sysconfig/network

if [ -f /etc/sysconfig/samba ]; then
   . /etc/sysconfig/samba
fi

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 1

# Check that smb.conf exists.
[ -f /etc/samba/smb.conf ] || exit 6

RETVAL=0


start() {
        KIND="SMB"
	echo -n $"Starting $KIND services: "
	daemon smbd $SMBDOPTIONS
	RETVAL=$?
	echo
        KIND="NMB"
	echo -n $"Starting $KIND services: "
	daemon nmbd $NMBDOPTIONS
	RETVAL2=$?
	echo
	[ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && touch /var/lock/subsys/smb || \
	   RETVAL=1
	return $RETVAL
}	

stop() {
        KIND="SMB"
	echo -n $"Shutting down $KIND services: "
	killproc smbd
	RETVAL=$?
	echo
	KIND="NMB"
	echo -n $"Shutting down $KIND services: "
	killproc nmbd
	RETVAL2=$?
	[ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && rm -f /var/lock/subsys/smb
	echo ""
	return $RETVAL
}	

restart() {
	stop
	start
}	

reload() {
        echo -n $"Reloading smb.conf file: "
	killproc smbd -HUP
	RETVAL=$?
	echo
	return $RETVAL
}	

rhstatus() {
	status smbd
	RETVAL=$?
	status nmbd
	RETVAL2=$?
	if [ $RETVAL -ne 0 ] ; then
		return $RETVAL
	fi
	if [ $RETVAL2 -ne 0 ] ; then
		return $RETVAL2
	fi
}	


# Allow status as non-root.
if [ "$1" = status ]; then
       rhstatus
       exit $?
fi

# Check that we can write to it... so non-root users stop here
[ -w /etc/samba/smb.conf ] || exit 4



case "$1" in
  start)
  	start
	;;
  stop)
  	stop
	;;
  restart)
  	restart
	;;
  reload)
  	reload
	;;
  status)
  	rhstatus
	;;
  condrestart)
  	[ -f /var/lock/subsys/smb ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/sendmail                                  0000755 0000000 0000000 00000006425 11524350230 024113  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sendmail      This shell script takes care of starting and stopping
#               sendmail.
#
# chkconfig: 2345 80 30
# description: Sendmail is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: sendmail
# config: /etc/mail/sendmail.cf
# pidfile: /var/run/sendmail.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Source sendmail configureation.
if [ -f /etc/sysconfig/sendmail ] ; then
	. /etc/sysconfig/sendmail
else
	DAEMON=no
	QUEUE=1h
fi
[ -z "$SMQUEUE" ] && SMQUEUE="$QUEUE"
[ -z "$SMQUEUE" ] && SMQUEUE=1h

# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0

[ -f /usr/sbin/sendmail ] || exit 0

RETVAL=0
prog="sendmail"

start() {
	# Start daemons.

	echo -n $"Starting $prog: "
	if test -x /usr/bin/make -a -f /etc/mail/Makefile ; then
	  make all -C /etc/mail -s > /dev/null
	else
	  for i in virtusertable access domaintable mailertable ; do
	    if [ -f /etc/mail/$i ] ; then
		makemap hash /etc/mail/$i < /etc/mail/$i
	    fi
	  done
	fi
	/usr/bin/newaliases > /dev/null 2>&1
	daemon /usr/sbin/sendmail $([ "x$DAEMON" = xyes ] && echo -bd) \
			$([ -n "$QUEUE" ] && echo -q$QUEUE) $SENDMAIL_OPTARG
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/sendmail

	if ! test -f /var/run/sm-client.pid ; then
	echo -n $"Starting sm-client: "
	touch /var/run/sm-client.pid
	chown smmsp:smmsp /var/run/sm-client.pid
	if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
	    /sbin/restorecon /var/run/sm-client.pid
	fi
	daemon --check sm-client /usr/sbin/sendmail -L sm-msp-queue -Ac \
			-q$SMQUEUE $SENDMAIL_OPTARG
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sm-client
        fi

	return $RETVAL
}

reload() {
	# Stop daemons.
    	echo -n $"reloading $prog: "
	/usr/bin/newaliases > /dev/null 2>&1
	if [ -x /usr/bin/make -a -f /etc/mail/Makefile ]; then
	  make all -C /etc/mail -s > /dev/null
	else
	  for i in virtusertable access domaintable mailertable ; do
	    if [ -f /etc/mail/$i ] ; then
		makemap hash /etc/mail/$i < /etc/mail/$i
	    fi
	  done
	fi
	daemon /usr/sbin/sendmail $([ "x$DAEMON" = xyes ] && echo -bd) \
	    $([ -n "$QUEUE" ] && echo -q$QUEUE)
	RETVAL=$?
	killproc sendmail -HUP
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 -a -f /var/run/sm-client.pid ]; then
		echo -n $"reloading sm-client: "
		killproc sm-client -HUP
		RETVAL=$?
		echo
	fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	if test -f /var/run/sm-client.pid ; then
		echo -n $"Shutting down sm-client: "
		killproc sm-client
		RETVAL=$?
		echo
		[ $RETVAL -eq 0 ] && rm -f /var/run/sm-client.pid
		[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sm-client
	fi
	echo -n $"Shutting down $prog: "
	killproc sendmail
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sendmail
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  reload)
	reload
	RETVAL=$?
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  condrestart)
	if [ -f /var/lock/subsys/sendmail ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status sendmail
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                           Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/gpm                                       0000755 0000000 0000000 00000003362 11524350224 023102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: 2345 85 15
# description: GPM adds mouse support to text-based Linux applications such \
#              as the Midnight Commander. It also allows mouse-based console \
#              cut-and-paste operations, and includes support for pop-up \
#              menus on the console.
# processname: gpm
# pidfile: /var/run/gpm.pid
# config: /etc/sysconfig/mouse

# source function library
. /etc/init.d/functions

if test -e /etc/sysconfig/mouse ; then
    . /etc/sysconfig/mouse
fi

RETVAL=0

start() {
	echo -n $"Starting console mouse services: "

	if [ -z "$MOUSETYPE" ]; then
	    MOUSETYPE="exps2"
	fi

	if [ -z "$DEVICE" ]; then
	    DEVICE="/dev/input/mice"
	fi

	if [ "$MOUSETYPE" = "none" ]; then
		echo $"(no mouse is configured)"
		exit 0
	fi

	if [ "$MOUSETYPE" = "Microsoft" ]; then
		MOUSETYPE=ms
	fi

	if [ -n "$IMOUSETYPE" ]; then
                if [ "$(pidofproc inputattach)" = "" ]; then
			modprobe sermouse > /dev/null 2>&1
			/usr/sbin/inputattach -$IMOUSETYPE $DEVICE --daemon
			DEVICE="/dev/input/mice"
			MOUSETYPE="exps2"
		fi
        fi

	if [ -n "$MOUSETYPE" ]; then
		daemon gpm -m $DEVICE -t $MOUSETYPE $OPTIONS
	else
		daemon gpm -m $DEVICE $OPTIONS
	fi
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/gpm
}

stop() {
	echo -n $"Shutting down console mouse services: "
	killproc gpm
	if [ -n "$IMOUSETYPE" ]; then
		killproc inputattach
	fi
	RETVAL=$?

	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/gpm
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|reload)
	stop
	start
	;;
  condrestart)
	if [ -f /var/lock/subsys/gpm ]; then
	    stop
	    start
	fi
	;;
  status)
	status gpm
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-master/etc/rc.d/init.d/microcode_ctl                             0000755 0000000 0000000 00000003606 11524350226 025130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# vars:
#
# START			distribution specific way of kicking programs
# END			distribution specific way of checking return status
# PROGRAM		the executable to run
# ARGUMENTS		the argument we're going to call PROGRAM with

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DEVICE=/dev/cpu/microcode
ARGUMENTS=-Qu
RETVAL=0
PROGRAM=/sbin/microcode_ctl
DATAFILE=/etc/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c $DEVICE ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 1;
	done

	# Lets just be sure we have a device file...
	if [ ! -e $DEVICE ]; then
		echo $"$0: microcode device $DEVICE doesn't exist?"
		exit 1
	elif [ ! -c $DEVICE ]; then
		echo $"$0: $DEVICE not a character device?"
		exit 1
	fi

	daemon $PROGRAM $ARGUMENTS
	RETVAL=$?

	# trap the most common case, errno 19 = no device
	if [ $RETVAL -eq 19 ]; then
		echo $"$0: kernel does not have CPU microcode device support"
	fi
	/sbin/rmmod microcode
	echo

	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/microcode_ctl
	return $RETVAL
}

stop()
{
	rm -f /var/lock/subsys/microcode_ctl
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
    stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                          Physical_Configuration/Clients/tb3-master/etc/hosts                                                 0000644 0000000 0000000 00000033447 11524350221 021445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

10.1.216.100	autobench tb3-autobench tb3-autobench.linuxperf9025.net
10.1.216.150	tb3-master
10.1.216.246	tb3-mako18

#10.1.216.11		tb3-client01
10.1.216.12		tb3-client02
10.1.216.13		tb3-client03
10.1.216.14		tb3-client04

10.1.216.11		tb3-vct01	tb3-vct01.linuxperf9025.net tb3-client01
#10.1.216.151		tb3-vct01	tb3-vct01.linuxperf9025.net 
10.1.216.152		tb3-vct02	tb3-vct02.linuxperf9025.net
10.1.216.153		tb3-vct03	tb3-vct03.linuxperf9025.net
10.1.216.154		tb3-vct04	tb3-vct04.linuxperf9025.net
10.1.216.155		tb3-vct05	tb3-vct05.linuxperf9025.net
10.1.216.156		tb3-vct06	tb3-vct06.linuxperf9025.net
10.1.216.157		tb3-vct07	tb3-vct07.linuxperf9025.net
10.1.216.158		tb3-vct08	tb3-vct08.linuxperf9025.net
10.1.216.159		tb3-vct09	tb3-vct09.linuxperf9025.net
10.1.216.160		tb3-vct10	tb3-vct10.linuxperf9025.net
10.1.216.161		tb3-vct11	tb3-vct11.linuxperf9025.net
10.1.216.162		tb3-vct12	tb3-vct12.linuxperf9025.net
10.1.216.163		tb3-vct13	tb3-vct13.linuxperf9025.net
10.1.216.164		tb3-vct14	tb3-vct14.linuxperf9025.net
10.1.216.165		tb3-vct15	tb3-vct15.linuxperf9025.net
10.1.216.166		tb3-vct16	tb3-vct16.linuxperf9025.net
10.1.216.167		tb3-vct17	tb3-vct17.linuxperf9025.net
10.1.216.168		tb3-vct18	tb3-vct18.linuxperf9025.net
10.1.216.169		tb3-vct19	tb3-vct19.linuxperf9025.net
10.1.216.170		tb3-vct20	tb3-vct20.linuxperf9025.net
10.1.216.171		tb3-vct21	tb3-vct21.linuxperf9025.net
10.1.216.172		tb3-vct22	tb3-vct22.linuxperf9025.net
10.1.216.173		tb3-vct23	tb3-vct23.linuxperf9025.net
10.1.216.174		tb3-vct24	tb3-vct24.linuxperf9025.net
10.1.216.175		tb3-vct25	tb3-vct25.linuxperf9025.net
10.1.216.176		tb3-vct26	tb3-vct26.linuxperf9025.net
10.1.216.177		tb3-vct27	tb3-vct27.linuxperf9025.net
10.1.216.178		tb3-vct28	tb3-vct28.linuxperf9025.net
10.1.216.179		tb3-vct29	tb3-vct29.linuxperf9025.net
10.1.216.180		tb3-vct30	tb3-vct30.linuxperf9025.net
10.1.216.181		tb3-vct31	tb3-vct31.linuxperf9025.net
10.1.216.182		tb3-vct32	tb3-vct32.linuxperf9025.net
10.1.216.183		tb3-vct33	tb3-vct33.linuxperf9025.net
10.1.216.184		tb3-vct34	tb3-vct34.linuxperf9025.net
10.1.216.185		tb3-vct35	tb3-vct35.linuxperf9025.net
10.1.216.186		tb3-vct36	tb3-vct36.linuxperf9025.net

10.1.217.1		tb3-webt01	tb3-webt01.linuxperf9025.net
10.1.217.2		tb3-appt01	tb3-appt01.linuxperf9025.net
10.1.217.3		tb3-dbt01	tb3-dbt01.linuxperf9025.net
10.1.217.4		tb3-idlet01	tb3-idlet01.linuxperf9025.net
10.1.217.5		tb3-infrat01	tb3-infrat01.linuxperf9025.net
10.1.217.6		tb3-mailt01	tb3-mailt01.linuxperf9025.net
10.1.217.7		tb3-webt02	tb3-webt02.linuxperf9025.net
10.1.217.8		tb3-appt02	tb3-appt02.linuxperf9025.net
10.1.217.9		tb3-dbt02	tb3-dbt02.linuxperf9025.net
10.1.217.10		tb3-idlet02	tb3-idlet02.linuxperf9025.net
10.1.217.11		tb3-infrat02	tb3-infrat02.linuxperf9025.net
10.1.217.12		tb3-mailt02	tb3-mailt02.linuxperf9025.net
10.1.217.13		tb3-webt03	tb3-webt03.linuxperf9025.net
10.1.217.14		tb3-appt03	tb3-appt03.linuxperf9025.net
10.1.217.15		tb3-dbt03	tb3-dbt03.linuxperf9025.net
10.1.217.16		tb3-idlet03	tb3-idlet03.linuxperf9025.net
10.1.217.17		tb3-infrat03	tb3-infrat03.linuxperf9025.net
10.1.217.18		tb3-mailt03	tb3-mailt03.linuxperf9025.net
10.1.217.19		tb3-webt04	tb3-webt04.linuxperf9025.net
10.1.217.20		tb3-appt04	tb3-appt04.linuxperf9025.net
10.1.217.21		tb3-dbt04	tb3-dbt04.linuxperf9025.net
10.1.217.22		tb3-idlet04	tb3-idlet04.linuxperf9025.net
10.1.217.23		tb3-infrat04	tb3-infrat04.linuxperf9025.net
10.1.217.24		tb3-mailt04	tb3-mailt04.linuxperf9025.net
10.1.217.25		tb3-webt05	tb3-webt05.linuxperf9025.net
10.1.217.26		tb3-appt05	tb3-appt05.linuxperf9025.net
10.1.217.27		tb3-dbt05	tb3-dbt05.linuxperf9025.net
10.1.217.28		tb3-idlet05	tb3-idlet05.linuxperf9025.net
10.1.217.29		tb3-infrat05	tb3-infrat05.linuxperf9025.net
10.1.217.30		tb3-mailt05	tb3-mailt05.linuxperf9025.net
10.1.217.31		tb3-webt06	tb3-webt06.linuxperf9025.net
10.1.217.32		tb3-appt06	tb3-appt06.linuxperf9025.net
10.1.217.33		tb3-dbt06	tb3-dbt06.linuxperf9025.net
10.1.217.34		tb3-idlet06	tb3-idlet06.linuxperf9025.net
10.1.217.35		tb3-infrat06	tb3-infrat06.linuxperf9025.net
10.1.217.36		tb3-mailt06	tb3-mailt06.linuxperf9025.net
10.1.217.37		tb3-webt07	tb3-webt07.linuxperf9025.net
10.1.217.38		tb3-appt07	tb3-appt07.linuxperf9025.net
10.1.217.39		tb3-dbt07	tb3-dbt07.linuxperf9025.net
10.1.217.40		tb3-idlet07	tb3-idlet07.linuxperf9025.net
10.1.217.41		tb3-infrat07	tb3-infrat07.linuxperf9025.net
10.1.217.42		tb3-mailt07	tb3-mailt07.linuxperf9025.net
10.1.217.43		tb3-webt08	tb3-webt08.linuxperf9025.net
10.1.217.44		tb3-appt08	tb3-appt08.linuxperf9025.net
10.1.217.45		tb3-dbt08	tb3-dbt08.linuxperf9025.net
10.1.217.46		tb3-idlet08	tb3-idlet08.linuxperf9025.net
10.1.217.47		tb3-infrat08	tb3-infrat08.linuxperf9025.net
10.1.217.48		tb3-mailt08	tb3-mailt08.linuxperf9025.net
10.1.217.49		tb3-webt09	tb3-webt09.linuxperf9025.net
10.1.217.50		tb3-appt09	tb3-appt09.linuxperf9025.net
10.1.217.51		tb3-dbt09	tb3-dbt09.linuxperf9025.net
10.1.217.52		tb3-idlet09	tb3-idlet09.linuxperf9025.net
10.1.217.53		tb3-infrat09	tb3-infrat09.linuxperf9025.net
10.1.217.54		tb3-mailt09	tb3-mailt09.linuxperf9025.net
10.1.217.55		tb3-webt10	tb3-webt10.linuxperf9025.net
10.1.217.56		tb3-appt10	tb3-appt10.linuxperf9025.net
10.1.217.57		tb3-dbt10	tb3-dbt10.linuxperf9025.net
10.1.217.58		tb3-idlet10	tb3-idlet10.linuxperf9025.net
10.1.217.59		tb3-infrat10	tb3-infrat10.linuxperf9025.net
10.1.217.60		tb3-mailt10	tb3-mailt10.linuxperf9025.net
10.1.217.61		tb3-webt11	tb3-webt11.linuxperf9025.net
10.1.217.62		tb3-appt11	tb3-appt11.linuxperf9025.net
10.1.217.63		tb3-dbt11	tb3-dbt11.linuxperf9025.net
10.1.217.64		tb3-idlet11	tb3-idlet11.linuxperf9025.net
10.1.217.65		tb3-infrat11	tb3-infrat11.linuxperf9025.net
10.1.217.66		tb3-mailt11	tb3-mailt11.linuxperf9025.net
10.1.217.67		tb3-webt12	tb3-webt12.linuxperf9025.net
10.1.217.68		tb3-appt12	tb3-appt12.linuxperf9025.net
10.1.217.69		tb3-dbt12	tb3-dbt12.linuxperf9025.net
10.1.217.70		tb3-idlet12	tb3-idlet12.linuxperf9025.net
10.1.217.71		tb3-infrat12	tb3-infrat12.linuxperf9025.net
10.1.217.72		tb3-mailt12	tb3-mailt12.linuxperf9025.net
10.1.217.73		tb3-webt13	tb3-webt13.linuxperf9025.net
10.1.217.74		tb3-appt13	tb3-appt13.linuxperf9025.net
10.1.217.75		tb3-dbt13	tb3-dbt13.linuxperf9025.net
10.1.217.76		tb3-idlet13	tb3-idlet13.linuxperf9025.net
10.1.217.77		tb3-infrat13	tb3-infrat13.linuxperf9025.net
10.1.217.78		tb3-mailt13	tb3-mailt13.linuxperf9025.net
10.1.217.79		tb3-webt14	tb3-webt14.linuxperf9025.net
10.1.217.80		tb3-appt14	tb3-appt14.linuxperf9025.net
10.1.217.81		tb3-dbt14	tb3-dbt14.linuxperf9025.net
10.1.217.82		tb3-idlet14	tb3-idlet14.linuxperf9025.net
10.1.217.83		tb3-infrat14	tb3-infrat14.linuxperf9025.net
10.1.217.84		tb3-mailt14	tb3-mailt14.linuxperf9025.net
10.1.217.85		tb3-webt15	tb3-webt15.linuxperf9025.net
10.1.217.86		tb3-appt15	tb3-appt15.linuxperf9025.net
10.1.217.87		tb3-dbt15	tb3-dbt15.linuxperf9025.net
10.1.217.88		tb3-idlet15	tb3-idlet15.linuxperf9025.net
10.1.217.89		tb3-infrat15	tb3-infrat15.linuxperf9025.net
10.1.217.90		tb3-mailt15	tb3-mailt15.linuxperf9025.net
10.1.217.91		tb3-webt16	tb3-webt16.linuxperf9025.net
10.1.217.92		tb3-appt16	tb3-appt16.linuxperf9025.net
10.1.217.93		tb3-dbt16	tb3-dbt16.linuxperf9025.net
10.1.217.94		tb3-idlet16	tb3-idlet16.linuxperf9025.net
10.1.217.95		tb3-infrat16	tb3-infrat16.linuxperf9025.net
10.1.217.96		tb3-mailt16	tb3-mailt16.linuxperf9025.net
10.1.217.97		tb3-webt17	tb3-webt17.linuxperf9025.net
10.1.217.98		tb3-appt17	tb3-appt17.linuxperf9025.net
10.1.217.99		tb3-dbt17	tb3-dbt17.linuxperf9025.net
10.1.217.100		tb3-idlet17	tb3-idlet17.linuxperf9025.net
10.1.217.101		tb3-infrat17	tb3-infrat17.linuxperf9025.net
10.1.217.102		tb3-mailt17	tb3-mailt17.linuxperf9025.net
10.1.217.103		tb3-webt18	tb3-webt18.linuxperf9025.net
10.1.217.104		tb3-appt18	tb3-appt18.linuxperf9025.net
10.1.217.105		tb3-dbt18	tb3-dbt18.linuxperf9025.net
10.1.217.106		tb3-idlet18	tb3-idlet18.linuxperf9025.net
10.1.217.107		tb3-infrat18	tb3-infrat18.linuxperf9025.net
10.1.217.108		tb3-mailt18	tb3-mailt18.linuxperf9025.net
10.1.217.109		tb3-webt19	tb3-webt19.linuxperf9025.net
10.1.217.110		tb3-appt19	tb3-appt19.linuxperf9025.net
10.1.217.111		tb3-dbt19	tb3-dbt19.linuxperf9025.net
10.1.217.112		tb3-idlet19	tb3-idlet19.linuxperf9025.net
10.1.217.113		tb3-infrat19	tb3-infrat19.linuxperf9025.net
10.1.217.114		tb3-mailt19	tb3-mailt19.linuxperf9025.net
10.1.217.115		tb3-webt20	tb3-webt20.linuxperf9025.net
10.1.217.116		tb3-appt20	tb3-appt20.linuxperf9025.net
10.1.217.117		tb3-dbt20	tb3-dbt20.linuxperf9025.net
10.1.217.118		tb3-idlet20	tb3-idlet20.linuxperf9025.net
10.1.217.119		tb3-infrat20	tb3-infrat20.linuxperf9025.net
10.1.217.120		tb3-mailt20	tb3-mailt20.linuxperf9025.net
10.1.217.121		tb3-webt21	tb3-webt21.linuxperf9025.net
10.1.217.122		tb3-appt21	tb3-appt21.linuxperf9025.net
10.1.217.123		tb3-dbt21	tb3-dbt21.linuxperf9025.net
10.1.217.124		tb3-idlet21	tb3-idlet21.linuxperf9025.net
10.1.217.125		tb3-infrat21	tb3-infrat21.linuxperf9025.net
10.1.217.126		tb3-mailt21	tb3-mailt21.linuxperf9025.net
10.1.217.127		tb3-webt22	tb3-webt22.linuxperf9025.net
10.1.217.128		tb3-appt22	tb3-appt22.linuxperf9025.net
10.1.217.129		tb3-dbt22	tb3-dbt22.linuxperf9025.net
10.1.217.130		tb3-idlet22	tb3-idlet22.linuxperf9025.net
10.1.217.131		tb3-infrat22	tb3-infrat22.linuxperf9025.net
10.1.217.132		tb3-mailt22	tb3-mailt22.linuxperf9025.net
10.1.217.133		tb3-webt23	tb3-webt23.linuxperf9025.net
10.1.217.134		tb3-appt23	tb3-appt23.linuxperf9025.net
10.1.217.135		tb3-dbt23	tb3-dbt23.linuxperf9025.net
10.1.217.136		tb3-idlet23	tb3-idlet23.linuxperf9025.net
10.1.217.137		tb3-infrat23	tb3-infrat23.linuxperf9025.net
10.1.217.138		tb3-mailt23	tb3-mailt23.linuxperf9025.net
10.1.217.139		tb3-webt24	tb3-webt24.linuxperf9025.net
10.1.217.140		tb3-appt24	tb3-appt24.linuxperf9025.net
10.1.217.141		tb3-dbt24	tb3-dbt24.linuxperf9025.net
10.1.217.142		tb3-idlet24	tb3-idlet24.linuxperf9025.net
10.1.217.143		tb3-infrat24	tb3-infrat24.linuxperf9025.net
10.1.217.144		tb3-mailt24	tb3-mailt24.linuxperf9025.net
10.1.217.145		tb3-webt25	tb3-webt25.linuxperf9025.net
10.1.217.146		tb3-appt25	tb3-appt25.linuxperf9025.net
10.1.217.147		tb3-dbt25	tb3-dbt25.linuxperf9025.net
10.1.217.148		tb3-idlet25	tb3-idlet25.linuxperf9025.net
10.1.217.149		tb3-infrat25	tb3-infrat25.linuxperf9025.net
10.1.217.150		tb3-mailt25	tb3-mailt25.linuxperf9025.net
10.1.217.151		tb3-webt26	tb3-webt26.linuxperf9025.net
10.1.217.152		tb3-appt26	tb3-appt26.linuxperf9025.net
10.1.217.153		tb3-dbt26	tb3-dbt26.linuxperf9025.net
10.1.217.154		tb3-idlet26	tb3-idlet26.linuxperf9025.net
10.1.217.155		tb3-infrat26	tb3-infrat26.linuxperf9025.net
10.1.217.156		tb3-mailt26	tb3-mailt26.linuxperf9025.net
10.1.217.157		tb3-webt27	tb3-webt27.linuxperf9025.net
10.1.217.158		tb3-appt27	tb3-appt27.linuxperf9025.net
10.1.217.159		tb3-dbt27	tb3-dbt27.linuxperf9025.net
10.1.217.160		tb3-idlet27	tb3-idlet27.linuxperf9025.net
10.1.217.161		tb3-infrat27	tb3-infrat27.linuxperf9025.net
10.1.217.162		tb3-mailt27	tb3-mailt27.linuxperf9025.net
10.1.217.163		tb3-webt28	tb3-webt28.linuxperf9025.net
10.1.217.164		tb3-appt28	tb3-appt28.linuxperf9025.net
10.1.217.165		tb3-dbt28	tb3-dbt28.linuxperf9025.net
10.1.217.166		tb3-idlet28	tb3-idlet28.linuxperf9025.net
10.1.217.167		tb3-infrat28	tb3-infrat28.linuxperf9025.net
10.1.217.168		tb3-mailt28	tb3-mailt28.linuxperf9025.net
10.1.217.169		tb3-webt29	tb3-webt29.linuxperf9025.net
10.1.217.170		tb3-appt29	tb3-appt29.linuxperf9025.net
10.1.217.171		tb3-dbt29	tb3-dbt29.linuxperf9025.net
10.1.217.172		tb3-idlet29	tb3-idlet29.linuxperf9025.net
10.1.217.173		tb3-infrat29	tb3-infrat29.linuxperf9025.net
10.1.217.174		tb3-mailt29	tb3-mailt29.linuxperf9025.net
10.1.217.175		tb3-webt30	tb3-webt30.linuxperf9025.net
10.1.217.176		tb3-appt30	tb3-appt30.linuxperf9025.net
10.1.217.177		tb3-dbt30	tb3-dbt30.linuxperf9025.net
10.1.217.178		tb3-idlet30	tb3-idlet30.linuxperf9025.net
10.1.217.179		tb3-infrat30	tb3-infrat30.linuxperf9025.net
10.1.217.180		tb3-mailt30	tb3-mailt30.linuxperf9025.net
10.1.217.181		tb3-webt31	tb3-webt31.linuxperf9025.net
10.1.217.182		tb3-appt31	tb3-appt31.linuxperf9025.net
10.1.217.183		tb3-dbt31	tb3-dbt31.linuxperf9025.net
10.1.217.184		tb3-idlet31	tb3-idlet31.linuxperf9025.net
10.1.217.185		tb3-infrat31	tb3-infrat31.linuxperf9025.net
10.1.217.186		tb3-mailt31	tb3-mailt31.linuxperf9025.net
10.1.217.187		tb3-webt32	tb3-webt32.linuxperf9025.net
10.1.217.188		tb3-appt32	tb3-appt32.linuxperf9025.net
10.1.217.189		tb3-dbt32	tb3-dbt32.linuxperf9025.net
10.1.217.190		tb3-idlet32	tb3-idlet32.linuxperf9025.net
10.1.217.191		tb3-infrat32	tb3-infrat32.linuxperf9025.net
10.1.217.192		tb3-mailt32	tb3-mailt32.linuxperf9025.net
10.1.217.193		tb3-webt33	tb3-webt33.linuxperf9025.net
10.1.217.194		tb3-appt33	tb3-appt33.linuxperf9025.net
10.1.217.195		tb3-dbt33	tb3-dbt33.linuxperf9025.net
10.1.217.196		tb3-idlet33	tb3-idlet33.linuxperf9025.net
10.1.217.197		tb3-infrat33	tb3-infrat33.linuxperf9025.net
10.1.217.198		tb3-mailt33	tb3-mailt33.linuxperf9025.net
10.1.217.199		tb3-webt34	tb3-webt34.linuxperf9025.net
10.1.217.200		tb3-appt34	tb3-appt34.linuxperf9025.net
10.1.217.201		tb3-dbt34	tb3-dbt34.linuxperf9025.net
10.1.217.202		tb3-idlet34	tb3-idlet34.linuxperf9025.net
10.1.217.203		tb3-infrat34	tb3-infrat34.linuxperf9025.net
10.1.217.204		tb3-mailt34	tb3-mailt34.linuxperf9025.net
10.1.217.205		tb3-webt35	tb3-webt35.linuxperf9025.net
10.1.217.206		tb3-appt35	tb3-appt35.linuxperf9025.net
10.1.217.207		tb3-dbt35	tb3-dbt35.linuxperf9025.net
10.1.217.208		tb3-idlet35	tb3-idlet35.linuxperf9025.net
10.1.217.209		tb3-infrat35	tb3-infrat35.linuxperf9025.net
10.1.217.210		tb3-mailt35	tb3-mailt35.linuxperf9025.net
10.1.217.211		tb3-webt36	tb3-webt36.linuxperf9025.net
10.1.217.212		tb3-appt36	tb3-appt36.linuxperf9025.net
10.1.217.213		tb3-dbt36	tb3-dbt36.linuxperf9025.net
10.1.217.214		tb3-idlet36	tb3-idlet36.linuxperf9025.net
10.1.217.215		tb3-infrat36	tb3-infrat36.linuxperf9025.net
10.1.217.216		tb3-mailt36	tb3-mailt36.linuxperf9025.net
                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-master/etc/iproute2/                                             0000777 0000000 0000000 00000000000 11524350221 022124  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/etc/iproute2/rt_dsfield                                   0000644 0000000 0000000 00000000436 11524350221 024165  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-master/etc/iproute2/rt_realms                                    0000644 0000000 0000000 00000000160 11524350221 024030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-master/etc/iproute2/rt_scopes                                    0000644 0000000 0000000 00000000134 11524350221 024042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/Clients/tb3-master/etc/iproute2/ematch_map                                   0000644 0000000 0000000 00000000073 11524350221 024141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/Clients/tb3-master/etc/iproute2/rt_tables                                    0000644 0000000 0000000 00000000127 11524350221 024022  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/Clients/tb3-master/etc/iproute2/rt_protos                                    0000644 0000000 0000000 00000000460 11524350221 024076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-master/etc/nsswitch.conf                                         0000644 0000000 0000000 00000003240 11524350222 023060  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Legal entries are:
#
#	nisplus or nis+		Use NIS+ (NIS version 3)
#	nis or yp		Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-master/etc/fstab                                                 0000644 0000000 0000000 00000001116 11524350221 021370  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
tb3-autobench:/VMStorage1	/VMStorage1	nfs	defaults	0 0 
                                                                                                                                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/Clients/tb3-master/etc/sysctl.conf                                           0000644 0000000 0000000 00000001744 11524350242 022550  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applications
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536

# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 68719476736

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 4294967296
                            Physical_Configuration/Clients/tb3-master/etc/inittab                                               0000644 0000000 0000000 00000003202 11524350221 021721  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Marc Ewing and Donnie Barnes
#

# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:5:initdefault:

# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few minutes
# of power left.  Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.  
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

# Run xdm in runlevel 5
x:5:respawn:/etc/X11/prefdm -nodaemon
                                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/Clients/tb3-master/var/                                                      0000777 0000000 0000000 00000000000 11524350245 020376  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/var/log/                                                  0000777 0000000 0000000 00000000000 11524350245 021157  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/var/log/dmesg                                             0000644 0000000 0000000 00000077377 11524350245 022222  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Linux version 2.6.18-194.el5 (mockbuild@x86-005.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Tue Mar 16 21:52:39 EDT 2010
Command line: ro root=/dev/VolGroup00/LogVol00 rhgb quiet
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000010000 - 000000000009c000 (usable)
 BIOS-e820: 000000000009c000 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007cf1f000 (usable)
 BIOS-e820: 000000007cf1f000 - 000000007cfe3000 (reserved)
 BIOS-e820: 000000007cfe3000 - 000000007d84d000 (usable)
 BIOS-e820: 000000007d84d000 - 000000007d8fd000 (reserved)
 BIOS-e820: 000000007d8fd000 - 000000007f68f000 (usable)
 BIOS-e820: 000000007f68f000 - 000000007f6df000 (reserved)
 BIOS-e820: 000000007f6df000 - 000000007f7df000 (ACPI NVS)
 BIOS-e820: 000000007f7df000 - 000000007f7ff000 (ACPI data)
 BIOS-e820: 000000007f7ff000 - 000000007f800000 (usable)
 BIOS-e820: 000000007f800000 - 0000000090000000 (reserved)
 BIOS-e820: 00000000fc000000 - 00000000fd000000 (reserved)
 BIOS-e820: 00000000fed1c000 - 00000000fed20000 (reserved)
 BIOS-e820: 00000000ff800000 - 0000000100000000 (reserved)
 BIOS-e820: 0000000100000000 - 0000000880000000 (usable)
DMI 2.5 present.
ACPI: RSDP (v002 IBM                                   ) @ 0x00000000000fdfd0
ACPI: XSDT (v001 IBM    THURLEY  0x00000000      0x01000013) @ 0x000000007f7fe120
ACPI: FADT (v004 IBM    THURLEY  0x00000000 IBM  0x01000013) @ 0x000000007f7fb000
ACPI: TCPA (v000                 0x00000000  0x00000000) @ 0x000000007f7fd000
ACPI: MADT (v002 IBM    THURLEY  0x00000000 IBM  0x01000013) @ 0x000000007f7f7000
ACPI: MCFG (v001 IBM    THURLEY  0x00000001 IBM  0x01000013) @ 0x000000007f7f6000
ACPI: SLIC (v001 IBM    THURLEY  0x00000000 IBM  0x01000013) @ 0x000000007f7f5000
ACPI: HPET (v001 IBM    THURLEY  0x00000001 IBM  0x01000013) @ 0x000000007f7f4000
ACPI: SRAT (v002 IBM    THURLEY  0x00000001 IBM  0x01000013) @ 0x000000007f7f3000
ACPI: SLIT (v001 IBM    THURLEY  0x00000000 IBM  0x01000013) @ 0x000000007f7f2000
ACPI: SSDT (v002 IBM    CPUSCOPE 0x00004000 IBM  0x01000013) @ 0x000000007f7f1000
ACPI: SSDT (v002 IBM    CPUWYVRN 0x00004000 IBM  0x01000013) @ 0x000000007f7f0000
ACPI: SSDT (v002 IBM    PSTATEPM 0x00004000 IBM  0x01000013) @ 0x000000007f7ec000
ACPI: SSDT (v002 IBM    CPUCSTAT 0x00004000 IBM  0x01000013) @ 0x000000007f7eb000
ACPI: ERST (v001 IBM    THURLEY  0x00000001 IBM  0x01000013) @ 0x000000007f7ea000
ACPI: DMAR (v001 IBM    THURLEY  0x00000001 IBM  0x01000013) @ 0x000000007f7e9000
ACPI: DSDT (v001 IBM    THURLEY  0x00000003 IBM  0x01000013) @ 0x0000000000000000
SRAT: PXM 0 -> APIC 0 -> Node 0
SRAT: PXM 0 -> APIC 2 -> Node 0
SRAT: PXM 0 -> APIC 4 -> Node 0
SRAT: PXM 0 -> APIC 6 -> Node 0
SRAT: PXM 1 -> APIC 16 -> Node 1
SRAT: PXM 1 -> APIC 18 -> Node 1
SRAT: PXM 1 -> APIC 20 -> Node 1
SRAT: PXM 1 -> APIC 22 -> Node 1
SRAT: PXM 0 -> APIC 1 -> Node 0
SRAT: PXM 0 -> APIC 3 -> Node 0
SRAT: PXM 0 -> APIC 5 -> Node 0
SRAT: PXM 0 -> APIC 7 -> Node 0
SRAT: PXM 1 -> APIC 17 -> Node 1
SRAT: PXM 1 -> APIC 19 -> Node 1
SRAT: PXM 1 -> APIC 21 -> Node 1
SRAT: PXM 1 -> APIC 23 -> Node 1
SRAT: Node 0 PXM 0 0-80000000
SRAT: Node 0 PXM 0 0-480000000
SRAT: Node 1 PXM 1 480000000-880000000
NUMA: Using 31 for the hash shift.
Bootmem setup node 0 0000000000000000-0000000480000000
Bootmem setup node 1 0000000480000000-0000000880000000
Memory for crash kernel (0x0 to 0x0) notwithin permissible range
disabling kdump
On node 0 totalpages: 4125555
  DMA zone: 2591 pages, LIFO batch:0
  DMA32 zone: 503124 pages, LIFO batch:31
  Normal zone: 3619840 pages, LIFO batch:31
On node 1 totalpages: 4136960
  Normal zone: 4136960 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0x588
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 7:10 APIC version 21
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x02] enabled)
Processor #2 7:10 APIC version 21
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x04] enabled)
Processor #4 7:10 APIC version 21
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x06] enabled)
Processor #6 7:10 APIC version 21
ACPI: LAPIC (acpi_id[0x04] lapic_id[0x10] enabled)
Processor #16 7:10 APIC version 21
ACPI: LAPIC (acpi_id[0x05] lapic_id[0x12] enabled)
Processor #18 7:10 APIC version 21
ACPI: LAPIC (acpi_id[0x06] lapic_id[0x14] enabled)
Processor #20 7:10 APIC version 21
ACPI: LAPIC (acpi_id[0x07] lapic_id[0x16] enabled)
Processor #22 7:10 APIC version 21
ACPI: LAPIC (acpi_id[0x08] lapic_id[0x01] enabled)
Processor #1 7:10 APIC version 21
ACPI: LAPIC (acpi_id[0x09] lapic_id[0x03] enabled)
Processor #3 7:10 APIC version 21
ACPI: LAPIC (acpi_id[0x0a] lapic_id[0x05] enabled)
Processor #5 7:10 APIC version 21
ACPI: LAPIC (acpi_id[0x0b] lapic_id[0x07] enabled)
Processor #7 7:10 APIC version 21
ACPI: LAPIC (acpi_id[0x0c] lapic_id[0x11] enabled)
Processor #17 7:10 APIC version 21
ACPI: LAPIC (acpi_id[0x0d] lapic_id[0x13] enabled)
Processor #19 7:10 APIC version 21
ACPI: LAPIC (acpi_id[0x0e] lapic_id[0x15] enabled)
Processor #21 7:10 APIC version 21
ACPI: LAPIC (acpi_id[0x0f] lapic_id[0x17] enabled)
Processor #23 7:10 APIC version 21
ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
ACPI: IOAPIC (id[0x08] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 8, version 32, address 0xfec00000, GSI 0-23
ACPI: IOAPIC (id[0x09] address[0xfec80000] gsi_base[24])
IOAPIC[1]: apic_id 9, version 32, address 0xfec80000, GSI 24-47
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Setting APIC routing to clustered
ACPI: HPET id: 0x8086a301 base: 0xfed00000
Using ACPI (MADT) for SMP configuration information
Nosave address range: 000000000009c000 - 00000000000a0000
Nosave address range: 00000000000a0000 - 00000000000e0000
Nosave address range: 00000000000e0000 - 0000000000100000
Nosave address range: 000000007cf1f000 - 000000007cfe3000
Nosave address range: 000000007d84d000 - 000000007d8fd000
Nosave address range: 000000007f68f000 - 000000007f6df000
Nosave address range: 000000007f6df000 - 000000007f7df000
Nosave address range: 000000007f7df000 - 000000007f7ff000
Nosave address range: 000000007f800000 - 0000000090000000
Nosave address range: 0000000090000000 - 00000000fc000000
Nosave address range: 00000000fc000000 - 00000000fd000000
Nosave address range: 00000000fd000000 - 00000000fed1c000
Nosave address range: 00000000fed1c000 - 00000000fed20000
Nosave address range: 00000000fed20000 - 00000000ff800000
Nosave address range: 00000000ff800000 - 0000000100000000
Allocating PCI resources starting at 98000000 (gap: 90000000:6c000000)
SMP: Allowing 16 CPUs, 0 hotplug CPUs
Built 2 zonelists.  Total pages: 8262515
Kernel command line: ro root=/dev/VolGroup00/LogVol00 rhgb quiet
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
Console: colour VGA+ 80x25
Dentry cache hash table entries: 4194304 (order: 13, 33554432 bytes)
Inode-cache hash table entries: 2097152 (order: 12, 16777216 bytes)
Checking aperture...
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing software IO TLB between 0x405e000 - 0x805e000
Memory: 32930456k/35651584k available (2577k kernel code, 612360k reserved, 1305k data, 212k init)
Calibrating delay loop (skipped), value calculated using timer frequency.. 4533.60 BogoMIPS (lpj=2266801)
Security Framework v1.0.0 initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
selinux_register_security:  Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 256
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU 0/0 -> Node 0
using mwait in idle threads.
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
CPU0: Thermal monitoring enabled (TM1)
SMP alternatives: switching to UP code
ACPI: Core revision 20060707
Using local APIC timer interrupts.
Detected 8.333 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/16 APIC 0x2
Initializing CPU#1
Calibrating delay using timer specific routine.. 4533.66 BogoMIPS (lpj=2266830)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU 1/2 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
CPU1: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
SMP alternatives: switching to SMP code
Booting processor 2/16 APIC 0x4
Initializing CPU#2
Calibrating delay using timer specific routine.. 4533.40 BogoMIPS (lpj=2266701)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU 2/4 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 2
CPU2: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
SMP alternatives: switching to SMP code
Booting processor 3/16 APIC 0x6
Initializing CPU#3
Calibrating delay using timer specific routine.. 4533.40 BogoMIPS (lpj=2266702)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU 3/6 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
CPU3: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
SMP alternatives: switching to SMP code
Booting processor 4/16 APIC 0x10
Initializing CPU#4
Calibrating delay using timer specific routine.. 4533.50 BogoMIPS (lpj=2266752)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU 4/10 -> Node 1
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 0
CPU4: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
SMP alternatives: switching to SMP code
Booting processor 5/16 APIC 0x12
Initializing CPU#5
Calibrating delay using timer specific routine.. 4533.63 BogoMIPS (lpj=2266815)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU 5/12 -> Node 1
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 1
CPU5: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
SMP alternatives: switching to SMP code
Booting processor 6/16 APIC 0x14
Initializing CPU#6
Calibrating delay using timer specific routine.. 4533.44 BogoMIPS (lpj=2266724)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU 6/14 -> Node 1
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 2
CPU6: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
SMP alternatives: switching to SMP code
Booting processor 7/16 APIC 0x16
Initializing CPU#7
Calibrating delay using timer specific routine.. 4533.44 BogoMIPS (lpj=2266720)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU 7/16 -> Node 1
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 3
CPU7: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
SMP alternatives: switching to SMP code
Booting processor 8/16 APIC 0x1
Initializing CPU#8
Calibrating delay using timer specific routine.. 4533.75 BogoMIPS (lpj=2266879)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU 8/1 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
CPU8: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
SMP alternatives: switching to SMP code
Booting processor 9/16 APIC 0x3
Initializing CPU#9
Calibrating delay using timer specific routine.. 4533.45 BogoMIPS (lpj=2266725)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU 9/3 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
CPU9: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
SMP alternatives: switching to SMP code
Booting processor 10/16 APIC 0x5
Initializing CPU#10
Calibrating delay using timer specific routine.. 4533.43 BogoMIPS (lpj=2266717)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU 10/5 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 2
CPU10: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
SMP alternatives: switching to SMP code
Booting processor 11/16 APIC 0x7
Initializing CPU#11
Calibrating delay using timer specific routine.. 4533.43 BogoMIPS (lpj=2266719)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU 11/7 -> Node 0
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
CPU11: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
SMP alternatives: switching to SMP code
Booting processor 12/16 APIC 0x11
Initializing CPU#12
Calibrating delay using timer specific routine.. 4533.69 BogoMIPS (lpj=2266849)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU 12/11 -> Node 1
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 0
CPU12: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
SMP alternatives: switching to SMP code
Booting processor 13/16 APIC 0x13
Initializing CPU#13
Calibrating delay using timer specific routine.. 4533.43 BogoMIPS (lpj=2266719)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU 13/13 -> Node 1
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 1
CPU13: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
SMP alternatives: switching to SMP code
Booting processor 14/16 APIC 0x15
Initializing CPU#14
Calibrating delay using timer specific routine.. 4533.44 BogoMIPS (lpj=2266722)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU 14/15 -> Node 1
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 2
CPU14: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
SMP alternatives: switching to SMP code
Booting processor 15/16 APIC 0x17
Initializing CPU#15
Calibrating delay using timer specific routine.. 4533.63 BogoMIPS (lpj=2266817)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU 15/17 -> Node 1
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 3
CPU15: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz stepping 05
Brought up 16 CPUs
testing NMI watchdog ... OK.
time.c: Using 14.318180 MHz WALL HPET GTOD HPET/TSC timer.
time.c: Detected 2266.801 MHz processor.
sizeof(vma)=176 bytes
sizeof(page)=56 bytes
sizeof(inode)=560 bytes
sizeof(dentry)=216 bytes
sizeof(ext3inode)=760 bytes
sizeof(buffer_head)=96 bytes
sizeof(skbuff)=248 bytes
migration_cost=2,22,1018
checking if image is initramfs... it is
Freeing initrd memory: 3426k freed
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using MMCONFIG at 80000000
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.2
PCI: Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI3._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI7._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 *7 9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 13 devices
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
hpet0: at MMIO 0xfed00000 (virtual 0xffffffffff5fe000), IRQs 2, 8, 0, 0
hpet0: 4 64-bit timers, 14318180 Hz
DMAR:Host address width 40
DMAR:DRHD base: 0x000000fe710000 flags: 0x1
IOMMU fe710000: ver 1:0 cap c90780106f0462 ecap f020f6
DMAR:RMRR base: 0x0000007d870000 end: 0x0000007d8effff
DMAR:ATSR flags: 0x0
PCI-GART: No AMD northbridge found.
pnp: 00:06: ioport range 0x400-0x43f has been reserved
pnp: 00:06: ioport range 0x440-0x45f has been reserved
pnp: 00:0b: ioport range 0xca0-0xca1 has been reserved
pnp: 00:0b: ioport range 0xca4-0xca9 has been reserved
pnp: 00:0b: ioport range 0xcaa-0xcab has been reserved
pnp: 00:0b: ioport range 0xcac-0xccb has been reserved
pnp: 00:0c: ioport range 0xca2-0xca2 has been reserved
pnp: 00:0c: ioport range 0xca3-0xca3 has been reserved
PCI: Bridge: 0000:00:01.0
  IO window: disabled.
  MEM window: 92000000-95ffffff
  PREFETCH window: disabled.
PCI: Bridge: 0000:00:02.0
  IO window: disabled.
  MEM window: disabled.
  PREFETCH window: disabled.
PCI: Bridge: 0000:00:03.0
  IO window: 3000-3fff
  MEM window: 97b00000-97bfffff
  PREFETCH window 0x0000000098200000-0x00000000982fffff
PCI: Bridge: 0000:00:07.0
  IO window: 2000-2fff
  MEM window: 97a00000-97afffff
  PREFETCH window 0x0000000098300000-0x00000000983fffff
PCI: Bridge: 0000:00:1c.0
  IO window: 1000-1fff
  MEM window: 97900000-979fffff
  PREFETCH window 0x0000000098000000-0x00000000981fffff
PCI: Bridge: 0000:06:00.0
  IO window: disabled.
  MEM window: 97000000-978fffff
  PREFETCH window 0x0000000096000000-0x0000000096ffffff
PCI: Bridge: 0000:00:1c.4
  IO window: disabled.
  MEM window: 97000000-978fffff
  PREFETCH window 0x0000000096000000-0x0000000096ffffff
PCI: Bridge: 0000:00:1e.0
  IO window: disabled.
  MEM window: disabled.
  PREFETCH window: disabled.
GSI 16 sharing vector 0xA9 and IRQ 16
ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 28 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:00:01.0 to 64
GSI 17 sharing vector 0xB1 and IRQ 17
ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 29 (level, low) -> IRQ 177
PCI: Setting latency timer of device 0000:00:02.0 to 64
GSI 18 sharing vector 0xB9 and IRQ 18
ACPI: PCI Interrupt 0000:00:03.0[A] -> GSI 24 (level, low) -> IRQ 185
PCI: Setting latency timer of device 0000:00:03.0 to 64
GSI 19 sharing vector 0xC1 and IRQ 19
ACPI: PCI Interrupt 0000:00:07.0[A] -> GSI 30 (level, low) -> IRQ 193
PCI: Setting latency timer of device 0000:00:07.0 to 64
GSI 20 sharing vector 0xC9 and IRQ 20
ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 16 (level, low) -> IRQ 201
PCI: Setting latency timer of device 0000:00:1c.0 to 64
ACPI: PCI Interrupt 0000:00:1c.4[A] -> GSI 16 (level, low) -> IRQ 201
PCI: Setting latency timer of device 0000:00:1c.4 to 64
ACPI: PCI Interrupt 0000:06:00.0[A] -> GSI 16 (level, low) -> IRQ 201
PCI: Setting latency timer of device 0000:06:00.0 to 64
PCI: Setting latency timer of device 0000:00:1e.0 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 524288 (order: 10, 4194304 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
audit: initializing netlink socket (disabled)
type=2000 audit(1296737901.216:1): initialized
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
SELinux:  Registering netfilter hooks
Initializing Cryptographic API
alg: No test for crc32c (crc32c-generic)
ksign: Installing public key data
Loading keyring
- Added public key 78CCFEAA9428026A
- User ID: Red Hat, Inc. (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Boot video device is 0000:07:00.0
PCI: Setting latency timer of device 0000:00:01.0 to 64
PCI: Setting latency timer of device 0000:00:02.0 to 64
PCI: Setting latency timer of device 0000:00:03.0 to 64
PCI: Setting latency timer of device 0000:00:07.0 to 64
PCI: Setting latency timer of device 0000:00:1c.0 to 64
PCI: Setting latency timer of device 0000:00:1c.4 to 64
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
ACPI: CPU0 (power states: C1[C1] C2[C3])
ACPI: CPU1 (power states: C1[C1] C2[C3])
ACPI: CPU2 (power states: C1[C1] C2[C3])
ACPI: CPU3 (power states: C1[C1] C2[C3])
ACPI: CPU4 (power states: C1[C1] C2[C3])
ACPI: CPU5 (power states: C1[C1] C2[C3])
ACPI: CPU6 (power states: C1[C1] C2[C3])
ACPI: CPU7 (power states: C1[C1] C2[C3])
ACPI: CPU8 (power states: C1[C1] C2[C3])
ACPI: CPU9 (power states: C1[C1] C2[C3])
ACPI: CPU10 (power states: C1[C1] C2[C3])
ACPI: CPU11 (power states: C1[C1] C2[C3])
ACPI: CPU12 (power states: C1[C1] C2[C3])
ACPI: CPU13 (power states: C1[C1] C2[C3])
ACPI: CPU14 (power states: C1[C1] C2[C3])
ACPI: CPU15 (power states: C1[C1] C2[C3])
Real Time Clock Driver v1.12ac
hpet_resources: 0xfed00000 is busy
Non-volatile memory driver v1.2
Linux agpgart interface v0.101 (c) Dave Jones
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 0) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 0) is a 16550A
00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:08: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
brd: module loaded
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Probing IDE interface ide0...
hda: UJDA782 DVD/CDRW, ATAPI CD/DVD-ROM drive
Probing IDE interface ide1...
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
TCP bic registered
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
ACPI: (supports S0 S1 S5)
Initalizing network drop monitor service
Freeing unused kernel memory: 212k freed
Write protecting the kernel read-only data: 504k
GSI 21 sharing vector 0x4A and IRQ 21
ACPI: PCI Interrupt 0000:00:1a.7[C] -> GSI 19 (level, low) -> IRQ 74
PCI: Setting latency timer of device 0000:00:1a.7 to 64
ehci_hcd 0000:00:1a.7: EHCI Host Controller
ehci_hcd 0000:00:1a.7: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1a.7: debug port 1
PCI: cache line size of 32 is not supported by device 0000:00:1a.7
ehci_hcd 0000:00:1a.7: irq 74, io mem 0x97c21000
ehci_hcd 0000:00:1a.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
GSI 22 sharing vector 0x52 and IRQ 22
ACPI: PCI Interrupt 0000:00:1d.7[A] -> GSI 17 (level, low) -> IRQ 82
PCI: Setting latency timer of device 0000:00:1d.7 to 64
ehci_hcd 0000:00:1d.7: EHCI Host Controller
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 2
ehci_hcd 0000:00:1d.7: debug port 1
PCI: cache line size of 32 is not supported by device 0000:00:1d.7
ehci_hcd 0000:00:1d.7: irq 82, io mem 0x97c20000
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 6 ports detected
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
USB Universal Host Controller Interface driver v3.0
ACPI: PCI Interrupt 0000:00:1a.0[A] -> GSI 17 (level, low) -> IRQ 82
PCI: Setting latency timer of device 0000:00:1a.0 to 64
uhci_hcd 0000:00:1a.0: UHCI Host Controller
uhci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1a.0: irq 82, io base 0x000040a0
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
GSI 23 sharing vector 0x5A and IRQ 23
ACPI: PCI Interrupt 0000:00:1a.1[B] -> GSI 18 (level, low) -> IRQ 90
PCI: Setting latency timer of device 0000:00:1a.1 to 64
uhci_hcd 0000:00:1a.1: UHCI Host Controller
uhci_hcd 0000:00:1a.1: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:1a.1: irq 90, io base 0x00004080
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 17 (level, low) -> IRQ 82
PCI: Setting latency timer of device 0000:00:1d.0 to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:1d.0: irq 82, io base 0x00004060
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 18 (level, low) -> IRQ 90
PCI: Setting latency timer of device 0000:00:1d.1 to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 6
uhci_hcd 0000:00:1d.1: irq 90, io base 0x00004040
usb usb6: configuration #1 chosen from 1 choice
hub 6-0:1.0: USB hub found
hub 6-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 19 (level, low) -> IRQ 74
PCI: Setting latency timer of device 0000:00:1d.2 to 64
uhci_hcd 0000:00:1d.2: UHCI Host Controller
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 7
uhci_hcd 0000:00:1d.2: irq 74, io base 0x00004020
usb usb7: configuration #1 chosen from 1 choice
hub 7-0:1.0: USB hub found
hub 7-0:1.0: 2 ports detected
usb 5-2: new full speed USB device using uhci_hcd and address 2
SCSI subsystem initialized
Fusion MPT base driver 3.04.13rh
Copyright (c) 1999-2008 LSI Corporation
Fusion MPT SAS Host driver 3.04.13rh
ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 201
mptbase: ioc0: Initiating bringup
usb 5-2: configuration #1 chosen from 2 choices
ioc0: LSISAS1068E B3: Capabilities={Initiator}
PCI: Setting latency timer of device 0000:01:00.0 to 64
usb 7-2: new low speed USB device using uhci_hcd and address 2
usb 7-2: configuration #1 chosen from 1 choice
input: Avocent IBM 73P5832 as /class/input/input0
input: USB HID v1.10 Keyboard [Avocent IBM 73P5832] on usb-0000:00:1d.2-2
input: Avocent IBM 73P5832 as /class/input/input1
input: USB HID v1.10 Mouse [Avocent IBM 73P5832] on usb-0000:00:1d.2-2
scsi0 : ioc0: LSISAS1068E B3, FwRev=011b5800h, Ports=1, MaxQ=277, IRQ=201
mptsas: ioc0: attaching ssp device: fw_channel 0, fw_id 3, phy 0, sas_addr 0x5000c5001cd00571
  Vendor: IBM-ESXS  Model: ST973452SS        Rev: B624
  Type:   Direct-Access                      ANSI SCSI revision: 05
mptsas: ioc0: attaching ssp device: fw_channel 0, fw_id 2, phy 1, sas_addr 0x5000c5001cd01325
  Vendor: IBM-ESXS  Model: ST973452SS        Rev: B624
  Type:   Direct-Access                      ANSI SCSI revision: 05
mptsas: ioc0: attaching raid volume, channel 1, id 1
  Vendor: LSILOGIC  Model: Logical Volume    Rev: 3000
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sda: 281247744 512-byte hdwr sectors (143999 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 08
SCSI device sda: drive cache: write through
SCSI device sda: 281247744 512-byte hdwr sectors (143999 MB)
sda: Write Protect is off
sda: Mode Sense: 03 00 00 08
SCSI device sda: drive cache: write through
 sda: sda1 sda2
sd 0:1:1:0: Attached scsi disk sda
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
libata version 3.00 loaded.
ata_piix 0000:00:1f.2: version 2.12
ACPI: PCI Interrupt 0000:00:1f.2[A] -> GSI 16 (level, low) -> IRQ 201
ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
ata_piix 0000:00:1f.2: 0x1F0 IDE port busy
PCI: Setting latency timer of device 0000:00:1f.2 to 64
scsi1 : ata_piix
scsi2 : ata_piix
ata1: DUMMY
ata2: SATA max UDMA/133 bmdma 0x40f8 irq 15
GSI 24 sharing vector 0x62 and IRQ 24
ACPI: PCI Interrupt 0000:00:1f.5[C] -> GSI 21 (level, low) -> IRQ 98
ata_piix 0000:00:1f.5: MAP [ P0 -- P1 -- ]
PCI: Setting latency timer of device 0000:00:1f.5 to 64
scsi3 : ata_piix
scsi4 : ata_piix
ata3: SATA max UDMA/133 cmd 0x4108 ctl 0x4124 bmdma 0x40d0 irq 98
ata4: SATA max UDMA/133 cmd 0x4100 ctl 0x4120 bmdma 0x40d8 irq 98
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.11.5-ioctl (2007-12-12) initialised: dm-devel@redhat.com
device-mapper: dm-raid45: initialized v0.2594l
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
type=1404 audit(1296737940.826:2): selinux=0 auid=4294967295 ses=4294967295
input: PC Speaker as /class/input/input2
e1000e: Intel(R) PRO/1000 Network Driver - 1.0.2-k3
e1000e: Copyright (c) 1999-2008 Intel Corporation.
ACPI: PCI Interrupt 0000:15:00.0[A] -> GSI 24 (level, low) -> IRQ 185
PCI: Setting latency timer of device 0000:15:00.0 to 64
hda: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
usb0: register 'cdc_ether' at usb-0000:00:1d.0-2, CDC Ethernet Device, e6:1f:13:2b:a9:5f
usbcore: registered new driver cdc_ether
eth0: (PCI Express:2.5GB/s:Width x4) 00:15:17:d1:4e:ae
eth0: Intel(R) PRO/1000 Network Connection
eth0: MAC: 0, PHY: 4, PBA No: d56146-003
GSI 25 sharing vector 0x72 and IRQ 25
ACPI: PCI Interrupt 0000:15:00.1[B] -> GSI 34 (level, low) -> IRQ 114
PCI: Setting latency timer of device 0000:15:00.1 to 64
eth1: (PCI Express:2.5GB/s:Width x4) 00:15:17:d1:4e:af
eth1: Intel(R) PRO/1000 Network Connection
eth1: MAC: 0, PHY: 4, PBA No: d56146-003
ACPI: PCI Interrupt 0000:1a:00.0[A] -> GSI 30 (level, low) -> IRQ 193
PCI: Setting latency timer of device 0000:1a:00.0 to 64
eth2: (PCI Express:2.5GB/s:Width x4) 00:15:17:d1:2f:98
eth2: Intel(R) PRO/1000 Network Connection
eth2: MAC: 0, PHY: 4, PBA No: d56146-003
GSI 26 sharing vector 0x8A and IRQ 26
ACPI: PCI Interrupt 0000:1a:00.1[B] -> GSI 37 (level, low) -> IRQ 138
PCI: Setting latency timer of device 0000:1a:00.1 to 64
scsi 0:0:0:0: Attached scsi generic sg0 type 0
scsi 0:0:1:0: Attached scsi generic sg1 type 0
sd 0:1:1:0: Attached scsi generic sg2 type 0
eth3: (PCI Express:2.5GB/s:Width x4) 00:15:17:d1:2f:99
eth3: Intel(R) PRO/1000 Network Connection
eth3: MAC: 0, PHY: 4, PBA No: d56146-003
GSI 27 sharing vector 0x9A and IRQ 27
ACPI: PCI Interrupt 0000:00:1f.3[B] -> GSI 22 (level, low) -> IRQ 154
Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v2.0.2 (Aug 21, 2009)
ACPI: PCI Interrupt 0000:0b:00.0[A] -> GSI 28 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:0b:00.0 to 64
eth4: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem 92000000, IRQ 169, node addr e41f1332595c
GSI 28 sharing vector 0xA2 and IRQ 28
ACPI: PCI Interrupt 0000:0b:00.1[B] -> GSI 40 (level, low) -> IRQ 162
PCI: Setting latency timer of device 0000:0b:00.1 to 64
eth5: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem 94000000, IRQ 162, node addr e41f1332595e
kvm: virtualization flags detected on this hardware: vmx tpr_shadow vnmi flexpriority ept vpid
loaded kvm module (kvm-83-164.el5)
ksm loaded
floppy0: no floppy controllers found
lp: driver loaded but no devices found
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
mtrr: no more MTRRs available
mtrr: no more MTRRs available
mtrr: no more MTRRs available
mtrr: no more MTRRs available
mtrr: no more MTRRs available
mtrr: no more MTRRs available
mtrr: no more MTRRs available
mtrr: no more MTRRs available
ACPI: Power Button (FF) [PWRF]
ACPI: Mapper loaded
dell-wmi: No known WMI GUID found
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
device-mapper: multipath: version 1.0.5 loaded
EXT3 FS on dm-0, internal journal
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding 34996216k swap on /dev/VolGroup00/LogVol01.  Priority:-1 extents:1 across:34996216k
                                                                                                                                                                                                                                                                 Physical_Configuration/Clients/tb3-master/boot/                                                     0000777 0000000 0000000 00000000000 11524350220 020542  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/boot/grub/                                                0000777 0000000 0000000 00000000000 11524350220 021501  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/boot/grub/grub.conf                                       0000644 0000000 0000000 00000001166 11524350220 023307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-194.el5)
	root (hd0,0)
	kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
	initrd /initrd-2.6.18-194.el5.img
                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/Clients/tb3-master/running-vms.txt                                           0000644 0000000 0000000 00000000000 11524350243 022612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/Clients/tb3-master/rpmpkgs.txt                                               0000644 0000000 0000000 00000061100 11524350243 022022  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   tzdata-2010e-1.el5
desktop-backgrounds-basic-2.0-37
words-3.0-9.1
glib2-2.12.3-4.el5_3.1
libcap-1.10-26
sed-4.1.5-5.fc6
libxml2-2.6.26-2.1.2.8
atk-1.12.2-1.fc6
libattr-2.4.32-1.1
libjpeg-6b-37
libpng-1.2.10-7.1.el5_3.2
ed-0.2-39.el5_2
pax-3.4-2.el5
patch-2.5.4-29.2.3.el5
atk-1.12.2-1.fc6
db4-4.3.29-10.el5
libogg-1.1.3-3.el5
libXfont-1.2.2-1.0.3.el5_1
cpp-4.1.2-48.el5
dosfstools-2.11-9.el5
ethtool-6-4.el5
gnome-speech-0.4.5-1.fc6
crash-4.1.2-4.el5
fbset-2.1-22
nano-1.3.12-1.1
nc-1.84-10.fc6
finger-0.17-32.2.1.1
pam_passwdqc-1.0.2-1.2.2
brlapi-0.4.1-4.el5
libidn-0.6.5-1.1
acl-2.2.39-6.el5
libtermcap-2.0.8-46.1
libX11-1.0.3-11.el5
libXrandr-1.1.1-3.3
libXcursor-1.1.7-1.1
libXfontcache-1.0.2-3.1
redhat-release-5Server-5.5.0.2
libXevie-1.0.1-3.1
libXrender-0.9.1-3.1
libXres-1.0.1-3.1
libXtst-1.0.1-3.1
openssl-0.9.8e-12.el5_4.6
libxml2-python-2.6.26-2.1.2.8
net-tools-1.60-81.el5
system-config-securitylevel-tui-1.6.29.1-5.el5
pygobject2-2.12.1-5.el5
bind-libs-9.3.6-4.P1.el5_4.2
bind-utils-9.3.6-4.P1.el5_4.2
autofs-5.0.1-0.rc2.143.el5
pyorbit-2.14.1-3.el5
xorg-x11-xinit-1.0.2-15.el5
nss_db-2.2-35.3
pango-1.14.9-6.el5
lockdev-1.0.1-10
esound-0.2.36-3
sgml-common-0.6.3-18
ntp-4.2.2p1-9.el5_4.1
pam-0.99.6.2-6.el5_4.1
authconfig-5.3.21-6.el5
e2fsprogs-libs-1.39-23.el5
dhclient-3.0.5-23.el5
rpm-libs-4.4.2.3-18.el5
libpcap-0.9.4-15.el5
yp-tools-2.9-1.el5
ipsec-tools-0.6.5-13.el5_3.1
libnotify-0.4.2-6.el5
nss_ldap-253-25.el5
gstreamer-0.10.20-3.el5
pinfo-0.6.9-1.fc6
ifd-egate-0.05-15
cups-1.3.7-18.el5
bluez-utils-3.7-2.2
hal-0.5.8.1-59.el5
yum-updatesd-0.9-2.el5
kudzu-devel-1.2.57.1.24-1
boost-1.33.1-10.el5
texinfo-4.8-14.el5
diffstat-1.41-1.2.3.el5
boost-1.33.1-10.el5
libattr-devel-2.4.32-1.1
libstdc++-devel-4.1.2-48.el5
libvorbis-devel-1.1.2-3.el5_4.4
gdbm-devel-1.8.0-26.2.1
libidn-devel-0.6.5-1.1
bzip2-devel-1.0.3-4.el5_2
expat-devel-1.95.8-8.3.el5_4.2
gcc-4.1.2-48.el5
postgresql-libs-8.1.18-2.el5_4.1
scrollkeeper-0.3.14-9.el5
automake-1.9.6-2.3.el5
xorg-x11-apps-7.1-4.0.1.el5
oprofile-0.9.4-15.el5
libgnomecanvas-2.14.0-4.1
zenity-2.16.0-2.el5
metacity-2.16.0-15.el5
subversion-1.4.2-4.el5_3.1
postgresql-libs-8.1.18-2.el5_4.1
system-config-securitylevel-1.6.29.1-5.el5
gnome-themes-2.16.0-1.fc6
dbus-devel-1.1.2-14.el5
chkfontpath-1.10.1-1.1
gtksourceview-1.8.0-1.fc6
gnome-vfs2-2.16.2-6.el5
libgnomeprintui22-2.12.1-6
xorg-x11-fonts-misc-7.1-2.1.el5
libgnome-2.16.0-6.el5
gcalctool-5.8.25-1.el5
gstreamer-plugins-good-0.10.9-1.el5_3.2
nautilus-2.16.2-7.el5
file-roller-2.16.0-2.fc6
desktop-printing-0.19-20.2.el5
nautilus-cd-burner-2.16.0-7.el5
gnome-python2-desktop-2.16.0-3.el5
gnome-applets-2.16.0.1-19.el5
alacarte-0.10.0-1.fc6
rhpxl-0.41.1-9.el5
xorg-x11-drv-vmware-10.13.0-2.1
xorg-x11-drv-magictouch-1.0.0.5-2.1
xorg-x11-drv-jamstudio-1.1.0-1.1
xorg-x11-drv-spaceorb-1.1.0-1.1
xorg-x11-drv-sisusb-0.8.1-4.1
linuxwacom-0.7.8.3-8.el5
xdelta-1.1.3-20
libtool-1.5.22-7.el5_4
e4fsprogs-libs-1.41.9-3.el5
xmlsec1-devel-1.2.9-8.1.1
rpm-devel-4.4.2.3-18.el5
gtk-vnc-0.3.8-3.el5
qpixman-0.13.3-4.el5
qcairo-1.8.7.1-3.el5
python-virtinst-0.400.3-9.el5
filesystem-2.4.0-3.el5
dump-0.4b41-4.el5
emacs-leim-21.4-20.el5
glibc-2.5-49
popt-1.10.2.3-18.el5
tcp_wrappers-7.6-40.7.el5
libxml2-2.6.26-2.1.2.8
libsepol-1.15.2-3.el5
diffutils-2.8.1-15.2.3.el5
iproute-2.6.18-11.el5
libgcrypt-1.4.4-5.el5
nss-tools-3.12.3.99.3-1.el5_3.2
libIDL-0.8.7-1.fc6
libdaemon-0.10-5.el5
nss-3.12.3.99.3-1.el5_3.2
libpng-1.2.10-7.1.el5_3.2
libIDL-0.8.7-1.fc6
libXau-1.0.1-3.1
perl-String-CRC32-1.4-2.fc6
procmail-3.22-17.1
bluez-libs-3.7-1.1
libvolume_id-095-14.21.el5
sysfsutils-2.0.0-6
flac-1.1.2-28.el5_0.1
libcroco-0.6.1-2.1
talk-0.17-29.2.2
cdrdao-1.2.1-2
pam_smb-1.1.7-7.2.1
setarch-2.0-1.1
libdv-0.104-4.fc6.1
cyrus-sasl-lib-2.1.22-5.el5_4.3
libsoup-2.2.98-2.el5_3.1
libgtop2-2.14.4-8.el5_4
pam_passwdqc-1.0.2-1.2.2
libXi-1.0.1-4.el5_4
libXaw-1.0.2-8.1
libXres-1.0.1-3.1
perl-HTML-Tagset-3.10-2.1.1
libXdamage-1.0.3-2.1
aspell-en-6.0-2.1
libXcursor-1.1.7-1.1
libXScrnSaver-1.1.0-3.1
findutils-4.2.27-6.el5
tar-1.15.1-30.el5
alsa-lib-1.0.17-1.el5
libsemanage-1.9.1-4.4.el5
libselinux-python-1.33.4-5.5.el5
pyOpenSSL-0.6-1.p24.7.2.2
MAKEDEV-3.23-1.2
esound-0.2.36-3
gnome-menus-2.16.0-2.fc6
pkinit-nss-0.7.6-1.el5
mlocate-0.15-1.el5.2
libXft-2.1.10-1.1
libuser-0.54.7-2.1.el5_4.1
sudo-1.7.2p1-5.el5
hicolor-icon-theme-0.9-2.1
openjade-1.3.2-27
dbus-python-0.70-9.el5_4
passwd-0.73-1
emacs-common-21.4-20.el5
openldap-2.3.43-12.el5
cups-libs-1.3.7-18.el5
ypbind-1.19-12.el5
sendmail-8.13.8-8.el5
quota-3.13-1.2.5.el5
krb5-workstation-1.6.1-36.el5_4.1
nfs-utils-1.0.9-44.el5
net-snmp-libs-5.3.2.2-9.el5
hwdata-0.213.18-1.el5.1
mkbootdisk-1.5.3-2.1
rpm-libs-4.4.2.3-18.el5
selinux-policy-2.4.6-279.el5
hal-0.5.8.1-59.el5
coolkey-1.1.0-14.el5
firstboot-tui-1.4.27.8-1.el5
gmp-4.1.4-10.el5
bison-2.3-2.1
log4cpp-1.0-9.el5
rcs-5.7-30.1
xmlsec1-1.2.9-8.1.1
keyutils-libs-devel-1.2-1.el5
nss-devel-3.12.3.99.3-1.el5_3.2
boost-devel-1.33.1-10.el5
gpm-devel-1.20.1-74.1
slang-devel-2.0.6-4.el5
ncurses-devel-5.5-24.20060715
redhat-rpm-config-8.0.45-32.el5
apr-1.2.7-11.el5_3.1
gnome-doc-utils-0.8.0-2.fc6
newt-perl-1.08-9.2.2
libxml2-devel-2.6.26-2.1.2.8
bitmap-fonts-0.3-5.1.1
libglade2-2.6.0-2
at-spi-1.7.11-3.el5
samba-3.0.33-3.28.el5
gtk2-engines-2.8.0-3.el5
gnome-icon-theme-2.16.0.1-4.el5
system-config-netboot-cmd-0.1.45.1-1.el5
libgnomecups-0.2.2-9
selinux-policy-devel-2.4.6-279.el5
xorg-x11-fonts-base-7.1-2.1.el5
xorg-x11-fonts-ISO8859-1-75dpi-7.1-2.1.el5
xulrunner-1.9.0.18-1.el5_4
esc-1.1.0-11.el5
nautilus-extensions-2.16.2-7.el5
gnome-mount-0.5-3.el5
xorg-x11-drv-void-1.1.0-3.1
eel2-2.16.1-1.el5
krb5-auth-dialog-0.7-1
gnome-system-monitor-2.16.0-3.el5
gnome-volume-manager-2.15.0-5.el5
gnome-python2-gconf-2.16.0-1.fc6
gnome-python2-gnomeprint-2.16.0-3.el5
rhn-setup-gnome-0.4.20-33.el5
xorg-x11-drv-keyboard-1.1.0-3
xorg-x11-drv-elographics-1.1.0-1.1
xorg-x11-drv-ast-0.89.9-1.el5
xorg-x11-drv-microtouch-1.1.0-1.1
xorg-x11-drv-ur98-1.1.0-1.1
xorg-x11-drv-tek4957-1.1.0-1.1
xorg-x11-drv-summa-1.1.0-1.1
bluez-hcidump-1.32-1
compat-libstdc++-33-3.2.3-61
newt-devel-0.52.2-15.el5
curl-devel-7.15.5-9.el5
coolkey-devel-1.1.0-14.el5
xen-libs-3.0.3-105.el5
vnc-4.1.2-14.el5_3.1
etherboot-zroms-kvm-5.4.4-13.el5
kvm-83-164.el5
setup-2.5.58-7.el5
nash-5.1.19.6-61
rmt-0.4b41-4.el5
comps-extras-11.1-1.1
gnome-backgrounds-2.15.92-1.fc6
specspo-13-1.el5
libgcc-4.1.2-48.el5
zlib-1.2.3-3
libstdc++-4.1.2-48.el5
audit-libs-1.7.17-3.el5
libICE-1.0.1-2.1
info-4.8-14.el5
libsepol-1.15.2-3.el5
freetype-2.2.1-21.el5_3
nss-3.12.3.99.3-1.el5_3.2
popt-1.10.2.3-18.el5
procps-3.2.7-16.el5
gdbm-1.8.0-26.2.1
libogg-1.1.3-3.el5
make-3.81-3.el5
libgpg-error-1.4-2
libidn-0.6.5-1.1
libtiff-3.8.2-7.el5_3.4
gzip-1.3.5-11.el5_4.1
gamin-0.1.7-8.el5
file-4.17-15.el5_3.1
dmidecode-2.10-3.el5
mailx-8.1.1-44.2.2
freetype-2.2.1-21.el5_3
libusb-0.1.12-5.1
libgcrypt-1.4.4-5.el5
libtiff-3.8.2-7.el5_3.4
gamin-0.1.7-8.el5
bzip2-libs-1.0.3-4.el5_2
libcap-1.10-26
libvolume_id-095-14.21.el5
iptables-ipv6-1.3.5-5.3.el5_4.1
gpm-1.20.1-74.1
desktop-file-utils-0.10-7
grep-2.5.1-55.el5
libexif-0.6.13-4.0.2.el5_1.1
checkpolicy-1.33.1-6.el5
libevent-1.4.13-1
dvd+rw-tools-7.0-1.el5
libiec61883-1.0.0-11.fc6
libsoup-2.2.98-2.el5_3.1
speex-1.0.5-4.el5_1.1
aspell-0.60.3-7.1
shared-mime-info-0.19-5.el5
ftp-0.17-35.el5
telnet-0.17-39.el5
unzip-5.52-3.el5
cdparanoia-libs-alpha9.8-27.2
vconfig-1.9-3
symlinks-1.2-24.2.2
unix2dos-2.2-26.2.3.el5
dos2unix-3.1-27.2.el5
setserial-2.17-19.2.2
liboil-0.3.8-2.1
aspell-0.60.3-7.1
tcp_wrappers-7.6-40.7.el5
libdrm-2.0.2-1.1
libbonobo-2.16.0-1.fc6
cyrus-sasl-plain-2.1.22-5.el5_4.3
libaio-0.3.106-5
libart_lgpl-2.3.17-4
redhat-menus-6.7.8-3.el5
libXt-1.0.2-3.2.el5
libXxf86vm-1.0.1-3.1
libXxf86misc-1.0.1-3.1
crontabs-1.10-8
libXTrap-1.0.0-3.1
libXv-1.0.1-4.1
startup-notification-0.8-4.1
perl-HTML-Parser-3.55-1.fc6
anacron-2.3-45.el5
xorg-x11-twm-1.0.1-3.1
xorg-x11-font-utils-7.1-2
libX11-1.0.3-11.el5
libXi-1.0.1-4.el5_4
libXrandr-1.1.1-3.3
libxkbfile-1.0.3-3.1
libXxf86misc-1.0.1-3.1
shadow-utils-4.0.17-15.el5
coreutils-5.97-23.el5_4.2
openldap-2.3.43-12.el5
mesa-libGL-6.5.1-7.8.el5
kpartx-0.4.7-34.el5
dmraid-1.0.0.rc13-63.el5
mesa-libGLU-6.5.1-7.8.el5
nscd-2.5-49
tmpwatch-2.9.7-1.1.el5.2
audit-libs-python-1.7.17-3.el5
python-sqlite-1.1.7-1.2.1
net-snmp-libs-5.3.2.2-9.el5
mtools-3.9.10-2.fc6
vim-minimal-7.0.109-6.el5
freeglut-2.4.0-7.1.el5
sox-12.18.1-1
libhugetlbfs-1.3-7.el5
python-numeric-23.7-2.2.2
wget-1.11.4-2.el5_4.1
psacct-6.3.2-44.el5
parted-1.8.1-27.el5
lockdev-1.0.1-10
fontconfig-2.4.1-7.el5
libXft-2.1.10-1.1
cracklib-2.8.9-3.3
paps-0.6.6-19.el5
nss_ldap-253-25.el5
samba-common-3.0.33-3.28.el5
gnome-menus-2.16.0-2.fc6
gtk2-2.10.4-20.el5
syslinux-3.11-4
sos-1.7-9.49.el5
kernel-devel-2.6.18-194.el5
fipscheck-lib-1.2.0-1.el5
udev-095-14.21.el5
usermode-1.88-3.el5.2
setuptool-1.19.2-1
pam_ccreds-3-5
e2fsprogs-1.39-23.el5
mesa-libGL-6.5.1-7.8.el5
portmap-4.0-65.2.2.1
gtk2-2.10.4-20.el5
poppler-0.5.4-4.4.el5_4.11
curl-7.15.5-9.el5
kbd-1.12-21.el5
cyrus-sasl-2.1.22-5.el5_4.3
mdadm-2.6.9-3.el5
openssh-server-4.3p2-41.el5
dhcpv6-client-1.0.10-18.el5
smartmontools-5.38-2.el5
GConf2-2.14.0-9.el5
mesa-libGLU-6.5.1-7.8.el5
freeglut-2.4.0-7.1.el5
pam_ccreds-3-5
pam_krb5-2.2.14-15
pam_pkcs11-0.5.3-23
kernel-2.6.18-194.el5
Deployment_Guide-en-US-5.2-11
pcsc-lite-1.4.4-1.el5
man-1.6d-1.1
avahi-0.6.16-7.el5
yum-3.2.22-26.el5
coolkey-1.1.0-14.el5
dbus-glib-0.73-8.el5
NetworkManager-glib-0.7.0-10.el5
avahi-0.6.16-7.el5
rhn-setup-0.4.20-33.el5
redhat-lsb-3.1-12.3.EL
pciutils-devel-2.2.3-8.el5
pciutils-devel-2.2.3-8.el5
libgomp-4.4.0-6.el5
elfutils-0.137-3.el5
ltrace-0.5-13.45svn.el5
dev86-0.16.17-2.2
flex-2.5.4a-41.fc6
byacc-1.9-29.2.2
gdb-7.0.1-23.el5
glib2-devel-2.12.3-4.el5_3.1
libtermcap-devel-2.0.8-46.1
zlib-devel-1.2.3-3
libgpg-error-devel-1.4-2
perl-Convert-ASN1-0.20-1.1
libacl-devel-2.2.39-6.el5
readline-devel-5.1-3.el5
hesiod-devel-3.1.0-8
libtermcap-devel-2.0.8-46.1
gmp-devel-4.1.4-10.el5
slang-devel-2.0.6-4.el5
libogg-devel-1.1.3-3.el5
ncurses-devel-5.5-24.20060715
db4-devel-4.3.29-10.el5
zlib-devel-1.2.3-3
automake14-1.4p6-13.el5.1
gcc-gfortran-4.1.2-48.el5
libxslt-python-1.1.17-2.el5_2.2
kexec-tools-1.102pre-96.el5
xml-common-0.6.3-18
elfutils-libelf-devel-0.137-3.el5
cyrus-sasl-devel-2.1.22-5.el5_4.3
psgml-1.2.5-4.3
xsri-2.1.0-10.fc6
python-devel-2.4.3-27.el5
liberation-fonts-1.0-1.el5
gnome-keyring-0.6.0-1.fc6
libglade2-2.6.0-2
gnome-keyring-0.6.0-1.fc6
at-spi-1.7.11-3.el5
httpd-2.2.3-43.el5
gtk2-engines-2.8.0-3.el5
nspluginwrapper-1.3.0-8.el5
openssh-askpass-4.3p2-41.el5
subversion-1.4.2-4.el5_3.1
e2fsprogs-devel-1.39-23.el5
xinetd-2.3.14-10.el5
system-config-services-0.9.4-5.el5
system-config-rootpassword-1.1.9.1-1
system-config-nfs-1.3.23-1.el5
libgnomecups-0.2.2-9
system-config-users-1.2.51-4.el5
xorg-x11-xfs-1.0.2-4
ghostscript-fonts-5.50-13.1.1
setroubleshoot-plugins-2.0.4-2.el5
emacs-21.4-20.el5
libbonoboui-2.16.0-1.fc6
libgnomeprint22-2.12.1-10.el5
gnome-panel-2.16.1-7.el5
firefox-3.0.18-1.el5_4
xorg-x11-fonts-75dpi-7.1-2.1.el5
gtkhtml3-3.16.3-1.el5
libgnomeui-2.16.0-5.el5
gucharmap-1.8.0-1.fc6
evolution-data-server-1.12.3-18.el5
gnome-netstatus-2.12.0-5.el5
gnome-vfs2-smb-2.16.2-6.el5
nautilus-cd-burner-2.16.0-7.el5
gdm-2.16.0-56.el5
evince-0.6.0-13.el5
gnome-terminal-2.16.0-5.3.el5
gtkhtml3-3.16.3-1.el5
gnome-screensaver-2.16.1-8.el5
gnome-session-2.16.0-7.el5
firefox-3.0.18-1.el5_4
xorg-x11-drv-vesa-1.3.0-8.2.el5
gnome-python2-libegg-2.14.2-6.el5
gnome-python2-gtksourceview-2.16.0-3.el5
gnome-python2-bonobo-2.16.0-1.fc6
pirut-1.3.28-17.el5
system-config-netboot-0.1.45.1-1.el5
system-config-keyboard-1.2.11-1.el5
xorg-x11-drv-vmmouse-12.4.0-2.1
xorg-x11-drv-dmc-1.1.0-2
xorg-x11-drv-joystick-1.1.0-1.1
xorg-x11-drv-magellan-1.1.0-1.1
xorg-x11-drv-trident-1.2.1-3.fc6
xorg-x11-drv-s3virge-1.9.1-2.1
xorg-x11-drv-voodoo-1.1.0-3.1
xorg-x11-drv-citron-2.2.0-1.1
xorg-x11-drv-qxl-0.0.12-1.2.el5
xorg-x11-drv-via-0.2.1-9
xorg-x11-drv-dynapro-1.1.0-2
xorg-x11-drv-mutouch-1.1.0-3
xorg-x11-drivers-7.1-4.2.el5
bridge-utils-1.1-2
xz-libs-4.999.9-0.3.beta.20091007git.el5
xz-libs-4.999.9-0.3.beta.20091007git.el5
cvs-1.11.22-7.el5
pam-devel-0.99.6.2-6.el5_4.1
openldap-devel-2.3.43-12.el5
curl-devel-7.15.5-9.el5
systemtap-runtime-1.1-3.el5
rpm-devel-4.4.2.3-18.el5
xulrunner-devel-1.9.0.18-1.el5_4
openldap-clients-2.3.43-12.el5
cyrus-sasl-md5-2.1.22-5.el5_4.3
screen-4.0.3-1.el5_4.1
qffmpeg-libs-0.4.9-0.15.20080908.el5
qffmpeg-libs-0.4.9-0.15.20080908.el5
qspice-libs-0.3.0-54.el5
kmod-kvm-83-164.el5
libvirt-0.6.3-33.el5
virt-manager-0.6.1-12.el5
libgcc-4.1.2-48.el5
cracklib-dicts-2.8.9-3.3
glibc-common-2.5-49
gnome-mime-data-2.4.2-3.1
gnome-audio-2.0.0-3.1.1
redhat-release-notes-5Server-31
mailcap-2.1.23-1.fc6
chkconfig-1.3.30.2-2.el5
mktemp-1.5-23.2.2
zlib-1.2.3-3
libusb-0.1.12-5.1
bash-3.2-24.el5
nspr-4.7.6-1.el5_4
gawk-3.1.5-14.el5
nspr-4.7.6-1.el5_4
expat-1.95.8-8.3.el5_4.2
bzip2-libs-1.0.3-4.el5_2
db4-4.3.29-10.el5
libacl-2.2.39-6.el5
cpio-2.6-23.el5_4.1
elfutils-libelf-0.137-3.el5
libXau-1.0.1-3.1
keyutils-libs-1.2-1.el5
less-436-2.el5
m4-1.4.5-3.el5.1
gstreamer-tools-0.10.20-3.el5
pkgconfig-0.21-2.el5
hesiod-3.1.0-8
libraw1394-1.3.0-1.el5
libSM-1.0.1-3.1
libgpg-error-1.4-2
libjpeg-6b-37
readline-5.1-3.el5
keyutils-libs-1.2-1.el5
libattr-2.4.32-1.1
slang-2.0.6-4.el5
libbonobo-2.16.0-1.fc6
vim-common-7.0.109-6.el5
iputils-20020927-46.el5
pcre-6.6-2.el5_1.7
wireless-tools-28-2.el5
pcsc-lite-libs-1.4.4-1.el5
mingetty-1.07-5.2.2
libdrm-2.0.2-1.1
libavc1394-0.5.3-1.fc6
jwhois-3.2.3-8.el5
libtheora-1.0alpha7-1
attr-2.4.32-1.1
svrcore-4.0.4-3.el5
ttmkfdir-3.0.9-23.el5
mtr-0.71-3.1
mcelog-0.9pre-1.29.el5
cdrecord-2.01-10.7.el5
traceroute-2.0.1-5.el5
rdate-1.4-8.el5
rsh-0.17-40.el5
rdist-6.1.5-44
hdparm-6.6-2
libFS-1.0.0-3.1
sqlite-3.3.6-5
audiofile-0.2.6-5
libXdmcp-1.0.1-2.1
libvorbis-1.1.2-3.el5_4.4
numactl-0.9.8-11.el5
wireless-tools-28-2.el5
hesiod-3.1.0-8
xorg-x11-filesystem-7.1-2.fc6
libXrender-0.9.1-3.1
libXfixes-4.0.1-2.1
libxkbfile-1.0.3-3.1
bitstream-vera-fonts-1.10-7
libXtst-1.0.1-3.1
libXxf86dga-1.0.1-3.1
tk-8.4.13-5.el5_1.1
redhat-logos-4.9.16-1
xorg-x11-xkb-utils-1.0.2-2.1
libXScrnSaver-1.1.0-3.1
grub-0.97-13.5
libXext-1.0.1-2.1
libXxf86vm-1.0.1-3.1
libXinerama-1.0.1-2.1
libxklavier-3.0-3.el5
libXevie-1.0.1-3.1
device-mapper-1.02.39-1.el5
krb5-libs-1.6.1-36.el5_4.1
fontconfig-2.4.1-7.el5
rhpl-0.194.1-1
newt-0.52.2-15.el5
logrotate-3.7.4-9
m2crypto-0.16-6.el5.6
libselinux-utils-1.33.4-5.5.el5
python-dmidecode-3.10.8-4.el5
gamin-python-0.1.7-8.el5
yum-metadata-parser-1.1.2-3.el5
OpenIPMI-libs-2.0.16-7.el5
audit-1.7.17-3.el5
amtu-1.0.6-1.el5
glx-utils-6.5.1-7.8.el5
alsa-utils-1.0.17-1.el5
iscsi-initiator-utils-6.2.0.871-0.16.el5
PyXML-0.8.4-4.el5_4.2
tcpdump-3.9.4-15.el5
ksh-20100202-1.el5
cryptsetup-luks-1.0.3-5.el5
lsof-4.78-3
cairo-1.2.4-5.el5
pango-1.14.9-6.el5
pam-0.99.6.2-6.el5_4.1
alsa-lib-1.0.17-1.el5
pam_pkcs11-0.5.3-23
xorg-x11-utils-7.1-2.fc6
libutempter-1.1.4-4.el5
GConf2-2.14.0-9.el5
rhnlib-2.5.22-3.el5
rhel-instnum-1.0.9-1.el5
dbus-libs-1.1.2-14.el5
SysVinit-2.86-15.el5
util-linux-2.13-0.52.el5_4.1
wpa_supplicant-0.5.10-9.el5
gstreamer-0.10.20-3.el5
device-mapper-1.02.39-1.el5
initscripts-8.45.30-2.el5
openssh-4.3p2-41.el5
mcstrans-0.2.11-3.el5
cryptsetup-luks-1.0.3-5.el5
poppler-utils-0.5.4-4.4.el5_4.11
gnupg-1.4.5-14
sysklogd-1.4.1-46.el5
lvm2-2.02.56-8.el5
openssh-clients-4.3p2-41.el5
irqbalance-0.55-15.el5
rng-utils-2.0-1.14.1.fc6
module-init-tools-3.3-0.pre3.1.60.el5
bluez-gnome-0.5-5.fc6
mkinitrd-5.1.19.6-61
libuser-0.54.7-2.1.el5_4.1
curl-7.15.5-9.el5
nss_db-2.2-35.3
htmlview-4.0.0-2.el5
usbutils-0.71-2.1
rpm-4.4.2.3-18.el5
ccid-1.3.8-1.el5
pm-utils-0.99.3-10.el5
rhnsd-4.7.0-5.el5
dbus-libs-1.1.2-14.el5
dbus-x11-1.1.2-14.el5
NetworkManager-glib-0.7.0-10.el5
NetworkManager-0.7.0-10.el5
yum-rhn-plugin-0.5.4-15.el5
redhat-lsb-3.1-12.3.EL
selinux-policy-targeted-2.4.6-279.el5
kudzu-devel-1.2.57.1.24-1
elfutils-libs-0.137-3.el5
libgfortran-4.1.2-48.el5
patchutils-0.2.31-2.2.2
indent-2.2.9-14.fc6
doxygen-1.4.7-1.1
splint-3.1.1-16.el5
gmp-4.1.4-10.el5
xmlsec1-1.2.9-8.1.1
valgrind-3.5.0-1.el5
libsepol-devel-1.15.2-3.el5
glibc-devel-2.5-49
nspr-devel-4.7.6-1.el5_4
libacl-devel-2.2.39-6.el5
readline-devel-5.1-3.el5
pstack-1.2-7.2.2
gdbm-devel-1.8.0-26.2.1
gmp-devel-4.1.4-10.el5
sqlite-devel-3.3.6-5
pcsc-lite-devel-1.4.4-1.el5
libattr-devel-2.4.32-1.1
libusb-devel-0.1.12-5.1
expat-devel-1.95.8-8.3.el5_4.2
automake16-1.6.3-8.el5.1
gcc-c++-4.1.2-48.el5
libselinux-devel-1.33.4-5.5.el5
apr-util-1.2.7-11.el5
autoconf-2.59-12
elfutils-libelf-devel-static-0.137-3.el5
python-devel-2.4.3-27.el5
libxslt-devel-1.1.17-2.el5_2.2
pycairo-1.2.0-1.1
xterm-215-8.el5_4.1
lockdev-devel-1.0.1-10
wdaemon-0.14-5
pygtk2-2.10.1-12.el5
gail-1.9.2-3.el5
gail-1.9.2-3.el5
vte-0.14.0-2.el5
system-config-printer-libs-0.7.32.10-1.el5
apr-1.2.7-11.el5_3.1
metacity-2.16.0-15.el5
gnome-mag-0.13.1-1.fc6
gnome-mag-0.13.1-1.fc6
nspluginwrapper-1.3.0-8.el5
authconfig-gtk-5.3.21-6.el5
tftp-server-0.49-2
system-config-samba-1.2.41-5.el5
krb5-devel-1.6.1-36.el5_4.1
system-config-kdump-1.0.14-4.el5
avahi-glib-0.6.16-7.el5
system-config-soundcard-2.0.6-1.el5
urw-fonts-2.3-6.1.1
libgnomeprint22-2.12.1-10.el5
xorg-x11-server-Xnest-1.1.1-48.76.el5
xorg-x11-fonts-Type1-7.1-2.1.el5
libgnomeui-2.16.0-5.el5
libgnomeprintui22-2.12.1-6
gtkhtml2-2.11.0-3
emacspeak-23.0-3.el5
xorg-x11-fonts-ISO8859-1-100dpi-7.1-2.1.el5
gnome-vfs2-2.16.2-6.el5
gnome-desktop-2.16.0-1.fc6
gstreamer-plugins-base-0.10.20-3.0.1.el5_3
gnome-panel-2.16.1-7.el5
yelp-2.16.0-22.el5
libgsf-1.14.1-6.1
gnome-media-2.16.1-3.el5
NetworkManager-gnome-0.7.0-10.el5
nautilus-open-terminal-0.6-7.el5
vino-2.13.5-9.el5
gok-1.2.0-2.el5
eel2-2.16.1-1.el5
orca-1.0.0-5.el5
gnome-python2-2.16.0-1.fc6
gnome-python2-gnomevfs-2.16.0-1.fc6
gnome-python2-gtkhtml2-2.14.2-6.el5
gedit-2.16.0-9.el5
system-config-network-1.3.99.18-1.el5
setroubleshoot-2.0.5-5.el5
policycoreutils-gui-1.33.12-14.8.el5
xorg-x11-server-Xorg-1.1.1-48.76.el5
xorg-x11-drv-penmount-1.1.0-2.1
xorg-x11-drv-savage-2.1.1-5.fc6
xorg-x11-drv-ati-6.6.3-3.27.el5
xorg-x11-drv-fbdev-0.3.0-3
xorg-x11-drv-digitaledge-1.1.0-1.1
xorg-x11-drv-calcomp-1.1.0-1.1
xorg-x11-drv-s3-0.4.1-2.1
xorg-x11-drv-acecad-1.1.0-2.1
xorg-x11-drv-sis-0.9.1-7.1.el5
xorg-x11-drv-siliconmotion-1.4.1-2.1
xorg-x11-drv-dummy-0.2.0-2.1
synaptics-0.14.4-8.fc6
firstboot-1.4.27.8-1.el5
zisofs-tools-1.0.6-3.2.2
xdelta-1.1.3-20
e4fsprogs-libs-1.41.9-3.el5
libuser-devel-0.54.7-2.1.el5_4.1
pam-devel-0.99.6.2-6.el5_4.1
openldap-devel-2.3.43-12.el5
xmlsec1-devel-1.2.9-8.1.1
systemtap-1.1-3.el5
rpm-build-4.4.2.3-18.el5
xulrunner-devel-1.9.0.18-1.el5_4
OpenIPMI-tools-2.0.16-7.el5
gtk-vnc-python-0.3.8-3.el5
celt051-0.5.1.3-0.el5
celt051-0.5.1.3-0.el5
qcairo-1.8.7.1-3.el5
Virtualization-en-US-5.2-11
virt-viewer-0.0.2-3.el5
gnome-python2-gnomekeyring-2.16.0-3.el5
basesystem-8.0-5.1.1
kernel-headers-2.6.18-194.el5
rootfiles-8.1-1.1.1
glibc-2.5-49
audit-libs-1.7.17-3.el5
libtermcap-2.0.8-46.1
readline-5.1-3.el5
libstdc++-4.1.2-48.el5
tcl-8.4.13-4.el5
sqlite-3.3.6-5
gnutls-1.4.1-3.el5_3.5
hmaccalc-0.9.6-3.el5
ORBit2-2.14.3-5.el5
slang-2.0.6-4.el5
libICE-1.0.1-2.1
libdaemon-0.10-5.el5
ORBit2-2.14.3-5.el5
pcsc-lite-libs-1.4.4-1.el5
perl-Compress-Zlib-1.42-1.fc6
audiofile-0.2.6-5
libXdmcp-1.0.1-2.1
sgpio-1.2.0_10-2.el5
iptstate-1.4-2.el5
rsync-2.6.8-3.1
cyrus-sasl-plain-2.1.22-5.el5_4.3
mgetty-1.1.33-9.fc6
libgtop2-2.14.4-8.el5_4
zip-2.31-2.el5
eject-2.1.5-4.2.el5
libacl-2.2.39-6.el5
elfutils-libelf-0.137-3.el5
libxslt-1.1.17-2.el5_2.2
pam_smb-1.1.7-7.2.1
libXmu-1.0.2-5
libXpm-3.5.5-3
libdmx-1.0.2-3.1
perl-URI-1.35-3
libxklavier-3.0-3.el5
perl-libwww-perl-5.805-1.1.1
startup-notification-0.8-4.1
libXdamage-1.0.3-2.1
e2fsprogs-libs-1.39-23.el5
cairo-1.2.4-5.el5
cups-libs-1.3.7-18.el5
gettext-0.14.6-4.el5
libsmbclient-3.0.33-3.28.el5
cracklib-2.8.9-3.3
dmraid-events-1.0.0.rc13-63.el5
conman-0.1.9.2-8.el5
pyxf86config-0.3.31-2.fc6
neon-0.25.5-10.el5_4.1
libutempter-1.1.4-4.el5
newt-0.52.2-15.el5
at-3.1.8-84.el5
pam_krb5-2.2.14-15
python-iniparse-0.2.3-4.el5
python-urlgrabber-3.1.0-5.el5
dbus-glib-0.73-8.el5
which-2.16-7
prelink-0.4.0-2.el5
openssl-0.9.8e-12.el5_4.6
libgssapi-0.10-2
nfs-utils-lib-1.0.8-7.6.el5
vixie-cron-4.1-77.el5_4.1
device-mapper-event-1.02.39-1.el5
acpid-1.0.4-9.el5_4.2
mkinitrd-5.1.19.6-61
irda-utils-0.9.17-2.fc6
neon-0.25.5-10.el5_4.1
pciutils-2.2.3-8.el5
dbus-1.1.2-14.el5
rpm-python-4.4.2.3-18.el5
rhn-check-0.4.20-33.el5
NetworkManager-0.7.0-10.el5
rhn-client-tools-0.4.20-33.el5
yum-security-1.1.16-13.el5
imake-1.0.2-3
valgrind-3.5.0-1.el5
swig-1.3.29-2.el5
ctags-5.6-1.1
log4cpp-1.0-9.el5
glibc-headers-2.5-49
glibc-devel-2.5-49
boost-devel-1.33.1-10.el5
gpm-devel-1.20.1-74.1
pcsc-lite-devel-1.4.4-1.el5
libusb-devel-0.1.12-5.1
automake15-1.5-16.el5.2
alchemist-1.0.36-2.el5
libxml2-devel-2.6.26-2.1.2.8
SDL-1.2.10-8.el5
libselinux-devel-1.33.4-5.5.el5
lockdev-devel-1.0.1-10
libgnomecanvas-2.14.0-4.1
usermode-gtk-1.88-3.el5.2
foomatic-3.0.2-38.3.el5
pyspi-0.6.1-1.el5
cyrus-sasl-devel-2.1.22-5.el5_4.3
krb5-devel-1.6.1-36.el5_4.1
avahi-glib-0.6.16-7.el5
hal-cups-utils-0.6.2-5.2.el5
ghostscript-8.15.2-9.11.el5
sabayon-apply-2.12.4-6.el5
gnome-desktop-2.16.0-1.fc6
vnc-server-4.1.2-14.el5_3.1
xorg-x11-fonts-truetype-7.1-2.1.el5
nautilus-extensions-2.16.2-7.el5
libgail-gnome-1.1.3-1.2.1
librsvg2-2.16.1-1.el5
gnome-utils-2.16.0-5.el5
gnome-power-manager-2.16.0-10.el5
control-center-2.16.0-16.el5
gnome-python2-canvas-2.16.0-1.fc6
gnome-python2-applet-2.16.0-3.el5
system-config-date-1.8.12-4.el5
system-config-httpd-1.3.3.3-1.el5
xorg-x11-drv-hyperpen-1.1.0-2
xorg-x11-drv-i810-1.6.5-9.36.el5
xorg-x11-drv-fpit-1.1.0-1.1
xorg-x11-drv-mga-1.4.10-7.el5
xorg-x11-drv-elo2300-1.1.0-1.1
xorg-x11-drv-nv-2.1.15-3.el5
compat-libgcc-296-2.96-138
compat-libstdc++-296-2.96-138
newt-devel-0.52.2-15.el5
openssl-devel-0.9.8e-12.el5_4.6
coolkey-devel-1.1.0-14.el5
dogtail-0.6.1-3.el5
nmap-4.11-1.1
xen-libs-3.0.3-105.el5
etherboot-zroms-5.4.4-13.el5
libvirt-0.6.3-33.el5
termcap-5.5-1.20060701.1
xkeyboard-config-0.8-9.el5
man-pages-2.39-15.el5
glib2-2.12.3-4.el5_3.1
expat-1.95.8-8.3.el5_4.2
ncurses-5.5-24.20060715
cyrus-sasl-lib-2.1.22-5.el5_4.3
libSM-1.0.1-3.1
perl-5.8.8-27.el5
binutils-2.17.50.0.6-14.el5
iptables-1.3.5-5.3.el5_4.1
time-1.7-27.2.2
libfontenc-1.0.2-2.2.el5
libsysfs-2.0.0-6
ncurses-5.5-24.20060715
gnutls-1.4.1-3.el5_3.5
bzip2-1.0.3-4.el5_2
libvorbis-1.1.2-3.el5_4.4
groff-1.18.1.1-11.1
bc-1.06-21
mkisofs-2.01-10.7.el5
lftp-3.7.11-4.el5
libxslt-1.1.17-2.el5_2.2
numactl-0.9.8-11.el5
udftools-1.0.0b3-0.1.el5
cpuspeed-1.2.1-9.el5
libaio-0.3.106-5
tree-1.5.0-4
libart_lgpl-2.3.17-4
svrcore-4.0.4-3.el5
mozldap-6.0.5-1.el5
gpm-1.20.1-74.1
gdbm-1.8.0-26.2.1
libXext-1.0.1-2.1
libXinerama-1.0.1-2.1
xorg-x11-xauth-1.0.1-2.1
xorg-x11-server-utils-7.1-4.fc6
tclx-8.4.0-5.fc6
giflib-4.1.3-7.1.el5_3.1
libXfixes-4.0.1-2.1
libXt-1.0.2-3.2.el5
libselinux-1.33.4-5.5.el5
python-2.4.3-27.el5
psmisc-22.2-7
device-mapper-multipath-0.4.7-34.el5
ntsysv-1.3.30.2-2.el5
python-elementtree-1.2.6-5
tcsh-6.14-17.el5
OpenIPMI-2.0.16-7.el5
readahead-1.3-8.el5
stunnel-4.15-2.el5.1
Xaw3d-1.5E-10.1
vim-enhanced-7.0.109-6.el5
gettext-0.14.6-4.el5
gphoto2-2.2.0-3.el5
libhugetlbfs-1.3-7.el5
opensp-1.5.2-4
logwatch-7.3-8.el5
libselinux-1.33.4-5.5.el5
fipscheck-1.2.0-1.el5
krb5-libs-1.6.1-36.el5_4.1
dnsmasq-2.45-1.1.el5_3
libwnck-2.16.0-4.fc6
ppp-2.4.4-2.el5
rp-pppoe-3.5-32.1
microcode_ctl-1.17-1.50.el5
notification-daemon-0.3.5-9.el5
libwnck-2.16.0-4.fc6
parted-1.8.1-27.el5
pcmciautils-014-5
policycoreutils-1.33.12-14.8.el5
avahi-compat-libdns_sd-0.6.16-7.el5
setools-3.0-3.el5
kudzu-1.2.57.1.24-1
system-config-network-tui-1.3.99.18-1.el5
busybox-1.2.0-7.el5
libicu-3.6-5.11.4
cscope-15.5-15.1.el5_3.1
strace-4.5.18-5.el5_4.1
libicu-3.6-5.11.4
libogg-devel-1.1.3-3.el5
libgcrypt-devel-1.4.4-5.el5
libvorbis-devel-1.1.2-3.el5_4.4
hesiod-devel-3.1.0-8
libcap-devel-1.10-26
bzip2-devel-1.0.3-4.el5_2
db4-devel-4.3.29-10.el5
libcap-devel-1.10-26
python-ldap-2.2.0-2.1
docbook-dtds-1.0-30.1
gnome-user-docs-2.16.0-2.fc6
samba-client-3.0.33-3.28.el5
dejavu-lgc-fonts-2.10-1
pygtk2-libglade-2.10.1-12.el5
notify-python-0.1.0-3.fc6
redhat-artwork-5.0.9-2.el5
rhgb-0.16.4-8.el5
apr-util-1.2.7-11.el5
system-config-language-1.1.18-3.el5
system-config-printer-0.7.32.10-1.el5
dbus-devel-1.1.2-14.el5
xorg-x11-drv-evdev-1.0.0.5-5.el5
setroubleshoot-server-2.0.5-5.el5
libgnome-2.16.0-6.el5
evolution-data-server-1.12.3-18.el5
xorg-x11-fonts-100dpi-7.1-2.1.el5
libbonoboui-2.16.0-1.fc6
xulrunner-1.9.0.18-1.el5_4
gthumb-2.7.8-8.el5
control-center-2.16.0-16.el5
eog-2.16.0.1-6.el5
im-chooser-0.3.3-6.el5
gnome-utils-2.16.0-5.el5
gnome-python2-extras-2.14.2-6.el5
sabayon-2.12.4-6.el5
system-config-lvm-1.1.5-4.el5
xorg-x11-drv-mouse-1.1.1-1.1
xorg-x11-drv-palmax-1.1.0-1.1
xorg-x11-drv-aiptek-1.0.1-2
xorg-x11-drv-tdfx-1.2.1-3.1
xorg-x11-drv-cirrus-1.1.0-2.fc6
xorg-x11-drv-vga-4.1.0-2.1
system-config-display-1.0.48-2.el5
compat-libstdc++-33-3.2.3-61
automake17-1.7.9-7.el5.2
libuser-devel-0.54.7-2.1.el5_4.1
openssl-devel-0.9.8e-12.el5_4.6
xorg-x11-server-Xvfb-1.1.1-48.76.el5
zsh-4.2.6-3.el5
qpixman-0.13.3-4.el5
kvm-qemu-img-83-164.el5
libvirt-python-0.6.3-33.el5
                                                                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/Clients/tb3-master/ifconfig.txt                                              0000644 0000000 0000000 00000007665 11524350242 022142  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:15:17:D1:4E:AE  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Memory:97b60000-97b80000 

eth1      Link encap:Ethernet  HWaddr 00:15:17:D1:4E:AF  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Memory:97b20000-97b40000 

eth2      Link encap:Ethernet  HWaddr 00:15:17:D1:2F:98  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Memory:97a60000-97a80000 

eth3      Link encap:Ethernet  HWaddr 00:15:17:D1:2F:99  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Memory:97a20000-97a40000 

eth4      Link encap:Ethernet  HWaddr E4:1F:13:32:59:5C  
          inet addr:10.1.216.150  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::e61f:13ff:fe32:595c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2856053 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2326627 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1184931560 (1.1 GiB)  TX bytes:929175291 (886.1 MiB)
          Interrupt:169 Memory:92000000-92012800 

eth5      Link encap:Ethernet  HWaddr E4:1F:13:32:59:5E  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:162 Memory:94000000-94012800 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:52565 errors:0 dropped:0 overruns:0 frame:0
          TX packets:52565 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:21888001 (20.8 MiB)  TX bytes:21888001 (20.8 MiB)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

usb0      Link encap:Ethernet  HWaddr E6:1F:13:2B:A9:5F  
          inet addr:169.254.95.120  Bcast:169.254.95.255  Mask:255.255.255.0
          inet6 addr: fe80::e41f:13ff:fe2b:a95f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:155026 errors:0 dropped:0 overruns:0 frame:0
          TX packets:80340 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11036734 (10.5 MiB)  TX bytes:3986010 (3.8 MiB)

virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:7857 (7.6 KiB)

                                                                           Physical_Configuration/Clients/tb3-master/chkconfig.txt                                             0000644 0000000 0000000 00000011044 11524350220 022267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
anacron        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-dnsconfd 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
bluetooth      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
conman         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
cups           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
dnsmasq        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
dund           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:on	4:off	5:on	6:off
gpm            	0:off	1:off	2:on	3:on	4:on	5:on	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
hidd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ipmi           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ipmievd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irda           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
kudzu          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirtd       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mcstrans       	0:off	1:off	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
mdmpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
messagebus     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
multipathd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
netplugd       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
pand           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
pcscd          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
portmap        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rawdevices     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
readahead_early	0:off	1:off	2:on	3:on	4:on	5:on	6:off
readahead_later	0:off	1:off	2:off	3:off	4:off	5:on	6:off
restorecond    	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rhnsd          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sendmail       	0:off	1:off	2:on	3:on	4:on	5:on	6:off
setroubleshoot 	0:off	1:off	2:off	3:on	4:on	5:on	6:off
smartd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
smb            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
syslog         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
vncserver      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
wdaemon        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
winbind        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
xfs            	0:off	1:off	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
yum-updatesd   	0:off	1:off	2:on	3:on	4:on	5:on	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	eklogin:       	off
	ekrb5-telnet:  	off
	gssftp:        	off
	klogin:        	off
	krb5-telnet:   	off
	kshell:        	off
	rmcp:          	off
	rsync:         	off
	tcpmux-server: 	off
	tftp:          	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/System_Under_Test/                                                           0000777 0000000 0000000 00000000000 11524350312 017637  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/proc/                                                      0000777 0000000 0000000 00000000000 11524350310 020600  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/proc/cpuinfo                                               0000644 0000000 0000000 00000046756 11524350310 022204  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 3591.000
cache size	: 12288 KB
physical id	: 0
siblings	: 12
core id		: 0
cpu cores	: 6
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 0
siblings	: 12
core id		: 1
cpu cores	: 6
apicid		: 2
initial apicid	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 2
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 0
siblings	: 12
core id		: 2
cpu cores	: 6
apicid		: 4
initial apicid	: 4
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 0
siblings	: 12
core id		: 8
cpu cores	: 6
apicid		: 16
initial apicid	: 16
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 4
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 0
siblings	: 12
core id		: 9
cpu cores	: 6
apicid		: 18
initial apicid	: 18
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 5
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 0
siblings	: 12
core id		: 10
cpu cores	: 6
apicid		: 20
initial apicid	: 20
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.09
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 6
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 1
siblings	: 12
core id		: 0
cpu cores	: 6
apicid		: 32
initial apicid	: 32
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.15
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 7
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 1
siblings	: 12
core id		: 1
cpu cores	: 6
apicid		: 34
initial apicid	: 34
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.15
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 8
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 1
siblings	: 12
core id		: 2
cpu cores	: 6
apicid		: 36
initial apicid	: 36
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.15
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 9
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 1
siblings	: 12
core id		: 8
cpu cores	: 6
apicid		: 48
initial apicid	: 48
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.20
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 10
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 1
siblings	: 12
core id		: 9
cpu cores	: 6
apicid		: 50
initial apicid	: 50
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.19
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 11
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 1
siblings	: 12
core id		: 10
cpu cores	: 6
apicid		: 52
initial apicid	: 52
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.02
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 12
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 0
siblings	: 12
core id		: 0
cpu cores	: 6
apicid		: 1
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.15
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 13
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1729.000
cache size	: 12288 KB
physical id	: 0
siblings	: 12
core id		: 1
cpu cores	: 6
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.15
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 14
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 0
siblings	: 12
core id		: 2
cpu cores	: 6
apicid		: 5
initial apicid	: 5
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.15
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 15
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 0
siblings	: 12
core id		: 8
cpu cores	: 6
apicid		: 17
initial apicid	: 17
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.15
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 16
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 0
siblings	: 12
core id		: 9
cpu cores	: 6
apicid		: 19
initial apicid	: 19
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.17
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 17
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 0
siblings	: 12
core id		: 10
cpu cores	: 6
apicid		: 21
initial apicid	: 21
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.18
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 18
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 1
siblings	: 12
core id		: 0
cpu cores	: 6
apicid		: 33
initial apicid	: 33
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.15
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 19
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 1
siblings	: 12
core id		: 1
cpu cores	: 6
apicid		: 35
initial apicid	: 35
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.15
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 20
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 3591.000
cache size	: 12288 KB
physical id	: 1
siblings	: 12
core id		: 2
cpu cores	: 6
apicid		: 37
initial apicid	: 37
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.15
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 21
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 1
siblings	: 12
core id		: 8
cpu cores	: 6
apicid		: 49
initial apicid	: 49
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.15
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 22
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 1
siblings	: 12
core id		: 9
cpu cores	: 6
apicid		: 51
initial apicid	: 51
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.16
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 23
vendor_id	: GenuineIntel
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz
stepping	: 2
cpu MHz		: 1596.000
cache size	: 12288 KB
physical id	: 1
siblings	: 12
core id		: 10
cpu cores	: 6
apicid		: 53
initial apicid	: 53
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid
bogomips	: 6933.16
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                  Physical_Configuration/System_Under_Test/proc/swaps                                                 0000644 0000000 0000000 00000000145 11524350310 021654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/dm-1                               partition	23564280	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/proc/devices                                               0000644 0000000 0000000 00000000740 11524350310 022142  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
249 ql2xapidev
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  8 sd
  9 md
 11 sr
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
253 device-mapper
254 mdp
                                Physical_Configuration/System_Under_Test/proc/modules                                               0000644 0000000 0000000 00000007156 11524350310 022200  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   tun 16825 168 - Live 0xffffffffa02b7000
sit 10313 0 - Live 0xffffffffa0264000
tunnel4 2877 1 sit, Live 0xffffffffa004c000
ip6table_filter 2855 0 - Live 0xffffffffa0289000
ip6_tables 19392 1 ip6table_filter, Live 0xffffffffa0282000
ebtable_nat 1975 0 - Live 0xffffffffa00eb000
ebtables 18101 1 ebtable_nat, Live 0xffffffffa026d000
xt_CHECKSUM 1269 1 - Live 0xffffffffa04a6000
iptable_mangle 3283 1 - Live 0xffffffffa04a0000
ipt_MASQUERADE 2400 3 - Live 0xffffffffa049a000
iptable_nat 6124 1 - Live 0xffffffffa0493000
nf_nat 22788 2 ipt_MASQUERADE,iptable_nat, Live 0xffffffffa0486000
nf_conntrack_ipv4 9440 4 iptable_nat,nf_nat, Live 0xffffffffa047d000
nf_defrag_ipv4 1449 1 nf_conntrack_ipv4, Live 0xffffffffa0477000
xt_state 1458 1 - Live 0xffffffffa0471000
nf_conntrack 79643 5 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4,xt_state, Live 0xffffffffa0450000
ipt_REJECT 2349 2 - Live 0xffffffffa044a000
iptable_filter 2759 1 - Live 0xffffffffa0299000
ip_tables 17733 3 iptable_mangle,iptable_nat,iptable_filter, Live 0xffffffffa0443000
fuse 66138 2 - Live 0xffffffffa0428000
autofs4 27683 3 - Live 0xffffffffa041f000
nfs 348426 0 - Live 0xffffffffa03b3000
lockd 73984 1 nfs, Live 0xffffffffa039e000
fscache 46761 1 nfs, Live 0xffffffffa0388000
nfs_acl 2677 1 nfs, Live 0xffffffffa01fe000
auth_rpcgss 44862 1 nfs, Live 0xffffffffa037b000
sunrpc 241630 8 nfs,lockd,nfs_acl,auth_rpcgss, Live 0xffffffffa0328000
cpufreq_ondemand 10382 24 - Live 0xffffffffa0268000
acpi_cpufreq 8625 0 - Live 0xffffffffa025f000
freq_table 4847 2 cpufreq_ondemand,acpi_cpufreq, Live 0xffffffffa01fa000
bridge 74113 0 - Live 0xffffffffa0313000
stp 2107 1 bridge, Live 0xffffffffa002d000
llc 5608 2 bridge,stp, Live 0xffffffffa0029000
ipv6 321509 285 sit, Live 0xffffffffa02c2000
vfat 10646 1 - Live 0xffffffffa02bd000
fat 55086 1 vfat, Live 0xffffffffa02a7000
dm_mirror 14003 0 - Live 0xffffffffa029d000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0294000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa028b000
kvm_intel 46589 280 - Live 0xffffffffa0274000
kvm 292815 1 kvm_intel, Live 0xffffffffa0215000
uinput 8182 0 - Live 0xffffffffa01ab000
serio_raw 4816 0 - Live 0xffffffffa0128000
i2c_i801 11190 0 - Live 0xffffffffa005a000
i2c_core 31274 1 i2c_i801, Live 0xffffffffa020b000
iTCO_wdt 11708 0 - Live 0xffffffffa012f000
iTCO_vendor_support 3022 1 iTCO_wdt, Live 0xffffffffa00d3000
cdc_ether 8332 0 - Live 0xffffffffa0105000
usbnet 19001 1 cdc_ether, Live 0xffffffffa00e4000
mii 5205 1 usbnet, Live 0xffffffffa0048000
shpchp 33448 0 - Live 0xffffffffa0200000
ioatdma 57872 856 - Live 0xffffffffa01e9000
i7core_edac 17543 0 - Live 0xffffffffa0121000
edac_core 46055 4 i7core_edac, Live 0xffffffffa01db000
sg 30186 0 - Live 0xffffffffa00c9000
bnx2 75858 0 - Live 0xffffffffa018c000
ixgbe 168331 0 - Live 0xffffffffa01af000
dca 7099 2 ioatdma,ixgbe, Live 0xffffffffa01a7000
mdio 4698 0 - Live 0xffffffffa01a0000
ext4 353851 2 - Live 0xffffffffa0133000
mbcache 7918 1 ext4, Live 0xffffffffa012b000
jbd2 89033 1 ext4, Live 0xffffffffa0109000
sr_mod 16162 0 - Live 0xffffffffa006e000
cdrom 39769 1 sr_mod, Live 0xffffffffa00f9000
sd_mod 37221 19 - Live 0xffffffffa00ed000
crc_t10dif 1507 1 sd_mod, Live 0xffffffffa001a000
usb_storage 49386 0 - Live 0xffffffffa00d5000
qla2xxx 280050 182 - Live 0xffffffffa0082000
scsi_transport_fc 50893 1 qla2xxx, Live 0xffffffffa0073000
scsi_tgt 12107 1 scsi_transport_fc, Live 0xffffffffa0015000
mptsas 51542 3 - Live 0xffffffffa005f000
mptscsih 35302 1 mptsas, Live 0xffffffffa004f000
mptbase 91106 2 mptsas,mptscsih, Live 0xffffffffa002f000
scsi_transport_sas 35036 1 mptsas, Live 0xffffffffa001e000
dm_mod 76824 540 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/System_Under_Test/proc/partitions                                            0000644 0000000 0000000 00000014330 11524350310 022714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

   8        0   47851520 sda
   8        1     204800 sda1
   8        2     512000 sda2
   8        3   47132672 sda3
   8       16  498073600 sdb
   8       32  498073600 sdc
   8       48  498136576 sdd
   8       64  498136576 sde
   8       80  498136576 sdf
   8       96  498136576 sdg
   8      112  498136576 sdh
   8      128  498136576 sdi
 253        0   23564288 dm-0
   8      144  498073600 sdj
   8      160  498136576 sdk
   8      176  498073600 sdl
   8      192  498136514 sdm
   8      208  498073600 sdn
   8      240 2097152000 sdp
   8      224  498073600 sdo
 253        1   23564288 dm-1
 253        2   41943040 dm-2
 253        3   41943040 dm-3
 253        4   41943040 dm-4
 253        5   41943040 dm-5
 253        6   41943040 dm-6
 253        7   41943040 dm-7
 253        8   41943040 dm-8
 253        9   41943040 dm-9
 253       10   41943040 dm-10
 253       11   41943040 dm-11
 253       12   41943040 dm-12
 253       13   41943040 dm-13
 253       14   41943040 dm-14
 253       15   41943040 dm-15
 253       16   15728640 dm-16
 253       17   15728640 dm-17
 253       18   15728640 dm-18
 253       19   15728640 dm-19
 253       20   15728640 dm-20
 253       21   15728640 dm-21
 253       22   20971520 dm-22
 253       23   20971520 dm-23
 253       24   20971520 dm-24
 253       25   20971520 dm-25
 253       26   62914560 dm-26
 253       27   41943040 dm-27
 253       28   15728640 dm-28
 253       29   15728640 dm-29
 253       30   15728640 dm-30
 253       31   15728640 dm-31
 253       32   15728640 dm-32
 253       33   15728640 dm-33
 253       34   20971520 dm-34
 253       35   20971520 dm-35
 253       36   20971520 dm-36
 253       37   20971520 dm-37
 253       38   41943040 dm-38
 253       39   62914560 dm-39
 253       40   15728640 dm-40
 253       41   15728640 dm-41
 253       42   15728640 dm-42
 253       43   15728640 dm-43
 253       44   15728640 dm-44
 253       45   15728640 dm-45
 253       46   20971520 dm-46
 253       47   20971520 dm-47
 253       48   20971520 dm-48
 253       49   20971520 dm-49
 253       50   41943040 dm-50
 253       51   62914560 dm-51
 253       52   15728640 dm-52
 253       53   15728640 dm-53
 253       54   15728640 dm-54
 253       55   15728640 dm-55
 253       56   15728640 dm-56
 253       57   15728640 dm-57
 253       58   20971520 dm-58
 253       59   20971520 dm-59
 253       60   20971520 dm-60
 253       61   20971520 dm-61
 253       62   41943040 dm-62
 253       63   62914560 dm-63
 253       64   15728640 dm-64
 253       65   15728640 dm-65
 253       66   15728640 dm-66
 253       67   15728640 dm-67
 253       68   15728640 dm-68
 253       69   15728640 dm-69
 253       70   20971520 dm-70
 253       71   20971520 dm-71
 253       72   20971520 dm-72
 253       73   20971520 dm-73
 253       74   41943040 dm-74
 253       75   62914560 dm-75
 253       76   15728640 dm-76
 253       77   15728640 dm-77
 253       78   15728640 dm-78
 253       79   15728640 dm-79
 253       80   15728640 dm-80
 253       81   15728640 dm-81
 253       82   20971520 dm-82
 253       83   20971520 dm-83
 253       84   20971520 dm-84
 253       85   41943040 dm-85
 253       86   62914560 dm-86
 253       87   20971520 dm-87
 253       88   15728640 dm-88
 253       89   15728640 dm-89
 253       90   20971520 dm-90
 253       91   20971520 dm-91
 253       92   20971520 dm-92
 253       93   41943040 dm-93
 253       94   62914560 dm-94
 253       95   15728640 dm-95
 253       96   15728640 dm-96
 253       97   15728640 dm-97
 253       98   15728640 dm-98
 253       99   20971520 dm-99
 253      100   15728640 dm-100
 253      101   15728640 dm-101
 253      102   20971520 dm-102
 253      103   20971520 dm-103
 253      104   20971520 dm-104
 253      105   62914560 dm-105
 253      106   15728640 dm-106
 253      107   15728640 dm-107
 253      108   15728640 dm-108
 253      109   15728640 dm-109
 253      110   20971520 dm-110
 253      111   41943040 dm-111
 253      112   15728640 dm-112
 253      113   15728640 dm-113
 253      114   15728640 dm-114
 253      115   15728640 dm-115
 253      116   15728640 dm-116
 253      117   15728640 dm-117
 253      118   20971520 dm-118
 253      119   20971520 dm-119
 253      120   20971520 dm-120
 253      121   20971520 dm-121
 253      122   41943040 dm-122
 253      123   62914560 dm-123
 253      124   15728640 dm-124
 253      125   15728640 dm-125
 253      126   15728640 dm-126
 253      127   15728640 dm-127
 253      128   15728640 dm-128
 253      129   15728640 dm-129
 253      130   20971520 dm-130
 253      131   20971520 dm-131
 253      132   20971520 dm-132
 253      133   20971520 dm-133
 253      134   41943040 dm-134
 253      135   62914560 dm-135
 253      136   15728640 dm-136
 253      137   15728640 dm-137
 253      138   15728640 dm-138
 253      139   15728640 dm-139
 253      140   15728640 dm-140
 253      141   15728640 dm-141
 253      142   20971520 dm-142
 253      143   20971520 dm-143
 253      144   20971520 dm-144
 253      145   20971520 dm-145
 253      146   41943040 dm-146
 253      147   62914560 dm-147
 253      148   15728640 dm-148
 253      149   15728640 dm-149
 253      150   15728640 dm-150
 253      151   15728640 dm-151
 253      152   15728640 dm-152
 253      153   15728640 dm-153
 253      154   20971520 dm-154
 253      155   20971520 dm-155
 253      156   20971520 dm-156
 253      157   20971520 dm-157
 253      158   41943040 dm-158
 253      159   62914560 dm-159
 253      160   15728640 dm-160
 253      161   15728640 dm-161
 253      162   15728640 dm-162
 253      163   15728640 dm-163
 253      164   15728640 dm-164
 253      165   15728640 dm-165
 253      166   20971520 dm-166
 253      167   20971520 dm-167
 253      168   20971520 dm-168
 253      169   20971520 dm-169
 253      170   41943040 dm-170
 253      171   62914560 dm-171
 253      172   15728640 dm-172
 253      173   15728640 dm-173
 253      174   15728640 dm-174
 253      175   15728640 dm-175
 253      176   15728640 dm-176
 253      177   15728640 dm-177
 253      178   20971520 dm-178
 253      179   20971520 dm-179
 253      180   20971520 dm-180
 253      181   20971520 dm-181
 253      182   62914560 dm-182
 253      183   41943040 dm-183
                                                                                                                                                                                                                                                                                                        Physical_Configuration/System_Under_Test/proc/meminfo                                               0000644 0000000 0000000 00000002266 11524350310 022157  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:       297833228 kB
MemFree:         8700880 kB
Buffers:           16788 kB
Cached:           116108 kB
SwapCached:            0 kB
Active:         280042608 kB
Inactive:          91348 kB
Active(anon):   280001224 kB
Inactive(anon):     7036 kB
Active(file):      41384 kB
Inactive(file):    84312 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:      23564280 kB
SwapFree:       23564280 kB
Dirty:                12 kB
Writeback:             0 kB
AnonPages:      279922580 kB
Mapped:            67136 kB
Shmem:              7448 kB
Slab:            5058016 kB
SReclaimable:      82720 kB
SUnreclaim:      4975296 kB
KernelStack:        9952 kB
PageTables:       625516 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    172480892 kB
Committed_AS:   295534932 kB
VmallocTotal:   34359738367 kB
VmallocUsed:     1721692 kB
VmallocChunk:   34203453912 kB
HardwareCorrupted:     0 kB
AnonHugePages:  277800960 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        6144 kB
DirectMap2M:     2082816 kB
DirectMap1G:    299892736 kB
                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/System_Under_Test/vgdisplay.txt                                              0000644 0000000 0000000 00000024046 11524350312 022404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                     --- Volume group ---
  VG Name               tb3-maildata
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  17
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                14
  Open LV               14
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               1.95 TiB
  PE Size               4.00 MiB
  Total PE              511999
  Alloc PE / Size       143360 / 560.00 GiB
  Free  PE / Size       368639 / 1.41 TiB
  VG UUID               8bWtQm-dmHF-Jjdh-VpO1-BNp6-lRhL-yAxKJ9
   
  --- Volume group ---
  VG Name               tb3-vgt14
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  17
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                12
  Open LV               11
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               475.00 GiB
  PE Size               4.00 MiB
  Total PE              121599
  Alloc PE / Size       69120 / 270.00 GiB
  Free  PE / Size       52479 / 205.00 GiB
  VG UUID               YNahuo-Scc1-Ezrg-z4E2-gJEJ-h6ap-WTicqu
   
  --- Volume group ---
  VG Name               tb3-vgt13
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  13
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                12
  Open LV               11
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               475.00 GiB
  PE Size               4.00 MiB
  Total PE              121599
  Alloc PE / Size       69120 / 270.00 GiB
  Free  PE / Size       52479 / 205.00 GiB
  VG UUID               ZBRTpr-T2px-6e3N-RMsF-98u7-35yn-pwqmC8
   
  --- Volume group ---
  VG Name               tb3-vgt12
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  13
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                12
  Open LV               11
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               475.06 GiB
  PE Size               4.00 MiB
  Total PE              121615
  Alloc PE / Size       69120 / 270.00 GiB
  Free  PE / Size       52495 / 205.06 GiB
  VG UUID               ucB90K-dgnK-x2Cg-R5WD-0EWA-yNPK-qaUCNM
   
  --- Volume group ---
  VG Name               tb3-vgt11
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  13
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                12
  Open LV               11
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               475.00 GiB
  PE Size               4.00 MiB
  Total PE              121599
  Alloc PE / Size       69120 / 270.00 GiB
  Free  PE / Size       52479 / 205.00 GiB
  VG UUID               3z7YDr-4m0A-wNNO-l22g-jqFh-7Etr-NGolvq
   
  --- Volume group ---
  VG Name               tb3-vgt10
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  13
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                12
  Open LV               11
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               475.06 GiB
  PE Size               4.00 MiB
  Total PE              121615
  Alloc PE / Size       69120 / 270.00 GiB
  Free  PE / Size       52495 / 205.06 GiB
  VG UUID               ZCoSeI-Sd6J-6ML9-xlbM-gAt8-5Wem-uBHAki
   
  --- Volume group ---
  VG Name               tb3-vgt09
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  13
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                12
  Open LV               11
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               475.00 GiB
  PE Size               4.00 MiB
  Total PE              121599
  Alloc PE / Size       69120 / 270.00 GiB
  Free  PE / Size       52479 / 205.00 GiB
  VG UUID               zESvx9-kgCs-2NTL-fh3V-1eOA-S0h9-KblUtJ
   
  --- Volume group ---
  VG Name               tb3-vgt08
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  14
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                12
  Open LV               11
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               475.06 GiB
  PE Size               4.00 MiB
  Total PE              121615
  Alloc PE / Size       69120 / 270.00 GiB
  Free  PE / Size       52495 / 205.06 GiB
  VG UUID               yfVA7P-tQfl-FFRF-XjBy-xf9G-RZh8-aE0psW
   
  --- Volume group ---
  VG Name               tb3-vgt07
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  119
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                12
  Open LV               11
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               475.06 GiB
  PE Size               4.00 MiB
  Total PE              121615
  Alloc PE / Size       69120 / 270.00 GiB
  Free  PE / Size       52495 / 205.06 GiB
  VG UUID               cqVYco-H70K-koxY-0FYR-uyig-QzHa-Jp3jnO
   
  --- Volume group ---
  VG Name               tb3-vgt06
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  121
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                12
  Open LV               11
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               475.06 GiB
  PE Size               4.00 MiB
  Total PE              121615
  Alloc PE / Size       69120 / 270.00 GiB
  Free  PE / Size       52495 / 205.06 GiB
  VG UUID               VZQyAr-pyzc-AxSm-cgy3-zcto-LB72-fm78Ka
   
  --- Volume group ---
  VG Name               tb3-vgt05
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  133
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                12
  Open LV               11
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               475.06 GiB
  PE Size               4.00 MiB
  Total PE              121615
  Alloc PE / Size       69120 / 270.00 GiB
  Free  PE / Size       52495 / 205.06 GiB
  VG UUID               It1S5e-Bglr-CLqB-0Bg7-sEeq-tcB7-w10ppc
   
  --- Volume group ---
  VG Name               tb3-vgt04
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  133
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                12
  Open LV               11
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               475.06 GiB
  PE Size               4.00 MiB
  Total PE              121615
  Alloc PE / Size       69120 / 270.00 GiB
  Free  PE / Size       52495 / 205.06 GiB
  VG UUID               NdcZ7U-pi0r-VJOR-41k8-q7HQ-EiaN-5oQJVH
   
  --- Volume group ---
  VG Name               tb3-vgt03
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  133
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                12
  Open LV               11
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               475.06 GiB
  PE Size               4.00 MiB
  Total PE              121615
  Alloc PE / Size       69120 / 270.00 GiB
  Free  PE / Size       52495 / 205.06 GiB
  VG UUID               97W0bI-klZg-iTDS-YVGa-blqL-Ql2K-3kaNq2
   
  --- Volume group ---
  VG Name               tb3-vgt02
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  13
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                12
  Open LV               11
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               475.00 GiB
  PE Size               4.00 MiB
  Total PE              121599
  Alloc PE / Size       69120 / 270.00 GiB
  Free  PE / Size       52479 / 205.00 GiB
  VG UUID               QPDhnF-HnGw-utsH-Vjm9-kONn-Vypn-QLAZ4k
   
  --- Volume group ---
  VG Name               tb3-vgt01
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  33
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                12
  Open LV               11
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               475.00 GiB
  PE Size               4.00 MiB
  Total PE              121599
  Alloc PE / Size       69120 / 270.00 GiB
  Free  PE / Size       52479 / 205.00 GiB
  VG UUID               f8lyHR-PWu6-hLwd-lPhs-p6I9-gsmF-c0J51d
   
  --- Volume group ---
  VG Name               vg_mako18
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               44.95 GiB
  PE Size               4.00 MiB
  Total PE              11506
  Alloc PE / Size       11506 / 44.95 GiB
  Free  PE / Size       0 / 0   
  VG UUID               nNgvZ1-BROC-slKa-cmum-C2z6-fo9Y-h71KNi
   
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/System_Under_Test/brctl-show.txt                                             0000644 0000000 0000000 00000003330 11524350245 022464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge name	bridge id		STP enabled	interfaces
br2		8000.00215eda4864	no		appt01
							appt02
							appt03
							appt04
							appt05
							appt06
							appt07
							appt08
							appt09
							appt10
							appt11
							appt12
							appt13
							appt14
							dbt01
							dbt02
							dbt03
							dbt04
							dbt05
							dbt06
							dbt07
							dbt08
							dbt09
							dbt10
							dbt11
							dbt12
							dbt13
							dbt14
							eth2
							idlet01
							idlet02
							idlet03
							idlet04
							idlet05
							idlet06
							idlet07
							idlet08
							idlet09
							idlet10
							idlet11
							idlet12
							idlet13
							idlet14
							infrat01
							infrat02
							infrat03
							infrat04
							infrat05
							infrat06
							infrat07
							infrat08
							infrat09
							infrat10
							infrat11
							infrat12
							infrat13
							infrat14
							mailt01
							mailt02
							mailt03
							mailt04
							mailt05
							mailt06
							mailt07
							mailt08
							mailt09
							mailt10
							mailt11
							mailt12
							mailt13
							mailt14
							webt01
							webt02
							webt03
							webt04
							webt05
							webt06
							webt07
							webt08
							webt09
							webt10
							webt11
							webt12
							webt13
							webt14
br3		8000.00215eda4866	no		eth3
t01		8000.000000000000	no		
t02		8000.000000000000	no		
t03		8000.000000000000	no		
t04		8000.000000000000	no		
t05		8000.000000000000	no		
t06		8000.000000000000	no		
t07		8000.000000000000	no		
t08		8000.000000000000	no		
t09		8000.000000000000	no		
t10		8000.000000000000	no		
t11		8000.000000000000	no		
t12		8000.000000000000	no		
t13		8000.000000000000	no		
t14		8000.000000000000	no		
virbr0		8000.000000000000	yes		
                                                                                                                                                                                                                                                                                                        Physical_Configuration/System_Under_Test/lspci.txt                                                  0000644 0000000 0000000 00000051654 11524350307 021525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 5520 I/O Hub to ESI Port (rev 22)
00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 22)
00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 22)
00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 22)
00:08.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 8 (rev 22)
00:09.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 9 (rev 22)
00:10.0 PIC: Intel Corporation 5520/5500/X58 Physical and Link Layer Registers Port 0 (rev 22)
00:10.1 PIC: Intel Corporation 5520/5500/X58 Routing and Protocol Layer Registers Port 0 (rev 22)
00:11.0 PIC: Intel Corporation 5520/5500 Physical and Link Layer Registers Port 1 (rev 22)
00:11.1 PIC: Intel Corporation 5520/5500 Routing & Protocol Layer Register Port 1 (rev 22)
00:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers (rev 22)
00:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 22)
00:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 22)
00:14.3 PIC: Intel Corporation 5520/5500/X58 I/O Hub Throttle Registers (rev 22)
00:15.0 PIC: Intel Corporation 5520/5500/X58 Trusted Execution Technology Registers (rev 22)
00:16.0 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
00:16.1 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
00:16.2 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
00:16.3 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
00:16.4 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
00:16.5 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
00:16.6 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
00:16.7 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device (rev 22)
00:1a.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
00:1a.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1
00:1c.4 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 5
00:1d.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
00:1d.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
00:1d.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
00:1d.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIB (ICH10) LPC Interface Controller
00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
06:00.0 PCI bridge: Vitesse Semiconductor VSC452 [SuperBMC] (rev 01)
07:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200EV
0b:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1064ET PCI-Express Fusion-MPT SAS (rev 10)
10:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709S Gigabit Ethernet (rev 20)
10:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709S Gigabit Ethernet (rev 20)
15:00.0 Ethernet controller: Intel Corporation 82599EB 10-Gigabit KX4 Network Connection (rev 01)
15:00.1 Ethernet controller: Intel Corporation 82599EB 10-Gigabit KX4 Network Connection (rev 01)
15:10.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:10.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:10.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:10.3 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:10.4 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:10.5 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:10.6 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:10.7 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:11.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:11.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:11.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:11.3 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:11.4 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:11.5 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:11.6 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:11.7 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:12.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:12.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:12.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:12.3 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:12.4 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:12.5 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:12.6 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:12.7 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:13.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:13.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:13.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:13.3 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:13.4 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:13.5 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:13.6 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:13.7 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:14.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:14.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:14.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:14.3 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:14.4 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:14.5 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:14.6 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:14.7 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:15.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:15.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:15.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:15.3 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:15.4 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:15.5 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:15.6 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:15.7 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:16.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:16.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:16.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:16.3 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:16.4 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:16.5 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:16.6 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:16.7 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:17.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:17.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:17.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:17.3 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:17.4 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:17.5 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:17.6 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:17.7 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:18.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:18.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:18.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:18.3 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:18.4 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:18.5 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:18.6 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:18.7 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:19.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:19.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:19.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:19.3 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:19.4 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:19.5 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:19.6 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:19.7 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1a.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1a.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1a.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1a.3 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1a.4 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1a.5 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1a.6 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1a.7 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1b.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1b.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1b.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1b.3 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1b.4 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1b.5 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1b.6 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1b.7 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1c.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1c.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1c.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1c.3 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1c.4 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1c.5 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1c.6 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1c.7 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1d.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1d.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1d.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1d.3 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1d.4 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1d.5 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1d.6 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1d.7 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1e.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1e.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1e.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1e.3 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1e.4 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1e.5 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1e.6 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1e.7 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1f.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1f.1 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1f.2 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1f.3 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1f.4 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
15:1f.5 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
1f:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
1f:00.1 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
fe:00.0 Host bridge: Intel Corporation Xeon 5600 Series QuickPath Architecture Generic Non-core Registers (rev 02)
fe:00.1 Host bridge: Intel Corporation Xeon 5600 Series QuickPath Architecture System Address Decoder (rev 02)
fe:02.0 Host bridge: Intel Corporation Xeon 5600 Series QPI Link 0 (rev 02)
fe:02.1 Host bridge: Intel Corporation Xeon 5600 Series QPI Physical 0 (rev 02)
fe:02.2 Host bridge: Intel Corporation Xeon 5600 Series Mirror Port Link 0 (rev 02)
fe:02.3 Host bridge: Intel Corporation Xeon 5600 Series Mirror Port Link 1 (rev 02)
fe:02.4 Host bridge: Intel Corporation Xeon 5600 Series QPI Link 1 (rev 02)
fe:02.5 Host bridge: Intel Corporation Xeon 5600 Series QPI Physical 1 (rev 02)
fe:03.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Registers (rev 02)
fe:03.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Target Address Decoder (rev 02)
fe:03.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller RAS Registers (rev 02)
fe:03.4 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Test Registers (rev 02)
fe:04.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Control (rev 02)
fe:04.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Address (rev 02)
fe:04.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Rank (rev 02)
fe:04.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Thermal Control (rev 02)
fe:05.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Control (rev 02)
fe:05.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Address (rev 02)
fe:05.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Rank (rev 02)
fe:05.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Thermal Control (rev 02)
fe:06.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Control (rev 02)
fe:06.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Address (rev 02)
fe:06.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Rank (rev 02)
fe:06.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Thermal Control (rev 02)
ff:00.0 Host bridge: Intel Corporation Xeon 5600 Series QuickPath Architecture Generic Non-core Registers (rev 02)
ff:00.1 Host bridge: Intel Corporation Xeon 5600 Series QuickPath Architecture System Address Decoder (rev 02)
ff:02.0 Host bridge: Intel Corporation Xeon 5600 Series QPI Link 0 (rev 02)
ff:02.1 Host bridge: Intel Corporation Xeon 5600 Series QPI Physical 0 (rev 02)
ff:02.2 Host bridge: Intel Corporation Xeon 5600 Series Mirror Port Link 0 (rev 02)
ff:02.3 Host bridge: Intel Corporation Xeon 5600 Series Mirror Port Link 1 (rev 02)
ff:02.4 Host bridge: Intel Corporation Xeon 5600 Series QPI Link 1 (rev 02)
ff:02.5 Host bridge: Intel Corporation Xeon 5600 Series QPI Physical 1 (rev 02)
ff:03.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Registers (rev 02)
ff:03.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Target Address Decoder (rev 02)
ff:03.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller RAS Registers (rev 02)
ff:03.4 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Test Registers (rev 02)
ff:04.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Control (rev 02)
ff:04.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Address (rev 02)
ff:04.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Rank (rev 02)
ff:04.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Thermal Control (rev 02)
ff:05.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Control (rev 02)
ff:05.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Address (rev 02)
ff:05.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Rank (rev 02)
ff:05.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Thermal Control (rev 02)
ff:06.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Control (rev 02)
ff:06.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Address (rev 02)
ff:06.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Rank (rev 02)
ff:06.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Thermal Control (rev 02)
                                                                                    Physical_Configuration/System_Under_Test/df.txt                                                     0000644 0000000 0000000 00000000534 11524350245 020774  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg_mako18-lv_root
                      23194076   3588424  18427440  17% /
tmpfs                148850564       188 148850376   1% /dev/shm
/dev/sda2               495844     55526    414718  12% /boot
/dev/sda1               204580       240    204340   1% /boot/efi
                                                                                                                                                                    Physical_Configuration/System_Under_Test/lvdisplay.txt                                              0000644 0000000 0000000 00000261772 11524350307 022426  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                     --- Logical volume ---
  LV Name                /dev/tb3-maildata/lvt01mail-data
  VG Name                tb3-maildata
  LV UUID                dIkCyp-CUJe-j8MF-Qrnj-546K-brvv-sjM8cJ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2
   
  --- Logical volume ---
  LV Name                /dev/tb3-maildata/lvt02mail-data
  VG Name                tb3-maildata
  LV UUID                1fgrjM-mOeB-yVrS-9ZoV-rQ2p-4UnY-ehU7tm
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3
   
  --- Logical volume ---
  LV Name                /dev/tb3-maildata/lvt03mail-data
  VG Name                tb3-maildata
  LV UUID                MrKsx1-Uhhj-oDFP-giGo-NNxZ-GP2i-XU10Ip
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4
   
  --- Logical volume ---
  LV Name                /dev/tb3-maildata/lvt04mail-data
  VG Name                tb3-maildata
  LV UUID                CRsQSO-q005-1fwU-50kY-Nk3O-p39J-Vf1G6g
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:5
   
  --- Logical volume ---
  LV Name                /dev/tb3-maildata/lvt05mail-data
  VG Name                tb3-maildata
  LV UUID                sXcXxg-Xn6d-tahr-UuZf-WN69-DSmI-q4DjXQ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:6
   
  --- Logical volume ---
  LV Name                /dev/tb3-maildata/lvt06mail-data
  VG Name                tb3-maildata
  LV UUID                2lZ8EV-efOT-Udak-YAgf-cZQc-QoON-Cfeyqc
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:7
   
  --- Logical volume ---
  LV Name                /dev/tb3-maildata/lvt07mail-data
  VG Name                tb3-maildata
  LV UUID                3JQdDc-wbul-yO63-HERc-3j2n-GvdL-CA9feC
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:8
   
  --- Logical volume ---
  LV Name                /dev/tb3-maildata/lvt08mail-data
  VG Name                tb3-maildata
  LV UUID                1JNp4L-6S6c-3IsT-6zoP-PXAl-14yK-lK106C
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:9
   
  --- Logical volume ---
  LV Name                /dev/tb3-maildata/lvt09mail-data
  VG Name                tb3-maildata
  LV UUID                5F7aT2-tHDz-Ibze-qZha-hpKZ-tuVI-F21083
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:10
   
  --- Logical volume ---
  LV Name                /dev/tb3-maildata/lvt10mail-data
  VG Name                tb3-maildata
  LV UUID                Y2u2bM-vJvR-1jaq-HcXG-5dUn-4wc9-s6PeTK
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:11
   
  --- Logical volume ---
  LV Name                /dev/tb3-maildata/lvt11mail-data
  VG Name                tb3-maildata
  LV UUID                7N0giO-ZX8e-zMbe-RAQn-70Xk-ZCHY-XJ9T6o
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:12
   
  --- Logical volume ---
  LV Name                /dev/tb3-maildata/lvt12mail-data
  VG Name                tb3-maildata
  LV UUID                TUqsiM-4Ka0-vyek-J7CV-OSGl-e1IE-1iUtVl
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:13
   
  --- Logical volume ---
  LV Name                /dev/tb3-maildata/lvt13mail-data
  VG Name                tb3-maildata
  LV UUID                2FUgYj-HZmi-9GkU-LRJT-Cj1Z-72e0-j4GaIr
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:14
   
  --- Logical volume ---
  LV Name                /dev/tb3-maildata/lvt14mail-data
  VG Name                tb3-maildata
  LV UUID                B0djU7-roOK-S9F4-hhU3-B6rT-kqqb-C2H8dv
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:15
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt14/lvt14infra
  VG Name                tb3-vgt14
  LV UUID                4UtEYQ-uVfe-REEH-0Owc-9SaP-c1cd-TKsmjG
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:172
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt14/lvt14idle
  VG Name                tb3-vgt14
  LV UUID                0Ztf0Z-qv3x-ivfj-39I9-MBkZ-eWkA-ZG52aC
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:173
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt14/lvt14web
  VG Name                tb3-vgt14
  LV UUID                8xb2U7-ry34-zFng-UHLm-V5yX-cvRo-Y1Odp5
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:174
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt14/lvt14mail
  VG Name                tb3-vgt14
  LV UUID                NIMP9a-odh2-rsMQ-1PKN-TrCD-YxvZ-LgsSns
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:175
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt14/lvt14app
  VG Name                tb3-vgt14
  LV UUID                hWaq2x-3I4V-qGlc-mfGq-2fmW-YPLc-oJQYhb
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:176
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt14/lvt14db
  VG Name                tb3-vgt14
  LV UUID                7Ml9fb-dyGp-pP9O-kdWB-Scwv-XAer-iMlBHA
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:177
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt14/lvt14db-data
  VG Name                tb3-vgt14
  LV UUID                GbDxjb-yuz6-WlJG-RFwQ-H2ZL-33lO-KHFPqP
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:178
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt14/lvt14app-data
  VG Name                tb3-vgt14
  LV UUID                Wt1Lfx-feYb-aOW1-D0Qw-CXov-qsvK-IuGFAT
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:179
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt14/lvt14web-data
  VG Name                tb3-vgt14
  LV UUID                rqmfvJ-cziT-Jml9-ICm2-HQkc-zSeA-36WBpl
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:180
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt14/lvt14idle-data
  VG Name                tb3-vgt14
  LV UUID                vk8g4n-7r7R-f7PQ-3GDe-aIR6-Wls1-fRbXWD
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:181
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt14/lvt14infra-data
  VG Name                tb3-vgt14
  LV UUID                A3tYfr-5WhC-iJ24-K4sU-0I8K-sJdZ-PNeOIp
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                60.00 GiB
  Current LE             15360
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:182
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt14/lvt14mail-data
  VG Name                tb3-vgt14
  LV UUID                VWqGZu-bQui-GZW2-fC5n-UIcd-tW6q-1bcuoT
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:183
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt13/lvt13app
  VG Name                tb3-vgt13
  LV UUID                tqmwXa-t2fN-8jTm-LBJb-8LWd-Pcde-qkvdIy
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:16
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt13/lvt13db
  VG Name                tb3-vgt13
  LV UUID                aKa1G2-DnoU-N7Q5-LqAB-WElX-WFFT-dKqA1d
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:17
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt13/lvt13mail
  VG Name                tb3-vgt13
  LV UUID                lq32Yc-mdGN-TeQO-bwWK-QEOv-U0OJ-Uefhod
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:18
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt13/lvt13web
  VG Name                tb3-vgt13
  LV UUID                ZKaoY0-mOKu-TMva-ATjO-e6kF-2HQW-CieWPT
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:19
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt13/lvt13infra
  VG Name                tb3-vgt13
  LV UUID                Jt3vtL-Uc16-tbat-2kGY-OlUG-VvDO-iOGG1R
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:20
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt13/lvt13idle
  VG Name                tb3-vgt13
  LV UUID                YW2yIC-ECnm-HWg6-wRdX-7RcL-SpCl-X5dDD7
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:21
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt13/lvt13app-data
  VG Name                tb3-vgt13
  LV UUID                WCIDN6-v2m9-GtNg-SpCS-qPqn-gUBG-EmOd8J
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:22
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt13/lvt13web-data
  VG Name                tb3-vgt13
  LV UUID                d99zFR-OjeN-xoIi-kLSj-nZVi-Wi4b-Dv24YJ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:23
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt13/lvt13db-data
  VG Name                tb3-vgt13
  LV UUID                6RL1Le-OkAP-22Wr-WtEw-cqs0-VBYt-fUYe5S
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:24
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt13/lvt13idle-data
  VG Name                tb3-vgt13
  LV UUID                XCrcTn-rALH-dsh7-1jPN-usH1-CSlJ-TlvVNO
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:25
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt13/lvt13infra-data
  VG Name                tb3-vgt13
  LV UUID                aauTzt-QKZo-Z1UJ-Of06-wpU9-6zxm-J375p4
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                60.00 GiB
  Current LE             15360
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:26
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt13/lvt13mail-data
  VG Name                tb3-vgt13
  LV UUID                C8Tphg-tjbS-nXgl-faKf-ySz2-sqDp-z3IuyM
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:27
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt12/lvt12app
  VG Name                tb3-vgt12
  LV UUID                GdjOq9-WRsf-Q0kM-H556-Xyht-Uf2x-S8ebZq
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:28
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt12/lvt12db
  VG Name                tb3-vgt12
  LV UUID                ljuTrq-ivBW-ae7X-kdI3-vClU-RCQH-Q9kdIO
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:29
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt12/lvt12mail
  VG Name                tb3-vgt12
  LV UUID                7zZX5I-WsXi-Dch8-VBvI-AqfO-udCs-zSMTkU
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:30
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt12/lvt12web
  VG Name                tb3-vgt12
  LV UUID                5aI6r3-Yicv-nUPY-m2lA-2QkR-eRfE-2bWRkc
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:31
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt12/lvt12infra
  VG Name                tb3-vgt12
  LV UUID                sdK3O9-gT0Q-ldJl-5B9l-jUXq-DdGO-FYjI01
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:32
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt12/lvt12idle
  VG Name                tb3-vgt12
  LV UUID                TwBcP9-53VQ-RKJo-Ia0B-rHir-elQZ-sXx04J
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:33
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt12/lvt12app-data
  VG Name                tb3-vgt12
  LV UUID                g4JgIa-YdaD-ZFAs-nih7-4wv9-QXzL-L3eUgt
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:34
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt12/lvt12db-data
  VG Name                tb3-vgt12
  LV UUID                GflIQq-5zAf-NpO1-dGSy-spEC-PBJ2-0nWfdL
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:35
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt12/lvt12idle-data
  VG Name                tb3-vgt12
  LV UUID                4dEjCT-0NYp-MIWw-qEsD-ukpF-LAVD-wngF5c
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:36
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt12/lvt12web-data
  VG Name                tb3-vgt12
  LV UUID                I1lQI5-z5Qj-dwQF-frad-aUej-Uedd-LuqbFC
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:37
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt12/lvt12mail-data
  VG Name                tb3-vgt12
  LV UUID                W3JMuS-RZlB-iwhy-QoU4-rdw0-a5sb-1Y9G85
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:38
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt12/lvt12infra-data
  VG Name                tb3-vgt12
  LV UUID                u5yClk-P6fl-B6jT-qNd3-cK3a-VZeH-dXcsJc
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                60.00 GiB
  Current LE             15360
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:39
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt11/lvt11app
  VG Name                tb3-vgt11
  LV UUID                Gv0wZg-hYFe-N2Go-O2v3-SBB7-hIzk-raGrVt
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:40
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt11/lvt11db
  VG Name                tb3-vgt11
  LV UUID                SVREMN-a3oL-XvO5-M4zZ-7cfs-r4B8-Afl25t
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:41
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt11/lvt11mail
  VG Name                tb3-vgt11
  LV UUID                nCdaei-F6uP-p393-ADmY-jt3A-KYXW-03IG2m
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:42
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt11/lvt11web
  VG Name                tb3-vgt11
  LV UUID                GZsyI1-1jlp-t4VS-g1oz-kJXy-uGSO-1gcPqa
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:43
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt11/lvt11infra
  VG Name                tb3-vgt11
  LV UUID                45T1Hx-mZmq-XZRC-Gj0c-yFSV-zSn6-TfHnvS
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:44
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt11/lvt11idle
  VG Name                tb3-vgt11
  LV UUID                2CsoMC-Ei9Q-k8Fl-M3N9-tuuG-kNOR-YapRmZ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:45
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt11/lvt11app-data
  VG Name                tb3-vgt11
  LV UUID                Fb1pTF-Nb09-UEKF-euPX-Nttx-vlvW-okPwxK
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:46
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt11/lvt11db-data
  VG Name                tb3-vgt11
  LV UUID                U1WzCu-xB2k-5f2v-16Dv-ijLb-Kt5e-Mj5xHK
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:47
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt11/lvt11idle-data
  VG Name                tb3-vgt11
  LV UUID                DtWuME-BBez-ceYb-lgod-qxKM-bFIf-bREJFw
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:48
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt11/lvt11web-data
  VG Name                tb3-vgt11
  LV UUID                ai4INb-PNc0-gWaN-v7cC-mjqX-yzH2-dnBwiF
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:49
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt11/lvt11mail-data
  VG Name                tb3-vgt11
  LV UUID                ASIn55-5slm-Sewm-u1BT-oPEv-hewn-mT3k4e
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:50
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt11/lvt11infra-data
  VG Name                tb3-vgt11
  LV UUID                sXl64r-9pkU-USG5-0xdj-1d7d-x2HG-0Iab7Z
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                60.00 GiB
  Current LE             15360
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:51
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt10/lvt10app
  VG Name                tb3-vgt10
  LV UUID                dRJlWi-qx9b-MRZi-Byed-z72G-GrxF-rqTnym
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:52
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt10/lvt10db
  VG Name                tb3-vgt10
  LV UUID                PuxYwt-ex6B-Y3uB-JY1t-jdZE-z53S-oh5HOa
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:53
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt10/lvt10mail
  VG Name                tb3-vgt10
  LV UUID                XzH55l-GO0f-U4ou-rc8S-wddz-02Jg-iVkBCv
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:54
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt10/lvt10web
  VG Name                tb3-vgt10
  LV UUID                aTIKkN-LSQR-hNIW-o7cE-JzFk-2DVx-A07NAm
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:55
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt10/lvt10infra
  VG Name                tb3-vgt10
  LV UUID                eODFDt-W4SX-MVmW-eojd-nYAY-26aF-KEpmZ9
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:56
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt10/lvt10idle
  VG Name                tb3-vgt10
  LV UUID                07SNtY-6EKk-Nxrh-0Cqq-XcL3-hXUX-8SdBL5
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:57
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt10/lvt10app-data
  VG Name                tb3-vgt10
  LV UUID                MzqRxZ-JJrV-EcXC-2Y5P-A9w0-8zpc-QlUgm8
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:58
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt10/lvt10db-data
  VG Name                tb3-vgt10
  LV UUID                V2fB9l-Xaem-u2EK-EH5Q-Bj7a-dxCJ-DtvJVj
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:59
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt10/lvt10idle-data
  VG Name                tb3-vgt10
  LV UUID                EnfOpd-oYPV-oRVR-SPNt-VWw6-QLUi-Df6XWK
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:60
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt10/lvt10web-data
  VG Name                tb3-vgt10
  LV UUID                6OWYel-HwvS-uGUP-D5RW-ok68-wT1F-0DPcS2
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:61
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt10/lvt10mail-data
  VG Name                tb3-vgt10
  LV UUID                1dysKO-9zj1-QEXK-g6Lb-TVKf-fMT1-jjzXkf
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:62
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt10/lvt10infra-data
  VG Name                tb3-vgt10
  LV UUID                QmH08k-plxU-94DO-OpZV-BxnQ-e72G-cfoMF1
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                60.00 GiB
  Current LE             15360
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:63
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt09/lvt09app
  VG Name                tb3-vgt09
  LV UUID                MhGHCt-ThwW-Saog-Renz-eZE1-gxLF-2h3L6o
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:64
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt09/lvt09db
  VG Name                tb3-vgt09
  LV UUID                3IakYu-WOBj-nUJO-Clbb-nYq2-XQEg-49e9eF
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:65
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt09/lvt09mail
  VG Name                tb3-vgt09
  LV UUID                QaBf6s-H4Bh-zEmh-6AEN-BGdS-S2Lg-zHDHGH
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:66
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt09/lvt09web
  VG Name                tb3-vgt09
  LV UUID                3LTmoG-9sJw-0VPB-Lk3j-6gYf-cA3k-87W6lc
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:67
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt09/lvt09infra
  VG Name                tb3-vgt09
  LV UUID                5NAEkY-wypk-IHWs-j0fm-q0ym-HtV2-sTB1oe
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:68
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt09/lvt09idle
  VG Name                tb3-vgt09
  LV UUID                uFOS8z-HiEy-498t-BrEm-gK7D-EJIO-1dfdPR
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:69
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt09/lvt09app-data
  VG Name                tb3-vgt09
  LV UUID                gwfIvd-I686-KrIi-Bx4w-zePK-35a2-CLNzeQ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:70
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt09/lvt09db-data
  VG Name                tb3-vgt09
  LV UUID                cmln8t-LWDU-gkLO-UPdz-1m9U-F5Id-0t4Mib
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:71
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt09/lvt09idle-data
  VG Name                tb3-vgt09
  LV UUID                tfbHCY-0ktk-H7eJ-styi-5FRt-B7bt-1JXtaZ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:72
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt09/lvt09web-data
  VG Name                tb3-vgt09
  LV UUID                OgIjK8-tiUz-AuLQ-H8K9-lc6L-vmPf-Ol1FGq
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:73
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt09/lvt09mail-data
  VG Name                tb3-vgt09
  LV UUID                Fmedop-0dkp-VZD5-9WYS-U1pl-HC9e-bGOXp9
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:74
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt09/lvt09infra-data
  VG Name                tb3-vgt09
  LV UUID                xPorQU-Mtda-I2pr-m013-slhV-pVmV-djMMl5
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                60.00 GiB
  Current LE             15360
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:75
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt08/lvt08app
  VG Name                tb3-vgt08
  LV UUID                8vE7sA-Xtty-YDHN-Ie1H-AwKZ-RRZS-h6vtzE
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:76
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt08/lvt08db
  VG Name                tb3-vgt08
  LV UUID                yrjQhn-wvGV-J8dP-XJD4-2HLZ-lpwN-Efw6Ds
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:77
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt08/lvt08mail
  VG Name                tb3-vgt08
  LV UUID                f8CVyi-O2Iv-BmN0-afqi-EzCg-7GFY-N6qwVc
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:78
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt08/lvt08web
  VG Name                tb3-vgt08
  LV UUID                9qUD09-naJs-q7DF-qSNH-bniZ-z96C-4JmtEX
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:79
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt08/lvt08infra
  VG Name                tb3-vgt08
  LV UUID                d35Qz3-7ejb-q1Gc-SPT8-PNsf-1qRI-GkfLDZ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:80
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt08/lvt08idle
  VG Name                tb3-vgt08
  LV UUID                ci7YOU-aZ0L-WzVq-uoIK-4jHq-aXqe-EA6Tiy
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:81
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt08/lvt08app-data
  VG Name                tb3-vgt08
  LV UUID                OFZhqo-cfMz-iva4-dDmA-qeuE-BbvS-6wRKVk
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:82
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt08/lvt08db-data
  VG Name                tb3-vgt08
  LV UUID                7x650K-gBer-p9DK-GUDi-6mVx-xUip-XiMW0X
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:83
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt08/lvt08idle-data
  VG Name                tb3-vgt08
  LV UUID                NseH1k-ZKob-mybn-KAsk-B44y-PGgo-Dl3bsI
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:84
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt08/lvt08mail-data
  VG Name                tb3-vgt08
  LV UUID                l4jPk3-eMI1-xRj3-SkGX-iKnB-35Tt-BsYTAO
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:85
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt08/lvt08infra-data
  VG Name                tb3-vgt08
  LV UUID                KX57FN-0see-huhC-flEZ-8sl1-F3KM-WnzdVB
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                60.00 GiB
  Current LE             15360
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:86
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt08/lvt08web-data
  VG Name                tb3-vgt08
  LV UUID                FkjUaa-Z1kX-kfcd-u8JO-khP4-upTj-diR47s
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:87
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt07/lvt07infra
  VG Name                tb3-vgt07
  LV UUID                jNlUUr-WkEg-1QHT-Y7ai-jljc-ljAd-BvHg58
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:88
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt07/lvt07idle
  VG Name                tb3-vgt07
  LV UUID                PQijwI-1ek1-yfjg-CrZ4-idOi-G09r-2i6TZ5
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:89
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt07/lvt07app-data
  VG Name                tb3-vgt07
  LV UUID                FDcwTA-Ch1N-zDd1-vGoS-i32p-NmGC-W3Qovw
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:90
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt07/lvt07db-data
  VG Name                tb3-vgt07
  LV UUID                AeRIGf-7hWA-S2l5-9TfX-iHDc-tDVm-IYnVrI
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:91
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt07/lvt07web-data
  VG Name                tb3-vgt07
  LV UUID                3nTQTC-z2u3-r3bz-yT00-Pvtd-segq-eQ229a
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:92
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt07/lvt07mail-data
  VG Name                tb3-vgt07
  LV UUID                IbrkhU-YdXe-CsIH-kJwB-CIUC-6BHd-DTpTeL
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:93
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt07/lvt07infra-data
  VG Name                tb3-vgt07
  LV UUID                hHcWNM-15P5-31Bq-94mQ-EVee-q3Gg-hwRnRH
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                60.00 GiB
  Current LE             15360
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:94
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt07/lvt07app
  VG Name                tb3-vgt07
  LV UUID                hFTLwE-SvLT-MppE-dAZa-ssS7-Tjyv-He1E9C
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:95
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt07/lvt07db
  VG Name                tb3-vgt07
  LV UUID                1vIjb1-33we-f0UK-ITVP-W4Lq-616t-jb5fQh
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:96
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt07/lvt07mail
  VG Name                tb3-vgt07
  LV UUID                mQrOOl-AWue-3QnX-q8U6-C9Uo-KbKo-IISHJ4
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:97
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt07/lvt07web
  VG Name                tb3-vgt07
  LV UUID                AHejZd-CD4g-1RFA-agqR-uy3v-pHNR-Zxlc4G
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:98
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt07/lvt07idle-data
  VG Name                tb3-vgt07
  LV UUID                sfibSD-vm5N-6GYd-Sj1t-qpvS-DLqj-HsKTkM
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:99
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt06/lvt06mail
  VG Name                tb3-vgt06
  LV UUID                GWMemy-t789-9gtW-W2KB-sHAx-NpMA-mb1faJ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:100
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt06/lvt06infra
  VG Name                tb3-vgt06
  LV UUID                daEozj-B5Ij-5I8L-QePY-96rm-0OKn-dT8RIE
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:101
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt06/lvt06app-data
  VG Name                tb3-vgt06
  LV UUID                abAFUX-RBdN-WTtL-xc8j-zQwI-EcYu-08mAe3
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:102
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt06/lvt06db-data
  VG Name                tb3-vgt06
  LV UUID                BMtOMB-17Zz-kpD5-ctFX-abeD-PT1x-foPGEX
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:103
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt06/lvt06web-data
  VG Name                tb3-vgt06
  LV UUID                1IipMA-8GIw-VRY9-8RN2-ZqrD-sbdR-AvedVZ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:104
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt06/lvt06infra-data
  VG Name                tb3-vgt06
  LV UUID                ZcRBcc-ivh2-iXaR-L6bh-oK5W-pXho-he3GHL
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                60.00 GiB
  Current LE             15360
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:105
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt06/lvt06app
  VG Name                tb3-vgt06
  LV UUID                AtqF4d-SBOV-zUCp-Kkb0-EraC-uzf0-EdVEEM
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:106
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt06/lvt06db
  VG Name                tb3-vgt06
  LV UUID                HFfO3f-40X7-xt46-YwC0-W7NR-UiyD-o54gzL
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:107
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt06/lvt06web
  VG Name                tb3-vgt06
  LV UUID                bTWx5P-L0Gy-VxKA-qeiR-09Dq-0pH3-3YgtKn
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:108
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt06/lvt06idle
  VG Name                tb3-vgt06
  LV UUID                61P25W-12sX-rYcT-ElPL-xg0J-JmjU-AOe0IU
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:109
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt06/lvt06idle-data
  VG Name                tb3-vgt06
  LV UUID                x5hmSW-3ScL-oout-NErU-t8O1-Qp8f-pQ1WT1
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:110
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt06/lvt06mail-data
  VG Name                tb3-vgt06
  LV UUID                eZAK1d-U8ZD-KWVc-nVWv-CO7b-K7IQ-wfSgj9
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:111
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt05/lvt05app
  VG Name                tb3-vgt05
  LV UUID                lDsksC-IZOK-vy3b-RKuG-vJeY-eQ9v-HZ0kG0
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:112
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt05/lvt05db
  VG Name                tb3-vgt05
  LV UUID                aZ8yAr-K2Me-fPPn-Vsc1-nKJX-woSr-QIvCOV
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:113
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt05/lvt05mail
  VG Name                tb3-vgt05
  LV UUID                pPp2uu-dh00-dS8r-esma-FLDV-EOke-Cfpeeh
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:114
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt05/lvt05web
  VG Name                tb3-vgt05
  LV UUID                ekE2P4-OJPe-zLh4-sUi7-QwD9-Fbse-6rWoq5
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:115
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt05/lvt05infra
  VG Name                tb3-vgt05
  LV UUID                s2a2d8-lT5I-1pjo-ki0d-Mpdr-NqBK-o4ANqG
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:116
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt05/lvt05idle
  VG Name                tb3-vgt05
  LV UUID                9cDHig-FTfq-QalW-V9MT-2fbW-926N-aKaQO1
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:117
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt05/lvt05app-data
  VG Name                tb3-vgt05
  LV UUID                0iK7Za-gb67-shh8-OcAm-1jiY-IWN2-tlKXtQ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:118
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt05/lvt05db-data
  VG Name                tb3-vgt05
  LV UUID                wvokZO-Jo7Z-wtth-94PI-Xczc-lwNM-jQ0J1p
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:119
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt05/lvt05idle-data
  VG Name                tb3-vgt05
  LV UUID                VQcZKW-tgut-CzaW-KROV-pA2z-Hewi-7EBOEq
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:120
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt05/lvt05web-data
  VG Name                tb3-vgt05
  LV UUID                EgZkhV-usFu-5DQy-rMiA-d15t-5YhU-1DqUBc
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:121
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt05/lvt05mail-data
  VG Name                tb3-vgt05
  LV UUID                KWT4pn-DY6Q-x0Xy-kVDX-oth4-TIRx-xi0Z9L
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:122
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt05/lvt05infra-data
  VG Name                tb3-vgt05
  LV UUID                57hiXw-qvqV-0VHg-msjt-caFN-vCBo-nsK0aq
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                60.00 GiB
  Current LE             15360
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:123
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt04/lvt04app
  VG Name                tb3-vgt04
  LV UUID                TIA6lC-HNsw-2dvw-lnLS-FwVK-Xm4f-qd1HMY
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:124
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt04/lvt04db
  VG Name                tb3-vgt04
  LV UUID                pRlOMl-8UiL-CbZK-VFBM-z9QL-AT2w-PjKb1B
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:125
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt04/lvt04mail
  VG Name                tb3-vgt04
  LV UUID                HV7A3k-hDMw-csKq-RZmI-4XJa-7KiR-0OjnYM
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:126
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt04/lvt04web
  VG Name                tb3-vgt04
  LV UUID                y0ZIc0-ZQDz-Q4jp-KG9n-s7Rp-11wg-WECOlr
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:127
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt04/lvt04infra
  VG Name                tb3-vgt04
  LV UUID                ob70v7-rkRi-982Z-NIQ0-KlgT-iKrT-bKtxh2
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:128
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt04/lvt04idle
  VG Name                tb3-vgt04
  LV UUID                XHlcbl-U5SJ-5OaQ-KTzS-iWt7-Xlq1-MgUhH3
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:129
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt04/lvt04app-data
  VG Name                tb3-vgt04
  LV UUID                vnYg9D-hqCF-gu7P-yROV-7Kcg-QnH0-kIgkq2
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:130
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt04/lvt04db-data
  VG Name                tb3-vgt04
  LV UUID                SXcWsG-K0Tv-Z1ZU-I4xO-mnJw-XOd6-hPFJb5
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:131
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt04/lvt04idle-data
  VG Name                tb3-vgt04
  LV UUID                vL3CWe-DT21-ToJd-72hp-4x28-1iAe-ALKHFg
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:132
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt04/lvt04web-data
  VG Name                tb3-vgt04
  LV UUID                pcKsre-FKwD-JsbE-yABT-L8cl-cxAe-cCmYA1
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:133
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt04/lvt04mail-data
  VG Name                tb3-vgt04
  LV UUID                teu8h0-4v6N-3FkJ-twU9-oHQg-gJpE-d8wGjl
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:134
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt04/lvt04infra-data
  VG Name                tb3-vgt04
  LV UUID                NJvBlQ-Q4MM-U3wx-cM2i-MrzZ-BfR8-eA0QxL
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                60.00 GiB
  Current LE             15360
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:135
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt03/lvt03app
  VG Name                tb3-vgt03
  LV UUID                it5guV-fIeL-k0pj-0eSw-EI4F-KqGf-dSumwA
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:136
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt03/lvt03db
  VG Name                tb3-vgt03
  LV UUID                rC1qcS-kEdj-7mxF-9qic-IWkk-sdc1-lMSKOO
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:137
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt03/lvt03mail
  VG Name                tb3-vgt03
  LV UUID                lrOPIx-gVHa-q3mk-QRGE-KM7g-H3pz-lomMvK
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:138
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt03/lvt03web
  VG Name                tb3-vgt03
  LV UUID                yyGLMn-chpz-f3wl-rPkh-OPQr-65kI-HcZ1gu
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:139
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt03/lvt03infra
  VG Name                tb3-vgt03
  LV UUID                q8dOC2-iwoL-hNeV-DlPf-IBWu-RbYD-MGkFZg
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:140
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt03/lvt03idle
  VG Name                tb3-vgt03
  LV UUID                5FTuGD-uIbg-TWjo-FP89-BAo9-70wg-61h3wv
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:141
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt03/lvt03app-data
  VG Name                tb3-vgt03
  LV UUID                cVUkwV-q4ip-ct9N-Ydab-EQtz-74EV-mDvb2i
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:142
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt03/lvt03db-data
  VG Name                tb3-vgt03
  LV UUID                BFgjTG-a7Un-4APL-NsM2-dJpA-WKnG-U7cmQB
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:143
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt03/lvt03idle-data
  VG Name                tb3-vgt03
  LV UUID                elIdML-Qj3E-H86O-3PGN-AhEc-kEIh-ZCmdZf
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:144
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt03/lvt03web-data
  VG Name                tb3-vgt03
  LV UUID                N4gVjB-QJPb-jTxV-vIoC-QPWE-YXnN-5fJSH5
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:145
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt03/lvt03mail-data
  VG Name                tb3-vgt03
  LV UUID                6Quizq-xZPo-2wle-sRGx-zqJ5-hLU2-sbrmm0
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:146
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt03/lvt03infra-data
  VG Name                tb3-vgt03
  LV UUID                twz0wF-zJi1-lmbb-dYYD-eAK1-sRg7-uEiOlY
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                60.00 GiB
  Current LE             15360
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:147
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt02/lvt02app
  VG Name                tb3-vgt02
  LV UUID                u5PHZo-70Wp-jPnh-ZuHE-9JgK-XBB8-q3aC7H
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:148
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt02/lvt02db
  VG Name                tb3-vgt02
  LV UUID                dT2jFs-S87x-2auz-vj2Z-XfEk-6UF8-pi3zSp
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:149
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt02/lvt02mail
  VG Name                tb3-vgt02
  LV UUID                NQvUbW-LX8X-ONoL-mSzq-dpcd-wK3b-YwUPrY
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:150
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt02/lvt02web
  VG Name                tb3-vgt02
  LV UUID                n3Wkfy-rBY0-D1WY-cAWY-M0oJ-1peq-9TTK5T
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:151
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt02/lvt02infra
  VG Name                tb3-vgt02
  LV UUID                DdO201-E0D5-EMqh-O2Ot-apC8-ZnmE-Z7nyg4
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:152
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt02/lvt02idle
  VG Name                tb3-vgt02
  LV UUID                1l4vrb-Glec-SKBh-5oF6-tSZ8-K42t-JXOL3a
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:153
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt02/lvt02app-data
  VG Name                tb3-vgt02
  LV UUID                TTTQtN-qvCf-asjM-20Gn-Q33h-fyZa-mMQLCl
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:154
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt02/lvt02db-data
  VG Name                tb3-vgt02
  LV UUID                kte332-SKgn-wIwu-TzIW-BQvd-XCCV-UD5OKl
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:155
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt02/lvt02idle-data
  VG Name                tb3-vgt02
  LV UUID                dVAo1O-lN1K-aWqp-yKBE-FVeW-6lBc-GjqivQ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:156
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt02/lvt02web-data
  VG Name                tb3-vgt02
  LV UUID                VTryd2-qaww-XudV-SuMp-h3NU-Ffda-VEPvxU
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:157
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt02/lvt02mail-data
  VG Name                tb3-vgt02
  LV UUID                UOck4u-7b35-MwyA-3Bxh-4XhU-EeZs-T0kijN
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:158
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt02/lvt02infra-data
  VG Name                tb3-vgt02
  LV UUID                UAxmW0-Jlce-6YyY-02JC-iYdL-L3R0-XuDZRZ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                60.00 GiB
  Current LE             15360
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:159
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt01/lvt01app
  VG Name                tb3-vgt01
  LV UUID                VDm19U-B9Xu-hK45-xC5u-yC8w-CYWQ-o3VbP7
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:160
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt01/lvt01db
  VG Name                tb3-vgt01
  LV UUID                D8BK3k-0lrr-U1Pp-zdn1-mpRV-Bxwc-LhdwKF
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:161
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt01/lvt01mail
  VG Name                tb3-vgt01
  LV UUID                rcUTAH-JxRh-QmAD-bxpB-3CSu-MrS1-mDu05O
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:162
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt01/lvt01web
  VG Name                tb3-vgt01
  LV UUID                R2FGq4-fi1r-UgC6-k1FT-os9p-TRbJ-75VZww
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:163
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt01/lvt01infra
  VG Name                tb3-vgt01
  LV UUID                ApHSHm-vz5N-gTsW-o2I4-O5sX-BKzI-ILHeoD
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:164
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt01/lvt01idle
  VG Name                tb3-vgt01
  LV UUID                LCO1B7-l2vt-DcLs-Qrl0-HugJ-gLhz-sk0u3t
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                15.00 GiB
  Current LE             3840
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:165
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt01/lvt01app-data
  VG Name                tb3-vgt01
  LV UUID                ruIUZy-8Qtu-3zl4-Luvl-scG9-Mda3-PKiAzd
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:166
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt01/lvt01db-data
  VG Name                tb3-vgt01
  LV UUID                yLfwHe-LPGT-aTkY-3gK2-c9hn-Vwxu-rraDnD
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:167
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt01/lvt01idle-data
  VG Name                tb3-vgt01
  LV UUID                RBU3oD-PIf8-ZL9y-dw2b-y0Aa-fZfI-wrBugV
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:168
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt01/lvt01web-data
  VG Name                tb3-vgt01
  LV UUID                uVcJ6t-PKIu-gCgo-TsTd-2KYb-iyMD-9nei7l
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:169
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt01/lvt01mail-data
  VG Name                tb3-vgt01
  LV UUID                vr7xA7-We3g-oc8u-RMk1-LFfG-R3oc-udjl4i
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                40.00 GiB
  Current LE             10240
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:170
   
  --- Logical volume ---
  LV Name                /dev/tb3-vgt01/lvt01infra-data
  VG Name                tb3-vgt01
  LV UUID                4q0JHm-GzkM-vSbK-Y75E-OEZs-nA4x-TmJQvt
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                60.00 GiB
  Current LE             15360
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:171
   
  --- Logical volume ---
  LV Name                /dev/vg_mako18/lv_root
  VG Name                vg_mako18
  LV UUID                kESczT-Yu1o-Qxrh-uDnD-qcDK-v76g-2KyK7W
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                22.47 GiB
  Current LE             5753
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/vg_mako18/lv_swap
  VG Name                vg_mako18
  LV UUID                5meYyN-jmZ9-HVvX-3zka-tfUK-3H3S-Y6lgvW
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                22.47 GiB
  Current LE             5753
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
      Physical_Configuration/System_Under_Test/mount.txt                                                  0000644 0000000 0000000 00000001013 11524350307 021535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/mapper/vg_mako18-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda2 on /boot type ext4 (rw)
/dev/sda1 on /boot/efi type vfat (rw,umask=0077,shortname=winnt)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/System_Under_Test/etc/                                                       0000777 0000000 0000000 00000000000 11524350306 020415  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/etc/rc.d/                                                  0000777 0000000 0000000 00000000000 11524350275 021250  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/                                            0000777 0000000 0000000 00000000000 11524350305 022153  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S23NetworkManager                           0000755 0000000 0000000 00000004235 11524350302 025312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K02oddjobd                                  0000755 0000000 0000000 00000004325 11524350276 023772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S80postfix                                  0000755 0000000 0000000 00000007414 11524350304 024071  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K69rpcsvcgssd                               0000755 0000000 0000000 00000006014 11524350277 024561  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S07iscsid                                   0000755 0000000 0000000 00000007127 11524350301 023650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S55sshd                                     0000755 0000000 0000000 00000010671 11524350304 023337  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K15httpd                                    0000755 0000000 0000000 00000006364 11524350276 023521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K92ip6tables                                0000755 0000000 0000000 00000020716 11524350300 024255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K80sssd                                     0000755 0000000 0000000 00000004731 11524350277 023351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K89rdisc                                    0000755 0000000 0000000 00000003027 11524350300 023472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S22messagebus                               0000755 0000000 0000000 00000004230 11524350302 024516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K95firstboot                                0000755 0000000 0000000 00000005341 11524350300 024377  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K86cgred                                    0000755 0000000 0000000 00000006302 11524350300 023446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S84ksm                                      0000755 0000000 0000000 00000004236 11524350304 023172  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S13rpcbind                                  0000755 0000000 0000000 00000004031 11524350302 024000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S13irqbalance                               0000755 0000000 0000000 00000003521 11524350301 024462  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S11portreserve                              0000755 0000000 0000000 00000003512 11524350301 024737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# portreserve  This script starts and stops the TCP port reserver
# Originally written by Tim Waugh from Red Hat
# Adapted to Debian by Javier Fernandez-Sanguino
#
# chkconfig: 2345 11 89
# description: TCP port reservation utility
#
### BEGIN INIT INFO
# Provides:          portreserve
# Default-Start:     2 3 4 5
# Default-Stop:      0 6
# Short-Description: Port reservation utility
# Description:       Portreserve is a TCP port reservation utility
#                    that can be use to prevent RPC services from 
#                    picking up well-known reserved ports.
### END INIT INFO


DAEMON=/sbin/portreserve
test -f $DAEMON || exit 0

. /etc/rc.d/init.d/functions

NAME=`basename $DAEMON`
PIDFILE=/var/run/$NAME.pid
prog=$NAME

registered_services()
{
# Determine if there are any registered services, we return true
# if the directory exists and there are files that will _not_ be 
# ignored by portreserve (i.e. files with '~' or '.' in their names)
	if [ ! -d /etc/portreserve ] ; then
		return 1
	fi
	if [ -z "`find /etc/portreserve \! -name "*~" -a \! -name "*.*" -type f`" ] ; then
		return 1
	fi
	return 0
}


# See how we were called.
case "$1" in
  start)
	echo -n $"Starting $prog: "
	if registered_services ; then
	    daemon $DAEMON
	    RETVAL=$?
	    echo
	else
            echo $"(not starting, no services registered)"
	    RETVAL=0
	fi
        ;;
  stop)
        # Stop daemon.
	echo -n $"Stopping $prog: "
	[ -f "$PIDFILE" ] && killproc $DAEMON
	RETVAL=$?
	rm -f "$PIDFILE"
	echo
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  condrestart|try-restart)
	[ -f "$PIDFILE" ] && $0 restart || :
	;;
  reload)
	# Not supported
	;;
  force-reload)
	$0 restart
	;;
  status)
	status -p "$PIDFILE" $NAME
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|status}"
	exit 3
esac

exit 0
                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S91vncserver                                0000755 0000000 0000000 00000006066 11524350305 024417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 91 35
# description: Starts and stops vncserver. \
#	       used to provide remote X administration services.

### BEGIN INIT INFO
# Provides: vncserver
# Required-Start: $network $named
# Required-Stop: $network $named
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: start|stop|restart|try-restart|status|force-reload vncserver
# Description: control vncserver which exports your desktop
### END INIT INFO

# Source function library.
. /etc/init.d/functions

[ -r /etc/sysconfig/vncservers ] && . /etc/sysconfig/vncservers

prog=$"VNC server"

RETVAL=0

start() {
    [ "$EUID" != "0" ] && exit 4
    
    # Source networking configuration.
    . /etc/sysconfig/network

    # Check that networking is up.
    [ ${NETWORKING} = "no" ] && exit 1

    [ -x /usr/bin/vncserver ] || exit 5
    [ -x /usr/bin/Xvnc ] || exit 5

    echo -n $"Starting $prog: "
    RETVAL=0
    if [ ! -d /tmp/.X11-unix ]
    then
        mkdir -m 1777 /tmp/.X11-unix || :
        restorecon /tmp/.X11-unix 2>/dev/null || :
    fi

    for display in ${VNCSERVERS}
    do
        SERVS=1
        echo -n "${display} "
	DISP="${display%%:*}"
	USER="${display##*:}"
	VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
        runuser -l ${USER} -c "cd ~${USER} && [ -r .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
        RETVAL=$?
        [ "$RETVAL" -eq 0 ] || break
    done
    if [ -z "$SERVS" ]; then
        echo -n "no displays configured "
        failure
        RETVAL=6
    else
        if [ "$RETVAL" -eq 0 ]; then
	    success $"vncserver startup"
	    touch /var/lock/subsys/Xvnc
        else 
            failure $"vncserver start"
        fi
    fi
    echo

# As written in https://bugzilla.redhat.com/show_bug.cgi?id=523974 (LSB
# compliance) start of already running service is OK.
    [ "$RETVAL" -eq 98 ] && RETVAL=0

    return "$RETVAL"
}

stop() {
    [ "$EUID" != "0" ] && exit 4

    echo -n $"Shutting down $prog: "

    status Xvnc > /dev/null 2>&1
    RETVAL=$?

    # 3 means service is already stopped
    if ! [ "$RETVAL" -eq 3 ]; then
	for display in ${VNCSERVERS}; do
	    echo -n "${display} "
	    export USER="${display##*:}"
	    runuser ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
	done
	RETVAL=$?
    else
	let RETVAL=0
    fi

    [ "$RETVAL" -eq 0 ] && success $"vncserver shutdown" || \
	failure $"vncserver shutdown"
    echo
    [ "$RETVAL" -eq 0 ] && rm -f /var/lock/subsys/Xvnc
    return "$RETVAL"
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|force-reload)
	stop
	sleep 3
	start
	;;
  condrestart)
#	https://bugzilla.redhat.com/show_bug.cgi?id=508367
#	echo "condrestart is obsolete, use try-restart instead"
	if [ -e /var/lock/subsys/Xvnc ]; then
	    stop
	    sleep 3
	    start
	fi
	;;
  try-restart)
        if [ -e /var/lock/subsys/Xvnc ]; then
            stop
            sleep 3
            start
        fi
        ;;
  status)
	status Xvnc
	RETVAL=$?
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|try-restart|status|force-reload}"
	exit 2
esac

exit "$RETVAL"

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S97libvirtd                                 0000755 0000000 0000000 00000004765 11524350305 024233  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: libvirtd
# Required-Start: $network messagebus
# Should-Start: $named
# Should-Start: xend
# Should-Start: hal
# Should-Start: avahi
# Required-Stop: $network messagebus
# Should-Stop: $named
# Default-Start: 3 4 5
# Short-Description: daemon for libvirt virtualization API
# Description: This is a daemon for managing guest instances
#              and libvirt virtual networks
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirtd:   guest and virtual network management daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon for managing guest instances
#               and libvirt virtual networks
#               See http://libvirt.org
#
# processname: libvirtd
# pidfile: /var/run/libvirtd.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

SERVICE=libvirtd
PROCESS=libvirtd
PIDFILE=/var/run/$SERVICE.pid

LIBVIRTD_CONFIG=
LIBVIRTD_ARGS=
KRB5_KTNAME=/etc/libvirt/krb5.tab

test -f /etc/sysconfig/libvirtd && . /etc/sysconfig/libvirtd

LIBVIRTD_CONFIG_ARGS=
if [ -n "$LIBVIRTD_CONFIG" ]
then
    LIBVIRTD_CONFIG_ARGS="--config $LIBVIRTD_CONFIG"
fi

RETVAL=0

start() {
    echo -n $"Starting $SERVICE daemon: "
    mkdir -p /var/cache/libvirt
    rm -rf /var/cache/libvirt/*
    KRB5_KTNAME=$KRB5_KTNAME daemon --pidfile $PIDFILE --check $SERVICE $PROCESS --daemon $LIBVIRTD_CONFIG_ARGS $LIBVIRTD_ARGS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SERVICE
}

stop() {
    echo -n $"Stopping $SERVICE daemon: "

    killproc -p $PIDFILE $PROCESS
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$SERVICE
        rm -f $PIDFILE
        rm -rf /var/cache/libvirt/*
    fi
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading $SERVICE configuration: "

    killproc -p $PIDFILE $PROCESS -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

# See how we were called.
case "$1" in
    start|stop|restart|reload)
        $1
        ;;
    status)
        status -p $PIDFILE $PROCESS
        RETVAL=$?
        ;;
    force-reload)
        reload
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$SERVICE ] && restart || :
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload|try-restart}"
        exit 2
        ;;
esac
exit $RETVAL
           Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K50dnsmasq                                  0000755 0000000 0000000 00000002577 11524350276 024045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K01certmonger                               0000755 0000000 0000000 00000004054 11524350276 024530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S05cgconfig                                 0000755 0000000 0000000 00000012327 11524350301 024145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S95atd                                      0000755 0000000 0000000 00000004112 11524350305 023144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K85ebtables                                 0000755 0000000 0000000 00000007106 11524350300 024145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# init script for the Ethernet Bridge filter tables
#
# Written by Dag Wieers <dag@wieers.com>
# Modified by Rok Papez <rok.papez@arnes.si>
#             Bart De Schuymer <bdschuym@pandora.be>
#
# chkconfig: - 15 85
# description: Ethernet Bridge filtering tables
#
# config: /etc/sysconfig/ebtables         (text)
#         /etc/sysconfig/ebtables.<table> (binary)

source /etc/init.d/functions
source /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -x /sbin/ebtables ] || exit 5
[ -x /sbin/ebtables-save ] || exit 5
[ -x /sbin/ebtables-restore ] || exit 5

RETVAL=0
prog="ebtables"
desc="Ethernet bridge filtering"
umask 0077

#default configuration
EBTABLES_TEXT_FORMAT="yes"
EBTABLES_BINARY_FORMAT="yes"
EBTABLES_MODULES_UNLOAD="yes"
EBTABLES_SAVE_ON_STOP="no"
EBTABLES_SAVE_ON_RESTART="no"
EBTABLES_SAVE_COUNTER="no"

config=/etc/sysconfig/$prog-config
[ -f "$config" ] && . "$config"

start() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Starting $desc ($prog): "
	if [ "$EBTABLES_BINARY_FORMAT" = "yes" ]; then
		for table in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | sed -e 's/.*ebtables\.//' -e '/save/d' ); do
			/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-commit || RETVAL=1
		done
	else
		/sbin/ebtables-restore < /etc/sysconfig/ebtables || RETVAL=1
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog startup"
		touch "/var/lock/subsys/$prog"
	else
		failure "$prog startup"
	fi
	echo
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Stopping $desc ($prog): "
	for table in $(grep '^ebtable_' /proc/modules | sed -e 's/ebtable_\([^ ]*\).*/\1/'); do
		/sbin/ebtables -t $table --init-table || RETVAL=1
	done

	if [ "$EBTABLES_MODULES_UNLOAD" = "yes" ]; then
		for mod in $(grep -E '^(ebt|ebtable)_' /proc/modules | cut -f1 -d' ') ebtables; do
			rmmod $mod 2> /dev/null
		done
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog shutdown"
		rm -f "/var/lock/subsys/$prog"
	else
		failure "$prog shutdown"
	fi
	echo
}

restart() {
	[ "$EBTABLES_SAVE_ON_RESTART" = "yes" ] && save
	stop
	start
}

save() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Saving $desc ($prog): "
	if [ "$EBTABLES_TEXT_FORMAT" = "yes" ]; then
		if [ -e /etc/sysconfig/ebtables ]; then
			chmod 0600 /etc/sysconfig/ebtables
			mv -f /etc/sysconfig/ebtables /etc/sysconfig/ebtables.save
		fi
		/sbin/ebtables-save > /etc/sysconfig/ebtables || RETVAL=1
	fi
	if [ "$EBTABLES_BINARY_FORMAT" = "yes" ]; then
		rm -f /etc/sysconfig/ebtables.*.save
		for oldtable in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | grep -vF 'ebtables.save'); do
			chmod 0600 $oldtable
			mv -f $oldtable $oldtable.save
		done
		for table in $(grep '^ebtable_' /proc/modules | sed -e 's/ebtable_\([^ ]*\).*/\1/'); do
			/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-save || RETVAL=1
			if [ "$EBTABLES_SAVE_COUNTER" = "no" ]; then
				/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table -Z || RETVAL=1
			fi
		done
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog saved"
	else
		failure "$prog saved"
	fi
	echo
}

case "$1" in
  start)
	[ -f "/var/lock/subsys/$prog" ] && exit 0
	start
	;;
  stop)
	[ "$EBTABLES_SAVE_ON_STOP" = "yes" ] && save
	stop
	;;
  restart|force-reload)
	restart
	;;
  reload)
	[ ! -f "/var/lock/subsys/$prog" ] && exit 7
	restart
	;;
  condrestart|try-restart)
	[ ! -e "/var/lock/subsys/$prog" ] && exit 0
	restart
	;;
  save)
	save
	;;
  status)
	[ -f "/var/lock/subsys/$prog" ] && RETVAL=0 || RETVAL=3
	/sbin/ebtables-save
	;;
  *)
	echo $"Usage $0 {start|stop|restart|condrestart|save|status}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S13iscsi                                    0000755 0000000 0000000 00000007315 11524350301 023500  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S25cups                                     0000755 0000000 0000000 00000005603 11524350302 023342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# "$Id: cups.sh,v 1.10 2000/03/30 05:19:16 mike Exp $"
#
#   Startup/shutdown script for the Common UNIX Printing System (CUPS).
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 25 10
#   description: Startup/shutdown script for the Common UNIX \
#                Printing System (CUPS).
#
#   Copyright 1997-2000 by Easy Software Products, all rights reserved.
#
#   These coded instructions, statements, and computer programs are the
#   property of Easy Software Products and are protected by Federal
#   copyright law.  Distribution and use rights are outlined in the file
#   "LICENSE.txt" which should have been included with this file.  If this
#   file is missing or damaged please contact Easy Software Products
#   at:
#
#       Attn: CUPS Licensing Information
#       Easy Software Products
#       44141 Airport View Drive, Suite 204
#       Hollywood, Maryland 20636-3111 USA
#
#       Voice: (301) 373-9603
#       EMail: cups-info@cups.org
#         WWW: http://www.cups.org
#
# heavily edited so that it's more like other scripts in init.d on Red Hat
# Linux
#
### BEGIN INIT INFO
# Provides: cups
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Should-Start: portreserve
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The CUPS scheduler
# Description: The CUPS scheduler
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

DAEMON=cupsd
exec=/usr/sbin/cupsd
prog=cups
config=/etc/cups/cupsd.conf
lockfile=/var/lock/subsys/$DAEMON

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if cupsd is executable
	[ -x $exec ] || exit 5
}

start () {
	check
	[ -f $config ] || exit 6

	echo -n $"Starting $prog: "

	# tell portreserve to release the port
	[ -x /sbin/portrelease ] && /sbin/portrelease cups &>/dev/null || :

	# start daemon
	daemon $DAEMON
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $lockfile

	udevadm trigger --subsystem-match=usb	\
		--attr-match=bInterfaceClass=07	\
		--attr-match=bInterfaceSubClass=01 &>/dev/null || :
        udevadm trigger --subsystem-match=usb \
		--property-match=DEVNAME="/dev/usb/lp*" &>/dev/null || :

	return 0
}

stop () {
	check

	# stop daemon
	echo -n $"Stopping $prog: "
	killproc $DAEMON
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f $lockfile
	return 0
}

restart() {
	stop
	start
}

case $1 in
	start)
		start
	;;
	stop)
		stop
	;;
	restart)
		restart
	;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart || :
	;;	
	reload)
		echo -n $"Reloading $prog: "
		killproc $DAEMON -HUP
		RETVAL=$?
		echo
	;;
	force-reload)
		echo -n $"Reloading $prog: "
		if ! killproc $DAEMON -HUP; then
			restart
		fi
		echo
	;;
	status)
		status $DAEMON
		RETVAL=$?
	;;
	restartlog)
		stop
		cat /dev/null >/var/log/cups/error_log
		start
	;;
	*)

	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 2
esac

exit $RETVAL
                                                                                                                             Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S15mdmonitor                                0000755 0000000 0000000 00000005013 11524350302 024372  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K03libvirt-qpid                             0000755 0000000 0000000 00000003567 11524350276 025003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: libvirt-qpid
# Should-Start: libvirtd
# Short-Description: gateway daemon to interact with libvirt viq qpid
# Description: This is a daemon for interacting with libvirt viq qpid QMF.
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-qpid:   gateway daemon to interact with libvirt viq qpid
#
# chkconfig: - 98 03
# description: This is a daemon for interacting with libvirt viq qpid QMF.
#
# processname: libvirt-qpid
# pidfile: /var/run/libvirt-qpid.pid
#

# Sanity checks.
[ -x /usr/sbin/libvirt-qpid ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

SERVICE=libvirt-qpid
PROCESS=libvirt-qpid

RETVAL=0

test -f /etc/sysconfig/libvirt-qpid && . /etc/sysconfig/libvirt-qpid

start() {
    echo -n $"Starting $SERVICE daemon: "
    daemon --check $SERVICE $PROCESS --daemon $LIBVIRT_QPID_ARGS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SERVICE
}

stop() {
    echo -n $"Stopping $SERVICE daemon: "

    killproc $PROCESS
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$SERVICE
        rm -f /var/run/$SERVICE.pid
    fi
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading $SERVICE configuration: "

    killproc $PROCESS -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

# See how we were called.
case "$1" in
    start|stop|restart|reload)
        $1
        ;;
    status)
        status $PROCESS
        RETVAL=$?
        ;;
    force-reload)
        reload
	;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$SERVICE ] && restart || :
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload}"
	exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                         Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K88nslcd                                    0000755 0000000 0000000 00000003213 11524350300 023465  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K50snmptrapd                                0000755 0000000 0000000 00000003312 11524350276 024373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# ucd-snmp init file for snmptrapd
#
# chkconfig: - 50 50
# description: Simple Network Management Protocol (SNMP) Trap Daemon
#
# processname: /usr/sbin/snmptrapd
# config: /etc/snmp/snmptrapd.conf
# config: /usr/share/snmp/snmptrapd.conf
# pidfile: /var/run/snmptrapd.pid


### BEGIN INIT INFO
# Provides: snmptrapd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Should-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: start and stop Net-SNMP trap daemon
# Description: Simple Network Management Protocol (SNMP) trap daemon
### END INIT INFO

# source function library
. /etc/init.d/functions

OPTIONS="-Lsd -p /var/run/snmptrapd.pid"
if [ -e /etc/sysconfig/snmptrapd ]; then
  . /etc/sysconfig/snmptrapd
fi

RETVAL=0
prog="snmptrapd"
binary=/usr/sbin/snmptrapd
pidfile=/var/run/snmptrapd.pid

start() {
	[ -x $binary ] || exit 5
	echo -n $"Starting $prog: "
        daemon --pidfile=$pidfile /usr/sbin/snmptrapd $OPTIONS
	RETVAL=$?
	echo
	touch /var/lock/subsys/snmptrapd
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc -p $pidfile /usr/sbin/snmptrapd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/snmptrapd
	return $RETVAL
}

reload(){
	stop
	start
}

restart(){
	stop
	start
}

condrestart(){
    [ -e /var/lock/subsys/snmptrapd ] && restart
    return 0
}

case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  restart)
	restart
	RETVAL=$?
        ;;
  reload|force-reload)
	reload
	RETVAL=$?
        ;;
  condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
  status)
        status snmptrapd
	RETVAL=$?
        ;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K75ntpdate                                  0000755 0000000 0000000 00000003512 11524350277 024034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S97rhnsd                                    0000755 0000000 0000000 00000005522 11524350305 023522  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K74ntpd                                     0000755 0000000 0000000 00000003603 11524350277 023342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K80kdump                                    0000755 0000000 0000000 00000027662 11524350277 023525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K73ypbind                                   0000755 0000000 0000000 00000011277 11524350277 023667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S10network                                  0000755 0000000 0000000 00000014466 11524350301 024061  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S90crond                                    0000755 0000000 0000000 00000005445 11524350304 023505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S12rsyslog                                  0000755 0000000 0000000 00000004326 11524350301 024066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S11auditd                                   0000755 0000000 0000000 00000006462 11524350301 023640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K84wpa_supplicant                           0000755 0000000 0000000 00000003512 11524350300 025411  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S01sysstat                                  0000755 0000000 0000000 00000002363 11524350301 024073  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K74gfs2                                     0000755 0000000 0000000 00000006445 11524350277 023245  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S24avahi-daemon                             0000755 0000000 0000000 00000004754 11524350302 024726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S26haldaemon                                0000755 0000000 0000000 00000003245 11524350303 024322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S00microcode_ctl                            0000755 0000000 0000000 00000002221 11524350300 025156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K10saslauthd                                0000755 0000000 0000000 00000004010 11524350276 024343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K60nfs                                      0000755 0000000 0000000 00000013536 11524350277 023164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S98tog-pegasus                              0000755 0000000 0000000 00000010107 11524350305 024636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig:    - 98 1
# description:  The Open Group Pegasus cimserver initscript
# processname:  cimserver
# pidfile:      /var/run/tog-pegasus/cimserver.pid
#

### BEGIN INIT INFO
# Provides: lsb-pegasus
# Required-Start: $syslog $network
# Should-Start: $time
# Required-Stop: $syslog
# Default-Start:  3 5
# Default-Stop: 0 1 2 6
# Description: init script for Pegasus CIMServer
### END INIT INFO

CIMSERVER_BIN=/usr/sbin/cimserver
prog=cimserver
LOCKFILE=/var/lock/subsys/tog-pegasus
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/tog-pegasus ] && . /etc/sysconfig/tog-pegasus;

PEGASUS_SSL_CONF_FILE=${PEGASUS_SSL_CONF_FILE:=/etc/Pegasus/ssl.cnf}
PEGASUS_SSL_CERT_FILE=${PEGASUS_SSL_CERT_FILE:=/etc/Pegasus/server.pem}
PEGASUS_SSL_KEY_FILE=${PEGASUS_SSL_KEY_FILE:=/etc/Pegasus/file.pem}
PEGASUS_SSL_TRUSTSTORE=${PEGASUS_SSL_TRUSTSTORE:=/etc/Pegasus/client.pem}

RETVAL=0

case "$1" in
     start)
        if [[ $EUID -ne 0 ]]; then
            echo "tog-pegasus $1: $CIMSERVER_BIN executed under nonprivileged user"
            exit 4
        fi
        pid=`pidofproc $CIMSERVER_BIN`
        RETVAL=$?
        if [ "$RETVAL" -eq 0 ]; then
            echo "tog-pegasus $1: $CIMSERVER_BIN is already running"
            exit 0
        fi

        if [ ! -e $CIMSERVER_BIN ]; then
           echo "tog-pegasus $1: $CIMSERVER_BIN not found"
           failure
           exit 5
        fi

        if [ ! -x $CIMSERVER_BIN ]; then
           echo "tog-pegasus $1: $CIMSERVER_BIN not executable"
           failure
           exit 4
        fi

        if [ ! -e ${PEGASUS_SSL_CONF_FILE} ] || [ ! -e ${PEGASUS_SSL_CERT_FILE} ] || 
           [ ! -e ${PEGASUS_SSL_KEY_FILE} ]  || [ ! -e ${PEGASUS_SSL_TRUSTSTORE} ]; then
           if [ -x /usr/share/Pegasus/scripts/genOpenPegasusSSLCerts ]; then
               echo -n "tog-pegasus: Generating cimserver SSL certificates..."
               /usr/share/Pegasus/scripts/genOpenPegasusSSLCerts
               if [ $? -eq 0 ]; then
                   success
               else
                   failure
               fi
               echo
           fi
        fi
        echo -n $"Starting up CIM server: "
        $CIMSERVER_BIN ${CIMSERVER_OPTIONS}
        RETVAL=$?
        if [ "$RETVAL" -eq 0 ]; then
            rm -f /var/run/tog-pegasus.pid;
            ln -s /var/run/tog-pegasus/"$prog".pid /var/run/tog-pegasus.pid;
            touch $LOCKFILE
            success
        else
            failure
        fi
        echo
        ;;

     stop)
        if [[ $EUID -ne 0 ]]; then
            echo "tog-pegasus $1: $CIMSERVER_BIN executed under nonprivileged user"
            exit 4
        fi
        echo -n $"Shutting down CIM server: "
        killproc cimserver
        RETVAL=$?
        if [ "$RETVAL" -eq 0 ]; then
            rm -f $LOCKFILE
            rm -f /var/run/tog-pegasus/*
            rm -f /var/run/tog-pegasus.pid
            success
        else
            failure
        fi
        echo
        ;;

     status)
        pid=`pidofproc $CIMSERVER_BIN`
        RETVAL=$?
        if [ "$RETVAL" -eq 0 ]; then
            echo -n $"CIM server ($pid) is running"
            exit 0
        else
            if [ -e /var/run/tog-pegasus.pid ]; then
                echo $"CIM server is not running, but pid file exists"
                exit 1
            elif [ -e $LOCKFILE ]; then
                echo $"CIM server is not running, but lock file exists"
                exit 2
            else
                echo $"CIM server is not running"
                exit 3
            fi
        fi
        echo
        ;;

     condrestart)
        pid=`pidofproc $CIMSERVER_BIN`
        RETVAL=$?
        if [ "$RETVAL" -eq 0 ]; then
            $0 stop && $0 start
            RETVAL=$?
        fi;
        ;;

     try-restart)
        $0 stop && $0 start
        RETVAL=$?
        ;;

     restart|force-reload)
        $0 stop
        $0 start
        RETVAL=$?
        ;;

     reload)
        ;;
     *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|try-restart}"
        [ "$1" = "usage" ] && exit 0
        exit 2
esac

exit $RETVAL

                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K50snmpd                                    0000755 0000000 0000000 00000004162 11524350276 023510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# ucd-snmp init file for snmpd
#
# chkconfig: - 50 50
# description: Simple Network Management Protocol (SNMP) Daemon
#
# processname: /usr/sbin/snmpd
# config: /etc/snmp/snmpd.conf
# config: /usr/share/snmp/snmpd.conf
# pidfile: /var/run/snmpd.pid

### BEGIN INIT INFO
# Provides: snmpd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start: 
# Should-Stop: 
# Default-Start: 
# Default-Stop: 
# Short-Description: start and stop Net-SNMP daemon
# Description: Simple Network Management Protocol (SNMP) Daemon
### END INIT INFO

# source function library
. /etc/init.d/functions


OPTIONS="-LS0-6d -Lf /dev/null -p /var/run/snmpd.pid"
if [ -e /etc/sysconfig/snmpd ]; then
  . /etc/sysconfig/snmpd
fi

RETVAL=0
prog="snmpd"
binary=/usr/sbin/snmpd
pidfile=/var/run/snmpd.pid

start() {
        [ -x $binary ] || exit 5
        echo -n $"Starting $prog: "
        if [ $UID -ne 0 ]; then
                RETVAL=1
                failure
        else
                daemon --pidfile=$pidfile $binary $OPTIONS
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/snmpd
        fi;
        echo 
        return $RETVAL
}

stop() {
        echo -n $"Stopping $prog: "
        if [ $UID -ne 0 ]; then
                RETVAL=1
                failure
        else
                killproc -p $pidfile $binary
                RETVAL=$?
                [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/snmpd
        fi;
        echo
        return $RETVAL
}

reload(){
        echo -n $"Reloading $prog: "
        killproc -p $pidfile $binary -HUP
        RETVAL=$?
        echo
        return $RETVAL
}

restart(){
	stop
	start
}

condrestart(){
    [ -e /var/lock/subsys/snmpd ] && restart
    return 0
}

case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  restart)
	restart
	RETVAL=$?
        ;;
  reload|force-reload)
	reload
	RETVAL=$?
        ;;
  condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
  status)
        status snmpd
	RETVAL=$?
        ;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S24rpcgssd                                  0000755 0000000 0000000 00000006050 11524350302 024031  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S50bluetooth                                0000755 0000000 0000000 00000001306 11524350303 024370  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 345 50 83
# description: Turn HID adapters into Bluetooth ones
#
### BEGIN INIT INFO
# Short-Description: Trigger bluetoothd start-up
# Description: Trigger bluetoothd start-up
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth

start()
{
	echo -n $"Enabling Bluetooth devices:"
	udevadm trigger --subsystem-match=bluetooth
	echo ""
	return 0
}

stop()
{
	# FIXME If somebody figures out how to disable the K* script
	echo -n "Stopping Bluetooth services:"
	echo ""
	return 0
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  *)
	echo $"Usage: $0 {start|stop}"
	exit 3
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                          Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K10psacct                                   0000755 0000000 0000000 00000003024 11524350276 023634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S26acpid                                    0000755 0000000 0000000 00000003275 11524350303 023455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S13cpuspeed                                 0000755 0000000 0000000 00000025442 11524350301 024177  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S26udev-post                                0000755 0000000 0000000 00000004370 11524350303 024320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S99local                                    0000755 0000000 0000000 00000001214 11524350306 023473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

#mem_kbytes=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'`
#hp_size_kbytes=`cat /proc/meminfo | grep Hugepagesize | awk '{print $2}'`
#nr_huge_pages=`echo "$mem_kbytes / $hp_size_kbytes * 1 / 100" | bc`
#echo 0 >/proc/sys/vm/nr_hugepages
#echo "3" >/proc/sys/vm/drop_caches
#echo "$nr_huge_pages" >/proc/sys/vm/nr_hugepages
#mkdir /dev/hugepages
#mount -t hugetlbfs hugetlbfs /dev/hugepages
#/etc/init.d/libvirtd restart


                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K50netconsole                               0000755 0000000 0000000 00000005650 11524350276 024543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S24rpcidmapd                                0000755 0000000 0000000 00000005222 11524350302 024327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S02lvm2-monitor                             0000555 0000000 0000000 00000004612 11524350301 024724  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S28autofs                                   0000755 0000000 0000000 00000007234 11524350303 023677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S85ksmtuned                                 0000755 0000000 0000000 00000003433 11524350304 024231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K01smartd                                   0000755 0000000 0000000 00000005672 11524350276 023664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S98libvirt-guests                           0000755 0000000 0000000 00000017172 11524350305 025374  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S82abrtd                                    0000755 0000000 0000000 00000003254 11524350304 023471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S55autobench                                0000755 0000000 0000000 00000005063 11524350303 024344  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K74nscd                                     0000755 0000000 0000000 00000004723 11524350277 023330  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S25netfs                                    0000755 0000000 0000000 00000012432 11524350302 023505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/S24nfslock                                  0000755 0000000 0000000 00000006675 11524350302 024040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K92iptables                                 0000755 0000000 0000000 00000020557 11524350300 024172  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/rc.d/rc3.d/K87restorecond                              0000755 0000000 0000000 00000003427 11524350300 024717  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/System_Under_Test/etc/rc.d/init.d/                                           0000777 0000000 0000000 00000000000 11524350275 022435  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/etc/rc.d/init.d/network                                    0000755 0000000 0000000 00000014466 11524350272 024060  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Physical_Configuration/System_Under_Test/etc/rc.d/init.d/gfs2                                       0000755 0000000 0000000 00000006445 11524350267 023232  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/rc.d/init.d/sysstat                                    0000755 0000000 0000000 00000002363 11524350275 024075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Physical_Configuration/System_Under_Test/etc/rc.d/init.d/saslauthd                                  0000755 0000000 0000000 00000004010 11524350274 024341  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/System_Under_Test/etc/rc.d/init.d/messagebus                                 0000755 0000000 0000000 00000004230 11524350271 024510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/System_Under_Test/etc/rc.d/init.d/tog-pegasus                                0000755 0000000 0000000 00000010107 11524350275 024614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig:    - 98 1
# description:  The Open Group Pegasus cimserver initscript
# processname:  cimserver
# pidfile:      /var/run/tog-pegasus/cimserver.pid
#

### BEGIN INIT INFO
# Provides: lsb-pegasus
# Required-Start: $syslog $network
# Should-Start: $time
# Required-Stop: $syslog
# Default-Start:  3 5
# Default-Stop: 0 1 2 6
# Description: init script for Pegasus CIMServer
### END INIT INFO

CIMSERVER_BIN=/usr/sbin/cimserver
prog=cimserver
LOCKFILE=/var/lock/subsys/tog-pegasus
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/tog-pegasus ] && . /etc/sysconfig/tog-pegasus;

PEGASUS_SSL_CONF_FILE=${PEGASUS_SSL_CONF_FILE:=/etc/Pegasus/ssl.cnf}
PEGASUS_SSL_CERT_FILE=${PEGASUS_SSL_CERT_FILE:=/etc/Pegasus/server.pem}
PEGASUS_SSL_KEY_FILE=${PEGASUS_SSL_KEY_FILE:=/etc/Pegasus/file.pem}
PEGASUS_SSL_TRUSTSTORE=${PEGASUS_SSL_TRUSTSTORE:=/etc/Pegasus/client.pem}

RETVAL=0

case "$1" in
     start)
        if [[ $EUID -ne 0 ]]; then
            echo "tog-pegasus $1: $CIMSERVER_BIN executed under nonprivileged user"
            exit 4
        fi
        pid=`pidofproc $CIMSERVER_BIN`
        RETVAL=$?
        if [ "$RETVAL" -eq 0 ]; then
            echo "tog-pegasus $1: $CIMSERVER_BIN is already running"
            exit 0
        fi

        if [ ! -e $CIMSERVER_BIN ]; then
           echo "tog-pegasus $1: $CIMSERVER_BIN not found"
           failure
           exit 5
        fi

        if [ ! -x $CIMSERVER_BIN ]; then
           echo "tog-pegasus $1: $CIMSERVER_BIN not executable"
           failure
           exit 4
        fi

        if [ ! -e ${PEGASUS_SSL_CONF_FILE} ] || [ ! -e ${PEGASUS_SSL_CERT_FILE} ] || 
           [ ! -e ${PEGASUS_SSL_KEY_FILE} ]  || [ ! -e ${PEGASUS_SSL_TRUSTSTORE} ]; then
           if [ -x /usr/share/Pegasus/scripts/genOpenPegasusSSLCerts ]; then
               echo -n "tog-pegasus: Generating cimserver SSL certificates..."
               /usr/share/Pegasus/scripts/genOpenPegasusSSLCerts
               if [ $? -eq 0 ]; then
                   success
               else
                   failure
               fi
               echo
           fi
        fi
        echo -n $"Starting up CIM server: "
        $CIMSERVER_BIN ${CIMSERVER_OPTIONS}
        RETVAL=$?
        if [ "$RETVAL" -eq 0 ]; then
            rm -f /var/run/tog-pegasus.pid;
            ln -s /var/run/tog-pegasus/"$prog".pid /var/run/tog-pegasus.pid;
            touch $LOCKFILE
            success
        else
            failure
        fi
        echo
        ;;

     stop)
        if [[ $EUID -ne 0 ]]; then
            echo "tog-pegasus $1: $CIMSERVER_BIN executed under nonprivileged user"
            exit 4
        fi
        echo -n $"Shutting down CIM server: "
        killproc cimserver
        RETVAL=$?
        if [ "$RETVAL" -eq 0 ]; then
            rm -f $LOCKFILE
            rm -f /var/run/tog-pegasus/*
            rm -f /var/run/tog-pegasus.pid
            success
        else
            failure
        fi
        echo
        ;;

     status)
        pid=`pidofproc $CIMSERVER_BIN`
        RETVAL=$?
        if [ "$RETVAL" -eq 0 ]; then
            echo -n $"CIM server ($pid) is running"
            exit 0
        else
            if [ -e /var/run/tog-pegasus.pid ]; then
                echo $"CIM server is not running, but pid file exists"
                exit 1
            elif [ -e $LOCKFILE ]; then
                echo $"CIM server is not running, but lock file exists"
                exit 2
            else
                echo $"CIM server is not running"
                exit 3
            fi
        fi
        echo
        ;;

     condrestart)
        pid=`pidofproc $CIMSERVER_BIN`
        RETVAL=$?
        if [ "$RETVAL" -eq 0 ]; then
            $0 stop && $0 start
            RETVAL=$?
        fi;
        ;;

     try-restart)
        $0 stop && $0 start
        RETVAL=$?
        ;;

     restart|force-reload)
        $0 stop
        $0 start
        RETVAL=$?
        ;;

     reload)
        ;;
     *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|try-restart}"
        [ "$1" = "usage" ] && exit 0
        exit 2
esac

exit $RETVAL

                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/System_Under_Test/etc/rc.d/init.d/autobench                                  0000755 0000000 0000000 00000005063 11524350265 024332  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/System_Under_Test/etc/rc.d/init.d/atd                                        0000755 0000000 0000000 00000004112 11524350264 023123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/init.d/auditd                                     0000755 0000000 0000000 00000006462 11524350265 023640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/rc.d/init.d/certmonger                                 0000755 0000000 0000000 00000004054 11524350265 024526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/rc.d/init.d/irqbalance                                 0000755 0000000 0000000 00000003521 11524350270 024454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/rc.d/init.d/acpid                                      0000755 0000000 0000000 00000003275 11524350264 023444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/etc/rc.d/init.d/iscsid                                     0000755 0000000 0000000 00000007127 11524350270 023637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsid iSCSI daemon
#
# chkconfig: 345 7 89
# description: Starts and stops the iSCSI daemon.
#
# processname: iscsid
# pidfile: /var/run/iscsid.pid
# config:  /etc/iscsi/iscsid.conf

### BEGIN INIT INFO
# Provides:          iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login iSCSI daemon.
# Description: iscsid provides the iSCSI session and connection state machine
#              for software iscsi/iser (iscsi_tcp/ib_iser) and partialy
#              offloaded hardware (bnx2i).
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/sbin/iscsid
prog=iscsid
config=/etc/iscsi/iscsid.conf
lockfile=/var/lock/subsys/$prog

# FIXME this has a false positive for root on nfs
root_is_iscsi() {
    rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
    [[ "$rootopts" =~ "_netdev" ]]
}

force_start() {
    echo -n $"Starting $prog: "
    modprobe -q iscsi_tcp
    modprobe -q ib_iser
    modprobe -q cxgb3i
    modprobe -q bnx2i
    modprobe -q be2iscsi
    daemon brcm_iscsiuio
    daemon $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

use_discoveryd() {
    grep -qrs "discovery.sendtargets.use_discoveryd = Yes" /var/lib/iscsi/send_targets
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    grep -qrs "discovery.isns.use_discoveryd = Yes" /var/lib/iscsi/isns
    if [ $? -eq 0 ] ; then
 	return 0
    fi

    return 1
}

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # only start if nodes are setup to startup automatically, root is iscsi,
    # or if iscsid is managing the sessions.
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    if [ $? -eq 0 ] || root_is_iscsi || use_discoveryd ; then
        force_start
        return $?
    fi

    return 0
}

stop() {
    if use_discoveryd ; then
	iscsiadm -k 0 2>/dev/null
    fi

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|cxgb3i|be2iscsi") )
    if [[ -n "${iparams[*]}" ]]; then
        # We have active sessions, so don't stop iscsid!!
        echo -n $"Not stopping $prog: iscsi sessions still active"
        warning $"Not stopping $prog: iscsi sessions still active"
        echo
        return 0
    fi

    echo -n $"Stopping $prog: "
 
    iscsiadm -k 0 2>/dev/null
    echo

    killproc brcm_iscsiuio
    rm -f /var/run/brcm_iscsiuio.pid

    # only remove the iscsi drivers when offload is used
    rmmod bnx2i 2>/dev/null
    rmmod cnic 2>/dev/null

    rmmod cxgb3i 2>/dev/null

    modprobe -r be2iscsi 2>/dev/null

    modprobe -r ib_iser 2>/dev/null
    modprobe -r iscsi_tcp 2>/dev/null

    rm -f $lockfile
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

restart() {
    rh_status_q
    use_force_start=$?

    stop
    # if iscsid was running then make sure it starts up
    if [ "$use_force_start" -eq 0 ] ; then
	force_start
    else
	start
    fi
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    status $prog
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    force-start)
        force_start
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/System_Under_Test/etc/rc.d/init.d/nscd                                       0000755 0000000 0000000 00000004723 11524350272 023311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Physical_Configuration/System_Under_Test/etc/rc.d/init.d/rpcidmapd                                  0000755 0000000 0000000 00000005222 11524350274 024322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/rc.d/init.d/nfs                                        0000755 0000000 0000000 00000013536 11524350272 023152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Physical_Configuration/System_Under_Test/etc/rc.d/init.d/sssd                                       0000755 0000000 0000000 00000004731 11524350275 023340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Physical_Configuration/System_Under_Test/etc/rc.d/init.d/crond                                      0000755 0000000 0000000 00000005445 11524350266 023474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/rc.d/init.d/ip6tables                                  0000755 0000000 0000000 00000020716 11524350270 024251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Physical_Configuration/System_Under_Test/etc/rc.d/init.d/snmptrapd                                  0000755 0000000 0000000 00000003312 11524350275 024366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# ucd-snmp init file for snmptrapd
#
# chkconfig: - 50 50
# description: Simple Network Management Protocol (SNMP) Trap Daemon
#
# processname: /usr/sbin/snmptrapd
# config: /etc/snmp/snmptrapd.conf
# config: /usr/share/snmp/snmptrapd.conf
# pidfile: /var/run/snmptrapd.pid


### BEGIN INIT INFO
# Provides: snmptrapd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Should-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: start and stop Net-SNMP trap daemon
# Description: Simple Network Management Protocol (SNMP) trap daemon
### END INIT INFO

# source function library
. /etc/init.d/functions

OPTIONS="-Lsd -p /var/run/snmptrapd.pid"
if [ -e /etc/sysconfig/snmptrapd ]; then
  . /etc/sysconfig/snmptrapd
fi

RETVAL=0
prog="snmptrapd"
binary=/usr/sbin/snmptrapd
pidfile=/var/run/snmptrapd.pid

start() {
	[ -x $binary ] || exit 5
	echo -n $"Starting $prog: "
        daemon --pidfile=$pidfile /usr/sbin/snmptrapd $OPTIONS
	RETVAL=$?
	echo
	touch /var/lock/subsys/snmptrapd
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc -p $pidfile /usr/sbin/snmptrapd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/snmptrapd
	return $RETVAL
}

reload(){
	stop
	start
}

restart(){
	stop
	start
}

condrestart(){
    [ -e /var/lock/subsys/snmptrapd ] && restart
    return 0
}

case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  restart)
	restart
	RETVAL=$?
        ;;
  reload|force-reload)
	reload
	RETVAL=$?
        ;;
  condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
  status)
        status snmptrapd
	RETVAL=$?
        ;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/init.d/firstboot                                  0000755 0000000 0000000 00000005341 11524350267 024376  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/rc.d/init.d/autofs                                     0000755 0000000 0000000 00000007234 11524350265 023665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/rc.d/init.d/portreserve                                0000755 0000000 0000000 00000003512 11524350273 024736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# portreserve  This script starts and stops the TCP port reserver
# Originally written by Tim Waugh from Red Hat
# Adapted to Debian by Javier Fernandez-Sanguino
#
# chkconfig: 2345 11 89
# description: TCP port reservation utility
#
### BEGIN INIT INFO
# Provides:          portreserve
# Default-Start:     2 3 4 5
# Default-Stop:      0 6
# Short-Description: Port reservation utility
# Description:       Portreserve is a TCP port reservation utility
#                    that can be use to prevent RPC services from 
#                    picking up well-known reserved ports.
### END INIT INFO


DAEMON=/sbin/portreserve
test -f $DAEMON || exit 0

. /etc/rc.d/init.d/functions

NAME=`basename $DAEMON`
PIDFILE=/var/run/$NAME.pid
prog=$NAME

registered_services()
{
# Determine if there are any registered services, we return true
# if the directory exists and there are files that will _not_ be 
# ignored by portreserve (i.e. files with '~' or '.' in their names)
	if [ ! -d /etc/portreserve ] ; then
		return 1
	fi
	if [ -z "`find /etc/portreserve \! -name "*~" -a \! -name "*.*" -type f`" ] ; then
		return 1
	fi
	return 0
}


# See how we were called.
case "$1" in
  start)
	echo -n $"Starting $prog: "
	if registered_services ; then
	    daemon $DAEMON
	    RETVAL=$?
	    echo
	else
            echo $"(not starting, no services registered)"
	    RETVAL=0
	fi
        ;;
  stop)
        # Stop daemon.
	echo -n $"Stopping $prog: "
	[ -f "$PIDFILE" ] && killproc $DAEMON
	RETVAL=$?
	rm -f "$PIDFILE"
	echo
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  condrestart|try-restart)
	[ -f "$PIDFILE" ] && $0 restart || :
	;;
  reload)
	# Not supported
	;;
  force-reload)
	$0 restart
	;;
  status)
	status -p "$PIDFILE" $NAME
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|status}"
	exit 3
esac

exit 0
                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/init.d/sshd                                       0000755 0000000 0000000 00000010671 11524350275 023325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Physical_Configuration/System_Under_Test/etc/rc.d/init.d/ksm                                        0000755 0000000 0000000 00000004236 11524350271 023152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Physical_Configuration/System_Under_Test/etc/rc.d/init.d/libvirtd                                   0000755 0000000 0000000 00000004765 11524350271 024206  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: libvirtd
# Required-Start: $network messagebus
# Should-Start: $named
# Should-Start: xend
# Should-Start: hal
# Should-Start: avahi
# Required-Stop: $network messagebus
# Should-Stop: $named
# Default-Start: 3 4 5
# Short-Description: daemon for libvirt virtualization API
# Description: This is a daemon for managing guest instances
#              and libvirt virtual networks
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirtd:   guest and virtual network management daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon for managing guest instances
#               and libvirt virtual networks
#               See http://libvirt.org
#
# processname: libvirtd
# pidfile: /var/run/libvirtd.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

SERVICE=libvirtd
PROCESS=libvirtd
PIDFILE=/var/run/$SERVICE.pid

LIBVIRTD_CONFIG=
LIBVIRTD_ARGS=
KRB5_KTNAME=/etc/libvirt/krb5.tab

test -f /etc/sysconfig/libvirtd && . /etc/sysconfig/libvirtd

LIBVIRTD_CONFIG_ARGS=
if [ -n "$LIBVIRTD_CONFIG" ]
then
    LIBVIRTD_CONFIG_ARGS="--config $LIBVIRTD_CONFIG"
fi

RETVAL=0

start() {
    echo -n $"Starting $SERVICE daemon: "
    mkdir -p /var/cache/libvirt
    rm -rf /var/cache/libvirt/*
    KRB5_KTNAME=$KRB5_KTNAME daemon --pidfile $PIDFILE --check $SERVICE $PROCESS --daemon $LIBVIRTD_CONFIG_ARGS $LIBVIRTD_ARGS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SERVICE
}

stop() {
    echo -n $"Stopping $SERVICE daemon: "

    killproc -p $PIDFILE $PROCESS
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$SERVICE
        rm -f $PIDFILE
        rm -rf /var/cache/libvirt/*
    fi
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading $SERVICE configuration: "

    killproc -p $PIDFILE $PROCESS -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

# See how we were called.
case "$1" in
    start|stop|restart|reload)
        $1
        ;;
    status)
        status -p $PIDFILE $PROCESS
        RETVAL=$?
        ;;
    force-reload)
        reload
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$SERVICE ] && restart || :
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload|try-restart}"
        exit 2
        ;;
esac
exit $RETVAL
           Physical_Configuration/System_Under_Test/etc/rc.d/init.d/libvirt-guests                             0000755 0000000 0000000 00000017172 11524350271 025346  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/init.d/avahi-daemon                               0000755 0000000 0000000 00000004754 11524350265 024721  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Physical_Configuration/System_Under_Test/etc/rc.d/init.d/iscsi                                      0000755 0000000 0000000 00000007315 11524350270 023472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iscsi: log into iSCSI targets
#
# chkconfig: 345 13 89
# description: Logs into iSCSI targets needed at system startup

# Note we should have $network in Required-Start/Stop but we don't because if
# we would require network chkconfig will put us directly after NetworkManager
# when using NM, which will make our see if the network is up test succeed
# while NM is actually still configuring the network. By not requiring network
# chkconfig will use the chkconfig header to determine our start prio, starting
# us after the old network service, but before NM (netfs does this the same).

### BEGIN INIT INFO
# Provides:          iscsi
# Required-Start:    iscsid
# Required-Stop:     iscsid
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Starts and stops login and scanning of iSCSI devices.
# Description: iscsi provides the iSCSI state machine for software iscsi/iser
#              and partial offloaded hardware. iscsi logs into and scans
#              for iSCSI devices, and shuts them down when stopped.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec="/sbin/iscsiadm"
prog="iscsi"
config="/etc/iscsi/initiatorname.iscsi"
lockfile=/var/lock/subsys/$prog
iscsid_lockfile=/var/lock/subsys/${prog}_iscsid

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0

    # if no nodes are setup to startup automatically exit cleanly
    grep -qrs "node.startup = automatic" /var/lib/iscsi/nodes
    [ $? -eq 0 ] || exit 0

    # this script is normally called from startup so log into
    # nodes marked node.startup=automatic
    echo -n $"Starting $prog: "
    $exec -m node --loginall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Starting $prog"
        echo
        return 1
    fi

    success $"Starting $prog"
    touch $lockfile
    echo
    return 0
}

stop() {
    echo -n $"Stopping $prog: "
    $exec -m node --logoutall=automatic 2>&1 > /dev/null | grep iscsiadm

    # <sigh> iscsiadm does not always give a non 0 exit status in case of
    # error so we grep for any messages to stderr and see those as errors too
    if [ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -eq 0 ]; then
        failure $"Stopping $prog"
        echo
        return 1
    fi

    success $"Stopping $prog"
    rm -f $lockfile
    echo
    return 0
}

restart() {
    stop
    start
}

reload() {
    return 3
}

force_reload() {
    restart
}

rh_status() {
    [ -f $lockfile ] || { echo $"$prog is stopped" ; return 3 ; }

    declare -a iparams=( $(iscsiadm -m session 2>/dev/null | egrep "tcp|iser|bnx2i|be2iscsi|cxgb3i") )
    if [[ -z "${iparams[*]}" ]]; then
        # no sessions
	echo $"No active sessions"
        return 2
    fi

    iscsiadm -m session -P 3
    return 0
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0
{start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/etc/rc.d/init.d/ypbind                                     0000755 0000000 0000000 00000011277 11524350275 023654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/rc.d/init.d/psacct                                     0000755 0000000 0000000 00000003024 11524350273 023631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Physical_Configuration/System_Under_Test/etc/rc.d/init.d/nfslock                                    0000755 0000000 0000000 00000006675 11524350272 024031  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Physical_Configuration/System_Under_Test/etc/rc.d/init.d/ebtables                                   0000755 0000000 0000000 00000007106 11524350266 024144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# init script for the Ethernet Bridge filter tables
#
# Written by Dag Wieers <dag@wieers.com>
# Modified by Rok Papez <rok.papez@arnes.si>
#             Bart De Schuymer <bdschuym@pandora.be>
#
# chkconfig: - 15 85
# description: Ethernet Bridge filtering tables
#
# config: /etc/sysconfig/ebtables         (text)
#         /etc/sysconfig/ebtables.<table> (binary)

source /etc/init.d/functions
source /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -x /sbin/ebtables ] || exit 5
[ -x /sbin/ebtables-save ] || exit 5
[ -x /sbin/ebtables-restore ] || exit 5

RETVAL=0
prog="ebtables"
desc="Ethernet bridge filtering"
umask 0077

#default configuration
EBTABLES_TEXT_FORMAT="yes"
EBTABLES_BINARY_FORMAT="yes"
EBTABLES_MODULES_UNLOAD="yes"
EBTABLES_SAVE_ON_STOP="no"
EBTABLES_SAVE_ON_RESTART="no"
EBTABLES_SAVE_COUNTER="no"

config=/etc/sysconfig/$prog-config
[ -f "$config" ] && . "$config"

start() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Starting $desc ($prog): "
	if [ "$EBTABLES_BINARY_FORMAT" = "yes" ]; then
		for table in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | sed -e 's/.*ebtables\.//' -e '/save/d' ); do
			/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-commit || RETVAL=1
		done
	else
		/sbin/ebtables-restore < /etc/sysconfig/ebtables || RETVAL=1
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog startup"
		touch "/var/lock/subsys/$prog"
	else
		failure "$prog startup"
	fi
	echo
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Stopping $desc ($prog): "
	for table in $(grep '^ebtable_' /proc/modules | sed -e 's/ebtable_\([^ ]*\).*/\1/'); do
		/sbin/ebtables -t $table --init-table || RETVAL=1
	done

	if [ "$EBTABLES_MODULES_UNLOAD" = "yes" ]; then
		for mod in $(grep -E '^(ebt|ebtable)_' /proc/modules | cut -f1 -d' ') ebtables; do
			rmmod $mod 2> /dev/null
		done
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog shutdown"
		rm -f "/var/lock/subsys/$prog"
	else
		failure "$prog shutdown"
	fi
	echo
}

restart() {
	[ "$EBTABLES_SAVE_ON_RESTART" = "yes" ] && save
	stop
	start
}

save() {
	[ "$EUID" != "0" ] && exit 4
	echo -n $"Saving $desc ($prog): "
	if [ "$EBTABLES_TEXT_FORMAT" = "yes" ]; then
		if [ -e /etc/sysconfig/ebtables ]; then
			chmod 0600 /etc/sysconfig/ebtables
			mv -f /etc/sysconfig/ebtables /etc/sysconfig/ebtables.save
		fi
		/sbin/ebtables-save > /etc/sysconfig/ebtables || RETVAL=1
	fi
	if [ "$EBTABLES_BINARY_FORMAT" = "yes" ]; then
		rm -f /etc/sysconfig/ebtables.*.save
		for oldtable in $(ls /etc/sysconfig/ebtables.* 2>/dev/null | grep -vF 'ebtables.save'); do
			chmod 0600 $oldtable
			mv -f $oldtable $oldtable.save
		done
		for table in $(grep '^ebtable_' /proc/modules | sed -e 's/ebtable_\([^ ]*\).*/\1/'); do
			/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table --atomic-save || RETVAL=1
			if [ "$EBTABLES_SAVE_COUNTER" = "no" ]; then
				/sbin/ebtables -t $table --atomic-file /etc/sysconfig/ebtables.$table -Z || RETVAL=1
			fi
		done
	fi

	if [ $RETVAL -eq 0 ]; then
		success "$prog saved"
	else
		failure "$prog saved"
	fi
	echo
}

case "$1" in
  start)
	[ -f "/var/lock/subsys/$prog" ] && exit 0
	start
	;;
  stop)
	[ "$EBTABLES_SAVE_ON_STOP" = "yes" ] && save
	stop
	;;
  restart|force-reload)
	restart
	;;
  reload)
	[ ! -f "/var/lock/subsys/$prog" ] && exit 7
	restart
	;;
  condrestart|try-restart)
	[ ! -e "/var/lock/subsys/$prog" ] && exit 0
	restart
	;;
  save)
	save
	;;
  status)
	[ -f "/var/lock/subsys/$prog" ] && RETVAL=0 || RETVAL=3
	/sbin/ebtables-save
	;;
  *)
	echo $"Usage $0 {start|stop|restart|condrestart|save|status}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/System_Under_Test/etc/rc.d/init.d/cgred                                      0000755 0000000 0000000 00000006302 11524350266 023444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/rc.d/init.d/udev-post                                  0000755 0000000 0000000 00000004370 11524350275 024311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Physical_Configuration/System_Under_Test/etc/rc.d/init.d/cups                                       0000755 0000000 0000000 00000005603 11524350266 023335  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# "$Id: cups.sh,v 1.10 2000/03/30 05:19:16 mike Exp $"
#
#   Startup/shutdown script for the Common UNIX Printing System (CUPS).
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 25 10
#   description: Startup/shutdown script for the Common UNIX \
#                Printing System (CUPS).
#
#   Copyright 1997-2000 by Easy Software Products, all rights reserved.
#
#   These coded instructions, statements, and computer programs are the
#   property of Easy Software Products and are protected by Federal
#   copyright law.  Distribution and use rights are outlined in the file
#   "LICENSE.txt" which should have been included with this file.  If this
#   file is missing or damaged please contact Easy Software Products
#   at:
#
#       Attn: CUPS Licensing Information
#       Easy Software Products
#       44141 Airport View Drive, Suite 204
#       Hollywood, Maryland 20636-3111 USA
#
#       Voice: (301) 373-9603
#       EMail: cups-info@cups.org
#         WWW: http://www.cups.org
#
# heavily edited so that it's more like other scripts in init.d on Red Hat
# Linux
#
### BEGIN INIT INFO
# Provides: cups
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Should-Start: portreserve
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The CUPS scheduler
# Description: The CUPS scheduler
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

DAEMON=cupsd
exec=/usr/sbin/cupsd
prog=cups
config=/etc/cups/cupsd.conf
lockfile=/var/lock/subsys/$DAEMON

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if cupsd is executable
	[ -x $exec ] || exit 5
}

start () {
	check
	[ -f $config ] || exit 6

	echo -n $"Starting $prog: "

	# tell portreserve to release the port
	[ -x /sbin/portrelease ] && /sbin/portrelease cups &>/dev/null || :

	# start daemon
	daemon $DAEMON
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $lockfile

	udevadm trigger --subsystem-match=usb	\
		--attr-match=bInterfaceClass=07	\
		--attr-match=bInterfaceSubClass=01 &>/dev/null || :
        udevadm trigger --subsystem-match=usb \
		--property-match=DEVNAME="/dev/usb/lp*" &>/dev/null || :

	return 0
}

stop () {
	check

	# stop daemon
	echo -n $"Stopping $prog: "
	killproc $DAEMON
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f $lockfile
	return 0
}

restart() {
	stop
	start
}

case $1 in
	start)
		start
	;;
	stop)
		stop
	;;
	restart)
		restart
	;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart || :
	;;	
	reload)
		echo -n $"Reloading $prog: "
		killproc $DAEMON -HUP
		RETVAL=$?
		echo
	;;
	force-reload)
		echo -n $"Reloading $prog: "
		if ! killproc $DAEMON -HUP; then
			restart
		fi
		echo
	;;
	status)
		status $DAEMON
		RETVAL=$?
	;;
	restartlog)
		stop
		cat /dev/null >/var/log/cups/error_log
		start
	;;
	*)

	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 2
esac

exit $RETVAL
                                                                                                                             Physical_Configuration/System_Under_Test/etc/rc.d/init.d/haldaemon                                  0000755 0000000 0000000 00000003245 11524350267 024314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/rc.d/init.d/rpcbind                                    0000755 0000000 0000000 00000004031 11524350274 023775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/System_Under_Test/etc/rc.d/init.d/rhnsd                                      0000755 0000000 0000000 00000005522 11524350274 023500  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/rc.d/init.d/dnsmasq                                    0000755 0000000 0000000 00000002577 11524350266 024040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# Startup script for the DNS caching server
#
# chkconfig: - 49 50
# description: This script starts your DNS caching server
# processname: dnsmasq
# pidfile: /var/run/dnsmasq.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

dnsmasq=/usr/sbin/dnsmasq
[ -f $dnsmasq ] || exit 0

DOMAIN_SUFFIX=`dnsdomainname`
if [ ! -z "${DOMAIN_SUFFIX}" ]; then
  OPTIONS="-s $DOMAIN_SUFFIX"
fi

RETVAL=0

# See how we were called.
case "$1" in
  start)
        echo -n "Starting dnsmasq: "
        daemon $dnsmasq $OPTIONS
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dnsmasq
        ;;
  stop)
        if test "x`pidof dnsmasq`" != x; then
            echo -n "Shutting down dnsmasq: "
            killproc dnsmasq
        fi
	RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/dnsmasq /var/run/dnsmasq.pid
        ;;
  status)
	status dnsmasq
	RETVAL=$?
	;;
  reload)
	echo -n "Reloading dnsmasq: "
	killproc dnsmasq -HUP
	RETVAL=$?
	echo
	;;
  restart)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart)
	    if test "x`/sbin/pidof dnsmasq`" != x; then
		$0 stop
		$0 start
		RETVAL=$?
	    fi
	    ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac

exit $RETVAL

                                                                                                                                 Physical_Configuration/System_Under_Test/etc/rc.d/init.d/functions                                  0000644 0000000 0000000 00000042767 11524350267 024405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Physical_Configuration/System_Under_Test/etc/rc.d/init.d/kdump                                      0000755 0000000 0000000 00000027662 11524350270 023507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Physical_Configuration/System_Under_Test/etc/rc.d/init.d/postfix                                    0000755 0000000 0000000 00000007414 11524350273 024057  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/rc.d/init.d/iptables                                   0000755 0000000 0000000 00000020557 11524350270 024166  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/rc.d/init.d/rsyslog                                    0000755 0000000 0000000 00000004326 11524350274 024065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Physical_Configuration/System_Under_Test/etc/rc.d/init.d/NetworkManager                             0000755 0000000 0000000 00000004235 11524350264 025305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# NetworkManager:   NetworkManager daemon
#
# chkconfig: - 23 84
# description:  This is a daemon for automatically switching network \
#               connections to the best available connection.
#
# processname: NetworkManager
# pidfile: /var/run/NetworkManager/NetworkManager.pid
#
### BEGIN INIT INFO
# Provides: network_manager $network
# Required-Start: messagebus
# Required-Stop: messagebus
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop NetworkManager
# Description: NetworkManager is a tool for easily managing network connections
### END INIT INFO

prefix=/usr
exec_prefix=/usr
sbindir=/usr/sbin

NETWORKMANAGER_BIN=${sbindir}/NetworkManager

# Sanity checks.
[ -x $NETWORKMANAGER_BIN ] || exit 1

# Source function library.
. /etc/rc.d/init.d/functions

# Source network configuration
. /etc/sysconfig/network

# so we can rearrange this easily
processname=NetworkManager
servicename=NetworkManager
pidfile=/var/run/NetworkManager/NetworkManager.pid

RETVAL=0

start()
{
	echo -n $"Setting network parameters... "
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
	success
	echo

	echo -n $"Starting NetworkManager daemon: "
	daemon --pidfile $pidfile --check $servicename $processname --pid-file=$pidfile
	RETVAL=$?
	echo
	if [ -n "${NETWORKWAIT}" ]; then 
		[ -z "${LINKDELAY}" ] && LINKDELAY=10
		echo -n $"Waiting for network..."
		nm-online -q --timeout=$LINKDELAY || nm-online -q -x --timeout=30
		[ "$?" = "0" ] && success "network startup" || failure "network startup"
		echo
		[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop()
{
	echo -n $"Stopping NetworkManager daemon: "
	killproc -p $pidfile $servicename
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	status)
		status -p $pidfile $processname
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ]; then
			stop
			start
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
		;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/etc/rc.d/init.d/netconsole                                 0000755 0000000 0000000 00000005650 11524350272 024533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Physical_Configuration/System_Under_Test/etc/rc.d/init.d/rpcgssd                                    0000755 0000000 0000000 00000006050 11524350274 024024  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/System_Under_Test/etc/rc.d/init.d/fence_virtd                                0000755 0000000 0000000 00000003774 11524350266 024662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# fence_virtd - Virtual Machine Fencing host daemon
#
# chkconfig:   2345 98 01
# description: Fence_virtd is a fencing host daemon which routes fencing \
#              requests from clusters of virtual machines to various \
#              management layers.
#

### BEGIN INIT INFO
# Provides: fence_virtd
# Required-Start: $network
# Required-Stop: 
# Should-Start: libvirtd
# Should-Stop: 
# Default-Start: 
# Default-Stop: 
# Short-Description: start and stop fence_virtd
# description: Fence_virtd handles fencing requests from VMs
### end init info

# Source function library.
. /etc/rc.d/init.d/functions

#
# Macros generated by configure
#
prog="fence_virtd"
prefix="/usr"
exec_prefix="/usr"
exec="/usr/sbin/$prog"

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
[ -z "$FENCE_VIRTD_ARGS" ] && FENCE_VIRTD_ARGS="-w"

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $FENCE_VIRTD_ARGS
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $prog
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

    Physical_Configuration/System_Under_Test/etc/rc.d/init.d/abrtd                                      0000755 0000000 0000000 00000003254 11524350264 023455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/rc.d/init.d/lvm2-monitor                               0000555 0000000 0000000 00000004612 11524350271 024721  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/init.d/halt                                       0000755 0000000 0000000 00000012723 11524350267 023315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Physical_Configuration/System_Under_Test/etc/rc.d/init.d/cgconfig                                   0000755 0000000 0000000 00000012327 11524350265 024142  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Physical_Configuration/System_Under_Test/etc/rc.d/init.d/vncserver                                  0000755 0000000 0000000 00000006066 11524350275 024404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 91 35
# description: Starts and stops vncserver. \
#	       used to provide remote X administration services.

### BEGIN INIT INFO
# Provides: vncserver
# Required-Start: $network $named
# Required-Stop: $network $named
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: start|stop|restart|try-restart|status|force-reload vncserver
# Description: control vncserver which exports your desktop
### END INIT INFO

# Source function library.
. /etc/init.d/functions

[ -r /etc/sysconfig/vncservers ] && . /etc/sysconfig/vncservers

prog=$"VNC server"

RETVAL=0

start() {
    [ "$EUID" != "0" ] && exit 4
    
    # Source networking configuration.
    . /etc/sysconfig/network

    # Check that networking is up.
    [ ${NETWORKING} = "no" ] && exit 1

    [ -x /usr/bin/vncserver ] || exit 5
    [ -x /usr/bin/Xvnc ] || exit 5

    echo -n $"Starting $prog: "
    RETVAL=0
    if [ ! -d /tmp/.X11-unix ]
    then
        mkdir -m 1777 /tmp/.X11-unix || :
        restorecon /tmp/.X11-unix 2>/dev/null || :
    fi

    for display in ${VNCSERVERS}
    do
        SERVS=1
        echo -n "${display} "
	DISP="${display%%:*}"
	USER="${display##*:}"
	VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
        runuser -l ${USER} -c "cd ~${USER} && [ -r .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
        RETVAL=$?
        [ "$RETVAL" -eq 0 ] || break
    done
    if [ -z "$SERVS" ]; then
        echo -n "no displays configured "
        failure
        RETVAL=6
    else
        if [ "$RETVAL" -eq 0 ]; then
	    success $"vncserver startup"
	    touch /var/lock/subsys/Xvnc
        else 
            failure $"vncserver start"
        fi
    fi
    echo

# As written in https://bugzilla.redhat.com/show_bug.cgi?id=523974 (LSB
# compliance) start of already running service is OK.
    [ "$RETVAL" -eq 98 ] && RETVAL=0

    return "$RETVAL"
}

stop() {
    [ "$EUID" != "0" ] && exit 4

    echo -n $"Shutting down $prog: "

    status Xvnc > /dev/null 2>&1
    RETVAL=$?

    # 3 means service is already stopped
    if ! [ "$RETVAL" -eq 3 ]; then
	for display in ${VNCSERVERS}; do
	    echo -n "${display} "
	    export USER="${display##*:}"
	    runuser ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
	done
	RETVAL=$?
    else
	let RETVAL=0
    fi

    [ "$RETVAL" -eq 0 ] && success $"vncserver shutdown" || \
	failure $"vncserver shutdown"
    echo
    [ "$RETVAL" -eq 0 ] && rm -f /var/lock/subsys/Xvnc
    return "$RETVAL"
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart|force-reload)
	stop
	sleep 3
	start
	;;
  condrestart)
#	https://bugzilla.redhat.com/show_bug.cgi?id=508367
#	echo "condrestart is obsolete, use try-restart instead"
	if [ -e /var/lock/subsys/Xvnc ]; then
	    stop
	    sleep 3
	    start
	fi
	;;
  try-restart)
        if [ -e /var/lock/subsys/Xvnc ]; then
            stop
            sleep 3
            start
        fi
        ;;
  status)
	status Xvnc
	RETVAL=$?
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|try-restart|status|force-reload}"
	exit 2
esac

exit "$RETVAL"

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/System_Under_Test/etc/rc.d/init.d/single                                     0000755 0000000 0000000 00000001207 11524350274 023637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/System_Under_Test/etc/rc.d/init.d/mdmonitor                                  0000755 0000000 0000000 00000005013 11524350271 024362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/System_Under_Test/etc/rc.d/init.d/restorecond                                0000755 0000000 0000000 00000003427 11524350273 024712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Physical_Configuration/System_Under_Test/etc/rc.d/init.d/bluetooth                                  0000755 0000000 0000000 00000001306 11524350265 024363  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 345 50 83
# description: Turn HID adapters into Bluetooth ones
#
### BEGIN INIT INFO
# Short-Description: Trigger bluetoothd start-up
# Description: Trigger bluetoothd start-up
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth

start()
{
	echo -n $"Enabling Bluetooth devices:"
	udevadm trigger --subsystem-match=bluetooth
	echo ""
	return 0
}

stop()
{
	# FIXME If somebody figures out how to disable the K* script
	echo -n "Stopping Bluetooth services:"
	echo ""
	return 0
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  *)
	echo $"Usage: $0 {start|stop}"
	exit 3
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                          Physical_Configuration/System_Under_Test/etc/rc.d/init.d/wpa_supplicant                             0000755 0000000 0000000 00000003512 11524350275 025411  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# wpa_supplicant 
#
# chkconfig:   - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
#     Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
#     is the IEEE 802.1X/WPA component that is used in the client stations. \
#     It implements key negotiation with a WPA Authenticator and it controls \
#     the roaming and IEEE 802.11 authentication/association of the wlan driver.
# processname: wpa_supplicant
# config:      /etc/wpa_supplicant/wpa_supplicant.conf
#
### BEGIN INIT INFO
# Provides: wpa_supplicant
# Required-Start: $local_fs messagebus
# Required-Stop: $local_fs messagebus
# Default-Start:
# Default-Stop: 0 1 6
# Short-Description: start and stop wpa_supplicant
# Description: wpa_supplicant is a tool for connecting to wireless networks
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 	echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
	daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
	retval=$?
	echo
	[ $retval -eq 0 ] && touch $lockfile
	return $retval
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	retval=$?
	echo
	[ $retval -eq 0 ] && rm -f $lockfile
	return $retval
}

restart() {
	stop
	start
}

reload() {
	restart
}

force_reload() {
	restart
}

fdr_status() {
	status $prog
}


case "$1" in
	start|stop|restart|reload)
  		$1
		;;
	force-reload)
		force_reload
		;;
	status)
		fdr_status
		;;
	condrestart|try-restart)
		[ -f $lockfile ] && restart
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
		exit 1
esac

                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/init.d/cpuspeed                                   0000755 0000000 0000000 00000025442 11524350266 024176  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/rc.d/init.d/netfs                                      0000755 0000000 0000000 00000012432 11524350272 023475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/init.d/rpcsvcgssd                                 0000755 0000000 0000000 00000006014 11524350274 024540  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/rc.d/init.d/oddjobd                                    0000755 0000000 0000000 00000004325 11524350273 023766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/rc.d/init.d/ksmtuned                                   0000755 0000000 0000000 00000003433 11524350271 024210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Physical_Configuration/System_Under_Test/etc/rc.d/init.d/sandbox                                    0000755 0000000 0000000 00000003242 11524350274 024015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/rc.d/init.d/killall                                    0000755 0000000 0000000 00000001214 11524350271 023775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/rc.d/init.d/rdisc                                      0000755 0000000 0000000 00000003027 11524350273 023463  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/System_Under_Test/etc/rc.d/init.d/httpd                                      0000755 0000000 0000000 00000006364 11524350267 023514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Physical_Configuration/System_Under_Test/etc/rc.d/init.d/snmpd                                      0000755 0000000 0000000 00000004162 11524350274 023502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# ucd-snmp init file for snmpd
#
# chkconfig: - 50 50
# description: Simple Network Management Protocol (SNMP) Daemon
#
# processname: /usr/sbin/snmpd
# config: /etc/snmp/snmpd.conf
# config: /usr/share/snmp/snmpd.conf
# pidfile: /var/run/snmpd.pid

### BEGIN INIT INFO
# Provides: snmpd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start: 
# Should-Stop: 
# Default-Start: 
# Default-Stop: 
# Short-Description: start and stop Net-SNMP daemon
# Description: Simple Network Management Protocol (SNMP) Daemon
### END INIT INFO

# source function library
. /etc/init.d/functions


OPTIONS="-LS0-6d -Lf /dev/null -p /var/run/snmpd.pid"
if [ -e /etc/sysconfig/snmpd ]; then
  . /etc/sysconfig/snmpd
fi

RETVAL=0
prog="snmpd"
binary=/usr/sbin/snmpd
pidfile=/var/run/snmpd.pid

start() {
        [ -x $binary ] || exit 5
        echo -n $"Starting $prog: "
        if [ $UID -ne 0 ]; then
                RETVAL=1
                failure
        else
                daemon --pidfile=$pidfile $binary $OPTIONS
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/snmpd
        fi;
        echo 
        return $RETVAL
}

stop() {
        echo -n $"Stopping $prog: "
        if [ $UID -ne 0 ]; then
                RETVAL=1
                failure
        else
                killproc -p $pidfile $binary
                RETVAL=$?
                [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/snmpd
        fi;
        echo
        return $RETVAL
}

reload(){
        echo -n $"Reloading $prog: "
        killproc -p $pidfile $binary -HUP
        RETVAL=$?
        echo
        return $RETVAL
}

restart(){
	stop
	start
}

condrestart(){
    [ -e /var/lock/subsys/snmpd ] && restart
    return 0
}

case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  restart)
	restart
	RETVAL=$?
        ;;
  reload|force-reload)
	reload
	RETVAL=$?
        ;;
  condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
  status)
        status snmpd
	RETVAL=$?
        ;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/rc.d/init.d/ntpd                                       0000755 0000000 0000000 00000003603 11524350272 023323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Physical_Configuration/System_Under_Test/etc/rc.d/init.d/smartd                                     0000755 0000000 0000000 00000005672 11524350274 023662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/init.d/nslcd                                      0000755 0000000 0000000 00000003213 11524350272 023456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/System_Under_Test/etc/rc.d/init.d/ntpdate                                    0000755 0000000 0000000 00000003512 11524350272 024014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/rc.d/init.d/libvirt-qpid                               0000755 0000000 0000000 00000003567 11524350271 024774  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: libvirt-qpid
# Should-Start: libvirtd
# Short-Description: gateway daemon to interact with libvirt viq qpid
# Description: This is a daemon for interacting with libvirt viq qpid QMF.
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-qpid:   gateway daemon to interact with libvirt viq qpid
#
# chkconfig: - 98 03
# description: This is a daemon for interacting with libvirt viq qpid QMF.
#
# processname: libvirt-qpid
# pidfile: /var/run/libvirt-qpid.pid
#

# Sanity checks.
[ -x /usr/sbin/libvirt-qpid ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

SERVICE=libvirt-qpid
PROCESS=libvirt-qpid

RETVAL=0

test -f /etc/sysconfig/libvirt-qpid && . /etc/sysconfig/libvirt-qpid

start() {
    echo -n $"Starting $SERVICE daemon: "
    daemon --check $SERVICE $PROCESS --daemon $LIBVIRT_QPID_ARGS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SERVICE
}

stop() {
    echo -n $"Stopping $SERVICE daemon: "

    killproc $PROCESS
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$SERVICE
        rm -f /var/run/$SERVICE.pid
    fi
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading $SERVICE configuration: "

    killproc $PROCESS -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

# See how we were called.
case "$1" in
    start|stop|restart|reload)
        $1
        ;;
    status)
        status $PROCESS
        RETVAL=$?
        ;;
    force-reload)
        reload
	;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$SERVICE ] && restart || :
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload}"
	exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                         Physical_Configuration/System_Under_Test/etc/rc.d/init.d/microcode_ctl                              0000755 0000000 0000000 00000002221 11524350272 025157  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/hosts                                                  0000644 0000000 0000000 00000033442 11524350246 021505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Do not remove the following line, or various programs
# that require network functionality will fail.
10.1.216.80	tb3-mako18	# Added by NetworkManager
127.0.0.1	localhost.localdomain	localhost
::1	tb3-mako18	localhost6.localdomain6	localhost6

10.1.216.100	autobench tb3-autobench tb3-autobench.linuxperf9025.net
10.1.216.150	tb3-master
10.1.216.246	tb3-mako18

10.1.216.11		tb3-client01
10.1.216.12		tb3-client02
10.1.216.13		tb3-client03
10.1.216.14		tb3-client04

10.1.216.151		tb3-vct01	tb3-vct01.linuxperf9025.net
10.1.216.152		tb3-vct02	tb3-vct02.linuxperf9025.net
10.1.216.153		tb3-vct03	tb3-vct03.linuxperf9025.net
10.1.216.154		tb3-vct04	tb3-vct04.linuxperf9025.net
10.1.216.155		tb3-vct05	tb3-vct05.linuxperf9025.net
10.1.216.156		tb3-vct06	tb3-vct06.linuxperf9025.net
10.1.216.157		tb3-vct07	tb3-vct07.linuxperf9025.net
10.1.216.158		tb3-vct08	tb3-vct08.linuxperf9025.net
10.1.216.159		tb3-vct09	tb3-vct09.linuxperf9025.net
10.1.216.160		tb3-vct10	tb3-vct10.linuxperf9025.net
10.1.216.161		tb3-vct11	tb3-vct11.linuxperf9025.net
10.1.216.162		tb3-vct12	tb3-vct12.linuxperf9025.net
10.1.216.163		tb3-vct13	tb3-vct13.linuxperf9025.net
10.1.216.164		tb3-vct14	tb3-vct14.linuxperf9025.net
10.1.216.165		tb3-vct15	tb3-vct15.linuxperf9025.net
10.1.216.166		tb3-vct16	tb3-vct16.linuxperf9025.net
10.1.216.167		tb3-vct17	tb3-vct17.linuxperf9025.net
10.1.216.168		tb3-vct18	tb3-vct18.linuxperf9025.net
10.1.216.169		tb3-vct19	tb3-vct19.linuxperf9025.net
10.1.216.170		tb3-vct20	tb3-vct20.linuxperf9025.net
10.1.216.171		tb3-vct21	tb3-vct21.linuxperf9025.net
10.1.216.172		tb3-vct22	tb3-vct22.linuxperf9025.net
10.1.216.173		tb3-vct23	tb3-vct23.linuxperf9025.net
10.1.216.174		tb3-vct24	tb3-vct24.linuxperf9025.net
10.1.216.175		tb3-vct25	tb3-vct25.linuxperf9025.net
10.1.216.176		tb3-vct26	tb3-vct26.linuxperf9025.net
10.1.216.177		tb3-vct27	tb3-vct27.linuxperf9025.net
10.1.216.178		tb3-vct28	tb3-vct28.linuxperf9025.net
10.1.216.179		tb3-vct29	tb3-vct29.linuxperf9025.net
10.1.216.180		tb3-vct30	tb3-vct30.linuxperf9025.net
10.1.216.181		tb3-vct31	tb3-vct31.linuxperf9025.net
10.1.216.182		tb3-vct32	tb3-vct32.linuxperf9025.net
10.1.216.183		tb3-vct33	tb3-vct33.linuxperf9025.net
10.1.216.184		tb3-vct34	tb3-vct34.linuxperf9025.net
10.1.216.185		tb3-vct35	tb3-vct35.linuxperf9025.net
10.1.216.186		tb3-vct36	tb3-vct36.linuxperf9025.net

10.1.217.1		tb3-webt01	tb3-webt01.linuxperf9025.net
10.1.217.2		tb3-appt01	tb3-appt01.linuxperf9025.net
10.1.217.3		tb3-dbt01	tb3-dbt01.linuxperf9025.net
10.1.217.4		tb3-idlet01	tb3-idlet01.linuxperf9025.net
10.1.217.5		tb3-infrat01	tb3-infrat01.linuxperf9025.net
10.1.217.6		tb3-mailt01	tb3-mailt01.linuxperf9025.net
10.1.217.7		tb3-webt02	tb3-webt02.linuxperf9025.net
10.1.217.8		tb3-appt02	tb3-appt02.linuxperf9025.net
10.1.217.9		tb3-dbt02	tb3-dbt02.linuxperf9025.net
10.1.217.10		tb3-idlet02	tb3-idlet02.linuxperf9025.net
10.1.217.11		tb3-infrat02	tb3-infrat02.linuxperf9025.net
10.1.217.12		tb3-mailt02	tb3-mailt02.linuxperf9025.net
10.1.217.13		tb3-webt03	tb3-webt03.linuxperf9025.net
10.1.217.14		tb3-appt03	tb3-appt03.linuxperf9025.net
10.1.217.15		tb3-dbt03	tb3-dbt03.linuxperf9025.net
10.1.217.16		tb3-idlet03	tb3-idlet03.linuxperf9025.net
10.1.217.17		tb3-infrat03	tb3-infrat03.linuxperf9025.net
10.1.217.18		tb3-mailt03	tb3-mailt03.linuxperf9025.net
10.1.217.19		tb3-webt04	tb3-webt04.linuxperf9025.net
10.1.217.20		tb3-appt04	tb3-appt04.linuxperf9025.net
10.1.217.21		tb3-dbt04	tb3-dbt04.linuxperf9025.net
10.1.217.22		tb3-idlet04	tb3-idlet04.linuxperf9025.net
10.1.217.23		tb3-infrat04	tb3-infrat04.linuxperf9025.net
10.1.217.24		tb3-mailt04	tb3-mailt04.linuxperf9025.net
10.1.217.25		tb3-webt05	tb3-webt05.linuxperf9025.net
10.1.217.26		tb3-appt05	tb3-appt05.linuxperf9025.net
10.1.217.27		tb3-dbt05	tb3-dbt05.linuxperf9025.net
10.1.217.28		tb3-idlet05	tb3-idlet05.linuxperf9025.net
10.1.217.29		tb3-infrat05	tb3-infrat05.linuxperf9025.net
10.1.217.30		tb3-mailt05	tb3-mailt05.linuxperf9025.net
10.1.217.31		tb3-webt06	tb3-webt06.linuxperf9025.net
10.1.217.32		tb3-appt06	tb3-appt06.linuxperf9025.net
10.1.217.33		tb3-dbt06	tb3-dbt06.linuxperf9025.net
10.1.217.34		tb3-idlet06	tb3-idlet06.linuxperf9025.net
10.1.217.35		tb3-infrat06	tb3-infrat06.linuxperf9025.net
10.1.217.36		tb3-mailt06	tb3-mailt06.linuxperf9025.net
10.1.217.37		tb3-webt07	tb3-webt07.linuxperf9025.net
10.1.217.38		tb3-appt07	tb3-appt07.linuxperf9025.net
10.1.217.39		tb3-dbt07	tb3-dbt07.linuxperf9025.net
10.1.217.40		tb3-idlet07	tb3-idlet07.linuxperf9025.net
10.1.217.41		tb3-infrat07	tb3-infrat07.linuxperf9025.net
10.1.217.42		tb3-mailt07	tb3-mailt07.linuxperf9025.net
10.1.217.43		tb3-webt08	tb3-webt08.linuxperf9025.net
10.1.217.44		tb3-appt08	tb3-appt08.linuxperf9025.net
10.1.217.45		tb3-dbt08	tb3-dbt08.linuxperf9025.net
10.1.217.46		tb3-idlet08	tb3-idlet08.linuxperf9025.net
10.1.217.47		tb3-infrat08	tb3-infrat08.linuxperf9025.net
10.1.217.48		tb3-mailt08	tb3-mailt08.linuxperf9025.net
10.1.217.49		tb3-webt09	tb3-webt09.linuxperf9025.net
10.1.217.50		tb3-appt09	tb3-appt09.linuxperf9025.net
10.1.217.51		tb3-dbt09	tb3-dbt09.linuxperf9025.net
10.1.217.52		tb3-idlet09	tb3-idlet09.linuxperf9025.net
10.1.217.53		tb3-infrat09	tb3-infrat09.linuxperf9025.net
10.1.217.54		tb3-mailt09	tb3-mailt09.linuxperf9025.net
10.1.217.55		tb3-webt10	tb3-webt10.linuxperf9025.net
10.1.217.56		tb3-appt10	tb3-appt10.linuxperf9025.net
10.1.217.57		tb3-dbt10	tb3-dbt10.linuxperf9025.net
10.1.217.58		tb3-idlet10	tb3-idlet10.linuxperf9025.net
10.1.217.59		tb3-infrat10	tb3-infrat10.linuxperf9025.net
10.1.217.60		tb3-mailt10	tb3-mailt10.linuxperf9025.net
10.1.217.61		tb3-webt11	tb3-webt11.linuxperf9025.net
10.1.217.62		tb3-appt11	tb3-appt11.linuxperf9025.net
10.1.217.63		tb3-dbt11	tb3-dbt11.linuxperf9025.net
10.1.217.64		tb3-idlet11	tb3-idlet11.linuxperf9025.net
10.1.217.65		tb3-infrat11	tb3-infrat11.linuxperf9025.net
10.1.217.66		tb3-mailt11	tb3-mailt11.linuxperf9025.net
10.1.217.67		tb3-webt12	tb3-webt12.linuxperf9025.net
10.1.217.68		tb3-appt12	tb3-appt12.linuxperf9025.net
10.1.217.69		tb3-dbt12	tb3-dbt12.linuxperf9025.net
10.1.217.70		tb3-idlet12	tb3-idlet12.linuxperf9025.net
10.1.217.71		tb3-infrat12	tb3-infrat12.linuxperf9025.net
10.1.217.72		tb3-mailt12	tb3-mailt12.linuxperf9025.net
10.1.217.73		tb3-webt13	tb3-webt13.linuxperf9025.net
10.1.217.74		tb3-appt13	tb3-appt13.linuxperf9025.net
10.1.217.75		tb3-dbt13	tb3-dbt13.linuxperf9025.net
10.1.217.76		tb3-idlet13	tb3-idlet13.linuxperf9025.net
10.1.217.77		tb3-infrat13	tb3-infrat13.linuxperf9025.net
10.1.217.78		tb3-mailt13	tb3-mailt13.linuxperf9025.net
10.1.217.79		tb3-webt14	tb3-webt14.linuxperf9025.net
10.1.217.80		tb3-appt14	tb3-appt14.linuxperf9025.net
10.1.217.81		tb3-dbt14	tb3-dbt14.linuxperf9025.net
10.1.217.82		tb3-idlet14	tb3-idlet14.linuxperf9025.net
10.1.217.83		tb3-infrat14	tb3-infrat14.linuxperf9025.net
10.1.217.84		tb3-mailt14	tb3-mailt14.linuxperf9025.net
10.1.217.85		tb3-webt15	tb3-webt15.linuxperf9025.net
10.1.217.86		tb3-appt15	tb3-appt15.linuxperf9025.net
10.1.217.87		tb3-dbt15	tb3-dbt15.linuxperf9025.net
10.1.217.88		tb3-idlet15	tb3-idlet15.linuxperf9025.net
10.1.217.89		tb3-infrat15	tb3-infrat15.linuxperf9025.net
10.1.217.90		tb3-mailt15	tb3-mailt15.linuxperf9025.net
10.1.217.91		tb3-webt16	tb3-webt16.linuxperf9025.net
10.1.217.92		tb3-appt16	tb3-appt16.linuxperf9025.net
10.1.217.93		tb3-dbt16	tb3-dbt16.linuxperf9025.net
10.1.217.94		tb3-idlet16	tb3-idlet16.linuxperf9025.net
10.1.217.95		tb3-infrat16	tb3-infrat16.linuxperf9025.net
10.1.217.96		tb3-mailt16	tb3-mailt16.linuxperf9025.net
10.1.217.97		tb3-webt17	tb3-webt17.linuxperf9025.net
10.1.217.98		tb3-appt17	tb3-appt17.linuxperf9025.net
10.1.217.99		tb3-dbt17	tb3-dbt17.linuxperf9025.net
10.1.217.100		tb3-idlet17	tb3-idlet17.linuxperf9025.net
10.1.217.101		tb3-infrat17	tb3-infrat17.linuxperf9025.net
10.1.217.102		tb3-mailt17	tb3-mailt17.linuxperf9025.net
10.1.217.103		tb3-webt18	tb3-webt18.linuxperf9025.net
10.1.217.104		tb3-appt18	tb3-appt18.linuxperf9025.net
10.1.217.105		tb3-dbt18	tb3-dbt18.linuxperf9025.net
10.1.217.106		tb3-idlet18	tb3-idlet18.linuxperf9025.net
10.1.217.107		tb3-infrat18	tb3-infrat18.linuxperf9025.net
10.1.217.108		tb3-mailt18	tb3-mailt18.linuxperf9025.net
10.1.217.109		tb3-webt19	tb3-webt19.linuxperf9025.net
10.1.217.110		tb3-appt19	tb3-appt19.linuxperf9025.net
10.1.217.111		tb3-dbt19	tb3-dbt19.linuxperf9025.net
10.1.217.112		tb3-idlet19	tb3-idlet19.linuxperf9025.net
10.1.217.113		tb3-infrat19	tb3-infrat19.linuxperf9025.net
10.1.217.114		tb3-mailt19	tb3-mailt19.linuxperf9025.net
10.1.217.115		tb3-webt20	tb3-webt20.linuxperf9025.net
10.1.217.116		tb3-appt20	tb3-appt20.linuxperf9025.net
10.1.217.117		tb3-dbt20	tb3-dbt20.linuxperf9025.net
10.1.217.118		tb3-idlet20	tb3-idlet20.linuxperf9025.net
10.1.217.119		tb3-infrat20	tb3-infrat20.linuxperf9025.net
10.1.217.120		tb3-mailt20	tb3-mailt20.linuxperf9025.net
10.1.217.121		tb3-webt21	tb3-webt21.linuxperf9025.net
10.1.217.122		tb3-appt21	tb3-appt21.linuxperf9025.net
10.1.217.123		tb3-dbt21	tb3-dbt21.linuxperf9025.net
10.1.217.124		tb3-idlet21	tb3-idlet21.linuxperf9025.net
10.1.217.125		tb3-infrat21	tb3-infrat21.linuxperf9025.net
10.1.217.126		tb3-mailt21	tb3-mailt21.linuxperf9025.net
10.1.217.127		tb3-webt22	tb3-webt22.linuxperf9025.net
10.1.217.128		tb3-appt22	tb3-appt22.linuxperf9025.net
10.1.217.129		tb3-dbt22	tb3-dbt22.linuxperf9025.net
10.1.217.130		tb3-idlet22	tb3-idlet22.linuxperf9025.net
10.1.217.131		tb3-infrat22	tb3-infrat22.linuxperf9025.net
10.1.217.132		tb3-mailt22	tb3-mailt22.linuxperf9025.net
10.1.217.133		tb3-webt23	tb3-webt23.linuxperf9025.net
10.1.217.134		tb3-appt23	tb3-appt23.linuxperf9025.net
10.1.217.135		tb3-dbt23	tb3-dbt23.linuxperf9025.net
10.1.217.136		tb3-idlet23	tb3-idlet23.linuxperf9025.net
10.1.217.137		tb3-infrat23	tb3-infrat23.linuxperf9025.net
10.1.217.138		tb3-mailt23	tb3-mailt23.linuxperf9025.net
10.1.217.139		tb3-webt24	tb3-webt24.linuxperf9025.net
10.1.217.140		tb3-appt24	tb3-appt24.linuxperf9025.net
10.1.217.141		tb3-dbt24	tb3-dbt24.linuxperf9025.net
10.1.217.142		tb3-idlet24	tb3-idlet24.linuxperf9025.net
10.1.217.143		tb3-infrat24	tb3-infrat24.linuxperf9025.net
10.1.217.144		tb3-mailt24	tb3-mailt24.linuxperf9025.net
10.1.217.145		tb3-webt25	tb3-webt25.linuxperf9025.net
10.1.217.146		tb3-appt25	tb3-appt25.linuxperf9025.net
10.1.217.147		tb3-dbt25	tb3-dbt25.linuxperf9025.net
10.1.217.148		tb3-idlet25	tb3-idlet25.linuxperf9025.net
10.1.217.149		tb3-infrat25	tb3-infrat25.linuxperf9025.net
10.1.217.150		tb3-mailt25	tb3-mailt25.linuxperf9025.net
10.1.217.151		tb3-webt26	tb3-webt26.linuxperf9025.net
10.1.217.152		tb3-appt26	tb3-appt26.linuxperf9025.net
10.1.217.153		tb3-dbt26	tb3-dbt26.linuxperf9025.net
10.1.217.154		tb3-idlet26	tb3-idlet26.linuxperf9025.net
10.1.217.155		tb3-infrat26	tb3-infrat26.linuxperf9025.net
10.1.217.156		tb3-mailt26	tb3-mailt26.linuxperf9025.net
10.1.217.157		tb3-webt27	tb3-webt27.linuxperf9025.net
10.1.217.158		tb3-appt27	tb3-appt27.linuxperf9025.net
10.1.217.159		tb3-dbt27	tb3-dbt27.linuxperf9025.net
10.1.217.160		tb3-idlet27	tb3-idlet27.linuxperf9025.net
10.1.217.161		tb3-infrat27	tb3-infrat27.linuxperf9025.net
10.1.217.162		tb3-mailt27	tb3-mailt27.linuxperf9025.net
10.1.217.163		tb3-webt28	tb3-webt28.linuxperf9025.net
10.1.217.164		tb3-appt28	tb3-appt28.linuxperf9025.net
10.1.217.165		tb3-dbt28	tb3-dbt28.linuxperf9025.net
10.1.217.166		tb3-idlet28	tb3-idlet28.linuxperf9025.net
10.1.217.167		tb3-infrat28	tb3-infrat28.linuxperf9025.net
10.1.217.168		tb3-mailt28	tb3-mailt28.linuxperf9025.net
10.1.217.169		tb3-webt29	tb3-webt29.linuxperf9025.net
10.1.217.170		tb3-appt29	tb3-appt29.linuxperf9025.net
10.1.217.171		tb3-dbt29	tb3-dbt29.linuxperf9025.net
10.1.217.172		tb3-idlet29	tb3-idlet29.linuxperf9025.net
10.1.217.173		tb3-infrat29	tb3-infrat29.linuxperf9025.net
10.1.217.174		tb3-mailt29	tb3-mailt29.linuxperf9025.net
10.1.217.175		tb3-webt30	tb3-webt30.linuxperf9025.net
10.1.217.176		tb3-appt30	tb3-appt30.linuxperf9025.net
10.1.217.177		tb3-dbt30	tb3-dbt30.linuxperf9025.net
10.1.217.178		tb3-idlet30	tb3-idlet30.linuxperf9025.net
10.1.217.179		tb3-infrat30	tb3-infrat30.linuxperf9025.net
10.1.217.180		tb3-mailt30	tb3-mailt30.linuxperf9025.net
10.1.217.181		tb3-webt31	tb3-webt31.linuxperf9025.net
10.1.217.182		tb3-appt31	tb3-appt31.linuxperf9025.net
10.1.217.183		tb3-dbt31	tb3-dbt31.linuxperf9025.net
10.1.217.184		tb3-idlet31	tb3-idlet31.linuxperf9025.net
10.1.217.185		tb3-infrat31	tb3-infrat31.linuxperf9025.net
10.1.217.186		tb3-mailt31	tb3-mailt31.linuxperf9025.net
10.1.217.187		tb3-webt32	tb3-webt32.linuxperf9025.net
10.1.217.188		tb3-appt32	tb3-appt32.linuxperf9025.net
10.1.217.189		tb3-dbt32	tb3-dbt32.linuxperf9025.net
10.1.217.190		tb3-idlet32	tb3-idlet32.linuxperf9025.net
10.1.217.191		tb3-infrat32	tb3-infrat32.linuxperf9025.net
10.1.217.192		tb3-mailt32	tb3-mailt32.linuxperf9025.net
10.1.217.193		tb3-webt33	tb3-webt33.linuxperf9025.net
10.1.217.194		tb3-appt33	tb3-appt33.linuxperf9025.net
10.1.217.195		tb3-dbt33	tb3-dbt33.linuxperf9025.net
10.1.217.196		tb3-idlet33	tb3-idlet33.linuxperf9025.net
10.1.217.197		tb3-infrat33	tb3-infrat33.linuxperf9025.net
10.1.217.198		tb3-mailt33	tb3-mailt33.linuxperf9025.net
10.1.217.199		tb3-webt34	tb3-webt34.linuxperf9025.net
10.1.217.200		tb3-appt34	tb3-appt34.linuxperf9025.net
10.1.217.201		tb3-dbt34	tb3-dbt34.linuxperf9025.net
10.1.217.202		tb3-idlet34	tb3-idlet34.linuxperf9025.net
10.1.217.203		tb3-infrat34	tb3-infrat34.linuxperf9025.net
10.1.217.204		tb3-mailt34	tb3-mailt34.linuxperf9025.net
10.1.217.205		tb3-webt35	tb3-webt35.linuxperf9025.net
10.1.217.206		tb3-appt35	tb3-appt35.linuxperf9025.net
10.1.217.207		tb3-dbt35	tb3-dbt35.linuxperf9025.net
10.1.217.208		tb3-idlet35	tb3-idlet35.linuxperf9025.net
10.1.217.209		tb3-infrat35	tb3-infrat35.linuxperf9025.net
10.1.217.210		tb3-mailt35	tb3-mailt35.linuxperf9025.net
10.1.217.211		tb3-webt36	tb3-webt36.linuxperf9025.net
10.1.217.212		tb3-appt36	tb3-appt36.linuxperf9025.net
10.1.217.213		tb3-dbt36	tb3-dbt36.linuxperf9025.net
10.1.217.214		tb3-idlet36	tb3-idlet36.linuxperf9025.net
10.1.217.215		tb3-infrat36	tb3-infrat36.linuxperf9025.net
10.1.217.216		tb3-mailt36	tb3-mailt36.linuxperf9025.net
                                                                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/iproute2/                                              0000777 0000000 0000000 00000000000 11524350246 022171  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/etc/iproute2/rt_dsfield                                    0000644 0000000 0000000 00000000672 11524350246 024234  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Physical_Configuration/System_Under_Test/etc/iproute2/rt_realms                                     0000644 0000000 0000000 00000000160 11524350246 024075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Physical_Configuration/System_Under_Test/etc/iproute2/rt_scopes                                     0000644 0000000 0000000 00000000134 11524350246 024107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/iproute2/ematch_map                                    0000644 0000000 0000000 00000000073 11524350246 024206  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Physical_Configuration/System_Under_Test/etc/iproute2/rt_tables                                     0000644 0000000 0000000 00000000127 11524350246 024067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Physical_Configuration/System_Under_Test/etc/iproute2/rt_protos                                     0000644 0000000 0000000 00000000475 11524350246 024151  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/etc/nsswitch.conf                                          0000644 0000000 0000000 00000003230 11524350264 023123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Physical_Configuration/System_Under_Test/etc/kvm/                                                   0000777 0000000 0000000 00000000000 11524350254 021214  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t10                                      0000755 0000000 0000000 00000000145 11524350251 023445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t10


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t01                                      0000755 0000000 0000000 00000000143 11524350250 023442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t01
ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t21                                      0000755 0000000 0000000 00000000145 11524350252 023450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t21


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t35                                      0000755 0000000 0000000 00000000145 11524350253 023456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t35


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t13                                      0000755 0000000 0000000 00000000145 11524350251 023450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t13


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t18                                      0000755 0000000 0000000 00000000145 11524350252 023456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t18


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t32                                      0000755 0000000 0000000 00000000145 11524350253 023453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t32


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t34                                      0000755 0000000 0000000 00000000145 11524350253 023455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t34


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t15                                      0000755 0000000 0000000 00000000145 11524350251 023452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t15


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t20                                      0000755 0000000 0000000 00000000145 11524350252 023447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t20


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-br7                                      0000755 0000000 0000000 00000000145 11524350250 023532  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br7


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t31                                      0000755 0000000 0000000 00000000145 11524350253 023452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t31


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t28                                      0000755 0000000 0000000 00000000145 11524350253 023460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t28


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t09                                      0000755 0000000 0000000 00000000145 11524350251 023455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t09


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t25                                      0000755 0000000 0000000 00000000145 11524350252 023454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t25


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t11                                      0000755 0000000 0000000 00000000145 11524350251 023446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t11


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-br8                                      0000755 0000000 0000000 00000000145 11524350250 023533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br8


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-br2                                      0000755 0000000 0000000 00000000145 11524350247 023533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br2


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t33                                      0000755 0000000 0000000 00000000145 11524350253 023454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t33


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t06                                      0000755 0000000 0000000 00000000145 11524350250 023451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t06


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t22                                      0000755 0000000 0000000 00000000145 11524350252 023451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t22


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t16                                      0000755 0000000 0000000 00000000145 11524350251 023453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t16


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t14                                      0000755 0000000 0000000 00000000145 11524350251 023451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t14


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t36                                      0000755 0000000 0000000 00000000145 11524350253 023457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t36


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/                                        0000777 0000000 0000000 00000000000 11524350264 023324  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-appt13.sh                           0000755 0000000 0000000 00000001521 11524350255 025454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-appt13
dev1=/dev/tb3-vgt13/lvt13app
dev2=/dev/tb3-vgt13/lvt13app-data
vnc_port='6174'
monitor_port='13074'
serial_port='14074'
macaddr=00:50:56:91:00:4A
alt_macaddr=00:50:56:92:00:4A
bridge=br2
cpus=2
mem=2560
numactl --preferred=1 --cpunodebind=1  nice -n -6  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=appt13,ifname=appt13,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=appt13,mac=$macaddr\
    -pcidevice host=15:17.3\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-idlet10.sh                          0000755 0000000 0000000 00000001472 11524350257 025615  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-idlet10
dev1=/dev/tb3-vgt10/lvt10idle
dev2=/dev/tb3-vgt10/lvt10idle-data
vnc_port='6158'
monitor_port='13058'
serial_port='14058'
macaddr=00:50:56:91:00:3A
alt_macaddr=00:50:56:92:00:3A
bridge=br2
cpus=1
mem=1024
numactl --preferred=0 --cpunodebind=0  nice -n 10  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=idlet10,ifname=idlet10,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=idlet10,mac=$macaddr\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-webt04.sh                           0000755 0000000 0000000 00000001522 11524350263 025451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-webt04
dev1=/dev/tb3-vgt04/lvt04web
dev2=/dev/tb3-vgt04/lvt04web-data
vnc_port='6119'
monitor_port='13019'
serial_port='14019'
macaddr=00:50:56:91:00:13
alt_macaddr=00:50:56:92:00:13
bridge=br2
cpus=2
mem=11264
numactl --preferred=0 --cpunodebind=0  nice -n -1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=webt04,ifname=webt04,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=webt04,mac=$macaddr\
    -pcidevice host=15:15.2\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-idlet05.sh                          0000755 0000000 0000000 00000001472 11524350257 025621  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-idlet05
dev1=/dev/tb3-vgt05/lvt05idle
dev2=/dev/tb3-vgt05/lvt05idle-data
vnc_port='6128'
monitor_port='13028'
serial_port='14028'
macaddr=00:50:56:91:00:1C
alt_macaddr=00:50:56:92:00:1C
bridge=br2
cpus=1
mem=1024
numactl --preferred=1 --cpunodebind=1  nice -n 10  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=idlet05,ifname=idlet05,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=idlet05,mac=$macaddr\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-mailt07.sh                          0000755 0000000 0000000 00000001531 11524350262 025620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-mailt07
dev1=/dev/tb3-vgt07/lvt07mail
dev2=/dev/tb3-maildata/lvt07mail-data
vnc_port='6142'
monitor_port='13042'
serial_port='14042'
macaddr=00:50:56:91:00:2A
alt_macaddr=00:50:56:92:00:2A
bridge=br2
cpus=1
mem=2048
numactl --preferred=1 --cpunodebind=1  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=mailt07,ifname=mailt07,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=mailt07,mac=$macaddr\
    -pcidevice host=15:1b.4\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                       Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-webt13.sh                           0000755 0000000 0000000 00000001522 11524350264 025452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-webt13
dev1=/dev/tb3-vgt13/lvt13web
dev2=/dev/tb3-vgt13/lvt13web-data
vnc_port='6173'
monitor_port='13073'
serial_port='14073'
macaddr=00:50:56:91:00:49
alt_macaddr=00:50:56:92:00:49
bridge=br2
cpus=2
mem=11264
numactl --preferred=1 --cpunodebind=1  nice -n -1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=webt13,ifname=webt13,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=webt13,mac=$macaddr\
    -pcidevice host=15:17.1\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-infrat08.sh                         0000755 0000000 0000000 00000001534 11524350260 025777  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-infrat08
dev1=/dev/tb3-vgt08/lvt08infra
dev2=/dev/tb3-vgt08/lvt08infra-data
vnc_port='6147'
monitor_port='13047'
serial_port='14047'
macaddr=00:50:56:91:00:2F
alt_macaddr=00:50:56:92:00:2F
bridge=br2
cpus=1
mem=1024
numactl --preferred=0 --cpunodebind=0  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=infrat08,ifname=infrat08,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=infrat08,mac=$macaddr\
    -pcidevice host=15:1d.0\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-webt14.sh                           0000755 0000000 0000000 00000001522 11524350264 025453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-webt14
dev1=/dev/tb3-vgt14/lvt14web
dev2=/dev/tb3-vgt14/lvt14web-data
vnc_port='6179'
monitor_port='13079'
serial_port='14079'
macaddr=00:50:56:91:00:4F
alt_macaddr=00:50:56:92:00:4F
bridge=br2
cpus=2
mem=11264
numactl --preferred=0 --cpunodebind=0  nice -n -1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=webt14,ifname=webt14,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=webt14,mac=$macaddr\
    -pcidevice host=15:18.7\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-appt11.sh                           0000755 0000000 0000000 00000001521 11524350255 025452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-appt11
dev1=/dev/tb3-vgt11/lvt11app
dev2=/dev/tb3-vgt11/lvt11app-data
vnc_port='6162'
monitor_port='13062'
serial_port='14062'
macaddr=00:50:56:91:00:3E
alt_macaddr=00:50:56:92:00:3E
bridge=br2
cpus=2
mem=2560
numactl --preferred=1 --cpunodebind=1  nice -n -6  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=appt11,ifname=appt11,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=appt11,mac=$macaddr\
    -pcidevice host=15:13.7\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-webt05.sh                           0000755 0000000 0000000 00000001522 11524350263 025452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-webt05
dev1=/dev/tb3-vgt05/lvt05web
dev2=/dev/tb3-vgt05/lvt05web-data
vnc_port='6125'
monitor_port='13025'
serial_port='14025'
macaddr=00:50:56:91:00:19
alt_macaddr=00:50:56:92:00:19
bridge=br2
cpus=2
mem=11264
numactl --preferred=1 --cpunodebind=1  nice -n -1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=webt05,ifname=webt05,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=webt05,mac=$macaddr\
    -pcidevice host=15:17.0\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-mailt03.sh                          0000755 0000000 0000000 00000001531 11524350261 025613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-mailt03
dev1=/dev/tb3-vgt03/lvt03mail
dev2=/dev/tb3-maildata/lvt03mail-data
vnc_port='6118'
monitor_port='13018'
serial_port='14018'
macaddr=00:50:56:91:00:12
alt_macaddr=00:50:56:92:00:12
bridge=br2
cpus=1
mem=2048
numactl --preferred=1 --cpunodebind=1  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=mailt03,ifname=mailt03,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=mailt03,mac=$macaddr\
    -pcidevice host=15:14.4\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                       Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-infrat06.sh                         0000755 0000000 0000000 00000001534 11524350260 025775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-infrat06
dev1=/dev/tb3-vgt06/lvt06infra
dev2=/dev/tb3-vgt06/lvt06infra-data
vnc_port='6135'
monitor_port='13035'
serial_port='14035'
macaddr=00:50:56:91:00:23
alt_macaddr=00:50:56:92:00:23
bridge=br2
cpus=1
mem=1024
numactl --preferred=0 --cpunodebind=0  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=infrat06,ifname=infrat06,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=infrat06,mac=$macaddr\
    -pcidevice host=15:19.4\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-infrat10.sh                         0000755 0000000 0000000 00000001534 11524350261 025771  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-infrat10
dev1=/dev/tb3-vgt10/lvt10infra
dev2=/dev/tb3-vgt10/lvt10infra-data
vnc_port='6159'
monitor_port='13059'
serial_port='14059'
macaddr=00:50:56:91:00:3B
alt_macaddr=00:50:56:92:00:3B
bridge=br2
cpus=1
mem=1024
numactl --preferred=0 --cpunodebind=0  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=infrat10,ifname=infrat10,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=infrat10,mac=$macaddr\
    -pcidevice host=15:12.5\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-idlet04.sh                          0000755 0000000 0000000 00000001472 11524350257 025620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-idlet04
dev1=/dev/tb3-vgt04/lvt04idle
dev2=/dev/tb3-vgt04/lvt04idle-data
vnc_port='6122'
monitor_port='13022'
serial_port='14022'
macaddr=00:50:56:91:00:16
alt_macaddr=00:50:56:92:00:16
bridge=br2
cpus=1
mem=1024
numactl --preferred=0 --cpunodebind=0  nice -n 10  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=idlet04,ifname=idlet04,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=idlet04,mac=$macaddr\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-webt01.sh                           0000755 0000000 0000000 00000001522 11524350262 025445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-webt01
dev1=/dev/tb3-vgt01/lvt01web
dev2=/dev/tb3-vgt01/lvt01web-data
vnc_port='6101'
monitor_port='13001'
serial_port='14001'
macaddr=00:50:56:91:00:01
alt_macaddr=00:50:56:92:00:01
bridge=br2
cpus=2
mem=11264
numactl --preferred=1 --cpunodebind=1  nice -n -1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=webt01,ifname=webt01,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=webt01,mac=$macaddr\
    -pcidevice host=15:10.0\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-dbt01.sh                            0000755 0000000 0000000 00000001477 11524350255 025270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-dbt01
dev1=/dev/tb3-vgt01/lvt01db
dev2=/dev/tb3-vgt01/lvt01db-data
vnc_port='6103'
monitor_port='13003'
serial_port='14003'
macaddr=00:50:56:91:00:03
alt_macaddr=00:50:56:92:00:03
bridge=br2
cpus=1
mem=2048
numactl --preferred=1 --cpunodebind=1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=dbt01,ifname=dbt01,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=dbt01,mac=$macaddr\
    -pcidevice host=15:10.4\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-mailt06.sh                          0000755 0000000 0000000 00000001531 11524350262 025617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-mailt06
dev1=/dev/tb3-vgt06/lvt06mail
dev2=/dev/tb3-maildata/lvt06mail-data
vnc_port='6136'
monitor_port='13036'
serial_port='14036'
macaddr=00:50:56:91:00:24
alt_macaddr=00:50:56:92:00:24
bridge=br2
cpus=1
mem=2048
numactl --preferred=0 --cpunodebind=0  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=mailt06,ifname=mailt06,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=mailt06,mac=$macaddr\
    -pcidevice host=15:19.6\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                       Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-infrat12.sh                         0000755 0000000 0000000 00000001534 11524350261 025773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-infrat12
dev1=/dev/tb3-vgt12/lvt12infra
dev2=/dev/tb3-vgt12/lvt12infra-data
vnc_port='6171'
monitor_port='13071'
serial_port='14071'
macaddr=00:50:56:91:00:47
alt_macaddr=00:50:56:92:00:47
bridge=br2
cpus=1
mem=1024
numactl --preferred=0 --cpunodebind=0  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=infrat12,ifname=infrat12,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=infrat12,mac=$macaddr\
    -pcidevice host=15:16.1\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-webt06.sh                           0000755 0000000 0000000 00000001522 11524350263 025453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-webt06
dev1=/dev/tb3-vgt06/lvt06web
dev2=/dev/tb3-vgt06/lvt06web-data
vnc_port='6131'
monitor_port='13031'
serial_port='14031'
macaddr=00:50:56:91:00:1F
alt_macaddr=00:50:56:92:00:1F
bridge=br2
cpus=2
mem=11264
numactl --preferred=0 --cpunodebind=0  nice -n -1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=webt06,ifname=webt06,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=webt06,mac=$macaddr\
    -pcidevice host=15:18.6\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-webt09.sh                           0000755 0000000 0000000 00000001522 11524350263 025456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-webt09
dev1=/dev/tb3-vgt09/lvt09web
dev2=/dev/tb3-vgt09/lvt09web-data
vnc_port='6149'
monitor_port='13049'
serial_port='14049'
macaddr=00:50:56:91:00:31
alt_macaddr=00:50:56:92:00:31
bridge=br2
cpus=2
mem=11264
numactl --preferred=1 --cpunodebind=1  nice -n -1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=webt09,ifname=webt09,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=webt09,mac=$macaddr\
    -pcidevice host=15:10.1\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-mailt01.sh                          0000755 0000000 0000000 00000001531 11524350261 025611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-mailt01
dev1=/dev/tb3-vgt01/lvt01mail
dev2=/dev/tb3-maildata/lvt01mail-data
vnc_port='6106'
monitor_port='13006'
serial_port='14006'
macaddr=00:50:56:91:00:06
alt_macaddr=00:50:56:92:00:06
bridge=br2
cpus=1
mem=2048
numactl --preferred=1 --cpunodebind=1  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=mailt01,ifname=mailt01,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=mailt01,mac=$macaddr\
    -pcidevice host=15:11.0\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                       Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-appt07.sh                           0000755 0000000 0000000 00000001521 11524350254 025456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-appt07
dev1=/dev/tb3-vgt07/lvt07app
dev2=/dev/tb3-vgt07/lvt07app-data
vnc_port='6138'
monitor_port='13038'
serial_port='14038'
macaddr=00:50:56:91:00:26
alt_macaddr=00:50:56:92:00:26
bridge=br2
cpus=2
mem=2560
numactl --preferred=1 --cpunodebind=1  nice -n -6  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=appt07,ifname=appt07,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=appt07,mac=$macaddr\
    -pcidevice host=15:1a.6\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-idlet03.sh                          0000755 0000000 0000000 00000001472 11524350257 025617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-idlet03
dev1=/dev/tb3-vgt03/lvt03idle
dev2=/dev/tb3-vgt03/lvt03idle-data
vnc_port='6116'
monitor_port='13016'
serial_port='14016'
macaddr=00:50:56:91:00:10
alt_macaddr=00:50:56:92:00:10
bridge=br2
cpus=1
mem=1024
numactl --preferred=1 --cpunodebind=1  nice -n 10  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=idlet03,ifname=idlet03,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=idlet03,mac=$macaddr\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-dbt02.sh                            0000755 0000000 0000000 00000001477 11524350255 025271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-dbt02
dev1=/dev/tb3-vgt02/lvt02db
dev2=/dev/tb3-vgt02/lvt02db-data
vnc_port='6109'
monitor_port='13009'
serial_port='14009'
macaddr=00:50:56:91:00:09
alt_macaddr=00:50:56:92:00:09
bridge=br2
cpus=1
mem=2048
numactl --preferred=0 --cpunodebind=0  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=dbt02,ifname=dbt02,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=dbt02,mac=$macaddr\
    -pcidevice host=15:12.2\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-infrat14.sh                         0000755 0000000 0000000 00000001534 11524350261 025775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-infrat14
dev1=/dev/tb3-vgt14/lvt14infra
dev2=/dev/tb3-vgt14/lvt14infra-data
vnc_port='6183'
monitor_port='13083'
serial_port='14083'
macaddr=00:50:56:91:00:53
alt_macaddr=00:50:56:92:00:53
bridge=br2
cpus=1
mem=1024
numactl --preferred=0 --cpunodebind=0  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=infrat14,ifname=infrat14,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=infrat14,mac=$macaddr\
    -pcidevice host=15:19.5\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-mailt11.sh                          0000755 0000000 0000000 00000001531 11524350262 025613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-mailt11
dev1=/dev/tb3-vgt11/lvt11mail
dev2=/dev/tb3-maildata/lvt11mail-data
vnc_port='6166'
monitor_port='13066'
serial_port='14066'
macaddr=00:50:56:91:00:42
alt_macaddr=00:50:56:92:00:42
bridge=br2
cpus=1
mem=2048
numactl --preferred=1 --cpunodebind=1  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=mailt11,ifname=mailt11,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=mailt11,mac=$macaddr\
    -pcidevice host=15:14.5\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                       Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-infrat11.sh                         0000755 0000000 0000000 00000001534 11524350261 025772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-infrat11
dev1=/dev/tb3-vgt11/lvt11infra
dev2=/dev/tb3-vgt11/lvt11infra-data
vnc_port='6165'
monitor_port='13065'
serial_port='14065'
macaddr=00:50:56:91:00:41
alt_macaddr=00:50:56:92:00:41
bridge=br2
cpus=1
mem=1024
numactl --preferred=1 --cpunodebind=1  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=infrat11,ifname=infrat11,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=infrat11,mac=$macaddr\
    -pcidevice host=15:14.3\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-webt11.sh                           0000755 0000000 0000000 00000001522 11524350263 025447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-webt11
dev1=/dev/tb3-vgt11/lvt11web
dev2=/dev/tb3-vgt11/lvt11web-data
vnc_port='6161'
monitor_port='13061'
serial_port='14061'
macaddr=00:50:56:91:00:3D
alt_macaddr=00:50:56:92:00:3D
bridge=br2
cpus=2
mem=11264
numactl --preferred=1 --cpunodebind=1  nice -n -1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=webt11,ifname=webt11,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=webt11,mac=$macaddr\
    -pcidevice host=15:13.5\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-webt12.sh                           0000755 0000000 0000000 00000001522 11524350263 025450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-webt12
dev1=/dev/tb3-vgt12/lvt12web
dev2=/dev/tb3-vgt12/lvt12web-data
vnc_port='6167'
monitor_port='13067'
serial_port='14067'
macaddr=00:50:56:91:00:43
alt_macaddr=00:50:56:92:00:43
bridge=br2
cpus=2
mem=11264
numactl --preferred=0 --cpunodebind=0  nice -n -1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=webt12,ifname=webt12,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=webt12,mac=$macaddr\
    -pcidevice host=15:15.3\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-webt03.sh                           0000755 0000000 0000000 00000001522 11524350263 025450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-webt03
dev1=/dev/tb3-vgt03/lvt03web
dev2=/dev/tb3-vgt03/lvt03web-data
vnc_port='6113'
monitor_port='13013'
serial_port='14013'
macaddr=00:50:56:91:00:0D
alt_macaddr=00:50:56:92:00:0D
bridge=br2
cpus=2
mem=11264
numactl --preferred=1 --cpunodebind=1  nice -n -1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=webt03,ifname=webt03,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=webt03,mac=$macaddr\
    -pcidevice host=15:13.4\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-idlet11.sh                          0000755 0000000 0000000 00000001472 11524350257 025616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-idlet11
dev1=/dev/tb3-vgt11/lvt11idle
dev2=/dev/tb3-vgt11/lvt11idle-data
vnc_port='6164'
monitor_port='13064'
serial_port='14064'
macaddr=00:50:56:91:00:40
alt_macaddr=00:50:56:92:00:40
bridge=br2
cpus=1
mem=1024
numactl --preferred=1 --cpunodebind=1  nice -n 10  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=idlet11,ifname=idlet11,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=idlet11,mac=$macaddr\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-mailt04.sh                          0000755 0000000 0000000 00000001531 11524350261 025614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-mailt04
dev1=/dev/tb3-vgt04/lvt04mail
dev2=/dev/tb3-maildata/lvt04mail-data
vnc_port='6124'
monitor_port='13024'
serial_port='14024'
macaddr=00:50:56:91:00:18
alt_macaddr=00:50:56:92:00:18
bridge=br2
cpus=1
mem=2048
numactl --preferred=0 --cpunodebind=0  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=mailt04,ifname=mailt04,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=mailt04,mac=$macaddr\
    -pcidevice host=15:16.2\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                       Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-mailt14.sh                          0000755 0000000 0000000 00000001531 11524350262 025616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-mailt14
dev1=/dev/tb3-vgt14/lvt14mail
dev2=/dev/tb3-maildata/lvt14mail-data
vnc_port='6184'
monitor_port='13084'
serial_port='14084'
macaddr=00:50:56:91:00:54
alt_macaddr=00:50:56:92:00:54
bridge=br2
cpus=1
mem=2048
numactl --preferred=0 --cpunodebind=0  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=mailt14,ifname=mailt14,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=mailt14,mac=$macaddr\
    -pcidevice host=15:19.7\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                       Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-appt01.sh                           0000755 0000000 0000000 00000001521 11524350254 025450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-appt01
dev1=/dev/tb3-vgt01/lvt01app
dev2=/dev/tb3-vgt01/lvt01app-data
vnc_port='6102'
monitor_port='13002'
serial_port='14002'
macaddr=00:50:56:91:00:02
alt_macaddr=00:50:56:92:00:02
bridge=br2
cpus=2
mem=2560
numactl --preferred=1 --cpunodebind=1  nice -n -6  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=appt01,ifname=appt01,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=appt01,mac=$macaddr\
    -pcidevice host=15:10.2\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-infrat07.sh                         0000755 0000000 0000000 00000001534 11524350260 025776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-infrat07
dev1=/dev/tb3-vgt07/lvt07infra
dev2=/dev/tb3-vgt07/lvt07infra-data
vnc_port='6141'
monitor_port='13041'
serial_port='14041'
macaddr=00:50:56:91:00:29
alt_macaddr=00:50:56:92:00:29
bridge=br2
cpus=1
mem=1024
numactl --preferred=1 --cpunodebind=1  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=infrat07,ifname=infrat07,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=infrat07,mac=$macaddr\
    -pcidevice host=15:1b.2\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-idlet09.sh                          0000755 0000000 0000000 00000001472 11524350257 025625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-idlet09
dev1=/dev/tb3-vgt09/lvt09idle
dev2=/dev/tb3-vgt09/lvt09idle-data
vnc_port='6152'
monitor_port='13052'
serial_port='14052'
macaddr=00:50:56:91:00:34
alt_macaddr=00:50:56:92:00:34
bridge=br2
cpus=1
mem=1024
numactl --preferred=1 --cpunodebind=1  nice -n 10  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=idlet09,ifname=idlet09,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=idlet09,mac=$macaddr\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-idlet14.sh                          0000755 0000000 0000000 00000001472 11524350260 025613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-idlet14
dev1=/dev/tb3-vgt14/lvt14idle
dev2=/dev/tb3-vgt14/lvt14idle-data
vnc_port='6182'
monitor_port='13082'
serial_port='14082'
macaddr=00:50:56:91:00:52
alt_macaddr=00:50:56:92:00:52
bridge=br2
cpus=1
mem=1024
numactl --preferred=0 --cpunodebind=0  nice -n 10  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=idlet14,ifname=idlet14,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=idlet14,mac=$macaddr\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-idlet08.sh                          0000755 0000000 0000000 00000001472 11524350257 025624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-idlet08
dev1=/dev/tb3-vgt08/lvt08idle
dev2=/dev/tb3-vgt08/lvt08idle-data
vnc_port='6146'
monitor_port='13046'
serial_port='14046'
macaddr=00:50:56:91:00:2E
alt_macaddr=00:50:56:92:00:2E
bridge=br2
cpus=1
mem=1024
numactl --preferred=0 --cpunodebind=0  nice -n 10  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=idlet08,ifname=idlet08,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=idlet08,mac=$macaddr\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-dbt13.sh                            0000755 0000000 0000000 00000001477 11524350256 025274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-dbt13
dev1=/dev/tb3-vgt13/lvt13db
dev2=/dev/tb3-vgt13/lvt13db-data
vnc_port='6175'
monitor_port='13075'
serial_port='14075'
macaddr=00:50:56:91:00:4B
alt_macaddr=00:50:56:92:00:4B
bridge=br2
cpus=1
mem=2048
numactl --preferred=1 --cpunodebind=1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=dbt13,ifname=dbt13,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=dbt13,mac=$macaddr\
    -pcidevice host=15:17.5\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-idlet01.sh                          0000755 0000000 0000000 00000001472 11524350256 025614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-idlet01
dev1=/dev/tb3-vgt01/lvt01idle
dev2=/dev/tb3-vgt01/lvt01idle-data
vnc_port='6104'
monitor_port='13004'
serial_port='14004'
macaddr=00:50:56:91:00:04
alt_macaddr=00:50:56:92:00:04
bridge=br2
cpus=1
mem=1024
numactl --preferred=1 --cpunodebind=1  nice -n 10  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=idlet01,ifname=idlet01,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=idlet01,mac=$macaddr\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-dbt08.sh                            0000755 0000000 0000000 00000001477 11524350256 025300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-dbt08
dev1=/dev/tb3-vgt08/lvt08db
dev2=/dev/tb3-vgt08/lvt08db-data
vnc_port='6145'
monitor_port='13045'
serial_port='14045'
macaddr=00:50:56:91:00:2D
alt_macaddr=00:50:56:92:00:2D
bridge=br2
cpus=1
mem=2048
numactl --preferred=0 --cpunodebind=0  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=dbt08,ifname=dbt08,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=dbt08,mac=$macaddr\
    -pcidevice host=15:1c.6\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-infrat03.sh                         0000755 0000000 0000000 00000001534 11524350260 025772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-infrat03
dev1=/dev/tb3-vgt03/lvt03infra
dev2=/dev/tb3-vgt03/lvt03infra-data
vnc_port='6117'
monitor_port='13017'
serial_port='14017'
macaddr=00:50:56:91:00:11
alt_macaddr=00:50:56:92:00:11
bridge=br2
cpus=1
mem=1024
numactl --preferred=1 --cpunodebind=1  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=infrat03,ifname=infrat03,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=infrat03,mac=$macaddr\
    -pcidevice host=15:14.2\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-appt04.sh                           0000755 0000000 0000000 00000001521 11524350254 025453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-appt04
dev1=/dev/tb3-vgt04/lvt04app
dev2=/dev/tb3-vgt04/lvt04app-data
vnc_port='6120'
monitor_port='13020'
serial_port='14020'
macaddr=00:50:56:91:00:14
alt_macaddr=00:50:56:92:00:14
bridge=br2
cpus=2
mem=2560
numactl --preferred=0 --cpunodebind=0  nice -n -6  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=appt04,ifname=appt04,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=appt04,mac=$macaddr\
    -pcidevice host=15:15.4\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-infrat02.sh                         0000755 0000000 0000000 00000001534 11524350260 025771  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-infrat02
dev1=/dev/tb3-vgt02/lvt02infra
dev2=/dev/tb3-vgt02/lvt02infra-data
vnc_port='6111'
monitor_port='13011'
serial_port='14011'
macaddr=00:50:56:91:00:0B
alt_macaddr=00:50:56:92:00:0B
bridge=br2
cpus=1
mem=1024
numactl --preferred=0 --cpunodebind=0  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=infrat02,ifname=infrat02,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=infrat02,mac=$macaddr\
    -pcidevice host=15:12.4\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-infrat04.sh                         0000755 0000000 0000000 00000001534 11524350260 025773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-infrat04
dev1=/dev/tb3-vgt04/lvt04infra
dev2=/dev/tb3-vgt04/lvt04infra-data
vnc_port='6123'
monitor_port='13023'
serial_port='14023'
macaddr=00:50:56:91:00:17
alt_macaddr=00:50:56:92:00:17
bridge=br2
cpus=1
mem=1024
numactl --preferred=0 --cpunodebind=0  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=infrat04,ifname=infrat04,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=infrat04,mac=$macaddr\
    -pcidevice host=15:16.0\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-mailt13.sh                          0000755 0000000 0000000 00000001531 11524350262 025615  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-mailt13
dev1=/dev/tb3-vgt13/lvt13mail
dev2=/dev/tb3-maildata/lvt13mail-data
vnc_port='6178'
monitor_port='13078'
serial_port='14078'
macaddr=00:50:56:91:00:4E
alt_macaddr=00:50:56:92:00:4E
bridge=br2
cpus=1
mem=2048
numactl --preferred=1 --cpunodebind=1  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=mailt13,ifname=mailt13,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=mailt13,mac=$macaddr\
    -pcidevice host=15:18.1\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                       Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-dbt07.sh                            0000755 0000000 0000000 00000001477 11524350256 025277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-dbt07
dev1=/dev/tb3-vgt07/lvt07db
dev2=/dev/tb3-vgt07/lvt07db-data
vnc_port='6139'
monitor_port='13039'
serial_port='14039'
macaddr=00:50:56:91:00:27
alt_macaddr=00:50:56:92:00:27
bridge=br2
cpus=1
mem=2048
numactl --preferred=1 --cpunodebind=1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=dbt07,ifname=dbt07,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=dbt07,mac=$macaddr\
    -pcidevice host=15:1b.0\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-dbt09.sh                            0000755 0000000 0000000 00000001477 11524350256 025301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-dbt09
dev1=/dev/tb3-vgt09/lvt09db
dev2=/dev/tb3-vgt09/lvt09db-data
vnc_port='6151'
monitor_port='13051'
serial_port='14051'
macaddr=00:50:56:91:00:33
alt_macaddr=00:50:56:92:00:33
bridge=br2
cpus=1
mem=2048
numactl --preferred=1 --cpunodebind=1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=dbt09,ifname=dbt09,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=dbt09,mac=$macaddr\
    -pcidevice host=15:10.5\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-mailt05.sh                          0000755 0000000 0000000 00000001531 11524350262 025616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-mailt05
dev1=/dev/tb3-vgt05/lvt05mail
dev2=/dev/tb3-maildata/lvt05mail-data
vnc_port='6130'
monitor_port='13030'
serial_port='14030'
macaddr=00:50:56:91:00:1E
alt_macaddr=00:50:56:92:00:1E
bridge=br2
cpus=1
mem=2048
numactl --preferred=1 --cpunodebind=1  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=mailt05,ifname=mailt05,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=mailt05,mac=$macaddr\
    -pcidevice host=15:18.0\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                       Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-dbt10.sh                            0000755 0000000 0000000 00000001477 11524350256 025271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-dbt10
dev1=/dev/tb3-vgt10/lvt10db
dev2=/dev/tb3-vgt10/lvt10db-data
vnc_port='6157'
monitor_port='13057'
serial_port='14057'
macaddr=00:50:56:91:00:39
alt_macaddr=00:50:56:92:00:39
bridge=br2
cpus=1
mem=2048
numactl --preferred=0 --cpunodebind=0  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=dbt10,ifname=dbt10,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=dbt10,mac=$macaddr\
    -pcidevice host=15:12.3\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-appt05.sh                           0000755 0000000 0000000 00000001521 11524350254 025454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-appt05
dev1=/dev/tb3-vgt05/lvt05app
dev2=/dev/tb3-vgt05/lvt05app-data
vnc_port='6126'
monitor_port='13026'
serial_port='14026'
macaddr=00:50:56:91:00:1A
alt_macaddr=00:50:56:92:00:1A
bridge=br2
cpus=2
mem=2560
numactl --preferred=1 --cpunodebind=1  nice -n -6  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=appt05,ifname=appt05,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=appt05,mac=$macaddr\
    -pcidevice host=15:17.2\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-infrat13.sh                         0000755 0000000 0000000 00000001534 11524350261 025774  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-infrat13
dev1=/dev/tb3-vgt13/lvt13infra
dev2=/dev/tb3-vgt13/lvt13infra-data
vnc_port='6177'
monitor_port='13077'
serial_port='14077'
macaddr=00:50:56:91:00:4D
alt_macaddr=00:50:56:92:00:4D
bridge=br2
cpus=1
mem=1024
numactl --preferred=1 --cpunodebind=1  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=infrat13,ifname=infrat13,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=infrat13,mac=$macaddr\
    -pcidevice host=15:17.7\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-appt08.sh                           0000755 0000000 0000000 00000001521 11524350254 025457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-appt08
dev1=/dev/tb3-vgt08/lvt08app
dev2=/dev/tb3-vgt08/lvt08app-data
vnc_port='6144'
monitor_port='13044'
serial_port='14044'
macaddr=00:50:56:91:00:2C
alt_macaddr=00:50:56:92:00:2C
bridge=br2
cpus=2
mem=2560
numactl --preferred=0 --cpunodebind=0  nice -n -6  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=appt08,ifname=appt08,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=appt08,mac=$macaddr\
    -pcidevice host=15:1c.4\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-dbt14.sh                            0000755 0000000 0000000 00000001477 11524350256 025275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-dbt14
dev1=/dev/tb3-vgt14/lvt14db
dev2=/dev/tb3-vgt14/lvt14db-data
vnc_port='6181'
monitor_port='13081'
serial_port='14081'
macaddr=00:50:56:91:00:51
alt_macaddr=00:50:56:92:00:51
bridge=br2
cpus=1
mem=2048
numactl --preferred=0 --cpunodebind=0  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=dbt14,ifname=dbt14,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=dbt14,mac=$macaddr\
    -pcidevice host=15:19.3\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-appt12.sh                           0000755 0000000 0000000 00000001521 11524350255 025453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-appt12
dev1=/dev/tb3-vgt12/lvt12app
dev2=/dev/tb3-vgt12/lvt12app-data
vnc_port='6168'
monitor_port='13068'
serial_port='14068'
macaddr=00:50:56:91:00:44
alt_macaddr=00:50:56:92:00:44
bridge=br2
cpus=2
mem=2560
numactl --preferred=0 --cpunodebind=0  nice -n -6  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=appt12,ifname=appt12,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=appt12,mac=$macaddr\
    -pcidevice host=15:15.5\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-webt10.sh                           0000755 0000000 0000000 00000001522 11524350263 025446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-webt10
dev1=/dev/tb3-vgt10/lvt10web
dev2=/dev/tb3-vgt10/lvt10web-data
vnc_port='6155'
monitor_port='13055'
serial_port='14055'
macaddr=00:50:56:91:00:37
alt_macaddr=00:50:56:92:00:37
bridge=br2
cpus=2
mem=11264
numactl --preferred=0 --cpunodebind=0  nice -n -1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=webt10,ifname=webt10,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=webt10,mac=$macaddr\
    -pcidevice host=15:11.7\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-idlet02.sh                          0000755 0000000 0000000 00000001472 11524350256 025615  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-idlet02
dev1=/dev/tb3-vgt02/lvt02idle
dev2=/dev/tb3-vgt02/lvt02idle-data
vnc_port='6110'
monitor_port='13010'
serial_port='14010'
macaddr=00:50:56:91:00:0A
alt_macaddr=00:50:56:92:00:0A
bridge=br2
cpus=1
mem=1024
numactl --preferred=0 --cpunodebind=0  nice -n 10  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=idlet02,ifname=idlet02,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=idlet02,mac=$macaddr\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-webt02.sh                           0000755 0000000 0000000 00000001522 11524350263 025447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-webt02
dev1=/dev/tb3-vgt02/lvt02web
dev2=/dev/tb3-vgt02/lvt02web-data
vnc_port='6107'
monitor_port='13007'
serial_port='14007'
macaddr=00:50:56:91:00:07
alt_macaddr=00:50:56:92:00:07
bridge=br2
cpus=2
mem=11264
numactl --preferred=0 --cpunodebind=0  nice -n -1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=webt02,ifname=webt02,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=webt02,mac=$macaddr\
    -pcidevice host=15:11.6\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-mailt08.sh                          0000755 0000000 0000000 00000001531 11524350262 025621  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-mailt08
dev1=/dev/tb3-vgt08/lvt08mail
dev2=/dev/tb3-maildata/lvt08mail-data
vnc_port='6148'
monitor_port='13048'
serial_port='14048'
macaddr=00:50:56:91:00:30
alt_macaddr=00:50:56:92:00:30
bridge=br2
cpus=1
mem=2048
numactl --preferred=0 --cpunodebind=0  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=mailt08,ifname=mailt08,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=mailt08,mac=$macaddr\
    -pcidevice host=15:1d.2\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                       Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-mailt12.sh                          0000755 0000000 0000000 00000001531 11524350262 025614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-mailt12
dev1=/dev/tb3-vgt12/lvt12mail
dev2=/dev/tb3-maildata/lvt12mail-data
vnc_port='6172'
monitor_port='13072'
serial_port='14072'
macaddr=00:50:56:91:00:48
alt_macaddr=00:50:56:92:00:48
bridge=br2
cpus=1
mem=2048
numactl --preferred=0 --cpunodebind=0  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=mailt12,ifname=mailt12,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=mailt12,mac=$macaddr\
    -pcidevice host=15:16.3\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                       Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-idlet07.sh                          0000755 0000000 0000000 00000001472 11524350257 025623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-idlet07
dev1=/dev/tb3-vgt07/lvt07idle
dev2=/dev/tb3-vgt07/lvt07idle-data
vnc_port='6140'
monitor_port='13040'
serial_port='14040'
macaddr=00:50:56:91:00:28
alt_macaddr=00:50:56:92:00:28
bridge=br2
cpus=1
mem=1024
numactl --preferred=1 --cpunodebind=1  nice -n 10  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=idlet07,ifname=idlet07,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=idlet07,mac=$macaddr\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-infrat05.sh                         0000755 0000000 0000000 00000001534 11524350260 025774  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-infrat05
dev1=/dev/tb3-vgt05/lvt05infra
dev2=/dev/tb3-vgt05/lvt05infra-data
vnc_port='6129'
monitor_port='13029'
serial_port='14029'
macaddr=00:50:56:91:00:1D
alt_macaddr=00:50:56:92:00:1D
bridge=br2
cpus=1
mem=1024
numactl --preferred=1 --cpunodebind=1  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=infrat05,ifname=infrat05,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=infrat05,mac=$macaddr\
    -pcidevice host=15:17.6\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-mailt02.sh                          0000755 0000000 0000000 00000001531 11524350261 025612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-mailt02
dev1=/dev/tb3-vgt02/lvt02mail
dev2=/dev/tb3-maildata/lvt02mail-data
vnc_port='6112'
monitor_port='13012'
serial_port='14012'
macaddr=00:50:56:91:00:0C
alt_macaddr=00:50:56:92:00:0C
bridge=br2
cpus=1
mem=2048
numactl --preferred=0 --cpunodebind=0  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=mailt02,ifname=mailt02,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=mailt02,mac=$macaddr\
    -pcidevice host=15:12.6\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                       Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-webt08.sh                           0000755 0000000 0000000 00000001522 11524350263 025455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-webt08
dev1=/dev/tb3-vgt08/lvt08web
dev2=/dev/tb3-vgt08/lvt08web-data
vnc_port='6143'
monitor_port='13043'
serial_port='14043'
macaddr=00:50:56:91:00:2B
alt_macaddr=00:50:56:92:00:2B
bridge=br2
cpus=2
mem=11264
numactl --preferred=0 --cpunodebind=0  nice -n -1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=webt08,ifname=webt08,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=webt08,mac=$macaddr\
    -pcidevice host=15:1c.2\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-dbt06.sh                            0000755 0000000 0000000 00000001477 11524350255 025275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-dbt06
dev1=/dev/tb3-vgt06/lvt06db
dev2=/dev/tb3-vgt06/lvt06db-data
vnc_port='6133'
monitor_port='13033'
serial_port='14033'
macaddr=00:50:56:91:00:21
alt_macaddr=00:50:56:92:00:21
bridge=br2
cpus=1
mem=2048
numactl --preferred=0 --cpunodebind=0  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=dbt06,ifname=dbt06,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=dbt06,mac=$macaddr\
    -pcidevice host=15:19.2\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-appt06.sh                           0000755 0000000 0000000 00000001521 11524350254 025455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-appt06
dev1=/dev/tb3-vgt06/lvt06app
dev2=/dev/tb3-vgt06/lvt06app-data
vnc_port='6132'
monitor_port='13032'
serial_port='14032'
macaddr=00:50:56:91:00:20
alt_macaddr=00:50:56:92:00:20
bridge=br2
cpus=2
mem=2560
numactl --preferred=0 --cpunodebind=0  nice -n -6  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=appt06,ifname=appt06,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=appt06,mac=$macaddr\
    -pcidevice host=15:19.0\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-dbt04.sh                            0000755 0000000 0000000 00000001477 11524350255 025273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-dbt04
dev1=/dev/tb3-vgt04/lvt04db
dev2=/dev/tb3-vgt04/lvt04db-data
vnc_port='6121'
monitor_port='13021'
serial_port='14021'
macaddr=00:50:56:91:00:15
alt_macaddr=00:50:56:92:00:15
bridge=br2
cpus=1
mem=2048
numactl --preferred=0 --cpunodebind=0  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=dbt04,ifname=dbt04,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=dbt04,mac=$macaddr\
    -pcidevice host=15:15.6\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-mailt09.sh                          0000755 0000000 0000000 00000001531 11524350262 025622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-mailt09
dev1=/dev/tb3-vgt09/lvt09mail
dev2=/dev/tb3-maildata/lvt09mail-data
vnc_port='6154'
monitor_port='13054'
serial_port='14054'
macaddr=00:50:56:91:00:36
alt_macaddr=00:50:56:92:00:36
bridge=br2
cpus=1
mem=2048
numactl --preferred=1 --cpunodebind=1  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=mailt09,ifname=mailt09,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=mailt09,mac=$macaddr\
    -pcidevice host=15:11.1\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                       Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-dbt05.sh                            0000755 0000000 0000000 00000001477 11524350255 025274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-dbt05
dev1=/dev/tb3-vgt05/lvt05db
dev2=/dev/tb3-vgt05/lvt05db-data
vnc_port='6127'
monitor_port='13027'
serial_port='14027'
macaddr=00:50:56:91:00:1B
alt_macaddr=00:50:56:92:00:1B
bridge=br2
cpus=1
mem=2048
numactl --preferred=1 --cpunodebind=1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=dbt05,ifname=dbt05,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=dbt05,mac=$macaddr\
    -pcidevice host=15:17.4\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-appt03.sh                           0000755 0000000 0000000 00000001521 11524350254 025452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-appt03
dev1=/dev/tb3-vgt03/lvt03app
dev2=/dev/tb3-vgt03/lvt03app-data
vnc_port='6114'
monitor_port='13014'
serial_port='14014'
macaddr=00:50:56:91:00:0E
alt_macaddr=00:50:56:92:00:0E
bridge=br2
cpus=2
mem=2560
numactl --preferred=1 --cpunodebind=1  nice -n -6  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=appt03,ifname=appt03,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=appt03,mac=$macaddr\
    -pcidevice host=15:13.6\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-idlet12.sh                          0000755 0000000 0000000 00000001472 11524350257 025617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-idlet12
dev1=/dev/tb3-vgt12/lvt12idle
dev2=/dev/tb3-vgt12/lvt12idle-data
vnc_port='6170'
monitor_port='13070'
serial_port='14070'
macaddr=00:50:56:91:00:46
alt_macaddr=00:50:56:92:00:46
bridge=br2
cpus=1
mem=1024
numactl --preferred=0 --cpunodebind=0  nice -n 10  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=idlet12,ifname=idlet12,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=idlet12,mac=$macaddr\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-idlet06.sh                          0000755 0000000 0000000 00000001472 11524350257 025622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-idlet06
dev1=/dev/tb3-vgt06/lvt06idle
dev2=/dev/tb3-vgt06/lvt06idle-data
vnc_port='6134'
monitor_port='13034'
serial_port='14034'
macaddr=00:50:56:91:00:22
alt_macaddr=00:50:56:92:00:22
bridge=br2
cpus=1
mem=1024
numactl --preferred=0 --cpunodebind=0  nice -n 10  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=idlet06,ifname=idlet06,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=idlet06,mac=$macaddr\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-dbt03.sh                            0000755 0000000 0000000 00000001477 11524350255 025272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-dbt03
dev1=/dev/tb3-vgt03/lvt03db
dev2=/dev/tb3-vgt03/lvt03db-data
vnc_port='6115'
monitor_port='13015'
serial_port='14015'
macaddr=00:50:56:91:00:0F
alt_macaddr=00:50:56:92:00:0F
bridge=br2
cpus=1
mem=2048
numactl --preferred=1 --cpunodebind=1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=dbt03,ifname=dbt03,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=dbt03,mac=$macaddr\
    -pcidevice host=15:14.0\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-appt09.sh                           0000755 0000000 0000000 00000001521 11524350254 025460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-appt09
dev1=/dev/tb3-vgt09/lvt09app
dev2=/dev/tb3-vgt09/lvt09app-data
vnc_port='6150'
monitor_port='13050'
serial_port='14050'
macaddr=00:50:56:91:00:32
alt_macaddr=00:50:56:92:00:32
bridge=br2
cpus=2
mem=2560
numactl --preferred=1 --cpunodebind=1  nice -n -6  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=appt09,ifname=appt09,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=appt09,mac=$macaddr\
    -pcidevice host=15:10.3\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-idlet13.sh                          0000755 0000000 0000000 00000001472 11524350260 025612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-idlet13
dev1=/dev/tb3-vgt13/lvt13idle
dev2=/dev/tb3-vgt13/lvt13idle-data
vnc_port='6176'
monitor_port='13076'
serial_port='14076'
macaddr=00:50:56:91:00:4C
alt_macaddr=00:50:56:92:00:4C
bridge=br2
cpus=1
mem=1024
numactl --preferred=1 --cpunodebind=1  nice -n 10  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=idlet13,ifname=idlet13,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=idlet13,mac=$macaddr\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                      Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-mailt10.sh                          0000755 0000000 0000000 00000001531 11524350262 025612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-mailt10
dev1=/dev/tb3-vgt10/lvt10mail
dev2=/dev/tb3-maildata/lvt10mail-data
vnc_port='6160'
monitor_port='13060'
serial_port='14060'
macaddr=00:50:56:91:00:3C
alt_macaddr=00:50:56:92:00:3C
bridge=br2
cpus=1
mem=2048
numactl --preferred=0 --cpunodebind=0  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=mailt10,ifname=mailt10,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=mailt10,mac=$macaddr\
    -pcidevice host=15:12.7\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                       Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-appt10.sh                           0000755 0000000 0000000 00000001521 11524350255 025451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-appt10
dev1=/dev/tb3-vgt10/lvt10app
dev2=/dev/tb3-vgt10/lvt10app-data
vnc_port='6156'
monitor_port='13056'
serial_port='14056'
macaddr=00:50:56:91:00:38
alt_macaddr=00:50:56:92:00:38
bridge=br2
cpus=2
mem=2560
numactl --preferred=0 --cpunodebind=0  nice -n -6  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=appt10,ifname=appt10,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=appt10,mac=$macaddr\
    -pcidevice host=15:12.1\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-appt14.sh                           0000755 0000000 0000000 00000001521 11524350255 025455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-appt14
dev1=/dev/tb3-vgt14/lvt14app
dev2=/dev/tb3-vgt14/lvt14app-data
vnc_port='6180'
monitor_port='13080'
serial_port='14080'
macaddr=00:50:56:91:00:50
alt_macaddr=00:50:56:92:00:50
bridge=br2
cpus=2
mem=2560
numactl --preferred=0 --cpunodebind=0  nice -n -6  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=appt14,ifname=appt14,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=appt14,mac=$macaddr\
    -pcidevice host=15:19.1\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-dbt11.sh                            0000755 0000000 0000000 00000001477 11524350256 025272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-dbt11
dev1=/dev/tb3-vgt11/lvt11db
dev2=/dev/tb3-vgt11/lvt11db-data
vnc_port='6163'
monitor_port='13063'
serial_port='14063'
macaddr=00:50:56:91:00:3F
alt_macaddr=00:50:56:92:00:3F
bridge=br2
cpus=1
mem=2048
numactl --preferred=1 --cpunodebind=1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=dbt11,ifname=dbt11,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=dbt11,mac=$macaddr\
    -pcidevice host=15:14.1\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-infrat01.sh                         0000755 0000000 0000000 00000001534 11524350260 025770  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-infrat01
dev1=/dev/tb3-vgt01/lvt01infra
dev2=/dev/tb3-vgt01/lvt01infra-data
vnc_port='6105'
monitor_port='13005'
serial_port='14005'
macaddr=00:50:56:91:00:05
alt_macaddr=00:50:56:92:00:05
bridge=br2
cpus=1
mem=1024
numactl --preferred=1 --cpunodebind=1  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=infrat01,ifname=infrat01,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=infrat01,mac=$macaddr\
    -pcidevice host=15:10.6\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-infrat09.sh                         0000755 0000000 0000000 00000001534 11524350261 026001  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-infrat09
dev1=/dev/tb3-vgt09/lvt09infra
dev2=/dev/tb3-vgt09/lvt09infra-data
vnc_port='6153'
monitor_port='13053'
serial_port='14053'
macaddr=00:50:56:91:00:35
alt_macaddr=00:50:56:92:00:35
bridge=br2
cpus=1
mem=1024
numactl --preferred=1 --cpunodebind=1  nice -n 4  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=infrat09,ifname=infrat09,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=infrat09,mac=$macaddr\
    -pcidevice host=15:10.7\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                    Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-appt02.sh                           0000755 0000000 0000000 00000001521 11524350254 025451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-appt02
dev1=/dev/tb3-vgt02/lvt02app
dev2=/dev/tb3-vgt02/lvt02app-data
vnc_port='6108'
monitor_port='13008'
serial_port='14008'
macaddr=00:50:56:91:00:08
alt_macaddr=00:50:56:92:00:08
bridge=br2
cpus=2
mem=2560
numactl --preferred=0 --cpunodebind=0  nice -n -6  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=appt02,ifname=appt02,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=appt02,mac=$macaddr\
    -pcidevice host=15:12.0\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                               Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-dbt12.sh                            0000755 0000000 0000000 00000001477 11524350256 025273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-dbt12
dev1=/dev/tb3-vgt12/lvt12db
dev2=/dev/tb3-vgt12/lvt12db-data
vnc_port='6169'
monitor_port='13069'
serial_port='14069'
macaddr=00:50:56:91:00:45
alt_macaddr=00:50:56:92:00:45
bridge=br2
cpus=1
mem=2048
numactl --preferred=0 --cpunodebind=0  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=dbt12,ifname=dbt12,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=dbt12,mac=$macaddr\
    -pcidevice host=15:15.7\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                                                 Physical_Configuration/System_Under_Test/etc/kvm/vm-scripts/tb3-webt07.sh                           0000755 0000000 0000000 00000001522 11524350263 025454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   name=tb3-webt07
dev1=/dev/tb3-vgt07/lvt07web
dev2=/dev/tb3-vgt07/lvt07web-data
vnc_port='6137'
monitor_port='13037'
serial_port='14037'
macaddr=00:50:56:91:00:25
alt_macaddr=00:50:56:92:00:25
bridge=br2
cpus=2
mem=11264
numactl --preferred=1 --cpunodebind=1  nice -n -1  /usr/libexec/qemu-kvm -name $name -M rhel6.0.0 -enable-kvm\
    -drive file=$dev1,if=virtio,boot=on,cache=none\
    -drive file=$dev2,if=virtio,boot=off,cache=none\
    -netdev tap,id=webt07,ifname=webt07,script=/etc/kvm/qemu-ifup-$bridge,vhost=off\
    -device virtio-net-pci,netdev=webt07,mac=$macaddr\
    -pcidevice host=15:1a.4\
    -m $mem \
    -vnc :$vnc_port\
    -cpu qemu64,+x2apic -no-kvm-pit-reinjection\
    -smp $cpus,sockets=$cpus,cores=1,threads=1\
    -monitor telnet::$monitor_port,server,nowait\
    -serial telnet::$serial_port,server,nowait\
    -daemonize
                                                                                                                                                                              Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t26                                      0000755 0000000 0000000 00000000145 11524350253 023456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t26


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-2                                        0000755 0000000 0000000 00000000126 11524350247 023206  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash


ifconfig $1 0.0.0.0. promisc up
brctl addif br3 $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t02                                      0000755 0000000 0000000 00000000143 11524350250 023443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t02
ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup                                          0000755 0000000 0000000 00000001103 11524350247 023043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

ID=`echo $1 | sed -e s/tap//`
if [ $ID -ge 0 -a $ID -lt 1000 ]; then
    BRIF=br0
fi
if [ $ID -ge 1000 -a $ID -lt 2000 ]; then
    BRIF=br1
fi
if [ $ID -ge 2000 -a $ID -lt 3000 ]; then
    BRIF=br2
fi
if [ $ID -ge 3000 -a $ID -lt 4000 ]; then
    BRIF=br3
fi
if [ $ID -ge 4000 -a $ID -lt 5000 ]; then
    BRIF=br4
fi
if [ $ID -ge 5000 -a $ID -lt 6000 ]; then
    BRIF=br5
fi
if [ $ID -ge 6000 -a $ID -lt 7000 ]; then
    BRIF=br6
fi
if [ $ID -ge 7000 -a $ID -lt 8000 ]; then
    BRIF=br7
fi

ifconfig $1 0.0.0.0. promisc up
brctl addif $BRIF $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t29                                      0000755 0000000 0000000 00000000145 11524350253 023461  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t29


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-br5                                      0000755 0000000 0000000 00000000145 11524350250 023530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br5


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t23                                      0000755 0000000 0000000 00000000145 11524350252 023452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t23


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t24                                      0000755 0000000 0000000 00000000145 11524350252 023453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t24


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t04                                      0000755 0000000 0000000 00000000143 11524350250 023445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t04
ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t19                                      0000755 0000000 0000000 00000000145 11524350252 023457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t19


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-br6                                      0000755 0000000 0000000 00000000145 11524350250 023531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br6


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-br9                                      0000755 0000000 0000000 00000000145 11524350250 023534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br9


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t05                                      0000755 0000000 0000000 00000000145 11524350250 023450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t05


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-br0                                      0000755 0000000 0000000 00000000143 11524350247 023527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br0
ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-br3                                      0000755 0000000 0000000 00000000145 11524350247 023534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br3


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-1                                        0000755 0000000 0000000 00000000126 11524350247 023205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash


ifconfig $1 0.0.0.0. promisc up
brctl addif br3 $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t12                                      0000755 0000000 0000000 00000000145 11524350251 023447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t12


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t07                                      0000755 0000000 0000000 00000000145 11524350251 023453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t07


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t30                                      0000755 0000000 0000000 00000000145 11524350253 023451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t30


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t03                                      0000755 0000000 0000000 00000000143 11524350250 023444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t03
ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-3                                        0000755 0000000 0000000 00000000126 11524350247 023207  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash


ifconfig $1 0.0.0.0. promisc up
brctl addif br3 $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                                          Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-br4                                      0000755 0000000 0000000 00000000145 11524350247 023535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br4


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-br1                                      0000755 0000000 0000000 00000000143 11524350247 023530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=br1
ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                             Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t17                                      0000755 0000000 0000000 00000000145 11524350252 023455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t17


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t27                                      0000755 0000000 0000000 00000000145 11524350253 023457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t27


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/kvm/qemu-ifup-t08                                      0000755 0000000 0000000 00000000145 11524350251 023454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
bridge=t08


ifconfig $1 0.0.0.0. promisc up
brctl addif $bridge $1
ethtool -K $1 gso on
                                                                                                                                                                                                                                                                                                                                                                                                                           Physical_Configuration/System_Under_Test/etc/fstab                                                  0000644 0000000 0000000 00000001635 11524350246 021443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Oct  6 13:04:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_mako18-lv_root /                       ext4    defaults        1 1
UUID=e2609860-ed4e-43ae-be19-37302a2c6df7 /boot                   ext4    defaults        1 2
UUID=BB93-1363          /boot/efi               vfat    umask=0077,shortname=winnt 0 0
/dev/mapper/vg_mako18-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
tb3-autobench:/VMStorage1 /VMStorage1		nfs	defaults	0 0 
                                                                                                   Physical_Configuration/System_Under_Test/etc/sysctl.conf                                            0000644 0000000 0000000 00000001466 11524350306 022610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Physical_Configuration/System_Under_Test/etc/inittab                                                0000644 0000000 0000000 00000001564 11524350246 021777  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:5:initdefault:
                                                                                                                                            Physical_Configuration/System_Under_Test/var/                                                       0000777 0000000 0000000 00000000000 11524350311 020426  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/var/log/                                                   0000777 0000000 0000000 00000000000 11524350311 021207  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Physical_Configuration/System_Under_Test/var/log/dmesg                                              0000644 0000000 0000000 00000276320 11524350312 022240  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.17.1.el6.x86_64 (mockbuild@ls20-bc2-13.build.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Fri Jan 28 09:47:10 EST 2011
Command line: ro root=/dev/mapper/vg_mako18-lv_root rd_LVM_LV=vg_mako18/lv_root rd_LVM_LV=vg_mako18/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us elevator=deadline intel_iommu=on iommu=pt clocksource=tsc idle=halt crashkernel=auto
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000006c000 (usable)
 BIOS-e820: 000000000006c000 - 000000000006d000 (ACPI NVS)
 BIOS-e820: 000000000006d000 - 000000000009f000 (usable)
 BIOS-e820: 000000000009f000 - 00000000000a0000 (ACPI NVS)
 BIOS-e820: 0000000000100000 - 000000007d0e9000 (usable)
 BIOS-e820: 000000007d0e9000 - 000000007d114000 (reserved)
 BIOS-e820: 000000007d114000 - 000000007d13f000 (usable)
 BIOS-e820: 000000007d13f000 - 000000007d16a000 (reserved)
 BIOS-e820: 000000007d16a000 - 000000007d21d000 (usable)
 BIOS-e820: 000000007d21d000 - 000000007d261000 (reserved)
 BIOS-e820: 000000007d261000 - 000000007d3e8000 (usable)
 BIOS-e820: 000000007d3e8000 - 000000007d498000 (reserved)
 BIOS-e820: 000000007d498000 - 000000007f5ef000 (usable)
 BIOS-e820: 000000007f5ef000 - 000000007f6df000 (reserved)
 BIOS-e820: 000000007f6df000 - 000000007f7df000 (ACPI NVS)
 BIOS-e820: 000000007f7df000 - 000000007f7ff000 (ACPI data)
 BIOS-e820: 000000007f7ff000 - 000000007f800000 (usable)
 BIOS-e820: 0000000080000000 - 0000000090000000 (reserved)
 BIOS-e820: 00000000fed1c000 - 00000000fed20000 (reserved)
 BIOS-e820: 00000000ff800000 - 0000000100000000 (reserved)
 BIOS-e820: 0000000100000000 - 0000004880000000 (usable)
EFI v2.10 by IBM
 ACPI 2.0=0x7f7fe014  SMBIOS=0x7f6be000 
Kernel-defined memdesc doesn't match the one from EFI!
EFI: mem00: type=3, attr=0xf, range=[0x0000000000000000-0x0000000000001000) (0MB)
EFI: mem01: type=7, attr=0xf, range=[0x0000000000001000-0x000000000001e000) (0MB)
EFI: mem02: type=2, attr=0xf, range=[0x000000000001e000-0x0000000000020000) (0MB)
EFI: mem03: type=3, attr=0xf, range=[0x0000000000020000-0x000000000006c000) (0MB)
EFI: mem04: type=10, attr=0xf, range=[0x000000000006c000-0x000000000006d000) (0MB)
EFI: mem05: type=4, attr=0xf, range=[0x000000000006d000-0x000000000006e000) (0MB)
EFI: mem06: type=3, attr=0xf, range=[0x000000000006e000-0x000000000009f000) (0MB)
EFI: mem07: type=10, attr=0xf, range=[0x000000000009f000-0x00000000000a0000) (0MB)
EFI: mem08: type=7, attr=0xf, range=[0x0000000000100000-0x0000000000400000) (3MB)
EFI: mem09: type=3, attr=0xf, range=[0x0000000000400000-0x000000000044d000) (0MB)
EFI: mem10: type=7, attr=0xf, range=[0x000000000044d000-0x0000000000800000) (3MB)
EFI: mem11: type=3, attr=0xf, range=[0x0000000000800000-0x0000000001000000) (8MB)
EFI: mem12: type=7, attr=0xf, range=[0x0000000001000000-0x0000000078102000) (1905MB)
EFI: mem13: type=2, attr=0xf, range=[0x0000000078102000-0x0000000079569000) (20MB)
EFI: mem14: type=4, attr=0xf, range=[0x0000000079569000-0x0000000079f6b000) (10MB)
EFI: mem15: type=2, attr=0xf, range=[0x0000000079f6b000-0x000000007a36b000) (4MB)
EFI: mem16: type=1, attr=0xf, range=[0x000000007a36b000-0x000000007a3a7000) (0MB)
EFI: mem17: type=7, attr=0xf, range=[0x000000007a3a7000-0x000000007a3d6000) (0MB)
EFI: mem18: type=2, attr=0xf, range=[0x000000007a3d6000-0x000000007a5b5000) (1MB)
EFI: mem19: type=4, attr=0xf, range=[0x000000007a5b5000-0x000000007a5c6000) (0MB)
EFI: mem20: type=2, attr=0xf, range=[0x000000007a5c6000-0x000000007a5d7000) (0MB)
EFI: mem21: type=4, attr=0xf, range=[0x000000007a5d7000-0x000000007ac63000) (6MB)
EFI: mem22: type=2, attr=0xf, range=[0x000000007ac63000-0x000000007ac6d000) (0MB)
EFI: mem23: type=4, attr=0xf, range=[0x000000007ac6d000-0x000000007b796000) (11MB)
EFI: mem24: type=2, attr=0xf, range=[0x000000007b796000-0x000000007b799000) (0MB)
EFI: mem25: type=4, attr=0xf, range=[0x000000007b799000-0x000000007b7b6000) (0MB)
EFI: mem26: type=2, attr=0xf, range=[0x000000007b7b6000-0x000000007b7ba000) (0MB)
EFI: mem27: type=4, attr=0xf, range=[0x000000007b7ba000-0x000000007b952000) (1MB)
EFI: mem28: type=2, attr=0xf, range=[0x000000007b952000-0x000000007b956000) (0MB)
EFI: mem29: type=4, attr=0xf, range=[0x000000007b956000-0x000000007b957000) (0MB)
EFI: mem30: type=2, attr=0xf, range=[0x000000007b957000-0x000000007b958000) (0MB)
EFI: mem31: type=4, attr=0xf, range=[0x000000007b958000-0x000000007b963000) (0MB)
EFI: mem32: type=2, attr=0xf, range=[0x000000007b963000-0x000000007b964000) (0MB)
EFI: mem33: type=4, attr=0xf, range=[0x000000007b964000-0x000000007cd54000) (19MB)
EFI: mem34: type=2, attr=0xf, range=[0x000000007cd54000-0x000000007cd55000) (0MB)
EFI: mem35: type=4, attr=0xf, range=[0x000000007cd55000-0x000000007cd69000) (0MB)
EFI: mem36: type=3, attr=0xf, range=[0x000000007cd69000-0x000000007cd6a000) (0MB)
EFI: mem37: type=4, attr=0xf, range=[0x000000007cd6a000-0x000000007d00a000) (2MB)
EFI: mem38: type=3, attr=0xf, range=[0x000000007d00a000-0x000000007d0a0000) (0MB)
EFI: mem39: type=4, attr=0xf, range=[0x000000007d0a0000-0x000000007d0c1000) (0MB)
EFI: mem40: type=3, attr=0xf, range=[0x000000007d0c1000-0x000000007d0ce000) (0MB)
EFI: mem41: type=4, attr=0xf, range=[0x000000007d0ce000-0x000000007d0e9000) (0MB)
EFI: mem42: type=5, attr=0x800000000000000f, range=[0x000000007d0e9000-0x000000007d114000) (0MB)
EFI: mem43: type=4, attr=0xf, range=[0x000000007d114000-0x000000007d115000) (0MB)
EFI: mem44: type=3, attr=0xf, range=[0x000000007d115000-0x000000007d118000) (0MB)
EFI: mem45: type=4, attr=0xf, range=[0x000000007d118000-0x000000007d13f000) (0MB)
EFI: mem46: type=5, attr=0x800000000000000f, range=[0x000000007d13f000-0x000000007d16a000) (0MB)
EFI: mem47: type=4, attr=0xf, range=[0x000000007d16a000-0x000000007d21d000) (0MB)
EFI: mem48: type=5, attr=0x800000000000000f, range=[0x000000007d21d000-0x000000007d261000) (0MB)
EFI: mem49: type=4, attr=0xf, range=[0x000000007d261000-0x000000007d264000) (0MB)
EFI: mem50: type=3, attr=0xf, range=[0x000000007d264000-0x000000007d268000) (0MB)
EFI: mem51: type=4, attr=0xf, range=[0x000000007d268000-0x000000007d388000) (1MB)
EFI: mem52: type=2, attr=0xf, range=[0x000000007d388000-0x000000007d38a000) (0MB)
EFI: mem53: type=4, attr=0xf, range=[0x000000007d38a000-0x000000007d399000) (0MB)
EFI: mem54: type=2, attr=0xf, range=[0x000000007d399000-0x000000007d39a000) (0MB)
EFI: mem55: type=4, attr=0xf, range=[0x000000007d39a000-0x000000007d3e8000) (0MB)
EFI: mem56: type=0, attr=0xf, range=[0x000000007d3e8000-0x000000007d498000) (0MB)
EFI: mem57: type=4, attr=0xf, range=[0x000000007d498000-0x000000007d508000) (0MB)
EFI: mem58: type=3, attr=0xf, range=[0x000000007d508000-0x000000007d51f000) (0MB)
EFI: mem59: type=4, attr=0xf, range=[0x000000007d51f000-0x000000007d530000) (0MB)
EFI: mem60: type=3, attr=0xf, range=[0x000000007d530000-0x000000007d532000) (0MB)
EFI: mem61: type=4, attr=0xf, range=[0x000000007d532000-0x000000007d695000) (1MB)
EFI: mem62: type=3, attr=0xf, range=[0x000000007d695000-0x000000007d698000) (0MB)
EFI: mem63: type=4, attr=0xf, range=[0x000000007d698000-0x000000007d6ae000) (0MB)
EFI: mem64: type=3, attr=0xf, range=[0x000000007d6ae000-0x000000007d6b9000) (0MB)
EFI: mem65: type=4, attr=0xf, range=[0x000000007d6b9000-0x000000007d84f000) (1MB)
EFI: mem66: type=3, attr=0xf, range=[0x000000007d84f000-0x000000007d870000) (0MB)
EFI: mem67: type=4, attr=0xf, range=[0x000000007d870000-0x000000007d876000) (0MB)
EFI: mem68: type=3, attr=0xf, range=[0x000000007d876000-0x000000007d88b000) (0MB)
EFI: mem69: type=4, attr=0xf, range=[0x000000007d88b000-0x000000007d88f000) (0MB)
EFI: mem70: type=3, attr=0xf, range=[0x000000007d88f000-0x000000007d893000) (0MB)
EFI: mem71: type=4, attr=0xf, range=[0x000000007d893000-0x000000007d899000) (0MB)
EFI: mem72: type=3, attr=0xf, range=[0x000000007d899000-0x000000007d8b0000) (0MB)
EFI: mem73: type=4, attr=0xf, range=[0x000000007d8b0000-0x000000007d8b1000) (0MB)
EFI: mem74: type=3, attr=0xf, range=[0x000000007d8b1000-0x000000007d8b5000) (0MB)
EFI: mem75: type=4, attr=0xf, range=[0x000000007d8b5000-0x000000007d8b7000) (0MB)
EFI: mem76: type=3, attr=0xf, range=[0x000000007d8b7000-0x000000007d8c6000) (0MB)
EFI: mem77: type=4, attr=0xf, range=[0x000000007d8c6000-0x000000007d8cb000) (0MB)
EFI: mem78: type=3, attr=0xf, range=[0x000000007d8cb000-0x000000007d8d5000) (0MB)
EFI: mem79: type=4, attr=0xf, range=[0x000000007d8d5000-0x000000007d8d7000) (0MB)
EFI: mem80: type=3, attr=0xf, range=[0x000000007d8d7000-0x000000007d8db000) (0MB)
EFI: mem81: type=4, attr=0xf, range=[0x000000007d8db000-0x000000007d8dc000) (0MB)
EFI: mem82: type=3, attr=0xf, range=[0x000000007d8dc000-0x000000007d8f6000) (0MB)
EFI: mem83: type=4, attr=0xf, range=[0x000000007d8f6000-0x000000007d8f7000) (0MB)
EFI: mem84: type=3, attr=0xf, range=[0x000000007d8f7000-0x000000007d902000) (0MB)
EFI: mem85: type=4, attr=0xf, range=[0x000000007d902000-0x000000007d904000) (0MB)
EFI: mem86: type=3, attr=0xf, range=[0x000000007d904000-0x000000007d905000) (0MB)
EFI: mem87: type=4, attr=0xf, range=[0x000000007d905000-0x000000007d907000) (0MB)
EFI: mem88: type=3, attr=0xf, range=[0x000000007d907000-0x000000007d90b000) (0MB)
EFI: mem89: type=4, attr=0xf, range=[0x000000007d90b000-0x000000007d90d000) (0MB)
EFI: mem90: type=3, attr=0xf, range=[0x000000007d90d000-0x000000007d90f000) (0MB)
EFI: mem91: type=2, attr=0xf, range=[0x000000007d90f000-0x000000007dae2000) (1MB)
EFI: mem92: type=4, attr=0xf, range=[0x000000007dae2000-0x000000007dcb9000) (1MB)
EFI: mem93: type=3, attr=0xf, range=[0x000000007dcb9000-0x000000007dcc2000) (0MB)
EFI: mem94: type=4, attr=0xf, range=[0x000000007dcc2000-0x000000007dcc7000) (0MB)
EFI: mem95: type=3, attr=0xf, range=[0x000000007dcc7000-0x000000007dccb000) (0MB)
EFI: mem96: type=4, attr=0xf, range=[0x000000007dccb000-0x000000007dccd000) (0MB)
EFI: mem97: type=3, attr=0xf, range=[0x000000007dccd000-0x000000007dcec000) (0MB)
EFI: mem98: type=4, attr=0xf, range=[0x000000007dcec000-0x000000007dced000) (0MB)
EFI: mem99: type=3, attr=0xf, range=[0x000000007dced000-0x000000007dcf2000) (0MB)
EFI: mem100: type=4, attr=0xf, range=[0x000000007dcf2000-0x000000007e007000) (3MB)
EFI: mem101: type=3, attr=0xf, range=[0x000000007e007000-0x000000007e009000) (0MB)
EFI: mem102: type=4, attr=0xf, range=[0x000000007e009000-0x000000007e110000) (1MB)
EFI: mem103: type=3, attr=0xf, range=[0x000000007e110000-0x000000007e113000) (0MB)
EFI: mem104: type=4, attr=0xf, range=[0x000000007e113000-0x000000007e117000) (0MB)
EFI: mem105: type=3, attr=0xf, range=[0x000000007e117000-0x000000007e186000) (0MB)
EFI: mem106: type=4, attr=0xf, range=[0x000000007e186000-0x000000007e243000) (0MB)
EFI: mem107: type=3, attr=0xf, range=[0x000000007e243000-0x000000007e24b000) (0MB)
EFI: mem108: type=4, attr=0xf, range=[0x000000007e24b000-0x000000007e28e000) (0MB)
EFI: mem109: type=3, attr=0xf, range=[0x000000007e28e000-0x000000007e2a1000) (0MB)
EFI: mem110: type=4, attr=0xf, range=[0x000000007e2a1000-0x000000007e2a5000) (0MB)
EFI: mem111: type=3, attr=0xf, range=[0x000000007e2a5000-0x000000007e2a7000) (0MB)
EFI: mem112: type=4, attr=0xf, range=[0x000000007e2a7000-0x000000007e2aa000) (0MB)
EFI: mem113: type=3, attr=0xf, range=[0x000000007e2aa000-0x000000007e2ac000) (0MB)
EFI: mem114: type=4, attr=0xf, range=[0x000000007e2ac000-0x000000007e2ad000) (0MB)
EFI: mem115: type=3, attr=0xf, range=[0x000000007e2ad000-0x000000007e2b5000) (0MB)
EFI: mem116: type=4, attr=0xf, range=[0x000000007e2b5000-0x000000007e2b6000) (0MB)
EFI: mem117: type=3, attr=0xf, range=[0x000000007e2b6000-0x000000007e2c8000) (0MB)
EFI: mem118: type=4, attr=0xf, range=[0x000000007e2c8000-0x000000007e2cb000) (0MB)
EFI: mem119: type=3, attr=0xf, range=[0x000000007e2cb000-0x000000007e2cd000) (0MB)
EFI: mem120: type=4, attr=0xf, range=[0x000000007e2cd000-0x000000007e2cf000) (0MB)
EFI: mem121: type=3, attr=0xf, range=[0x000000007e2cf000-0x000000007e2d1000) (0MB)
EFI: mem122: type=4, attr=0xf, range=[0x000000007e2d1000-0x000000007e2d8000) (0MB)
EFI: mem123: type=3, attr=0xf, range=[0x000000007e2d8000-0x000000007e2d9000) (0MB)
EFI: mem124: type=4, attr=0xf, range=[0x000000007e2d9000-0x000000007e2db000) (0MB)
EFI: mem125: type=3, attr=0xf, range=[0x000000007e2db000-0x000000007e2dc000) (0MB)
EFI: mem126: type=4, attr=0xf, range=[0x000000007e2dc000-0x000000007e2fe000) (0MB)
EFI: mem127: type=3, attr=0xf, range=[0x000000007e2fe000-0x000000007e302000) (0MB)
EFI: mem128: type=4, attr=0xf, range=[0x000000007e302000-0x000000007e310000) (0MB)
EFI: mem129: type=3, attr=0xf, range=[0x000000007e310000-0x000000007e311000) (0MB)
EFI: mem130: type=4, attr=0xf, range=[0x000000007e311000-0x000000007e312000) (0MB)
EFI: mem131: type=3, attr=0xf, range=[0x000000007e312000-0x000000007e314000) (0MB)
EFI: mem132: type=4, attr=0xf, range=[0x000000007e314000-0x000000007e315000) (0MB)
EFI: mem133: type=3, attr=0xf, range=[0x000000007e315000-0x000000007e316000) (0MB)
EFI: mem134: type=4, attr=0xf, range=[0x000000007e316000-0x000000007e31d000) (0MB)
EFI: mem135: type=3, attr=0xf, range=[0x000000007e31d000-0x000000007e31e000) (0MB)
EFI: mem136: type=4, attr=0xf, range=[0x000000007e31e000-0x000000007e320000) (0MB)
EFI: mem137: type=3, attr=0xf, range=[0x000000007e320000-0x000000007e321000) (0MB)
EFI: mem138: type=4, attr=0xf, range=[0x000000007e321000-0x000000007e53e000) (2MB)
EFI: mem139: type=3, attr=0xf, range=[0x000000007e53e000-0x000000007e540000) (0MB)
EFI: mem140: type=4, attr=0xf, range=[0x000000007e540000-0x000000007e544000) (0MB)
EFI: mem141: type=3, attr=0xf, range=[0x000000007e544000-0x000000007e545000) (0MB)
EFI: mem142: type=4, attr=0xf, range=[0x000000007e545000-0x000000007e546000) (0MB)
EFI: mem143: type=3, attr=0xf, range=[0x000000007e546000-0x000000007e549000) (0MB)
EFI: mem144: type=4, attr=0xf, range=[0x000000007e549000-0x000000007e5b6000) (0MB)
EFI: mem145: type=3, attr=0xf, range=[0x000000007e5b6000-0x000000007e5b9000) (0MB)
EFI: mem146: type=4, attr=0xf, range=[0x000000007e5b9000-0x000000007e61d000) (0MB)
EFI: mem147: type=3, attr=0xf, range=[0x000000007e61d000-0x000000007e63f000) (0MB)
EFI: mem148: type=4, attr=0xf, range=[0x000000007e63f000-0x000000007e645000) (0MB)
EFI: mem149: type=3, attr=0xf, range=[0x000000007e645000-0x000000007e653000) (0MB)
EFI: mem150: type=4, attr=0xf, range=[0x000000007e653000-0x000000007e69d000) (0MB)
EFI: mem151: type=3, attr=0xf, range=[0x000000007e69d000-0x000000007e6b9000) (0MB)
EFI: mem152: type=4, attr=0xf, range=[0x000000007e6b9000-0x000000007e6ba000) (0MB)
EFI: mem153: type=3, attr=0xf, range=[0x000000007e6ba000-0x000000007e6c1000) (0MB)
EFI: mem154: type=4, attr=0xf, range=[0x000000007e6c1000-0x000000007e6c5000) (0MB)
EFI: mem155: type=3, attr=0xf, range=[0x000000007e6c5000-0x000000007e6c6000) (0MB)
EFI: mem156: type=4, attr=0xf, range=[0x000000007e6c6000-0x000000007e6d0000) (0MB)
EFI: mem157: type=3, attr=0xf, range=[0x000000007e6d0000-0x000000007e6d8000) (0MB)
EFI: mem158: type=4, attr=0xf, range=[0x000000007e6d8000-0x000000007e6e0000) (0MB)
EFI: mem159: type=3, attr=0xf, range=[0x000000007e6e0000-0x000000007e6e6000) (0MB)
EFI: mem160: type=4, attr=0xf, range=[0x000000007e6e6000-0x000000007e6ec000) (0MB)
EFI: mem161: type=3, attr=0xf, range=[0x000000007e6ec000-0x000000007e6f2000) (0MB)
EFI: mem162: type=4, attr=0xf, range=[0x000000007e6f2000-0x000000007e6f4000) (0MB)
EFI: mem163: type=3, attr=0xf, range=[0x000000007e6f4000-0x000000007e707000) (0MB)
EFI: mem164: type=4, attr=0xf, range=[0x000000007e707000-0x000000007e70b000) (0MB)
EFI: mem165: type=3, attr=0xf, range=[0x000000007e70b000-0x000000007e70d000) (0MB)
EFI: mem166: type=4, attr=0xf, range=[0x000000007e70d000-0x000000007e70f000) (0MB)
EFI: mem167: type=3, attr=0xf, range=[0x000000007e70f000-0x000000007e713000) (0MB)
EFI: mem168: type=4, attr=0xf, range=[0x000000007e713000-0x000000007e714000) (0MB)
EFI: mem169: type=3, attr=0xf, range=[0x000000007e714000-0x000000007e715000) (0MB)
EFI: mem170: type=4, attr=0xf, range=[0x000000007e715000-0x000000007e716000) (0MB)
EFI: mem171: type=3, attr=0xf, range=[0x000000007e716000-0x000000007e717000) (0MB)
EFI: mem172: type=4, attr=0xf, range=[0x000000007e717000-0x000000007e719000) (0MB)
EFI: mem173: type=3, attr=0xf, range=[0x000000007e719000-0x000000007e71b000) (0MB)
EFI: mem174: type=4, attr=0xf, range=[0x000000007e71b000-0x000000007e71e000) (0MB)
EFI: mem175: type=3, attr=0xf, range=[0x000000007e71e000-0x000000007e726000) (0MB)
EFI: mem176: type=4, attr=0xf, range=[0x000000007e726000-0x000000007e727000) (0MB)
EFI: mem177: type=3, attr=0xf, range=[0x000000007e727000-0x000000007e728000) (0MB)
EFI: mem178: type=4, attr=0xf, range=[0x000000007e728000-0x000000007e7b4000) (0MB)
EFI: mem179: type=3, attr=0xf, range=[0x000000007e7b4000-0x000000007e7b6000) (0MB)
EFI: mem180: type=4, attr=0xf, range=[0x000000007e7b6000-0x000000007f5ef000) (14MB)
EFI: mem181: type=6, attr=0x800000000000000f, range=[0x000000007f5ef000-0x000000007f5f1000) (0MB)
EFI: mem182: type=6, attr=0x800000000000000f, range=[0x000000007f5f1000-0x000000007f601000) (0MB)
EFI: mem183: type=5, attr=0x800000000000000f, range=[0x000000007f601000-0x000000007f60d000) (0MB)
EFI: mem184: type=6, attr=0x800000000000000f, range=[0x000000007f60d000-0x000000007f63f000) (0MB)
EFI: mem185: type=5, attr=0x800000000000000f, range=[0x000000007f63f000-0x000000007f68f000) (0MB)
EFI: mem186: type=0, attr=0xf, range=[0x000000007f68f000-0x000000007f6bd000) (0MB)
EFI: mem187: type=0, attr=0xf, range=[0x000000007f6bd000-0x000000007f6df000) (0MB)
EFI: mem188: type=10, attr=0xf, range=[0x000000007f6df000-0x000000007f6ec000) (0MB)
EFI: mem189: type=10, attr=0xf, range=[0x000000007f6ec000-0x000000007f7df000) (0MB)
EFI: mem190: type=9, attr=0xf, range=[0x000000007f7df000-0x000000007f7e5000) (0MB)
EFI: mem191: type=9, attr=0xf, range=[0x000000007f7e5000-0x000000007f7ff000) (0MB)
EFI: mem192: type=4, attr=0xf, range=[0x000000007f7ff000-0x000000007f800000) (0MB)
EFI: mem193: type=11, attr=0x8000000000000001, range=[0x00000000ff800000-0x0000000100000000) (8MB)
EFI: mem194: type=7, attr=0xf, range=[0x0000000100000000-0x0000004880000000) (292864MB)
EFI: mem195: type=11, attr=0x8000000000000001, range=[0x0000000080000000-0x0000000090000000) (256MB)
EFI: mem196: type=11, attr=0x8000000000000000, range=[0x00000000fed1c000-0x00000000fed20000) (0MB)
DMI 2.5 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x4880000 max_arch_pfn = 0x400000000
MTRR default type: uncachable
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-FFFFF uncachable
MTRR variable ranges enabled:
  0 base 0000000000 mask FF80000000 write-back
  1 base 0100000000 mask FF00000000 write-back
  2 base 0200000000 mask FE00000000 write-back
  3 base 0400000000 mask FC00000000 write-back
  4 base 0800000000 mask F800000000 write-back
  5 base 1000000000 mask F000000000 write-back
  6 base 2000000000 mask E000000000 write-back
  7 base 4000000000 mask C000000000 write-back
  8 disabled
  9 disabled
x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
e820 update range: 0000000080000000 - 0000000100000000 (usable) ==> (reserved)
last_pfn = 0x7f800 max_arch_pfn = 0x400000000
initial memory mapped : 0 - 20000000
Using GB pages for direct mapping
init_memory_mapping: 0000000000000000-000000007f800000
 0000000000 - 0040000000 page 1G
 0040000000 - 007f800000 page 2M
kernel direct mapping tables up to 7f800000 @ 8000-a000
init_memory_mapping: 0000000100000000-0000004880000000
 0100000000 - 4880000000 page 1G
kernel direct mapping tables up to 4880000000 @ 9000-a000
RAMDISK: 78102000 - 78e458be
ACPI: RSDP 000000007f7fe014 00024 (v02 IBM   )
ACPI: XSDT 000000007f7fe120 00094 (v01 IBM    THURLEY  00000000      01000013)
ACPI: FACP 000000007f7fb000 000F4 (v04 IBM    THURLEY  00000000 IBM  01000013)
ACPI Warning: Invalid length for Pm1aControlBlock: 32, using default 16 (20090903/tbfadt-607)
ACPI: DSDT 000000007f7f8000 0224E (v01 IBM    THURLEY  00000003 IBM  01000013)
ACPI: FACS 000000007f6ec000 00040
ACPI: TCPA 000000007f7fd000 00064 (v00                 00000000      00000000)
ACPI: APIC 000000007f7f7000 0011E (v02 IBM    THURLEY  00000000 IBM  01000013)
ACPI: MCFG 000000007f7f6000 0003C (v01 IBM    THURLEY  00000001 IBM  01000013)
ACPI: SLIC 000000007f7f5000 00176 (v01 IBM    THURLEY  00000000 IBM  01000013)
ACPI: HPET 000000007f7f4000 00038 (v01 IBM    THURLEY  00000001 IBM  01000013)
ACPI: SRAT 000000007f7f3000 00228 (v02 IBM    THURLEY  00000001 IBM  01000013)
ACPI: SLIT 000000007f7f2000 00030 (v01 IBM    THURLEY  00000000 IBM  01000013)
ACPI: SSDT 000000007f7f1000 00183 (v02 IBM    CPUSCOPE 00004000 IBM  01000013)
ACPI: SSDT 000000007f7f0000 00699 (v02 IBM    CPUWYVRN 00004000 IBM  01000013)
ACPI: SSDT 000000007f7e8000 0704C (v02 IBM    PSTATEPM 00004000 IBM  01000013)
ACPI: SSDT 000000007f7e7000 00ECA (v02 IBM    CPUCSTAT 00004000 IBM  01000013)
ACPI: ERST 000000007f7e6000 00230 (v01 IBM    THURLEY  00000001 IBM  01000013)
ACPI: DMAR 000000007f7e5000 000C8 (v01 IBM    THURLEY  00000001 IBM  01000013)
ACPI: Local APIC address 0xfee00000
SRAT: PXM 0 -> APIC 0 -> Node 0
SRAT: PXM 0 -> APIC 2 -> Node 0
SRAT: PXM 0 -> APIC 4 -> Node 0
SRAT: PXM 0 -> APIC 16 -> Node 0
SRAT: PXM 0 -> APIC 18 -> Node 0
SRAT: PXM 0 -> APIC 20 -> Node 0
SRAT: PXM 1 -> APIC 32 -> Node 1
SRAT: PXM 1 -> APIC 34 -> Node 1
SRAT: PXM 1 -> APIC 36 -> Node 1
SRAT: PXM 1 -> APIC 48 -> Node 1
SRAT: PXM 1 -> APIC 50 -> Node 1
SRAT: PXM 1 -> APIC 52 -> Node 1
SRAT: PXM 0 -> APIC 1 -> Node 0
SRAT: PXM 0 -> APIC 3 -> Node 0
SRAT: PXM 0 -> APIC 5 -> Node 0
SRAT: PXM 0 -> APIC 17 -> Node 0
SRAT: PXM 0 -> APIC 19 -> Node 0
SRAT: PXM 0 -> APIC 21 -> Node 0
SRAT: PXM 1 -> APIC 33 -> Node 1
SRAT: PXM 1 -> APIC 35 -> Node 1
SRAT: PXM 1 -> APIC 37 -> Node 1
SRAT: PXM 1 -> APIC 49 -> Node 1
SRAT: PXM 1 -> APIC 51 -> Node 1
SRAT: PXM 1 -> APIC 53 -> Node 1
SRAT: Node 0 PXM 0 0-80000000
SRAT: Node 0 PXM 0 100000000-2480000000
SRAT: Node 1 PXM 1 2480000000-4880000000
NUMA: Allocated memnodemap from 9000 - 9140
NUMA: Using 31 for the hash shift.
Bootmem setup node 0 0000000000000000-0000002480000000
  NODE_DATA [0000000000009140 - 000000000003d13f]
  bootmap [0000000000100000 -  000000000058ffff] pages 490
(10 early reservations) ==> bootmem [0000000000 - 2480000000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001ca0ff8]    TEXT DATA BSS ==> [0001000000 - 0001ca0ff8]
  #3 [0078102000 - 0078e458be]          RAMDISK ==> [0078102000 - 0078e458be]
  #4 [000009d000 - 0000100000]    BIOS reserved ==> [000009d000 - 0000100000]
  #5 [007b952000 - 007b9544f0]       EFI memmap ==> [007b952000 - 007b9544f0]
  #6 [0001ca1000 - 0001ca157c]              BRK ==> [0001ca1000 - 0001ca157c]
  #7 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
  #8 [0000001000 - 0000001030]        ACPI SLIT ==> [0000001000 - 0000001030]
  #9 [0000009000 - 0000009140]       MEMNODEMAP ==> [0000009000 - 0000009140]
Bootmem setup node 1 0000002480000000-0000004880000000
  NODE_DATA [0000002480000000 - 0000002480033fff]
  bootmap [0000002480034000 -  00000024804b3fff] pages 480
(10 early reservations) ==> bootmem [2480000000 - 4880000000]
  #0 [0000000000 - 0000001000]   BIOS data page
  #1 [0000006000 - 0000008000]       TRAMPOLINE
  #2 [0001000000 - 0001ca0ff8]    TEXT DATA BSS
  #3 [0078102000 - 0078e458be]          RAMDISK
  #4 [000009d000 - 0000100000]    BIOS reserved
  #5 [007b952000 - 007b9544f0]       EFI memmap
  #6 [0001ca1000 - 0001ca157c]              BRK
  #7 [0000008000 - 0000009000]          PGTABLE
  #8 [0000001000 - 0000001030]        ACPI SLIT
  #9 [0000009000 - 0000009140]       MEMNODEMAP
Reserving 129MB of memory at 32MB for crashkernel (System RAM: 296960MB)
 [ffffea0000000000-ffffea003fffffff] PMD -> [ffff880028600000-ffff8800669fffff] on node 0
 [ffffea0040000000-ffffea00513fffff] PMD -> [ffff880066c00000-ffff880077ffffff] on node 0
 [ffffea0051400000-ffffea0053bfffff] PMD -> [ffff880079000000-ffff88007b7fffff] on node 0
 [ffffea0053c00000-ffffea00551fffff] PMD -> [ffff88007ba00000-ffff88007cffffff] on node 0
 [ffffea0055200000-ffffea0056ffffff] PMD -> [ffff88007d600000-ffff88007f3fffff] on node 0
 [ffffea0057000000-ffffea007fbfffff] PMD -> [ffff880100000000-ffff880128bfffff] on node 0
 [ffffea007fc00000-ffffea007fffffff] PMD -> [ffff882480600000-ffff8824809fffff] on node 1
 [ffffea0080000000-ffffea00bfffffff] PMD -> [ffff882480c00000-ffff8824c0bfffff] on node 1
 [ffffea00c0000000-ffffea00fdbfffff] PMD -> [ffff8824c0e00000-ffff8824fe9fffff] on node 1
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x04880000
Movable zone start PFN for each node
early_node_map[10] active PFN ranges
    0: 0x00000001 -> 0x0000006c
    0: 0x0000006d -> 0x0000009f
    0: 0x00000100 -> 0x0007d0e9
    0: 0x0007d114 -> 0x0007d13f
    0: 0x0007d16a -> 0x0007d21d
    0: 0x0007d261 -> 0x0007d3e8
    0: 0x0007d498 -> 0x0007f5ef
    0: 0x0007f7ff -> 0x0007f800
    0: 0x00100000 -> 0x02480000
    1: 0x02480000 -> 0x04880000
On node 0 totalpages: 37745731
  DMA zone: 56 pages used for memmap
  DMA zone: 103 pages reserved
  DMA zone: 3838 pages, LIFO batch:0
  DMA32 zone: 14280 pages used for memmap
  DMA32 zone: 503006 pages, LIFO batch:31
  Normal zone: 508928 pages used for memmap
  Normal zone: 36715520 pages, LIFO batch:31
On node 1 totalpages: 37748736
  Normal zone: 516096 pages used for memmap
  Normal zone: 37232640 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0x588
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x02] enabled)
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x04] enabled)
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x10] enabled)
ACPI: LAPIC (acpi_id[0x04] lapic_id[0x12] enabled)
ACPI: LAPIC (acpi_id[0x05] lapic_id[0x14] enabled)
ACPI: LAPIC (acpi_id[0x06] lapic_id[0x20] enabled)
ACPI: LAPIC (acpi_id[0x07] lapic_id[0x22] enabled)
ACPI: LAPIC (acpi_id[0x08] lapic_id[0x24] enabled)
ACPI: LAPIC (acpi_id[0x09] lapic_id[0x30] enabled)
ACPI: LAPIC (acpi_id[0x0a] lapic_id[0x32] enabled)
ACPI: LAPIC (acpi_id[0x0b] lapic_id[0x34] enabled)
ACPI: LAPIC (acpi_id[0x0c] lapic_id[0x01] enabled)
ACPI: LAPIC (acpi_id[0x0d] lapic_id[0x03] enabled)
ACPI: LAPIC (acpi_id[0x0e] lapic_id[0x05] enabled)
ACPI: LAPIC (acpi_id[0x0f] lapic_id[0x11] enabled)
ACPI: LAPIC (acpi_id[0x10] lapic_id[0x13] enabled)
ACPI: LAPIC (acpi_id[0x11] lapic_id[0x15] enabled)
ACPI: LAPIC (acpi_id[0x12] lapic_id[0x21] enabled)
ACPI: LAPIC (acpi_id[0x13] lapic_id[0x23] enabled)
ACPI: LAPIC (acpi_id[0x14] lapic_id[0x25] enabled)
ACPI: LAPIC (acpi_id[0x15] lapic_id[0x31] enabled)
ACPI: LAPIC (acpi_id[0x16] lapic_id[0x33] enabled)
ACPI: LAPIC (acpi_id[0x17] lapic_id[0x35] enabled)
ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
ACPI: IOAPIC (id[0x08] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 8, version 32, address 0xfec00000, GSI 0-23
ACPI: IOAPIC (id[0x09] address[0xfec80000] gsi_base[24])
IOAPIC[1]: apic_id 9, version 32, address 0xfec80000, GSI 24-47
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Using ACPI (MADT) for SMP configuration information
ACPI: HPET id: 0x8086a301 base: 0xfed00000
SMP: Allowing 24 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 48
PM: Registered nosave memory: 000000000006c000 - 000000000006d000
PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
PM: Registered nosave memory: 000000007d0e9000 - 000000007d114000
PM: Registered nosave memory: 000000007d13f000 - 000000007d16a000
PM: Registered nosave memory: 000000007d21d000 - 000000007d261000
PM: Registered nosave memory: 000000007d3e8000 - 000000007d498000
PM: Registered nosave memory: 000000007f5ef000 - 000000007f6df000
PM: Registered nosave memory: 000000007f6df000 - 000000007f7df000
PM: Registered nosave memory: 000000007f7df000 - 000000007f7ff000
PM: Registered nosave memory: 000000007f800000 - 0000000080000000
PM: Registered nosave memory: 0000000080000000 - 0000000090000000
PM: Registered nosave memory: 0000000090000000 - 00000000fed1c000
PM: Registered nosave memory: 00000000fed1c000 - 00000000fed20000
PM: Registered nosave memory: 00000000fed20000 - 00000000ff800000
PM: Registered nosave memory: 00000000ff800000 - 0000000100000000
Allocating PCI resources starting at 90000000 (gap: 90000000:6ed1c000)
Booting paravirtualized kernel on bare hardware
NR_CPUS:4096 nr_cpumask_bits:24 nr_cpu_ids:24 nr_node_ids:2
PERCPU: Embedded 31 pages/cpu @ffff880028200000 s95064 r8192 d23720 u131072
pcpu-alloc: s95064 r8192 d23720 u131072 alloc=1*2097152
pcpu-alloc: [0] 00 01 02 03 04 05 12 13 14 15 16 17 -- -- -- -- 
pcpu-alloc: [1] 06 07 08 09 10 11 18 19 20 21 22 23 -- -- -- -- 
Built 2 zonelists in Zone order, mobility grouping on.  Total pages: 74455004
Policy zone: Normal
Kernel command line: ro root=/dev/mapper/vg_mako18-lv_root rd_LVM_LV=vg_mako18/lv_root rd_LVM_LV=vg_mako18/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us elevator=deadline intel_iommu=on iommu=pt clocksource=tsc idle=halt crashkernel=129M@0M
Intel-IOMMU: enabled
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
Memory: 297686328k/304087040k available (4939k kernel code, 2109172k absent, 4291540k reserved, 3932k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:1008
Extended CMOS year: 2000
Console: colour dummy device 80x25
console [tty0] enabled
allocated 3019898880 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
hpet clockevent registered
HPET: 4 timers in total, 0 timers will be used for per-cpu timer
Fast TSC calibration using PIT
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped), value calculated using timer frequency.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Dentry cache hash table entries: 67108864 (order: 17, 536870912 bytes)
Inode-cache hash table entries: 33554432 (order: 16, 268435456 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
mce: CPU supports 9 MCE banks
CPU0: Thermal monitoring enabled (TM1)
Performance Events: PEBS fmt1+, Westmere events, Intel PMU driver.
... version:                3
... bit width:              48
... generic registers:      4
... value mask:             0000ffffffffffff
... max period:             000000007fffffff
... fixed-purpose events:   3
... event mask:             000000070000000f
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20287 entries in 80 pages
DMAR: Host address width 40
DMAR: DRHD base: 0x000000fe710000 flags: 0x1
IOMMU fe710000: ver 1:0 cap c90780106f0462 ecap f020fe
DMAR: RMRR base: 0x0000007d410000 end: 0x0000007d48ffff
DMAR: ATSR flags: 0x0
IOAPIC id 9 under DRHD base 0xfe710000
IOAPIC id 8 under DRHD base 0xfe710000
Enabled Interrupt-remapping
Setting APIC routing to physical flat
  alloc irq_desc for 48 on node 0
  alloc kstat_irqs on node 0
alloc irq_2_iommu on node 0
alloc irq_2_iommu on node 0
alloc irq_2_iommu on node 0
alloc irq_2_iommu on node 0
alloc irq_2_iommu on node 0
alloc irq_2_iommu on node 0
alloc irq_2_iommu on node 0
alloc irq_2_iommu on node 0
alloc irq_2_iommu on node 0
alloc irq_2_iommu on node 0
alloc irq_2_iommu on node 0
alloc irq_2_iommu on node 0
alloc irq_2_iommu on node 0
alloc irq_2_iommu on node 0
alloc irq_2_iommu on node 0
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel(R) Xeon(R) CPU           X5690  @ 3.47GHz stepping 02
Booting Node   0, Processors  #1 #2 #3 #4 #5 Ok.
Booting Node   1, Processors  #6 #7 #8 #9 #10 #11 Ok.
Booting Node   0, Processors  #12 #13 #14 #15 #16 #17 Ok.
Booting Node   1, Processors  #18 #19 #20 #21 #22 #23 Ok.
Brought up 24 CPUs
Total of 24 processors activated (166395.91 BogoMIPS).
Testing NMI watchdog ... OK.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
ACPI: bus type pci registered
PCI: MCFG configuration 0: base 80000000 segment 0 buses 0 - 255
PCI: MCFG area at 80000000 reserved in E820
PCI: Using MMCONFIG at 80000000 - 8fffffff
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S1 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
pci 0000:00:00.0: PME# disabled
pci 0000:00:01.0: PME# supported from D0 D3hot D3cold
pci 0000:00:01.0: PME# disabled
pci 0000:00:03.0: PME# supported from D0 D3hot D3cold
pci 0000:00:03.0: PME# disabled
pci 0000:00:07.0: PME# supported from D0 D3hot D3cold
pci 0000:00:07.0: PME# disabled
pci 0000:00:08.0: PME# supported from D0 D3hot D3cold
pci 0000:00:08.0: PME# disabled
pci 0000:00:09.0: PME# supported from D0 D3hot D3cold
pci 0000:00:09.0: PME# disabled
pci 0000:00:16.0: reg 10 64bit mmio: [0x95b00000-0x95b03fff]
pci 0000:00:16.1: reg 10 64bit mmio: [0x95b04000-0x95b07fff]
pci 0000:00:16.2: reg 10 64bit mmio: [0x95b08000-0x95b0bfff]
pci 0000:00:16.3: reg 10 64bit mmio: [0x95b0c000-0x95b0ffff]
pci 0000:00:16.4: reg 10 64bit mmio: [0x95b10000-0x95b13fff]
pci 0000:00:16.5: reg 10 64bit mmio: [0x95b14000-0x95b17fff]
pci 0000:00:16.6: reg 10 64bit mmio: [0x95b18000-0x95b1bfff]
pci 0000:00:16.7: reg 10 64bit mmio: [0x95b1c000-0x95b1ffff]
pci 0000:00:1a.0: reg 20 io port: [0x4080-0x409f]
pci 0000:00:1a.7: reg 10 32bit mmio: [0x95b21000-0x95b213ff]
pci 0000:00:1a.7: PME# supported from D0 D3hot D3cold
pci 0000:00:1a.7: PME# disabled
pci 0000:00:1c.0: PME# supported from D0 D3hot D3cold
pci 0000:00:1c.0: PME# disabled
pci 0000:00:1c.4: PME# supported from D0 D3hot D3cold
pci 0000:00:1c.4: PME# disabled
pci 0000:00:1d.0: reg 20 io port: [0x4060-0x407f]
pci 0000:00:1d.1: reg 20 io port: [0x4040-0x405f]
pci 0000:00:1d.2: reg 20 io port: [0x4020-0x403f]
pci 0000:00:1d.7: reg 10 32bit mmio: [0x95b20000-0x95b203ff]
pci 0000:00:1d.7: PME# supported from D0 D3hot D3cold
pci 0000:00:1d.7: PME# disabled
pci 0000:00:1f.3: reg 10 64bit mmio: [0x95b22000-0x95b220ff]
pci 0000:00:1f.3: reg 20 io port: [0x4000-0x401f]
pci 0000:0b:00.0: reg 10 io port: [0x3000-0x30ff]
pci 0000:0b:00.0: reg 14 64bit mmio: [0x95a10000-0x95a13fff]
pci 0000:0b:00.0: reg 1c 64bit mmio: [0x95a00000-0x95a0ffff]
pci 0000:0b:00.0: reg 30 32bit mmio pref: [0xffe00000-0xffffffff]
pci 0000:0b:00.0: supports D1 D2
pci 0000:0b:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
pci 0000:00:01.0: bridge io port: [0x3000-0x3fff]
pci 0000:00:01.0: bridge 32bit mmio: [0x95a00000-0x95afffff]
pci 0000:15:00.0: reg 10 64bit mmio pref: [0xfa800000-0xfaffffff]
pci 0000:15:00.0: reg 18 io port: [0x2020-0x203f]
pci 0000:15:00.0: reg 20 64bit mmio pref: [0xfb004000-0xfb007fff]
pci 0000:15:00.0: reg 30 32bit mmio pref: [0xff800000-0xffffffff]
pci 0000:15:00.0: PME# supported from D0 D3hot D3cold
pci 0000:15:00.0: PME# disabled
pci 0000:15:00.0: reg 184 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.0: reg 190 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.1: reg 10 64bit mmio pref: [0xfa000000-0xfa7fffff]
pci 0000:15:00.1: reg 18 io port: [0x2000-0x201f]
pci 0000:15:00.1: reg 20 64bit mmio pref: [0xfb000000-0xfb003fff]
pci 0000:15:00.1: reg 30 32bit mmio pref: [0xff800000-0xffffffff]
pci 0000:15:00.1: PME# supported from D0 D3hot D3cold
pci 0000:15:00.1: PME# disabled
pci 0000:15:00.1: reg 184 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.1: reg 190 64bit mmio: [0x000000-0x003fff]
pci 0000:00:03.0: bridge io port: [0x2000-0x2fff]
pci 0000:00:03.0: bridge 64bit mmio pref: [0xfa000000-0xfb0fffff]
pci 0000:10:00.0: reg 10 64bit mmio pref: [0xf8000000-0xf9ffffff]
pci 0000:10:00.0: reg 30 32bit mmio pref: [0xfffff800-0xffffffff]
pci 0000:10:00.0: PME# supported from D0 D3hot D3cold
pci 0000:10:00.0: PME# disabled
pci 0000:10:00.1: reg 10 64bit mmio: [0x92000000-0x93ffffff]
pci 0000:10:00.1: PME# supported from D0 D3hot D3cold
pci 0000:10:00.1: PME# disabled
pci 0000:00:07.0: bridge 32bit mmio: [0x92000000-0x93ffffff]
pci 0000:00:07.0: bridge 64bit mmio pref: [0xf8000000-0xf9ffffff]
pci 0000:1f:00.0: reg 10 io port: [0x1200-0x12ff]
pci 0000:1f:00.0: reg 14 64bit mmio: [0x95900000-0x95903fff]
pci 0000:1f:00.0: reg 30 32bit mmio pref: [0xfffc0000-0xffffffff]
pci 0000:1f:00.1: reg 10 io port: [0x1000-0x10ff]
pci 0000:1f:00.1: reg 14 64bit mmio: [0x95904000-0x95907fff]
pci 0000:1f:00.1: reg 30 32bit mmio pref: [0xfffc0000-0xffffffff]
pci 0000:00:09.0: bridge io port: [0x1000-0x1fff]
pci 0000:00:09.0: bridge 32bit mmio: [0x95900000-0x959fffff]
pci 0000:06:00.0: PME# supported from D0 D3hot D3cold
pci 0000:06:00.0: PME# disabled
pci 0000:00:1c.4: bridge 32bit mmio: [0x95000000-0x958fffff]
pci 0000:00:1c.4: bridge 64bit mmio pref: [0x94000000-0x94ffffff]
pci 0000:07:00.0: reg 10 32bit mmio pref: [0x94000000-0x94ffffff]
pci 0000:07:00.0: reg 14 32bit mmio: [0x95800000-0x95803fff]
pci 0000:07:00.0: reg 18 32bit mmio: [0x95000000-0x957fffff]
pci 0000:06:00.0: bridge 32bit mmio: [0x95000000-0x958fffff]
pci 0000:06:00.0: bridge 32bit mmio pref: [0x94000000-0x94ffffff]
pci 0000:00:1e.0: transparent bridge
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Firmware did not grant requested _OSC control
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
vgaarb: device added: PCI:0000:07:00.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0
hpet0: 4 comparators, 64-bit 14.318180 MHz counter
Switching to clocksource tsc
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp 00:0a: mem resource (0xffc00000-0xffffffff) overlaps 0000:15:00.0 BAR 6 (0xff800000-0xffffffff), disabling
pnp 00:0a: mem resource (0xffc00000-0xffffffff) overlaps 0000:15:00.1 BAR 6 (0xff800000-0xffffffff), disabling
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
system 00:05: iomem range 0xfed00000-0xfed003ff has been reserved
system 00:06: ioport range 0x400-0x43f has been reserved
system 00:06: ioport range 0x440-0x45f has been reserved
system 00:06: ioport range 0x460-0x47f has been reserved
system 00:06: ioport range 0x580-0x5ff has been reserved
system 00:06: ioport range 0x5e0-0x5ff has been reserved
system 00:06: ioport range 0xcf9-0xcf9 could not be reserved
system 00:0a: iomem range 0xfed1c000-0xfed1ffff has been reserved
system 00:0a: iomem range 0xfec00000-0xfecfffff could not be reserved
system 00:0a: iomem range 0xfee00000-0xfeefffff has been reserved
system 00:0a: iomem range 0x80000000-0x8fffffff has been reserved
system 00:0a: iomem range 0xfeb00000-0xfebfffff has been reserved
system 00:0a: iomem range 0xfe710000-0xfe711fff has been reserved
system 00:0a: iomem range 0xfe800000-0xfe9fffff has been reserved
system 00:0a: iomem range 0xfc000000-0xfcffffff has been reserved
system 00:0a: iomem range 0xfea00000-0xfeafffff has been reserved
system 00:0b: ioport range 0xca0-0xca1 has been reserved
system 00:0b: ioport range 0xca4-0xca9 has been reserved
system 00:0b: ioport range 0xcaa-0xcab has been reserved
system 00:0b: ioport range 0xcac-0xccb has been reserved
system 00:0c: ioport range 0xca2-0xca2 has been reserved
system 00:0c: ioport range 0xca3-0xca3 has been reserved
pci 0000:0b:00.0: BAR 6: no parent found for of device [0xffe00000-0xffffffff]
pci 0000:15:00.0: BAR 6: no parent found for of device [0xff800000-0xffffffff]
pci 0000:15:00.1: BAR 6: no parent found for of device [0xff800000-0xffffffff]
pci 0000:10:00.0: BAR 6: no parent found for of device [0xfffff800-0xffffffff]
pci 0000:1f:00.0: BAR 6: no parent found for of device [0xfffc0000-0xffffffff]
pci 0000:1f:00.1: BAR 6: no parent found for of device [0xfffc0000-0xffffffff]
pci 0000:15:00.0: reg 184 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.0: reg 190 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.1: reg 184 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.1: reg 190 64bit mmio: [0x000000-0x003fff]
pci 0000:00:01.0: PCI bridge to [bus 0b-0f]
pci 0000:00:01.0: PCI bridge, secondary bus 0000:0b
pci 0000:00:01.0:   bridge window [0x3000-0x3fff]
pci 0000:00:01.0:   bridge window [0x95a00000-0x95afffff]
pci 0000:00:01.0:   bridge window [0x91800000-0x919fffff]
pci 0000:15:00.0: reg 184 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.0: reg 190 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.0: reg 184 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.0: reg 184 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.1: reg 184 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.0: reg 184 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.0: reg 190 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.1: reg 190 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.0: reg 184 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.0: reg 190 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.1: reg 184 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.0: reg 184 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.0: reg 184 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.0: reg 190 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.0: reg 190 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.1: reg 184 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.1: reg 184 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.1: reg 190 64bit mmio: [0x000000-0x003fff]
pci 0000:15:00.1: reg 190 64bit mmio: [0x000000-0x003fff]
pci 0000:00:03.0: PCI bridge to [bus 15-19]
pci 0000:00:03.0: PCI bridge, secondary bus 0000:15
pci 0000:00:03.0:   bridge window [0x2000-0x2fff]
pci 0000:00:03.0:   bridge window [0x90000000-0x917fffff]
pci 0000:00:03.0:   bridge window [0xfa000000-0xfb0fffff]
pci 0000:10:00.0: BAR 6: can't allocate mem resource [0x000000-0x0007ff]
pci 0000:00:07.0: PCI bridge to [bus 10-14]
pci 0000:00:07.0: PCI bridge, secondary bus 0000:10
pci 0000:00:07.0:   bridge window [io  disabled]
pci 0000:00:07.0:   bridge window [0x92000000-0x93ffffff]
pci 0000:00:07.0:   bridge window [0xf8000000-0xf9ffffff]
pci 0000:00:08.0: PCI bridge to [bus 1a-1e]
pci 0000:00:08.0: PCI bridge, secondary bus 0000:1a
pci 0000:00:08.0:   bridge window [io  disabled]
pci 0000:00:08.0:   bridge window [mem disabled]
pci 0000:00:08.0:   bridge window [mem pref disabled]
pci 0000:00:09.0: PCI bridge to [bus 1f-23]
pci 0000:00:09.0: PCI bridge, secondary bus 0000:1f
pci 0000:00:09.0:   bridge window [0x1000-0x1fff]
pci 0000:00:09.0:   bridge window [0x95900000-0x959fffff]
pci 0000:00:09.0:   bridge window [0x91a00000-0x91afffff]
pci 0000:00:1c.0: PCI bridge to [bus 01-05]
pci 0000:00:1c.0: PCI bridge, secondary bus 0000:01
pci 0000:00:1c.0:   bridge window [io  disabled]
pci 0000:00:1c.0:   bridge window [mem disabled]
pci 0000:00:1c.0:   bridge window [mem pref disabled]
pci 0000:06:00.0: PCI bridge to [bus 07-07]
pci 0000:06:00.0: PCI bridge, secondary bus 0000:07
pci 0000:06:00.0:   bridge window [io  disabled]
pci 0000:06:00.0:   bridge window [0x95000000-0x958fffff]
pci 0000:06:00.0:   bridge window [0x94000000-0x94ffffff]
pci 0000:00:1c.4: PCI bridge to [bus 06-0a]
pci 0000:00:1c.4: PCI bridge, secondary bus 0000:06
pci 0000:00:1c.4:   bridge window [io  disabled]
pci 0000:00:1c.4:   bridge window [0x95000000-0x958fffff]
pci 0000:00:1c.4:   bridge window [0x94000000-0x94ffffff]
pci 0000:00:1e.0: PCI bridge to [bus 24-28]
pci 0000:00:1e.0: PCI bridge, secondary bus 0000:24
pci 0000:00:1e.0:   bridge window [io  disabled]
pci 0000:00:1e.0:   bridge window [mem disabled]
pci 0000:00:1e.0:   bridge window [mem pref disabled]
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
pci 0000:00:01.0: PCI INT A -> GSI 28 (level, low) -> IRQ 28
pci 0000:00:01.0: setting latency timer to 64
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
pci 0000:00:03.0: PCI INT A -> GSI 24 (level, low) -> IRQ 24
pci 0000:00:03.0: setting latency timer to 64
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
pci 0000:00:07.0: PCI INT A -> GSI 30 (level, low) -> IRQ 30
pci 0000:00:07.0: setting latency timer to 64
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
pci 0000:00:08.0: PCI INT A -> GSI 31 (level, low) -> IRQ 31
pci 0000:00:08.0: setting latency timer to 64
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
pci 0000:00:09.0: PCI INT A -> GSI 32 (level, low) -> IRQ 32
pci 0000:00:09.0: setting latency timer to 64
  alloc irq_desc for 20 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
pci 0000:00:1c.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20
pci 0000:00:1c.0: setting latency timer to 64
pci 0000:00:1c.4: PCI INT A -> GSI 20 (level, low) -> IRQ 20
pci 0000:00:1c.4: setting latency timer to 64
pci 0000:06:00.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20
pci 0000:06:00.0: setting latency timer to 64
pci 0000:00:1e.0: setting latency timer to 64
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
pci_bus 0000:0b: resource 0 io:  [0x3000-0x3fff]
pci_bus 0000:0b: resource 1 mem: [0x95a00000-0x95afffff]
pci_bus 0000:0b: resource 2 pref mem [0x91800000-0x919fffff]
pci_bus 0000:15: resource 0 io:  [0x2000-0x2fff]
pci_bus 0000:15: resource 1 mem: [0x90000000-0x917fffff]
pci_bus 0000:15: resource 2 pref mem [0xfa000000-0xfb0fffff]
pci_bus 0000:10: resource 1 mem: [0x92000000-0x93ffffff]
pci_bus 0000:10: resource 2 pref mem [0xf8000000-0xf9ffffff]
pci_bus 0000:1f: resource 0 io:  [0x1000-0x1fff]
pci_bus 0000:1f: resource 1 mem: [0x95900000-0x959fffff]
pci_bus 0000:1f: resource 2 pref mem [0x91a00000-0x91afffff]
pci_bus 0000:06: resource 1 mem: [0x95000000-0x958fffff]
pci_bus 0000:06: resource 2 pref mem [0x94000000-0x94ffffff]
pci_bus 0000:07: resource 1 mem: [0x95000000-0x958fffff]
pci_bus 0000:07: resource 2 pref mem [0x94000000-0x94ffffff]
pci_bus 0000:24: resource 3 io:  [0x00-0xffff]
pci_bus 0000:24: resource 4 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 524288 (order: 10, 4194304 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:07:00.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13582k freed
IOMMU 0xfe710000: using Queued invalidation
IOMMU: hardware identity mapping for device 0000:00:00.0
IOMMU: hardware identity mapping for device 0000:00:01.0
IOMMU: hardware identity mapping for device 0000:00:03.0
IOMMU: hardware identity mapping for device 0000:00:07.0
IOMMU: hardware identity mapping for device 0000:00:08.0
IOMMU: hardware identity mapping for device 0000:00:09.0
IOMMU: hardware identity mapping for device 0000:00:10.0
IOMMU: hardware identity mapping for device 0000:00:10.1
IOMMU: hardware identity mapping for device 0000:00:11.0
IOMMU: hardware identity mapping for device 0000:00:11.1
IOMMU: hardware identity mapping for device 0000:00:14.0
IOMMU: hardware identity mapping for device 0000:00:14.1
IOMMU: hardware identity mapping for device 0000:00:14.2
IOMMU: hardware identity mapping for device 0000:00:14.3
IOMMU: hardware identity mapping for device 0000:00:15.0
IOMMU: hardware identity mapping for device 0000:00:16.0
IOMMU: hardware identity mapping for device 0000:00:16.1
IOMMU: hardware identity mapping for device 0000:00:16.2
IOMMU: hardware identity mapping for device 0000:00:16.3
IOMMU: hardware identity mapping for device 0000:00:16.4
IOMMU: hardware identity mapping for device 0000:00:16.5
IOMMU: hardware identity mapping for device 0000:00:16.6
IOMMU: hardware identity mapping for device 0000:00:16.7
IOMMU: hardware identity mapping for device 0000:00:1a.0
IOMMU: hardware identity mapping for device 0000:00:1a.7
IOMMU: hardware identity mapping for device 0000:00:1c.0
IOMMU: hardware identity mapping for device 0000:00:1c.4
IOMMU: hardware identity mapping for device 0000:00:1d.0
IOMMU: hardware identity mapping for device 0000:00:1d.1
IOMMU: hardware identity mapping for device 0000:00:1d.2
IOMMU: hardware identity mapping for device 0000:00:1d.7
IOMMU: hardware identity mapping for device 0000:00:1f.0
IOMMU: hardware identity mapping for device 0000:00:1f.3
IOMMU: hardware identity mapping for device 0000:0b:00.0
IOMMU: hardware identity mapping for device 0000:15:00.0
IOMMU: hardware identity mapping for device 0000:15:00.1
IOMMU: hardware identity mapping for device 0000:10:00.0
IOMMU: hardware identity mapping for device 0000:10:00.1
IOMMU: hardware identity mapping for device 0000:1f:00.0
IOMMU: hardware identity mapping for device 0000:1f:00.1
IOMMU: Setting RMRR:
Ignoring identity map for HW passthrough device 0000:00:1a.0 [0x7d410000 - 0x7d490000]
Ignoring identity map for HW passthrough device 0000:00:1a.7 [0x7d410000 - 0x7d490000]
Ignoring identity map for HW passthrough device 0000:00:1d.0 [0x7d410000 - 0x7d490000]
Ignoring identity map for HW passthrough device 0000:00:1d.1 [0x7d410000 - 0x7d490000]
Ignoring identity map for HW passthrough device 0000:00:1d.2 [0x7d410000 - 0x7d490000]
Ignoring identity map for HW passthrough device 0000:00:1d.7 [0x7d410000 - 0x7d490000]
IOMMU: Prepare 0-16MiB unity mapping for LPC
Ignoring identity map for HW passthrough device 0000:00:1f.0 [0x0 - 0x1000000]
PCI-DMA: Intel(R) Virtualization Technology for Directed I/O
audit: initializing netlink socket (disabled)
type=2000 audit(1296919291.158:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 32768
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 889B5A124E469B96
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
  alloc irq_desc for 49 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
pcieport 0000:00:01.0: irq 49 for MSI/MSI-X
pcieport 0000:00:01.0: setting latency timer to 64
32bit 0000:00:01.0 uses non-identity mapping
  alloc irq_desc for 50 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
pcieport 0000:00:03.0: irq 50 for MSI/MSI-X
pcieport 0000:00:03.0: setting latency timer to 64
32bit 0000:00:03.0 uses non-identity mapping
  alloc irq_desc for 51 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
pcieport 0000:00:07.0: irq 51 for MSI/MSI-X
pcieport 0000:00:07.0: setting latency timer to 64
32bit 0000:00:07.0 uses non-identity mapping
  alloc irq_desc for 52 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
pcieport 0000:00:08.0: irq 52 for MSI/MSI-X
pcieport 0000:00:08.0: setting latency timer to 64
32bit 0000:00:08.0 uses non-identity mapping
  alloc irq_desc for 53 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
pcieport 0000:00:09.0: irq 53 for MSI/MSI-X
pcieport 0000:00:09.0: setting latency timer to 64
32bit 0000:00:09.0 uses non-identity mapping
  alloc irq_desc for 54 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
pcieport 0000:00:1c.0: irq 54 for MSI/MSI-X
pcieport 0000:00:1c.0: setting latency timer to 64
32bit 0000:00:1c.0 uses non-identity mapping
  alloc irq_desc for 55 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
pcieport 0000:00:1c.4: irq 55 for MSI/MSI-X
pcieport 0000:00:1c.4: setting latency timer to 64
32bit 0000:00:1c.4 uses non-identity mapping
Firmware did not grant requested _OSC control
aer 0000:00:01.0:pcie02: AER service couldn't init device: no _OSC support
Firmware did not grant requested _OSC control
aer 0000:00:03.0:pcie02: AER service couldn't init device: no _OSC support
Firmware did not grant requested _OSC control
aer 0000:00:07.0:pcie02: AER service couldn't init device: no _OSC support
Firmware did not grant requested _OSC control
aer 0000:00:08.0:pcie02: AER service couldn't init device: no _OSC support
Firmware did not grant requested _OSC control
aer 0000:00:09.0:pcie02: AER service couldn't init device: no _OSC support
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
pci-stub: invalid id string ""
efifb: probing for efifb
efifb: framebuffer at 0x94000000, mapped to 0xffffc90040f80000, using 10240k, total 16384k
efifb: mode is 1280x1024x32, linelength=5120, pages=1
efifb: scrolling: redraw
efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
Console: switching to colour frame buffer device 160x64
fb0: EFI VGA frame buffer device
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
ACPI: processor limited to max C-state 1
Monitor-Mwait will be used to enter C-1 state
Monitor-Mwait will be used to enter C-2 state
Monitor-Mwait will be used to enter C-3 state
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
processor LNXCPU:02: registered as cooling_device2
processor LNXCPU:03: registered as cooling_device3
processor LNXCPU:04: registered as cooling_device4
processor LNXCPU:05: registered as cooling_device5
processor LNXCPU:06: registered as cooling_device6
processor LNXCPU:07: registered as cooling_device7
processor LNXCPU:08: registered as cooling_device8
processor LNXCPU:09: registered as cooling_device9
processor LNXCPU:0a: registered as cooling_device10
processor LNXCPU:0b: registered as cooling_device11
processor LNXCPU:0c: registered as cooling_device12
processor LNXCPU:0d: registered as cooling_device13
processor LNXCPU:0e: registered as cooling_device14
processor LNXCPU:0f: registered as cooling_device15
processor LNXCPU:10: registered as cooling_device16
processor LNXCPU:11: registered as cooling_device17
processor LNXCPU:12: registered as cooling_device18
processor LNXCPU:13: registered as cooling_device19
processor LNXCPU:14: registered as cooling_device20
processor LNXCPU:15: registered as cooling_device21
processor LNXCPU:16: registered as cooling_device22
processor LNXCPU:17: registered as cooling_device23
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
tpm_tis 00:09: 1.2 TPM (device-id 0xFE, rev-id 70)
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:08: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  alloc irq_desc for 16 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ehci_hcd 0000:00:1a.7: PCI INT C -> GSI 16 (level, low) -> IRQ 16
ehci_hcd 0000:00:1a.7: setting latency timer to 64
ehci_hcd 0000:00:1a.7: EHCI Host Controller
ehci_hcd 0000:00:1a.7: new USB bus registered, assigned bus number 1
32bit 0000:00:1a.7 uses non-identity mapping
ehci_hcd 0000:00:1a.7: debug port 1
ehci_hcd 0000:00:1a.7: cache line size of 64 is not supported
ehci_hcd 0000:00:1a.7: irq 16, io mem 0x95b21000
ehci_hcd 0000:00:1a.7: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.32-71.17.1.el6.x86_64 ehci_hcd
usb usb1: SerialNumber: 0000:00:1a.7
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
ehci_hcd 0000:00:1d.7: PCI INT A -> GSI 20 (level, low) -> IRQ 20
ehci_hcd 0000:00:1d.7: setting latency timer to 64
ehci_hcd 0000:00:1d.7: EHCI Host Controller
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 2
32bit 0000:00:1d.7 uses non-identity mapping
ehci_hcd 0000:00:1d.7: debug port 1
ehci_hcd 0000:00:1d.7: cache line size of 64 is not supported
ehci_hcd 0000:00:1d.7: irq 20, io mem 0x95b20000
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: EHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.32-71.17.1.el6.x86_64 ehci_hcd
usb usb2: SerialNumber: 0000:00:1d.7
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 6 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
  alloc irq_desc for 22 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
uhci_hcd 0000:00:1a.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
uhci_hcd 0000:00:1a.0: setting latency timer to 64
uhci_hcd 0000:00:1a.0: UHCI Host Controller
uhci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1a.0: irq 22, io base 0x00004080
32bit 0000:00:1a.0 uses non-identity mapping
usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb3: Product: UHCI Host Controller
usb usb3: Manufacturer: Linux 2.6.32-71.17.1.el6.x86_64 uhci_hcd
usb usb3: SerialNumber: 0000:00:1a.0
usb 2-3: new high speed USB device using ehci_hcd and address 3
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20
uhci_hcd 0000:00:1d.0: setting latency timer to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
usb 2-3: New USB device found, idVendor=04b4, idProduct=6560
usb 2-3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 2-3: configuration #1 chosen from 1 choice
hub 2-3:1.0: USB hub found
hub 2-3:1.0: 2 ports detected
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:1d.0: irq 20, io base 0x00004060
32bit 0000:00:1d.0 uses non-identity mapping
usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb4: Product: UHCI Host Controller
usb 2-3.1: new high speed USB device using ehci_hcd and address 4
usb usb4: Manufacturer: Linux 2.6.32-71.17.1.el6.x86_64 uhci_hcd
usb usb4: SerialNumber: 0000:00:1d.0
usb usb4: configuration #1 chosen from 1 choice
usb 2-3.1: New USB device found, idVendor=04b4, idProduct=6560
usb 2-3.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 2-3.1: configuration #1 chosen from 1 choice
hub 2-3.1:1.0: USB hub found
hub 2-3.1:1.0: 2 ports detected
usb 3-2: new full speed USB device using uhci_hcd and address 2
usb 3-2: New USB device found, idVendor=04b3, idProduct=4010
usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 3-2: Product: RNDIS/CDC ETHER
usb 3-2: Manufacturer: IBM
usb 3-2: configuration #1 chosen from 2 choices
usb 2-3.1.2: new high speed USB device using ehci_hcd and address 5
usb 2-3.1.2: New USB device found, idVendor=04b4, idProduct=6560
usb 2-3.1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 2-3.1.2: configuration #1 chosen from 1 choice
hub 2-3.1.2:1.0: USB hub found
hub 2-3.1.2:1.0: 4 ports detected
usb 2-3.1.2.3: new high speed USB device using ehci_hcd and address 6
usb 2-3.1.2.3: New USB device found, idVendor=0928, idProduct=0007
usb 2-3.1.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-3.1.2.3: Product: Mass Storage Plus
usb 2-3.1.2.3: Manufacturer: OEM
usb 2-3.1.2.3: SerialNumber: MKR91NB1901         
usb 2-3.1.2.3: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.1: PCI INT B -> GSI 20 (level, low) -> IRQ 20
uhci_hcd 0000:00:1d.1: setting latency timer to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:1d.1: irq 20, io base 0x00004040
32bit 0000:00:1d.1 uses non-identity mapping
usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb5: Product: UHCI Host Controller
usb usb5: Manufacturer: Linux 2.6.32-71.17.1.el6.x86_64 uhci_hcd
usb usb5: SerialNumber: 0000:00:1d.1
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
  alloc irq_desc for 21 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
uhci_hcd 0000:00:1d.2: PCI INT C -> GSI 21 (level, low) -> IRQ 21
uhci_hcd 0000:00:1d.2: setting latency timer to 64
uhci_hcd 0000:00:1d.2: UHCI Host Controller
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 6
uhci_hcd 0000:00:1d.2: irq 21, io base 0x00004020
32bit 0000:00:1d.2 uses non-identity mapping
usb usb6: New USB device found, idVendor=1d6b, idProduct=0001
usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb6: Product: UHCI Host Controller
usb usb6: Manufacturer: Linux 2.6.32-71.17.1.el6.x86_64 uhci_hcd
usb usb6: SerialNumber: 0000:00:1d.2
usb usb6: configuration #1 chosen from 1 choice
hub 6-0:1.0: USB hub found
hub 6-0:1.0: 2 ports detected
PNP: No PS/2 controller found. Probing ports directly.
usb 4-2: new full speed USB device using uhci_hcd and address 2
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
rtc_cmos 00:02: RTC can wake from S4
rtc_cmos 00:02: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
cpuidle: using governor ladder
cpuidle: using governor menu
EFI Variables Facility v0.08 2004-May-17
usb 4-2: New USB device found, idVendor=04b3, idProduct=4002
usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 4-2: Product: IBM MM2
usb 4-2: Manufacturer: IBM
usb 4-2: SerialNumber: 0000003012214
usb 4-2: configuration #1 chosen from 1 choice
usbcore: registered new interface driver hiddev
input: OEM Mass Storage Plus as /devices/pci0000:00/0000:00:1d.7/usb2/2-3/2-3.1/2-3.1.2/2-3.1.2.3/2-3.1.2.3:1.1/input/input2
generic-usb 0003:0928:0007.0001: input,hidraw0: USB HID v1.11 Device [OEM Mass Storage Plus] on usb-0000:00:1d.7-3.1.2.3/input1
input: IBM IBM MM2 as /devices/pci0000:00/0000:00:1d.0/usb4/4-2/4-2:1.0/input/input3
generic-usb 0003:04B3:4002.0002: input,hidraw1: USB HID v1.10 Keyboard [IBM IBM MM2] on usb-0000:00:1d.0-2/input0
input: IBM IBM MM2 as /devices/pci0000:00/0000:00:1d.0/usb4/4-2/4-2:1.1/input/input4
generic-usb 0003:04B3:4002.0003: input,hidraw2: USB HID v1.10 Mouse [IBM IBM MM2] on usb-0000:00:1d.0-2/input1
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
rtc_cmos 00:02: setting system clock to 2011-02-05 15:21:40 UTC (1296919300)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7184k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
Fusion MPT base driver 3.04.16
Copyright (c) 1999-2008 LSI Corporation
Fusion MPT SAS Host driver 3.04.16
mptsas 0000:0b:00.0: PCI INT A -> GSI 28 (level, low) -> IRQ 28
mptbase: ioc0: Initiating bringup
ioc0: LSISAS1064E: Capabilities={Initiator}
mptsas 0000:0b:00.0: setting latency timer to 64
scsi0 : ioc0: LSISAS1064E, FwRev=011e0000h, Ports=1, MaxQ=277, IRQ=28
mptsas: ioc0: attaching sata device: fw_channel 0, fw_id 12, phy 0, sas_addr 0x3b4d4b61cec8bca4
scsi 0:0:0:0: Direct-Access     ATA      STEC    M8PSB1   0335 PQ: 0 ANSI: 5
mptsas: ioc0: attaching sata device: fw_channel 0, fw_id 11, phy 1, sas_addr 0x3b4d4b61cfd6cdb7
scsi 0:0:1:0: Direct-Access     ATA      STEC    M8PSB1   0335 PQ: 0 ANSI: 5
mptsas: ioc0: attaching raid volume, channel 1, id 10
scsi 0:1:10:0: Direct-Access     LSILOGIC Logical Volume   3000 PQ: 0 ANSI: 2
QLogic Fibre Channel HBA Driver: 8.03.01.05.06.0-k8
qla2xxx 0000:1f:00.0: PCI INT A -> GSI 32 (level, low) -> IRQ 32
qla2xxx 0000:1f:00.0: Found an ISP2532, irq 32, iobase 0xffffc90040f36000
  alloc irq_desc for 56 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
qla2xxx 0000:1f:00.0: irq 56 for MSI/MSI-X
  alloc irq_desc for 57 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
qla2xxx 0000:1f:00.0: irq 57 for MSI/MSI-X
qla2xxx 0000:1f:00.0: Configuring PCI space...
qla2xxx 0000:1f:00.0: setting latency timer to 64
qla2xxx 0000:1f:00.0: Configure NVRAM parameters...
qla2xxx 0000:1f:00.0: ZIO mode 6 enabled; timer delay (1000 us).
qla2xxx 0000:1f:00.0: Verifying loaded RISC code...
qla2xxx 0000:1f:00.0: firmware: requesting ql2500_fw.bin
qla2xxx 0000:1f:00.0: FW: Loading via request-firmware...
qla2xxx 0000:1f:00.0: Allocated (64 KB) for FCE...
qla2xxx 0000:1f:00.0: Allocated (64 KB) for EFT...
qla2xxx 0000:1f:00.0: Allocated (1350 KB) for firmware dump...
qla2xxx 0000:1f:00.0: Unable to read FCP priority data.
scsi1 : qla2xxx
qla2xxx 0000:1f:00.0: 
 QLogic Fibre Channel HBA Driver: 8.03.01.05.06.0-k8
  QLogic QMI2582 - QLogic 8Gb Fibre Channel Expansion Card (CIOv) for IBM BladeCenter
  ISP2532: PCIe (5.0GT/s x4) @ 0000:1f:00.0 hdma+, host#=1, fw=5.03.02 (d5)
  alloc irq_desc for 42 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
qla2xxx 0000:1f:00.1: PCI INT B -> GSI 42 (level, low) -> IRQ 42
qla2xxx 0000:1f:00.1: Found an ISP2532, irq 42, iobase 0xffffc90040f22000
  alloc irq_desc for 58 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
qla2xxx 0000:1f:00.1: irq 58 for MSI/MSI-X
  alloc irq_desc for 59 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
qla2xxx 0000:1f:00.1: irq 59 for MSI/MSI-X
qla2xxx 0000:1f:00.1: Configuring PCI space...
qla2xxx 0000:1f:00.1: setting latency timer to 64
qla2xxx 0000:1f:00.1: Configure NVRAM parameters...
qla2xxx 0000:1f:00.1: Verifying loaded RISC code...
qla2xxx 0000:1f:00.1: FW: Loading via request-firmware...
qla2xxx 0000:1f:00.1: Allocated (64 KB) for FCE...
qla2xxx 0000:1f:00.1: Allocated (64 KB) for EFT...
qla2xxx 0000:1f:00.1: Allocated (1350 KB) for firmware dump...
qla2xxx 0000:1f:00.1: Unable to read FCP priority data.
scsi2 : qla2xxx
qla2xxx 0000:1f:00.1: 
 QLogic Fibre Channel HBA Driver: 8.03.01.05.06.0-k8
  QLogic QMI2582 - QLogic 8Gb Fibre Channel Expansion Card (CIOv) for IBM BladeCenter
  ISP2532: PCIe (5.0GT/s x4) @ 0000:1f:00.1 hdma+, host#=2, fw=5.03.02 (d5)
qla2xxx 0000:1f:00.0: LOOP UP detected (8 Gbps).
Initializing USB Mass Storage driver...
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
sd 0:1:10:0: [sda] 95703040 512-byte logical blocks: (48.9 GB/45.6 GiB)
sd 0:1:10:0: [sda] Write Protect is off
sd 0:1:10:0: [sda] Mode Sense: 03 00 00 08
sd 0:1:10:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3
sd 0:1:10:0: [sda] Attached SCSI disk
scsi: waiting for bus probes to complete ...
scsi: waiting for bus probes to complete ...
qla2xxx 0000:1f:00.1: LOOP UP detected (8 Gbps).
scsi 1:0:0:1: Direct-Access     IBM      1815      FAStT  0914 PQ: 0 ANSI: 5
dracut: Scanning devices sda3  for LVM logical volumes vg_mako18/lv_root vg_mako18/lv_swap 
scsi 1:0:0:2: Direct-Access     IBM      1815      FAStT  0914 PQ: 0 ANSI: 5
sd 1:0:0:1: [sdb] 996147200 512-byte logical blocks: (510 GB/475 GiB)
scsi 1:0:0:3: Direct-Access     IBM      1815      FAStT  0914 PQ: 0 ANSI: 5
sd 1:0:0:2: [sdc] 996147200 512-byte logical blocks: (510 GB/475 GiB)
sd 1:0:0:1: [sdb] Write Protect is off
sd 1:0:0:1: [sdb] Mode Sense: 77 00 10 08
sd 1:0:0:1: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 1:0:0:2: [sdc] Write Protect is off
sd 1:0:0:2: [sdc] Mode Sense: 77 00 10 08
sd 1:0:0:2: [sdc] Write cache: enabled, read cache: enabled, supports DPO and FUA
 sdb:
 sdc: unknown partition table
scsi 1:0:0:4: Direct-Access     IBM      1815      FAStT  0914 PQ: 0 ANSI: 5
sd 1:0:0:3: [sdd] 996273152 512-byte logical blocks: (510 GB/475 GiB)
dracut: inactive '/dev/vg_mako18/lv_root' [22.47 GiB] inherit
dracut: inactive '/dev/vg_mako18/lv_swap' [22.47 GiB] inherit
sd 1:0:0:3: [sdd] Write Protect is off
sd 1:0:0:3: [sdd] Mode Sense: 77 00 10 08
sd 1:0:0:1: [sdb] Attached SCSI disk
 unknown partition table
sd 1:0:0:3: [sdd] Write cache: enabled, read cache: enabled, supports DPO and FUA
scsi 1:0:0:5: Direct-Access     IBM      1815      FAStT  0914 PQ: 0 ANSI: 5
sd 1:0:0:4: [sde] 996273152 512-byte logical blocks: (510 GB/475 GiB)
sd 1:0:0:4: [sde] Write Protect is off
sd 1:0:0:4: [sde] Mode Sense: 77 00 10 08
 sdd:
sd 1:0:0:2: [sdc] Attached SCSI disk
sd 1:0:0:4: [sde] Write cache: enabled, read cache: enabled, supports DPO and FUA
 unknown partition table
scsi 1:0:0:6: Direct-Access     IBM      1815      FAStT  0914 PQ: 0 ANSI: 5
sd 1:0:0:5: [sdf] 996273152 512-byte logical blocks: (510 GB/475 GiB)
 sde:
sd 1:0:0:5: [sdf] Write Protect is off
sd 1:0:0:5: [sdf] Mode Sense: 77 00 10 08
sd 1:0:0:3: [sdd] Attached SCSI disk
sd 1:0:0:5: [sdf] Write cache: enabled, read cache: enabled, supports DPO and FUA
 unknown partition table
usb-storage: device scan complete
scsi 3:0:0:0: CD-ROM            HL-DT-ST DVDRAM GSA-T50N  RY05 PQ: 0 ANSI: 0
scsi 1:0:0:7: Direct-Access     IBM      1815      FAStT  0914 PQ: 0 ANSI: 5
sd 1:0:0:6: [sdg] 996273152 512-byte logical blocks: (510 GB/475 GiB)
 sdf:
sd 1:0:0:6: [sdg] Write Protect is off
sd 1:0:0:6: [sdg] Mode Sense: 77 00 10 08
sd 1:0:0:4: [sde] Attached SCSI disk
sd 1:0:0:6: [sdg] Write cache: enabled, read cache: enabled, supports DPO and FUA
 unknown partition table
scsi 1:0:0:8: Direct-Access     IBM      1815      FAStT  0914 PQ: 0 ANSI: 5
sd 1:0:0:7: [sdh] 996273152 512-byte logical blocks: (510 GB/475 GiB)
 sdg: unknown partition table
sd 1:0:0:7: [sdh] Write Protect is off
sd 1:0:0:7: [sdh] Mode Sense: 77 00 10 08
sd 1:0:0:5: [sdf] Attached SCSI disk
sd 1:0:0:8: [sdi] 996273152 512-byte logical blocks: (510 GB/475 GiB)
sd 1:0:0:7: [sdh] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 1:0:0:8: [sdi] Write Protect is off
sd 1:0:0:8: [sdi] Mode Sense: 77 00 10 08
sd 1:0:0:8: [sdi] Write cache: enabled, read cache: enabled, supports DPO and FUA
scsi 1:0:0:9: Direct-Access     IBM      1815      FAStT  0914 PQ: 0 ANSI: 5
scsi 1:0:0:10: Direct-Access     IBM      1815      FAStT  0914 PQ: 0 ANSI: 5
 sdh:
sd 1:0:0:9: [sdj] 996147200 512-byte logical blocks: (510 GB/475 GiB)
 sdi:
sd 1:0:0:6: [sdg] Attached SCSI disk
sd 1:0:0:9: [sdj] Write Protect is off
sd 1:0:0:9: [sdj] Mode Sense: 77 00 10 08
sd 1:0:0:9: [sdj] Write cache: enabled, read cache: enabled, supports DPO and FUA
 unknown partition table
 unknown partition table
scsi 1:0:0:11: Direct-Access     IBM      1815      FAStT  0914 PQ: 0 ANSI: 5
sd 1:0:0:10: [sdk] 996273152 512-byte logical blocks: (510 GB/475 GiB)
 sdj:
sd 1:0:0:10: [sdk] Write Protect is off
sd 1:0:0:10: [sdk] Mode Sense: 77 00 10 08
sd 1:0:0:8: [sdi] Attached SCSI disk
sd 1:0:0:7: [sdh] Attached SCSI disk
sd 1:0:0:10: [sdk] Write cache: enabled, read cache: enabled, supports DPO and FUA
 unknown partition table
scsi 1:0:0:12: Direct-Access     IBM      1815      FAStT  0914 PQ: 0 ANSI: 5
sd 1:0:0:11: [sdl] 996147200 512-byte logical blocks: (510 GB/475 GiB)
sd 1:0:0:11: [sdl] Write Protect is off
sd 1:0:0:11: [sdl] Mode Sense: 77 00 10 08
 sdk:
sd 1:0:0:9: [sdj] Attached SCSI disk
sd 1:0:0:11: [sdl] Write cache: enabled, read cache: enabled, supports DPO and FUA
 unknown partition table
 sdl:
scsi 1:0:0:13: Direct-Access     IBM      1815      FAStT  0914 PQ: 0 ANSI: 5
sd 1:0:0:12: [sdm] 996273029 512-byte logical blocks: (510 GB/475 GiB)
sd 1:0:0:12: [sdm] Write Protect is off
sd 1:0:0:12: [sdm] Mode Sense: 77 00 10 08
sd 1:0:0:10: [sdk] Attached SCSI disk
sd 1:0:0:12: [sdm] Write cache: enabled, read cache: enabled, supports DPO and FUA
 unknown partition table
scsi 1:0:0:14: Direct-Access     IBM      1815      FAStT  0914 PQ: 0 ANSI: 5
sd 1:0:0:13: [sdn] 996147200 512-byte logical blocks: (510 GB/475 GiB)
sd 1:0:0:13: [sdn] Write Protect is off
sd 1:0:0:13: [sdn] Mode Sense: 77 00 10 08
 sdm:
sd 1:0:0:11: [sdl] Attached SCSI disk
sd 1:0:0:13: [sdn] Write cache: enabled, read cache: enabled, supports DPO and FUA
 unknown partition table
sd 1:0:0:14: [sdo] 996147200 512-byte logical blocks: (510 GB/475 GiB)
 sdn:
scsi 1:0:0:21: Direct-Access     IBM      1815      FAStT  0914 PQ: 0 ANSI: 5
sd 1:0:0:12: [sdm] Attached SCSI disk
sd 1:0:0:21: [sdp] 4194304000 512-byte logical blocks: (2.14 TB/1.95 TiB)
sd 1:0:0:21: [sdp] Write Protect is off
sd 1:0:0:21: [sdp] Mode Sense: 77 00 10 08
 unknown partition table
sd 1:0:0:21: [sdp] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 1:0:0:14: [sdo] Write Protect is off
sd 1:0:0:13: [sdn] Attached SCSI disk
 sdp: unknown partition table
sd 1:0:0:14: [sdo] Mode Sense: 77 00 10 08
sd 1:0:0:14: [sdo] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 1:0:0:21: [sdp] Attached SCSI disk
 sdo: unknown partition table
sd 1:0:0:14: [sdo] Attached SCSI disk
sr0: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 3:0:0:0: Attached scsi CD-ROM sr0
EXT4-fs (dm-0): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/mapper/vg_mako18-lv_root
dracut: Loading SELinux policy
type=1404 audit(1296919324.338:2): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
SELinux: 2048 avtab hash slots, 199690 rules.
SELinux: 2048 avtab hash slots, 199690 rules.
SELinux:  9 users, 13 roles, 3323 types, 168 bools, 1 sens, 1024 cats
SELinux:  77 classes, 199690 rules
SELinux:  Completing initialization.
SELinux:  Setting up existing superblocks.
SELinux: initialized (dev dm-0, type ext4), uses xattr
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts
SELinux: initialized (dev securityfs, type securityfs), uses genfs_contexts
SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
SELinux: initialized (dev mqueue, type mqueue), uses transition SIDs
SELinux: initialized (dev hugetlbfs, type hugetlbfs), uses transition SIDs
SELinux: initialized (dev devpts, type devpts), uses transition SIDs
SELinux: initialized (dev inotifyfs, type inotifyfs), uses genfs_contexts
SELinux: initialized (dev anon_inodefs, type anon_inodefs), uses genfs_contexts
SELinux: initialized (dev pipefs, type pipefs), uses task SIDs
SELinux: initialized (dev debugfs, type debugfs), uses genfs_contexts
SELinux: initialized (dev sockfs, type sockfs), uses task SIDs
SELinux: initialized (dev devtmpfs, type devtmpfs), uses transition SIDs
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
SELinux: initialized (dev proc, type proc), uses genfs_contexts
SELinux: initialized (dev bdev, type bdev), uses genfs_contexts
SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
type=1403 audit(1296919324.686:3): policy loaded auid=4294967295 ses=4294967295
dracut: 
dracut: Switching root
readahead: starting
udev: starting version 147
dca service started, version 1.12.1
ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver - version 2.0.62.5-NAPI
Copyright (c) 1999-2010 Intel Corporation.
ixgbe 0000:15:00.0: PCI INT A -> GSI 24 (level, low) -> IRQ 24
ixgbe 0000:15:00.0: setting latency timer to 64
ixgbe: I/O Virtualization (IOV) set to 63
ixgbe: 0000:15:00.0: ixgbe_check_options: Flow Director hash filtering enabled
ixgbe: 0000:15:00.0: ixgbe_check_options: Flow Director allocated 64kB of packet buffer
ixgbe: 0000:15:00.0: ixgbe_check_options: ATR Tx Packet sample rate set to default of 20
  alloc irq_desc for 60 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ixgbe 0000:15:00.0: irq 60 for MSI/MSI-X
  alloc irq_desc for 61 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ixgbe 0000:15:00.0: irq 61 for MSI/MSI-X
  alloc irq_desc for 62 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ixgbe 0000:15:00.0: irq 62 for MSI/MSI-X
ixgbe: 0000:15:00.0: ixgbe_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
ixgbe: eth0: ixgbe_probe: No DCA provider found.  Please start ioatdma for DCA functionality.
ixgbe: eth0: ixgbe_probe: (PCI Express:5.0Gb/s:Width x8) 00:1b:21:65:0f:18
ixgbe: eth0: ixgbe_probe: MAC: 2, PHY: 1, PBA No: e46189-010
ixgbe: eth0: ixgbe_probe: IOV is enabled with 63 VFs
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 0 is enabled mac 5A:EB:73:B5:A4:B2
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 1 is enabled mac C2:89:D3:5F:CA:EA
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 2 is enabled mac 6A:6A:32:85:19:BA
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 3 is enabled mac F6:C7:EB:5A:97:86
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 4 is enabled mac BE:6F:14:E9:2B:31
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 5 is enabled mac E2:6A:B4:4F:52:A3
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 6 is enabled mac 12:67:03:B9:4A:F6
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 7 is enabled mac E2:BC:5B:02:0C:EA
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 8 is enabled mac 56:91:66:94:2F:B9
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 9 is enabled mac B2:EE:68:D7:72:FE
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 10 is enabled mac 6A:74:FC:31:4A:E6
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 11 is enabled mac 4A:87:D3:BA:60:36
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 12 is enabled mac 42:E1:08:67:FB:E8
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 13 is enabled mac 52:D6:23:BA:66:90
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 14 is enabled mac 7A:D3:02:FC:B7:F6
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 15 is enabled mac 0E:D6:45:C8:16:21
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 16 is enabled mac E2:30:C7:11:5B:6A
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 17 is enabled mac 56:C6:48:E1:2D:29
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 18 is enabled mac 7A:7C:90:04:C8:09
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 19 is enabled mac D2:09:41:55:AF:3F
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 20 is enabled mac 0E:70:80:AC:BE:62
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 21 is enabled mac 32:C8:79:55:7A:42
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 22 is enabled mac C6:BB:6B:AE:69:F0
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 23 is enabled mac B2:E2:F9:A2:B1:1B
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 24 is enabled mac 7A:AC:67:EC:0D:9B
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 25 is enabled mac 8E:61:A1:BD:52:44
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 26 is enabled mac DA:61:18:0C:44:88
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 27 is enabled mac 5E:3A:96:56:B9:26
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 28 is enabled mac 72:80:22:01:08:C8
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 29 is enabled mac 82:ED:60:0A:B4:42
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 30 is enabled mac F2:5E:83:76:32:C6
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 31 is enabled mac 9A:39:88:89:92:45
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 32 is enabled mac CE:ED:30:54:0B:32
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 33 is enabled mac 5A:E7:CA:48:F5:B6
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 34 is enabled mac 36:11:5C:EB:4D:B9
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 35 is enabled mac 0A:E2:37:00:14:0F
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 36 is enabled mac C6:0F:3E:1B:8A:3F
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 37 is enabled mac 12:19:91:48:53:5E
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 38 is enabled mac 7E:A2:99:F8:65:DD
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 39 is enabled mac D6:1C:B8:45:D2:7C
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 40 is enabled mac E2:72:23:94:78:10
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 41 is enabled mac 0A:68:7B:B1:B1:53
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 42 is enabled mac 9A:46:A7:A3:B7:BE
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 43 is enabled mac 82:0D:A6:C6:CE:2D
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 44 is enabled mac A6:67:DB:A8:1A:DC
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 45 is enabled mac 6E:1B:9E:68:A5:87
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 46 is enabled mac 8E:BB:8A:23:DF:7C
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 47 is enabled mac 4E:A9:AC:CA:5D:27
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 48 is enabled mac 9E:2B:1B:8C:C3:87
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 49 is enabled mac 52:E7:78:9A:21:A4
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 50 is enabled mac FE:97:1D:E8:96:9A
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 51 is enabled mac 26:AC:A6:11:A0:C4
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 52 is enabled mac EE:FC:67:90:15:BF
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 53 is enabled mac 86:AA:21:6F:08:F4
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 54 is enabled mac B6:A4:31:BA:B2:FB
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 55 is enabled mac AA:69:24:C9:E7:E5
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 56 is enabled mac 1E:12:2B:3E:4A:3C
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 57 is enabled mac 22:E6:3E:49:FB:11
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 58 is enabled mac 7E:79:47:BF:33:62
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 59 is enabled mac FE:61:69:26:4A:0E
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 60 is enabled mac 32:FD:C5:B3:B7:BB
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 61 is enabled mac 06:B9:3A:3D:BD:40
ixgbe: eth0: ixgbe_vf_configuration: IOV: VF 62 is enabled mac 0E:E8:13:7B:A7:FD
ixgbe: eth0: ixgbe_probe: Intel(R) 10 Gigabit Network Connection
  alloc irq_desc for 34 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ixgbe 0000:15:00.1: PCI INT B -> GSI 34 (level, low) -> IRQ 34
ixgbe 0000:15:00.1: setting latency timer to 64
ixgbe: I/O Virtualization (IOV) set to 63
ixgbe: 0000:15:00.1: ixgbe_check_options: Flow Director hash filtering enabled
ixgbe: 0000:15:00.1: ixgbe_check_options: Flow Director allocated 64kB of packet buffer
ixgbe: 0000:15:00.1: ixgbe_check_options: ATR Tx Packet sample rate set to default of 20
  alloc irq_desc for 63 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ixgbe 0000:15:00.1: irq 63 for MSI/MSI-X
  alloc irq_desc for 64 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ixgbe 0000:15:00.1: irq 64 for MSI/MSI-X
  alloc irq_desc for 65 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ixgbe 0000:15:00.1: irq 65 for MSI/MSI-X
ixgbe: 0000:15:00.1: ixgbe_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
ixgbe: eth1: ixgbe_probe: No DCA provider found.  Please start ioatdma for DCA functionality.
ixgbe: eth1: ixgbe_probe: (PCI Express:5.0Gb/s:Width x8) 00:1b:21:65:0f:19
ixgbe: eth1: ixgbe_probe: MAC: 2, PHY: 1, PBA No: e46189-010
ixgbe: eth1: ixgbe_probe: IOV is enabled with 63 VFs
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 0 is enabled mac 6E:C6:C6:9F:E4:06
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 1 is enabled mac CE:D1:C1:3C:54:86
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 2 is enabled mac 1A:BA:7D:D5:12:98
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 3 is enabled mac 86:95:08:50:BC:FB
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 4 is enabled mac 8E:C0:45:E9:EF:6A
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 5 is enabled mac AA:D6:2E:E7:3B:D7
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 6 is enabled mac 6E:AB:FC:FB:D3:67
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 7 is enabled mac 72:BA:1B:96:4B:97
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 8 is enabled mac D2:D5:73:AC:F8:AC
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 9 is enabled mac 76:51:59:E5:51:5A
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 10 is enabled mac 9E:82:80:A5:83:22
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 11 is enabled mac 72:A1:D2:DA:D3:12
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 12 is enabled mac 8A:DD:36:7A:F7:58
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 13 is enabled mac 1A:30:15:3D:CD:3E
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 14 is enabled mac AA:36:D4:25:7C:D6
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 15 is enabled mac 36:A7:2C:82:EB:5B
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 16 is enabled mac 3E:8D:9C:22:DA:0D
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 17 is enabled mac 1A:8B:66:22:14:D3
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 18 is enabled mac 56:0C:BB:4A:17:52
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 19 is enabled mac DE:48:F6:CB:96:C9
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 20 is enabled mac 32:58:7F:0E:83:DC
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 21 is enabled mac 26:61:02:3A:EE:0B
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 22 is enabled mac BA:27:48:17:CE:74
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 23 is enabled mac 46:2F:EB:6F:96:8D
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 24 is enabled mac D2:3B:3D:1F:77:45
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 25 is enabled mac 9E:56:57:0A:9E:F7
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 26 is enabled mac 76:E9:FC:25:62:DD
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 27 is enabled mac C6:28:8B:AE:B3:DB
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 28 is enabled mac CA:AF:F0:3B:B7:87
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 29 is enabled mac 4E:2B:A1:57:84:FC
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 30 is enabled mac B6:AC:04:CC:A4:CF
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 31 is enabled mac BA:E9:E0:38:B4:13
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 32 is enabled mac 06:76:75:87:78:B0
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 33 is enabled mac A2:16:BE:AD:E8:02
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 34 is enabled mac A6:EA:DE:30:22:AD
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 35 is enabled mac 76:D4:EE:F2:00:8C
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 36 is enabled mac DE:14:AC:47:40:22
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 37 is enabled mac B2:5D:0D:4A:F7:AE
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 38 is enabled mac BA:6E:F3:81:95:3B
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 39 is enabled mac CE:21:75:83:62:4A
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 40 is enabled mac AE:8A:E0:70:98:EE
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 41 is enabled mac BA:B1:A3:9A:4C:02
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 42 is enabled mac 76:BA:72:C6:17:7F
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 43 is enabled mac EE:E3:59:E7:38:5C
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 44 is enabled mac 76:96:31:E9:53:39
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 45 is enabled mac 0A:52:1C:CE:A8:B9
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 46 is enabled mac 82:56:A8:57:28:E5
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 47 is enabled mac F6:3C:49:F8:4F:DD
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 48 is enabled mac 7A:C0:C9:63:A6:44
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 49 is enabled mac B6:4C:25:FA:0C:5E
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 50 is enabled mac AE:77:48:CC:51:56
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 51 is enabled mac C2:FE:05:B9:B5:A5
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 52 is enabled mac FA:77:4B:63:6F:76
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 53 is enabled mac 3E:DA:52:62:31:C8
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 54 is enabled mac 9E:B4:E0:48:32:80
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 55 is enabled mac EA:3E:22:90:61:18
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 56 is enabled mac DE:2F:42:26:0C:A8
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 57 is enabled mac E6:0F:37:7D:60:7A
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 58 is enabled mac FE:9D:5F:97:AC:1F
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 59 is enabled mac 66:D2:81:D4:71:E3
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 60 is enabled mac 1E:9B:83:4F:2B:FA
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 61 is enabled mac FE:69:54:31:AB:4C
ixgbe: eth1: ixgbe_vf_configuration: IOV: VF 62 is enabled mac C6:A3:22:01:BD:86
ixgbe: eth1: ixgbe_probe: Intel(R) 10 Gigabit Network Connection
Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v2.0.8-j15 (Feb 15, 2010)
bnx2 0000:10:00.0: PCI INT A -> GSI 30 (level, low) -> IRQ 30
bnx2 0000:10:00.0: setting latency timer to 64
bnx2 0000:10:00.0: firmware: requesting bnx2/bnx2-mips-09-5.0.0.j15.fw
bnx2 0000:10:00.0: firmware: requesting bnx2/bnx2-rv2p-09-5.0.0.j10.fw
eth2: Broadcom NetXtreme II BCM5709 1000Base-SX (C0) PCI Express found at mem f8000000, IRQ 30, node addr 00:21:5e:da:48:64
  alloc irq_desc for 37 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
bnx2 0000:10:00.1: PCI INT B -> GSI 37 (level, low) -> IRQ 37
bnx2 0000:10:00.1: setting latency timer to 64
bnx2 0000:10:00.1: firmware: requesting bnx2/bnx2-mips-09-5.0.0.j15.fw
bnx2 0000:10:00.1: firmware: requesting bnx2/bnx2-rv2p-09-5.0.0.j10.fw
eth3: Broadcom NetXtreme II BCM5709 1000Base-SX (C0) PCI Express found at mem 92000000, IRQ 37, node addr 00:21:5e:da:48:66
scsi 0:0:0:0: Attached scsi generic sg0 type 0
scsi 0:0:1:0: Attached scsi generic sg1 type 0
sd 0:1:10:0: Attached scsi generic sg2 type 0
sd 1:0:0:1: Attached scsi generic sg3 type 0
sd 1:0:0:2: Attached scsi generic sg4 type 0
sd 1:0:0:3: Attached scsi generic sg5 type 0
sd 1:0:0:4: Attached scsi generic sg6 type 0
sd 1:0:0:5: Attached scsi generic sg7 type 0
sr 3:0:0:0: Attached scsi generic sg8 type 5
sd 1:0:0:6: Attached scsi generic sg9 type 0
sd 1:0:0:7: Attached scsi generic sg10 type 0
sd 1:0:0:8: Attached scsi generic sg11 type 0
sd 1:0:0:9: Attached scsi generic sg12 type 0
sd 1:0:0:10: Attached scsi generic sg13 type 0
sd 1:0:0:11: Attached scsi generic sg14 type 0
sd 1:0:0:12: Attached scsi generic sg15 type 0
sd 1:0:0:13: Attached scsi generic sg16 type 0
sd 1:0:0:14: Attached scsi generic sg17 type 0
sd 1:0:0:21: Attached scsi generic sg18 type 0
EDAC MC: Ver: 2.1.0 Jan 28 2011
PCI: Discovered peer bus ff
PCI: Discovered peer bus fe
EDAC MC0: Giving out device to 'i7core_edac.c' 'i7 core #0': DEV 0000:ff:03.0
EDAC PCI0: Giving out device to module 'i7core_edac' controller 'EDAC PCI controller': DEV '0000:ff:03.0' (POLLED)
EDAC MC1: Giving out device to 'i7core_edac.c' 'i7 core #1': DEV 0000:fe:03.0
EDAC PCI1: Giving out device to module 'i7core_edac' controller 'EDAC PCI controller': DEV '0000:fe:03.0' (POLLED)
EDAC i7core: Driver loaded.
32bit 0000:00:14.0 uses non-identity mapping
ioatdma: Intel(R) QuickData Technology Driver 4.00
ioatdma 0000:00:16.0: enabling device (0000 -> 0002)
ioatdma 0000:00:16.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ioatdma 0000:00:16.0: setting latency timer to 64
  alloc irq_desc for 66 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ioatdma 0000:00:16.0: irq 66 for MSI/MSI-X
ioatdma 0000:00:16.1: enabling device (0000 -> 0002)
  alloc irq_desc for 17 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ioatdma 0000:00:16.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
ioatdma 0000:00:16.1: setting latency timer to 64
  alloc irq_desc for 67 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ioatdma 0000:00:16.1: irq 67 for MSI/MSI-X
ioatdma 0000:00:16.2: enabling device (0000 -> 0002)
  alloc irq_desc for 18 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ioatdma 0000:00:16.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
ioatdma 0000:00:16.2: setting latency timer to 64
  alloc irq_desc for 68 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ioatdma 0000:00:16.2: irq 68 for MSI/MSI-X
ioatdma 0000:00:16.3: enabling device (0000 -> 0002)
  alloc irq_desc for 19 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ioatdma 0000:00:16.3: PCI INT D -> GSI 19 (level, low) -> IRQ 19
ioatdma 0000:00:16.3: setting latency timer to 64
  alloc irq_desc for 69 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ioatdma 0000:00:16.3: irq 69 for MSI/MSI-X
ioatdma 0000:00:16.4: enabling device (0000 -> 0002)
ioatdma 0000:00:16.4: PCI INT A -> GSI 16 (level, low) -> IRQ 16
ioatdma 0000:00:16.4: setting latency timer to 64
  alloc irq_desc for 70 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ioatdma 0000:00:16.4: irq 70 for MSI/MSI-X
ioatdma 0000:00:16.5: enabling device (0000 -> 0002)
ioatdma 0000:00:16.5: PCI INT B -> GSI 17 (level, low) -> IRQ 17
ioatdma 0000:00:16.5: setting latency timer to 64
  alloc irq_desc for 71 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ioatdma 0000:00:16.5: irq 71 for MSI/MSI-X
ioatdma 0000:00:16.6: enabling device (0000 -> 0002)
ioatdma 0000:00:16.6: PCI INT C -> GSI 18 (level, low) -> IRQ 18
ioatdma 0000:00:16.6: setting latency timer to 64
  alloc irq_desc for 72 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ioatdma 0000:00:16.6: irq 72 for MSI/MSI-X
ioatdma 0000:00:16.7: enabling device (0000 -> 0002)
ioatdma 0000:00:16.7: PCI INT D -> GSI 19 (level, low) -> IRQ 19
ioatdma 0000:00:16.7: setting latency timer to 64
  alloc irq_desc for 73 on node -1
  alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
ioatdma 0000:00:16.7: irq 73 for MSI/MSI-X
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
usb0: register 'cdc_ether' at usb-0000:00:1a.0-2, CDC Ethernet Device, 02:21:5e:da:c8:67
usbcore: registered new interface driver cdc_ether
iTCO_vendor_support: vendor-support=0
iTCO_wdt: Intel TCO WatchDog Timer Driver v1.05
iTCO_wdt: Found a ICH10 TCO device (Version=2, TCOBASE=0x05e0)
iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
i801_smbus 0000:00:1f.3: enabling device (0140 -> 0143)
i801_smbus 0000:00:1f.3: PCI INT B -> GSI 22 (level, low) -> IRQ 22
32bit 0000:00:1f.3 uses non-identity mapping
EXT4-fs (sda2): mounted filesystem with ordered data mode
SELinux: initialized (dev sda2, type ext4), uses xattr
SELinux: initialized (dev sda1, type vfat), uses genfs_contexts
Adding 23564280k swap on /dev/mapper/vg_mako18-lv_swap.  Priority:-1 extents:1 across:23564280k 
SELinux: initialized (dev binfmt_misc, type binfmt_misc), uses genfs_contexts
                                                                                                                                                                                                                                                                                                                Physical_Configuration/System_Under_Test/running-vms.txt                                            0000644 0000000 0000000 00000143274 11524350311 022671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   root     11692 14.0  0.7 2387252 2135084 ?     SNl  17:01  33:05 /usr/libexec/qemu-kvm -name tb3-mailt14 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt14/lvt14mail,if=virtio,boot=on,cache=none -drive file=/dev/tb3-maildata/lvt14mail-data,if=virtio,boot=off,cache=none -netdev tap,id=mailt14,ifname=mailt14,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=mailt14,mac=00:50:56:91:00:54 -pcidevice host=15:19.7 -m 2048 -vnc :6184 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13084,server,nowait -serial telnet::14084,server,nowait -daemonize
root     11725 13.9  0.7 2387252 2138924 ?     SNl  17:01  33:02 /usr/libexec/qemu-kvm -name tb3-mailt13 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt13/lvt13mail,if=virtio,boot=on,cache=none -drive file=/dev/tb3-maildata/lvt13mail-data,if=virtio,boot=off,cache=none -netdev tap,id=mailt13,ifname=mailt13,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=mailt13,mac=00:50:56:91:00:4E -pcidevice host=15:18.1 -m 2048 -vnc :6178 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13078,server,nowait -serial telnet::14078,server,nowait -daemonize
root     11758 13.8  0.7 2387252 2138160 ?     SNl  17:01  32:40 /usr/libexec/qemu-kvm -name tb3-mailt12 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt12/lvt12mail,if=virtio,boot=on,cache=none -drive file=/dev/tb3-maildata/lvt12mail-data,if=virtio,boot=off,cache=none -netdev tap,id=mailt12,ifname=mailt12,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=mailt12,mac=00:50:56:91:00:48 -pcidevice host=15:16.3 -m 2048 -vnc :6172 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13072,server,nowait -serial telnet::14072,server,nowait -daemonize
root     11791 13.9  0.7 2387252 2141432 ?     SNl  17:01  32:58 /usr/libexec/qemu-kvm -name tb3-mailt11 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt11/lvt11mail,if=virtio,boot=on,cache=none -drive file=/dev/tb3-maildata/lvt11mail-data,if=virtio,boot=off,cache=none -netdev tap,id=mailt11,ifname=mailt11,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=mailt11,mac=00:50:56:91:00:42 -pcidevice host=15:14.5 -m 2048 -vnc :6166 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13066,server,nowait -serial telnet::14066,server,nowait -daemonize
root     11824 13.8  0.7 2387252 2138024 ?     SNl  17:01  32:41 /usr/libexec/qemu-kvm -name tb3-mailt10 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt10/lvt10mail,if=virtio,boot=on,cache=none -drive file=/dev/tb3-maildata/lvt10mail-data,if=virtio,boot=off,cache=none -netdev tap,id=mailt10,ifname=mailt10,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=mailt10,mac=00:50:56:91:00:3C -pcidevice host=15:12.7 -m 2048 -vnc :6160 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13060,server,nowait -serial telnet::14060,server,nowait -daemonize
root     11857 14.0  0.7 2387252 2139472 ?     SNl  17:01  33:06 /usr/libexec/qemu-kvm -name tb3-mailt09 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt09/lvt09mail,if=virtio,boot=on,cache=none -drive file=/dev/tb3-maildata/lvt09mail-data,if=virtio,boot=off,cache=none -netdev tap,id=mailt09,ifname=mailt09,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=mailt09,mac=00:50:56:91:00:36 -pcidevice host=15:11.1 -m 2048 -vnc :6154 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13054,server,nowait -serial telnet::14054,server,nowait -daemonize
root     11890 13.8  0.7 2387252 2139476 ?     SNl  17:01  32:36 /usr/libexec/qemu-kvm -name tb3-mailt08 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt08/lvt08mail,if=virtio,boot=on,cache=none -drive file=/dev/tb3-maildata/lvt08mail-data,if=virtio,boot=off,cache=none -netdev tap,id=mailt08,ifname=mailt08,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=mailt08,mac=00:50:56:91:00:30 -pcidevice host=15:1d.2 -m 2048 -vnc :6148 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13048,server,nowait -serial telnet::14048,server,nowait -daemonize
root     11923 13.9  0.7 2387252 2141148 ?     SNl  17:01  32:52 /usr/libexec/qemu-kvm -name tb3-mailt07 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt07/lvt07mail,if=virtio,boot=on,cache=none -drive file=/dev/tb3-maildata/lvt07mail-data,if=virtio,boot=off,cache=none -netdev tap,id=mailt07,ifname=mailt07,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=mailt07,mac=00:50:56:91:00:2A -pcidevice host=15:1b.4 -m 2048 -vnc :6142 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13042,server,nowait -serial telnet::14042,server,nowait -daemonize
root     11956 13.7  0.7 2387252 2135952 ?     SNl  17:01  32:33 /usr/libexec/qemu-kvm -name tb3-mailt06 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt06/lvt06mail,if=virtio,boot=on,cache=none -drive file=/dev/tb3-maildata/lvt06mail-data,if=virtio,boot=off,cache=none -netdev tap,id=mailt06,ifname=mailt06,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=mailt06,mac=00:50:56:91:00:24 -pcidevice host=15:19.6 -m 2048 -vnc :6136 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13036,server,nowait -serial telnet::14036,server,nowait -daemonize
root     11989 14.0  0.7 2387252 2137024 ?     SNl  17:01  33:15 /usr/libexec/qemu-kvm -name tb3-mailt05 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt05/lvt05mail,if=virtio,boot=on,cache=none -drive file=/dev/tb3-maildata/lvt05mail-data,if=virtio,boot=off,cache=none -netdev tap,id=mailt05,ifname=mailt05,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=mailt05,mac=00:50:56:91:00:1E -pcidevice host=15:18.0 -m 2048 -vnc :6130 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13030,server,nowait -serial telnet::14030,server,nowait -daemonize
root     12022 13.7  0.7 2387252 2135276 ?     SNl  17:01  32:24 /usr/libexec/qemu-kvm -name tb3-mailt04 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt04/lvt04mail,if=virtio,boot=on,cache=none -drive file=/dev/tb3-maildata/lvt04mail-data,if=virtio,boot=off,cache=none -netdev tap,id=mailt04,ifname=mailt04,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=mailt04,mac=00:50:56:91:00:18 -pcidevice host=15:16.2 -m 2048 -vnc :6124 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13024,server,nowait -serial telnet::14024,server,nowait -daemonize
root     12055 14.0  0.7 2387252 2136876 ?     SNl  17:01  33:05 /usr/libexec/qemu-kvm -name tb3-mailt03 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt03/lvt03mail,if=virtio,boot=on,cache=none -drive file=/dev/tb3-maildata/lvt03mail-data,if=virtio,boot=off,cache=none -netdev tap,id=mailt03,ifname=mailt03,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=mailt03,mac=00:50:56:91:00:12 -pcidevice host=15:14.4 -m 2048 -vnc :6118 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13018,server,nowait -serial telnet::14018,server,nowait -daemonize
root     12089 13.9  0.7 2387252 2135744 ?     SNl  17:01  33:02 /usr/libexec/qemu-kvm -name tb3-mailt02 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt02/lvt02mail,if=virtio,boot=on,cache=none -drive file=/dev/tb3-maildata/lvt02mail-data,if=virtio,boot=off,cache=none -netdev tap,id=mailt02,ifname=mailt02,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=mailt02,mac=00:50:56:91:00:0C -pcidevice host=15:12.6 -m 2048 -vnc :6112 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13012,server,nowait -serial telnet::14012,server,nowait -daemonize
root     12123 14.0  0.7 2387252 2135812 ?     SNl  17:01  33:17 /usr/libexec/qemu-kvm -name tb3-mailt01 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt01/lvt01mail,if=virtio,boot=on,cache=none -drive file=/dev/tb3-maildata/lvt01mail-data,if=virtio,boot=off,cache=none -netdev tap,id=mailt01,ifname=mailt01,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=mailt01,mac=00:50:56:91:00:06 -pcidevice host=15:11.0 -m 2048 -vnc :6106 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13006,server,nowait -serial telnet::14006,server,nowait -daemonize
root     12158 34.7  0.8 2990072 2660652 ?     S<l  17:01  82:08 /usr/libexec/qemu-kvm -name tb3-appt14 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt14/lvt14app,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt14/lvt14app-data,if=virtio,boot=off,cache=none -netdev tap,id=appt14,ifname=appt14,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=appt14,mac=00:50:56:91:00:50 -pcidevice host=15:19.1 -m 2560 -vnc :6180 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13080,server,nowait -serial telnet::14080,server,nowait -daemonize
root     12239 34.6  0.8 2990072 2664688 ?     S<l  17:01  81:50 /usr/libexec/qemu-kvm -name tb3-appt13 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt13/lvt13app,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt13/lvt13app-data,if=virtio,boot=off,cache=none -netdev tap,id=appt13,ifname=appt13,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=appt13,mac=00:50:56:91:00:4A -pcidevice host=15:17.3 -m 2560 -vnc :6174 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13074,server,nowait -serial telnet::14074,server,nowait -daemonize
root     12315 34.3  0.8 2990072 2662860 ?     S<l  17:01  81:00 /usr/libexec/qemu-kvm -name tb3-appt12 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt12/lvt12app,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt12/lvt12app-data,if=virtio,boot=off,cache=none -netdev tap,id=appt12,ifname=appt12,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=appt12,mac=00:50:56:91:00:44 -pcidevice host=15:15.5 -m 2560 -vnc :6168 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13068,server,nowait -serial telnet::14068,server,nowait -daemonize
root     12390 34.8  0.8 2990072 2661532 ?     S<l  17:01  82:16 /usr/libexec/qemu-kvm -name tb3-appt11 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt11/lvt11app,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt11/lvt11app-data,if=virtio,boot=off,cache=none -netdev tap,id=appt11,ifname=appt11,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=appt11,mac=00:50:56:91:00:3E -pcidevice host=15:13.7 -m 2560 -vnc :6162 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13062,server,nowait -serial telnet::14062,server,nowait -daemonize
root     12458 33.7  0.8 2990072 2661860 ?     S<l  17:01  79:46 /usr/libexec/qemu-kvm -name tb3-appt10 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt10/lvt10app,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt10/lvt10app-data,if=virtio,boot=off,cache=none -netdev tap,id=appt10,ifname=appt10,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=appt10,mac=00:50:56:91:00:38 -pcidevice host=15:12.1 -m 2560 -vnc :6156 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13056,server,nowait -serial telnet::14056,server,nowait -daemonize
root     12549 34.8  0.8 2990072 2662560 ?     S<l  17:01  82:19 /usr/libexec/qemu-kvm -name tb3-appt09 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt09/lvt09app,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt09/lvt09app-data,if=virtio,boot=off,cache=none -netdev tap,id=appt09,ifname=appt09,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=appt09,mac=00:50:56:91:00:32 -pcidevice host=15:10.3 -m 2560 -vnc :6150 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13050,server,nowait -serial telnet::14050,server,nowait -daemonize
root     12653 33.6  0.8 2990072 2662212 ?     S<l  17:01  79:22 /usr/libexec/qemu-kvm -name tb3-appt08 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt08/lvt08app,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt08/lvt08app-data,if=virtio,boot=off,cache=none -netdev tap,id=appt08,ifname=appt08,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=appt08,mac=00:50:56:91:00:2C -pcidevice host=15:1c.4 -m 2560 -vnc :6144 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13044,server,nowait -serial telnet::14044,server,nowait -daemonize
root     12740 34.4  0.8 2990072 2662352 ?     S<l  17:01  81:25 /usr/libexec/qemu-kvm -name tb3-appt07 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt07/lvt07app,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt07/lvt07app-data,if=virtio,boot=off,cache=none -netdev tap,id=appt07,ifname=appt07,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=appt07,mac=00:50:56:91:00:26 -pcidevice host=15:1a.6 -m 2560 -vnc :6138 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13038,server,nowait -serial telnet::14038,server,nowait -daemonize
root     12838 34.6  0.8 2990072 2660672 ?     S<l  17:01  81:42 /usr/libexec/qemu-kvm -name tb3-appt06 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt06/lvt06app,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt06/lvt06app-data,if=virtio,boot=off,cache=none -netdev tap,id=appt06,ifname=appt06,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=appt06,mac=00:50:56:91:00:20 -pcidevice host=15:19.0 -m 2560 -vnc :6132 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13032,server,nowait -serial telnet::14032,server,nowait -daemonize
root     12976 34.5  0.8 2990072 2666088 ?     S<l  17:01  81:35 /usr/libexec/qemu-kvm -name tb3-appt05 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt05/lvt05app,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt05/lvt05app-data,if=virtio,boot=off,cache=none -netdev tap,id=appt05,ifname=appt05,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=appt05,mac=00:50:56:91:00:1A -pcidevice host=15:17.2 -m 2560 -vnc :6126 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13026,server,nowait -serial telnet::14026,server,nowait -daemonize
root     13084 35.8  0.8 2990072 2661472 ?     S<l  17:01  84:34 /usr/libexec/qemu-kvm -name tb3-appt04 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt04/lvt04app,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt04/lvt04app-data,if=virtio,boot=off,cache=none -netdev tap,id=appt04,ifname=appt04,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=appt04,mac=00:50:56:91:00:14 -pcidevice host=15:15.4 -m 2560 -vnc :6120 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13020,server,nowait -serial telnet::14020,server,nowait -daemonize
root     13179 33.6  0.8 2990072 2662140 ?     S<l  17:01  79:28 /usr/libexec/qemu-kvm -name tb3-appt03 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt03/lvt03app,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt03/lvt03app-data,if=virtio,boot=off,cache=none -netdev tap,id=appt03,ifname=appt03,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=appt03,mac=00:50:56:91:00:0E -pcidevice host=15:13.6 -m 2560 -vnc :6114 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13014,server,nowait -serial telnet::14014,server,nowait -daemonize
root     13312 34.9  0.8 2990072 2662568 ?     S<l  17:01  82:29 /usr/libexec/qemu-kvm -name tb3-appt02 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt02/lvt02app,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt02/lvt02app-data,if=virtio,boot=off,cache=none -netdev tap,id=appt02,ifname=appt02,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=appt02,mac=00:50:56:91:00:08 -pcidevice host=15:12.0 -m 2560 -vnc :6108 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13008,server,nowait -serial telnet::14008,server,nowait -daemonize
root     13418 34.5  0.8 2990072 2661232 ?     S<l  17:01  81:30 /usr/libexec/qemu-kvm -name tb3-appt01 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt01/lvt01app,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt01/lvt01app-data,if=virtio,boot=off,cache=none -netdev tap,id=appt01,ifname=appt01,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=appt01,mac=00:50:56:91:00:02 -pcidevice host=15:10.2 -m 2560 -vnc :6102 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13002,server,nowait -serial telnet::14002,server,nowait -daemonize
root     13531 16.6  0.7 2387252 2138156 ?     Sl   17:01  39:12 /usr/libexec/qemu-kvm -name tb3-dbt14 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt14/lvt14db,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt14/lvt14db-data,if=virtio,boot=off,cache=none -netdev tap,id=dbt14,ifname=dbt14,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=dbt14,mac=00:50:56:91:00:51 -pcidevice host=15:19.3 -m 2048 -vnc :6181 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13081,server,nowait -serial telnet::14081,server,nowait -daemonize
root     13590 17.1  0.7 2387252 2140752 ?     Sl   17:01  40:32 /usr/libexec/qemu-kvm -name tb3-dbt13 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt13/lvt13db,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt13/lvt13db-data,if=virtio,boot=off,cache=none -netdev tap,id=dbt13,ifname=dbt13,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=dbt13,mac=00:50:56:91:00:4B -pcidevice host=15:17.5 -m 2048 -vnc :6175 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13075,server,nowait -serial telnet::14075,server,nowait -daemonize
root     13710 16.5  0.7 2428228 2137568 ?     Sl   17:01  39:07 /usr/libexec/qemu-kvm -name tb3-dbt12 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt12/lvt12db,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt12/lvt12db-data,if=virtio,boot=off,cache=none -netdev tap,id=dbt12,ifname=dbt12,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=dbt12,mac=00:50:56:91:00:45 -pcidevice host=15:15.7 -m 2048 -vnc :6169 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13069,server,nowait -serial telnet::14069,server,nowait -daemonize
root     13791 17.4  0.7 2397496 2138916 ?     Sl   17:01  41:11 /usr/libexec/qemu-kvm -name tb3-dbt11 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt11/lvt11db,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt11/lvt11db-data,if=virtio,boot=off,cache=none -netdev tap,id=dbt11,ifname=dbt11,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=dbt11,mac=00:50:56:91:00:3F -pcidevice host=15:14.1 -m 2048 -vnc :6163 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13063,server,nowait -serial telnet::14063,server,nowait -daemonize
root     13873 16.4  0.7 2428228 2137900 ?     Sl   17:01  38:49 /usr/libexec/qemu-kvm -name tb3-dbt10 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt10/lvt10db,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt10/lvt10db-data,if=virtio,boot=off,cache=none -netdev tap,id=dbt10,ifname=dbt10,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=dbt10,mac=00:50:56:91:00:39 -pcidevice host=15:12.3 -m 2048 -vnc :6157 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13057,server,nowait -serial telnet::14057,server,nowait -daemonize
root     13908 16.9  0.7 2387252 2138744 ?     Sl   17:01  40:00 /usr/libexec/qemu-kvm -name tb3-dbt09 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt09/lvt09db,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt09/lvt09db-data,if=virtio,boot=off,cache=none -netdev tap,id=dbt09,ifname=dbt09,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=dbt09,mac=00:50:56:91:00:33 -pcidevice host=15:10.5 -m 2048 -vnc :6151 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13051,server,nowait -serial telnet::14051,server,nowait -daemonize
root     13982 16.6  0.7 2387252 2137784 ?     Sl   17:01  39:12 /usr/libexec/qemu-kvm -name tb3-dbt08 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt08/lvt08db,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt08/lvt08db-data,if=virtio,boot=off,cache=none -netdev tap,id=dbt08,ifname=dbt08,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=dbt08,mac=00:50:56:91:00:2D -pcidevice host=15:1c.6 -m 2048 -vnc :6145 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13045,server,nowait -serial telnet::14045,server,nowait -daemonize
root     14107 17.6  0.7 2387252 2139048 ?     Sl   17:01  41:39 /usr/libexec/qemu-kvm -name tb3-dbt07 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt07/lvt07db,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt07/lvt07db-data,if=virtio,boot=off,cache=none -netdev tap,id=dbt07,ifname=dbt07,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=dbt07,mac=00:50:56:91:00:27 -pcidevice host=15:1b.0 -m 2048 -vnc :6139 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13039,server,nowait -serial telnet::14039,server,nowait -daemonize
root     14210 16.8  0.7 2387252 2138996 ?     Sl   17:01  39:49 /usr/libexec/qemu-kvm -name tb3-dbt06 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt06/lvt06db,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt06/lvt06db-data,if=virtio,boot=off,cache=none -netdev tap,id=dbt06,ifname=dbt06,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=dbt06,mac=00:50:56:91:00:21 -pcidevice host=15:19.2 -m 2048 -vnc :6133 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13033,server,nowait -serial telnet::14033,server,nowait -daemonize
root     14307 17.7  0.7 2387252 2140944 ?     Sl   17:01  41:47 /usr/libexec/qemu-kvm -name tb3-dbt05 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt05/lvt05db,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt05/lvt05db-data,if=virtio,boot=off,cache=none -netdev tap,id=dbt05,ifname=dbt05,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=dbt05,mac=00:50:56:91:00:1B -pcidevice host=15:17.4 -m 2048 -vnc :6127 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13027,server,nowait -serial telnet::14027,server,nowait -daemonize
root     14391 16.6  0.7 2387252 2137332 ?     Sl   17:01  39:18 /usr/libexec/qemu-kvm -name tb3-dbt04 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt04/lvt04db,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt04/lvt04db-data,if=virtio,boot=off,cache=none -netdev tap,id=dbt04,ifname=dbt04,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=dbt04,mac=00:50:56:91:00:15 -pcidevice host=15:15.6 -m 2048 -vnc :6121 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13021,server,nowait -serial telnet::14021,server,nowait -daemonize
root     14443 17.4  0.7 2387252 2138852 ?     Sl   17:01  41:07 /usr/libexec/qemu-kvm -name tb3-dbt03 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt03/lvt03db,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt03/lvt03db-data,if=virtio,boot=off,cache=none -netdev tap,id=dbt03,ifname=dbt03,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=dbt03,mac=00:50:56:91:00:0F -pcidevice host=15:14.0 -m 2048 -vnc :6115 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13015,server,nowait -serial telnet::14015,server,nowait -daemonize
root     14520 16.6  0.7 2417984 2136772 ?     Sl   17:01  39:20 /usr/libexec/qemu-kvm -name tb3-dbt02 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt02/lvt02db,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt02/lvt02db-data,if=virtio,boot=off,cache=none -netdev tap,id=dbt02,ifname=dbt02,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=dbt02,mac=00:50:56:91:00:09 -pcidevice host=15:12.2 -m 2048 -vnc :6109 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13009,server,nowait -serial telnet::14009,server,nowait -daemonize
root     14601 17.6  0.7 2417984 2136912 ?     Sl   17:01  41:34 /usr/libexec/qemu-kvm -name tb3-dbt01 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt01/lvt01db,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt01/lvt01db-data,if=virtio,boot=off,cache=none -netdev tap,id=dbt01,ifname=dbt01,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=dbt01,mac=00:50:56:91:00:03 -pcidevice host=15:10.4 -m 2048 -vnc :6103 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13003,server,nowait -serial telnet::14003,server,nowait -daemonize
root     14708 11.3  0.3 1333312 1079480 ?     SNl  17:01  26:38 /usr/libexec/qemu-kvm -name tb3-infrat14 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt14/lvt14infra,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt14/lvt14infra-data,if=virtio,boot=off,cache=none -netdev tap,id=infrat14,ifname=infrat14,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=infrat14,mac=00:50:56:91:00:53 -pcidevice host=15:19.5 -m 1024 -vnc :6183 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13083,server,nowait -serial telnet::14083,server,nowait -daemonize
root     14783 11.3  0.3 1333312 1081516 ?     SNl  17:01  26:48 /usr/libexec/qemu-kvm -name tb3-infrat13 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt13/lvt13infra,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt13/lvt13infra-data,if=virtio,boot=off,cache=none -netdev tap,id=infrat13,ifname=infrat13,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=infrat13,mac=00:50:56:91:00:4D -pcidevice host=15:17.7 -m 1024 -vnc :6177 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13077,server,nowait -serial telnet::14077,server,nowait -daemonize
root     14848 11.3  0.3 1333312 1080732 ?     SNl  17:01  26:49 /usr/libexec/qemu-kvm -name tb3-infrat12 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt12/lvt12infra,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt12/lvt12infra-data,if=virtio,boot=off,cache=none -netdev tap,id=infrat12,ifname=infrat12,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=infrat12,mac=00:50:56:91:00:47 -pcidevice host=15:16.1 -m 1024 -vnc :6171 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13071,server,nowait -serial telnet::14071,server,nowait -daemonize
root     14932 11.4  0.3 1333312 1079756 ?     SNl  17:02  26:53 /usr/libexec/qemu-kvm -name tb3-infrat11 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt11/lvt11infra,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt11/lvt11infra-data,if=virtio,boot=off,cache=none -netdev tap,id=infrat11,ifname=infrat11,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=infrat11,mac=00:50:56:91:00:41 -pcidevice host=15:14.3 -m 1024 -vnc :6165 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13065,server,nowait -serial telnet::14065,server,nowait -daemonize
root     14981 11.4  0.3 1333312 1079484 ?     SNl  17:02  26:58 /usr/libexec/qemu-kvm -name tb3-infrat10 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt10/lvt10infra,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt10/lvt10infra-data,if=virtio,boot=off,cache=none -netdev tap,id=infrat10,ifname=infrat10,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=infrat10,mac=00:50:56:91:00:3B -pcidevice host=15:12.5 -m 1024 -vnc :6159 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13059,server,nowait -serial telnet::14059,server,nowait -daemonize
root     15067 11.7  0.3 1333312 1081492 ?     SNl  17:02  27:47 /usr/libexec/qemu-kvm -name tb3-infrat09 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt09/lvt09infra,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt09/lvt09infra-data,if=virtio,boot=off,cache=none -netdev tap,id=infrat09,ifname=infrat09,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=infrat09,mac=00:50:56:91:00:35 -pcidevice host=15:10.7 -m 1024 -vnc :6153 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13053,server,nowait -serial telnet::14053,server,nowait -daemonize
root     15132 11.5  0.3 1333312 1079480 ?     SNl  17:02  27:10 /usr/libexec/qemu-kvm -name tb3-infrat08 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt08/lvt08infra,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt08/lvt08infra-data,if=virtio,boot=off,cache=none -netdev tap,id=infrat08,ifname=infrat08,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=infrat08,mac=00:50:56:91:00:2F -pcidevice host=15:1d.0 -m 1024 -vnc :6147 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13047,server,nowait -serial telnet::14047,server,nowait -daemonize
root     15247 11.8  0.3 1333312 1079488 ?     SNl  17:02  27:48 /usr/libexec/qemu-kvm -name tb3-infrat07 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt07/lvt07infra,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt07/lvt07infra-data,if=virtio,boot=off,cache=none -netdev tap,id=infrat07,ifname=infrat07,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=infrat07,mac=00:50:56:91:00:29 -pcidevice host=15:1b.2 -m 1024 -vnc :6141 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13041,server,nowait -serial telnet::14041,server,nowait -daemonize
root     15346 11.3  0.3 1333312 1079500 ?     SNl  17:02  26:45 /usr/libexec/qemu-kvm -name tb3-infrat06 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt06/lvt06infra,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt06/lvt06infra-data,if=virtio,boot=off,cache=none -netdev tap,id=infrat06,ifname=infrat06,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=infrat06,mac=00:50:56:91:00:23 -pcidevice host=15:19.4 -m 1024 -vnc :6135 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13035,server,nowait -serial telnet::14035,server,nowait -daemonize
root     15414 11.5  0.3 1333312 1080880 ?     SNl  17:02  27:14 /usr/libexec/qemu-kvm -name tb3-infrat05 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt05/lvt05infra,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt05/lvt05infra-data,if=virtio,boot=off,cache=none -netdev tap,id=infrat05,ifname=infrat05,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=infrat05,mac=00:50:56:91:00:1D -pcidevice host=15:17.6 -m 1024 -vnc :6129 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13029,server,nowait -serial telnet::14029,server,nowait -daemonize
root     15487 11.4  0.3 1333312 1079488 ?     SNl  17:02  27:02 /usr/libexec/qemu-kvm -name tb3-infrat04 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt04/lvt04infra,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt04/lvt04infra-data,if=virtio,boot=off,cache=none -netdev tap,id=infrat04,ifname=infrat04,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=infrat04,mac=00:50:56:91:00:17 -pcidevice host=15:16.0 -m 1024 -vnc :6123 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13023,server,nowait -serial telnet::14023,server,nowait -daemonize
root     15576 11.4  0.3 1333312 1081524 ?     SNl  17:02  27:00 /usr/libexec/qemu-kvm -name tb3-infrat03 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt03/lvt03infra,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt03/lvt03infra-data,if=virtio,boot=off,cache=none -netdev tap,id=infrat03,ifname=infrat03,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=infrat03,mac=00:50:56:91:00:11 -pcidevice host=15:14.2 -m 1024 -vnc :6117 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13017,server,nowait -serial telnet::14017,server,nowait -daemonize
root     15701 11.3  0.3 1333312 1079488 ?     SNl  17:02  26:42 /usr/libexec/qemu-kvm -name tb3-infrat02 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt02/lvt02infra,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt02/lvt02infra-data,if=virtio,boot=off,cache=none -netdev tap,id=infrat02,ifname=infrat02,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=infrat02,mac=00:50:56:91:00:0B -pcidevice host=15:12.4 -m 1024 -vnc :6111 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13011,server,nowait -serial telnet::14011,server,nowait -daemonize
root     15737 11.6  0.3 1333312 1079484 ?     SNl  17:02  27:21 /usr/libexec/qemu-kvm -name tb3-infrat01 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt01/lvt01infra,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt01/lvt01infra-data,if=virtio,boot=off,cache=none -netdev tap,id=infrat01,ifname=infrat01,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=infrat01,mac=00:50:56:91:00:05 -pcidevice host=15:10.6 -m 1024 -vnc :6105 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13005,server,nowait -serial telnet::14005,server,nowait -daemonize
root     15864 54.7  3.9 11989792 11621376 ?   S<l  17:02 128:59 /usr/libexec/qemu-kvm -name tb3-webt14 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt14/lvt14web,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt14/lvt14web-data,if=virtio,boot=off,cache=none -netdev tap,id=webt14,ifname=webt14,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=webt14,mac=00:50:56:91:00:4F -pcidevice host=15:18.7 -m 11264 -vnc :6179 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13079,server,nowait -serial telnet::14079,server,nowait -daemonize
root     16277 53.6  3.9 11989792 11619400 ?   S<l  17:02 126:14 /usr/libexec/qemu-kvm -name tb3-webt13 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt13/lvt13web,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt13/lvt13web-data,if=virtio,boot=off,cache=none -netdev tap,id=webt13,ifname=webt13,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=webt13,mac=00:50:56:91:00:49 -pcidevice host=15:17.1 -m 11264 -vnc :6173 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13073,server,nowait -serial telnet::14073,server,nowait -daemonize
root     16971 53.8  3.9 11979548 11623120 ?   S<l  17:02 126:48 /usr/libexec/qemu-kvm -name tb3-webt12 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt12/lvt12web,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt12/lvt12web-data,if=virtio,boot=off,cache=none -netdev tap,id=webt12,ifname=webt12,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=webt12,mac=00:50:56:91:00:43 -pcidevice host=15:15.3 -m 11264 -vnc :6167 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13067,server,nowait -serial telnet::14067,server,nowait -daemonize
root     17489 54.4  3.9 11979548 11619388 ?   S<l  17:02 128:13 /usr/libexec/qemu-kvm -name tb3-webt11 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt11/lvt11web,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt11/lvt11web-data,if=virtio,boot=off,cache=none -netdev tap,id=webt11,ifname=webt11,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=webt11,mac=00:50:56:91:00:3D -pcidevice host=15:13.5 -m 11264 -vnc :6161 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13061,server,nowait -serial telnet::14061,server,nowait -daemonize
root     17749 54.1  3.9 11979548 11624012 ?   S<l  17:02 127:22 /usr/libexec/qemu-kvm -name tb3-webt10 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt10/lvt10web,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt10/lvt10web-data,if=virtio,boot=off,cache=none -netdev tap,id=webt10,ifname=webt10,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=webt10,mac=00:50:56:91:00:37 -pcidevice host=15:11.7 -m 11264 -vnc :6155 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13055,server,nowait -serial telnet::14055,server,nowait -daemonize
root     17954 52.4  3.9 11979548 11620020 ?   S<l  17:02 123:24 /usr/libexec/qemu-kvm -name tb3-webt09 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt09/lvt09web,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt09/lvt09web-data,if=virtio,boot=off,cache=none -netdev tap,id=webt09,ifname=webt09,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=webt09,mac=00:50:56:91:00:31 -pcidevice host=15:10.1 -m 11264 -vnc :6149 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13049,server,nowait -serial telnet::14049,server,nowait -daemonize
root     18192 54.4  3.9 11989792 11619524 ?   S<l  17:02 127:58 /usr/libexec/qemu-kvm -name tb3-webt08 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt08/lvt08web,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt08/lvt08web-data,if=virtio,boot=off,cache=none -netdev tap,id=webt08,ifname=webt08,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=webt08,mac=00:50:56:91:00:2B -pcidevice host=15:1c.2 -m 11264 -vnc :6143 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13043,server,nowait -serial telnet::14043,server,nowait -daemonize
root     18514 53.1  3.9 11979548 11622720 ?   S<l  17:02 124:50 /usr/libexec/qemu-kvm -name tb3-webt07 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt07/lvt07web,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt07/lvt07web-data,if=virtio,boot=off,cache=none -netdev tap,id=webt07,ifname=webt07,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=webt07,mac=00:50:56:91:00:25 -pcidevice host=15:1a.4 -m 11264 -vnc :6137 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13037,server,nowait -serial telnet::14037,server,nowait -daemonize
root     18806 53.8  3.9 11979548 11621528 ?   S<l  17:02 126:35 /usr/libexec/qemu-kvm -name tb3-webt06 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt06/lvt06web,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt06/lvt06web-data,if=virtio,boot=off,cache=none -netdev tap,id=webt06,ifname=webt06,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=webt06,mac=00:50:56:91:00:1F -pcidevice host=15:18.6 -m 11264 -vnc :6131 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13031,server,nowait -serial telnet::14031,server,nowait -daemonize
root     19205 53.4  3.9 11989792 11619404 ?   S<l  17:02 125:33 /usr/libexec/qemu-kvm -name tb3-webt05 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt05/lvt05web,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt05/lvt05web-data,if=virtio,boot=off,cache=none -netdev tap,id=webt05,ifname=webt05,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=webt05,mac=00:50:56:91:00:19 -pcidevice host=15:17.0 -m 11264 -vnc :6125 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13025,server,nowait -serial telnet::14025,server,nowait -daemonize
root     19622 54.0  3.9 11979548 11622864 ?   S<l  17:02 127:02 /usr/libexec/qemu-kvm -name tb3-webt04 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt04/lvt04web,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt04/lvt04web-data,if=virtio,boot=off,cache=none -netdev tap,id=webt04,ifname=webt04,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=webt04,mac=00:50:56:91:00:13 -pcidevice host=15:15.2 -m 11264 -vnc :6119 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13019,server,nowait -serial telnet::14019,server,nowait -daemonize
root     19877 53.3  3.9 11979548 11619816 ?   S<l  17:02 125:09 /usr/libexec/qemu-kvm -name tb3-webt03 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt03/lvt03web,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt03/lvt03web-data,if=virtio,boot=off,cache=none -netdev tap,id=webt03,ifname=webt03,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=webt03,mac=00:50:56:91:00:0D -pcidevice host=15:13.4 -m 11264 -vnc :6113 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13013,server,nowait -serial telnet::14013,server,nowait -daemonize
root     20005 53.7  3.9 11979548 11622252 ?   S<l  17:02 126:05 /usr/libexec/qemu-kvm -name tb3-webt02 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt02/lvt02web,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt02/lvt02web-data,if=virtio,boot=off,cache=none -netdev tap,id=webt02,ifname=webt02,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=webt02,mac=00:50:56:91:00:07 -pcidevice host=15:11.6 -m 11264 -vnc :6107 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13007,server,nowait -serial telnet::14007,server,nowait -daemonize
root     20221 53.9  3.9 11989792 11621892 ?   S<l  17:03 126:33 /usr/libexec/qemu-kvm -name tb3-webt01 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt01/lvt01web,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt01/lvt01web-data,if=virtio,boot=off,cache=none -netdev tap,id=webt01,ifname=webt01,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=webt01,mac=00:50:56:91:00:01 -pcidevice host=15:10.0 -m 11264 -vnc :6101 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 2,sockets=2,cores=1,threads=1 -monitor telnet::13001,server,nowait -serial telnet::14001,server,nowait -daemonize
root     20408  0.5  0.1 1333308 354432 ?      SNl  17:03   1:10 /usr/libexec/qemu-kvm -name tb3-idlet14 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt14/lvt14idle,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt14/lvt14idle-data,if=virtio,boot=off,cache=none -netdev tap,id=idlet14,ifname=idlet14,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=idlet14,mac=00:50:56:91:00:52 -m 1024 -vnc :6182 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13082,server,nowait -serial telnet::14082,server,nowait -daemonize
root     20446  0.4  0.1 1333308 350268 ?      SNl  17:03   1:09 /usr/libexec/qemu-kvm -name tb3-idlet13 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt13/lvt13idle,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt13/lvt13idle-data,if=virtio,boot=off,cache=none -netdev tap,id=idlet13,ifname=idlet13,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=idlet13,mac=00:50:56:91:00:4C -m 1024 -vnc :6176 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13076,server,nowait -serial telnet::14076,server,nowait -daemonize
root     20480  0.4  0.1 1333308 344300 ?      SNl  17:03   1:09 /usr/libexec/qemu-kvm -name tb3-idlet12 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt12/lvt12idle,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt12/lvt12idle-data,if=virtio,boot=off,cache=none -netdev tap,id=idlet12,ifname=idlet12,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=idlet12,mac=00:50:56:91:00:46 -m 1024 -vnc :6170 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13070,server,nowait -serial telnet::14070,server,nowait -daemonize
root     20517  0.4  0.1 1333308 348344 ?      SNl  17:03   1:09 /usr/libexec/qemu-kvm -name tb3-idlet11 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt11/lvt11idle,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt11/lvt11idle-data,if=virtio,boot=off,cache=none -netdev tap,id=idlet11,ifname=idlet11,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=idlet11,mac=00:50:56:91:00:40 -m 1024 -vnc :6164 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13064,server,nowait -serial telnet::14064,server,nowait -daemonize
root     20550  0.5  0.1 1333308 348360 ?      SNl  17:03   1:11 /usr/libexec/qemu-kvm -name tb3-idlet10 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt10/lvt10idle,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt10/lvt10idle-data,if=virtio,boot=off,cache=none -netdev tap,id=idlet10,ifname=idlet10,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=idlet10,mac=00:50:56:91:00:3A -m 1024 -vnc :6158 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13058,server,nowait -serial telnet::14058,server,nowait -daemonize
root     20583  0.4  0.1 1333308 342144 ?      SNl  17:03   1:09 /usr/libexec/qemu-kvm -name tb3-idlet09 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt09/lvt09idle,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt09/lvt09idle-data,if=virtio,boot=off,cache=none -netdev tap,id=idlet09,ifname=idlet09,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=idlet09,mac=00:50:56:91:00:34 -m 1024 -vnc :6152 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13052,server,nowait -serial telnet::14052,server,nowait -daemonize
root     20617  0.5  0.1 1333308 346236 ?      SNl  17:03   1:11 /usr/libexec/qemu-kvm -name tb3-idlet08 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt08/lvt08idle,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt08/lvt08idle-data,if=virtio,boot=off,cache=none -netdev tap,id=idlet08,ifname=idlet08,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=idlet08,mac=00:50:56:91:00:2E -m 1024 -vnc :6146 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13046,server,nowait -serial telnet::14046,server,nowait -daemonize
root     20650  0.5  0.1 1333308 366720 ?      SNl  17:03   1:13 /usr/libexec/qemu-kvm -name tb3-idlet07 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt07/lvt07idle,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt07/lvt07idle-data,if=virtio,boot=off,cache=none -netdev tap,id=idlet07,ifname=idlet07,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=idlet07,mac=00:50:56:91:00:28 -m 1024 -vnc :6140 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13040,server,nowait -serial telnet::14040,server,nowait -daemonize
root     20683  0.5  0.1 1333308 352560 ?      SNl  17:03   1:11 /usr/libexec/qemu-kvm -name tb3-idlet06 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt06/lvt06idle,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt06/lvt06idle-data,if=virtio,boot=off,cache=none -netdev tap,id=idlet06,ifname=idlet06,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=idlet06,mac=00:50:56:91:00:22 -m 1024 -vnc :6134 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13034,server,nowait -serial telnet::14034,server,nowait -daemonize
root     20716  0.5  0.1 1333308 344092 ?      SNl  17:03   1:12 /usr/libexec/qemu-kvm -name tb3-idlet05 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt05/lvt05idle,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt05/lvt05idle-data,if=virtio,boot=off,cache=none -netdev tap,id=idlet05,ifname=idlet05,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=idlet05,mac=00:50:56:91:00:1C -m 1024 -vnc :6128 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13028,server,nowait -serial telnet::14028,server,nowait -daemonize
root     20749  0.4  0.1 1333308 343588 ?      SNl  17:03   1:09 /usr/libexec/qemu-kvm -name tb3-idlet04 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt04/lvt04idle,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt04/lvt04idle-data,if=virtio,boot=off,cache=none -netdev tap,id=idlet04,ifname=idlet04,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=idlet04,mac=00:50:56:91:00:16 -m 1024 -vnc :6122 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13022,server,nowait -serial telnet::14022,server,nowait -daemonize
root     20787  0.5  0.1 1333308 346272 ?      SNl  17:03   1:14 /usr/libexec/qemu-kvm -name tb3-idlet03 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt03/lvt03idle,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt03/lvt03idle-data,if=virtio,boot=off,cache=none -netdev tap,id=idlet03,ifname=idlet03,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=idlet03,mac=00:50:56:91:00:10 -m 1024 -vnc :6116 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13016,server,nowait -serial telnet::14016,server,nowait -daemonize
root     20820  0.5  0.1 1333308 352504 ?      SNl  17:03   1:12 /usr/libexec/qemu-kvm -name tb3-idlet02 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt02/lvt02idle,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt02/lvt02idle-data,if=virtio,boot=off,cache=none -netdev tap,id=idlet02,ifname=idlet02,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=idlet02,mac=00:50:56:91:00:0A -m 1024 -vnc :6110 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13010,server,nowait -serial telnet::14010,server,nowait -daemonize
root     20853  0.5  0.1 1333308 354644 ?      SNl  17:03   1:11 /usr/libexec/qemu-kvm -name tb3-idlet01 -M rhel6.0.0 -enable-kvm -drive file=/dev/tb3-vgt01/lvt01idle,if=virtio,boot=on,cache=none -drive file=/dev/tb3-vgt01/lvt01idle-data,if=virtio,boot=off,cache=none -netdev tap,id=idlet01,ifname=idlet01,script=/etc/kvm/qemu-ifup-br2,vhost=off -device virtio-net-pci,netdev=idlet01,mac=00:50:56:91:00:04 -m 1024 -vnc :6104 -cpu qemu64,+x2apic -no-kvm-pit-reinjection -smp 1,sockets=1,cores=1,threads=1 -monitor telnet::13004,server,nowait -serial telnet::14004,server,nowait -daemonize
                                                                                                                                                                                                                                                                                                                                    Physical_Configuration/System_Under_Test/rpmpkgs.txt                                                0000644 0000000 0000000 00000112745 11524350311 022070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   crontabs-1.10-32.1.el6.noarch
system-config-printer-libs-1.1.16-17.el6.x86_64
rsync-3.0.6-5.el6.x86_64
m17n-db-hindi-1.5.5-1.1.el6.noarch
ca-certificates-2010.63-3.el6.noarch
httpd-2.2.15-5.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
vconfig-1.9-8.1.el6.x86_64
m17n-db-sinhala-1.5.5-1.1.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
sos-2.2-2.el6.noarch
dmz-cursor-themes-0.4-4.el6.noarch
gvfs-1.4.3-9.el6.x86_64
qt-sqlite-4.6.2-16.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libproxy-0.3.0-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
gnome-disk-utility-ui-libs-2.30.1-2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
printer-filters-1.1-4.1.el6.noarch
perl-DBD-SQLite-1.27-3.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
control-center-2.28.1-25.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
perl-XML-XPathEngine-0.12-3.el6.noarch
libSM-1.1.0-7.1.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
obexd-0.19-2.el6.x86_64
m17n-contrib-maithili-1.1.10-3.el6.noarch
perl-XML-XPath-1.13-10.el6.noarch
avahi-libs-0.6.25-8.el6.x86_64
gnome-panel-2.30.2-5.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
xorg-x11-fonts-ISO8859-1-100dpi-7.2-9.1.el6.noarch
cairo-1.8.8-3.1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
dejavu-sans-mono-fonts-2.30-2.el6.noarch
ibus-libs-1.3.4-3.el6.x86_64
atk-1.28.0-2.el6.x86_64
foomatic-db-ppds-4.0-7.20091126.el6.noarch
polkit-0.96-2.el6.x86_64
tibetan-machine-uni-fonts-1.901-5.el6.noarch
libXcomposite-0.4.1-2.el6.x86_64
libcap-2.16-5.2.el6.x86_64
libdrm-2.4.20-2.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
lohit-punjabi-fonts-2.4.4-1.el6.noarch
gstreamer-plugins-base-0.10.29-1.el6.x86_64
pcre-7.8-3.1.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
m17n-db-thai-1.5.5-1.1.el6.noarch
at-spi-1.28.1-2.el6.x86_64
procps-3.2.8-14.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
curl-7.19.7-16.el6.x86_64
rootfiles-8.1-6.1.el6.noarch
xorg-x11-server-utils-7.4-15.el6.x86_64
glibmm24-2.22.1-1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
abrt-1.1.13-4.el6.x86_64
rt73usb-firmware-1.8-7.el6.noarch
PackageKit-gtk-module-0.5.8-13.el6.x86_64
libXau-1.0.5-1.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
man-pages-3.22-12.el6.noarch
imsettings-libs-0.108.0-3.4.el6.x86_64
bluez-libs-4.66-1.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
mtools-4.0.12-1.el6.x86_64
cpp-4.4.4-13.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
festvox-slt-arctic-hts-0.20061229-18.el6.noarch
netcf-libs-0.1.6-4.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
gnome-mag-0.15.9-2.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
glx-utils-7.7-2.el6.x86_64
libevent-1.4.13-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
libss-1.41.12-3.el6.x86_64
pulseaudio-gdm-hooks-0.9.21-13.el6.x86_64
pbm2l2030-1.4-5.1.el6.x86_64
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
yajl-1.0.7-3.el6.x86_64
alsa-plugins-pulseaudio-1.0.21-3.el6.x86_64
libisofs-0.6.32-1.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
foomatic-4.0.4-1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
perl-hivex-1.2.2-1.el6.x86_64
ibus-hangul-1.3.0.20100329-1.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
imsettings-0.108.0-3.4.el6.x86_64
iproute-2.6.32-10.el6.x86_64
file-roller-2.28.2-6.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
busybox-1.15.1-10.el6.x86_64
flac-1.2.1-6.1.el6.x86_64
gvfs-gphoto2-1.4.3-9.el6.x86_64
perl-Params-Check-0.26-115.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
seahorse-2.28.1-4.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
parted-2.1-10.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
gnome-packagekit-2.28.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
vte-0.25.1-5.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
virt-top-1.0.4-3.1.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
postfix-2.6.6-2.el6.x86_64
openldap-2.4.19-15.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
gucharmap-2.28.2-2.el6.x86_64
libuser-0.56.13-4.el6.x86_64
totem-mozplugin-2.28.6-2.el6.x86_64
libao-0.8.8-7.1.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
libmtp-1.0.1-2.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
m17n-contrib-bengali-1.1.10-3.el6.noarch
sane-backends-1.0.21-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
m17n-contrib-oriya-1.1.10-3.el6.noarch
m17n-db-1.5.5-1.1.el6.noarch
ypbind-1.20.4-29.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
python-gudev-147.1-4.el6.x86_64
m17n-contrib-tamil-1.1.10-3.el6.noarch
liberation-fonts-common-1.05.1.20090721-4.el6.noarch
ebtables-2.0.9-5.el6.x86_64
rdate-1.4-16.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
report-newt-0.18-7.el6.x86_64
khmeros-fonts-common-5.0-9.el6.noarch
libbonoboui-2.24.2-3.el6.x86_64
virt-v2v-0.6.2-4.el6.x86_64
ppp-2.4.5-5.el6.x86_64
python-beaker-1.3.1-6.el6.noarch
comps-extras-17.8-1.el6.noarch
gnome-settings-daemon-2.28.2-11.el6.x86_64
ibus-table-additional-1.2.0.20100111-4.el6.noarch
wget-1.12-1.4.el6.x86_64
libmusicbrainz3-3.0.2-7.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
abrt-gui-1.1.13-4.el6.x86_64
iwl5150-firmware-8.24.2.2-1.el6.noarch
httpd-tools-2.2.15-5.el6.x86_64
perl-parent-0.221-115.el6.x86_64
info-4.13a-8.el6.x86_64
libpanelappletmm-2.26.0-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
nscd-2.12-1.7.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
xorg-x11-fonts-Type1-7.2-9.1.el6.noarch
libiec61883-1.2.0-4.el6.x86_64
liberation-sans-fonts-1.05.1.20090721-4.el6.noarch
tcp_wrappers-libs-7.6-56.3.el6.x86_64
system-config-services-docs-1.1.8-1.el6.noarch
wqy-zenhei-fonts-0.9.45-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
libXi-1.3-3.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
abyssinica-fonts-1.0-5.1.el6.noarch
lockdev-1.0.1-18.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
sed-4.2.1-5.el6.x86_64
mobile-broadband-provider-info-1.20100122-1.el6.noarch
vlgothic-fonts-20091202-2.el6.noarch
libcroco-0.6.2-5.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
xorg-x11-drv-void-1.3.0-4.el6.x86_64
lohit-tamil-fonts-2.4.5-3.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libcanberra-gtk2-0.22-1.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
gnome-bluetooth-2.28.6-8.el6.x86_64
redhat-lsb-graphics-4.0-2.1.el6.x86_64
NetworkManager-glib-0.8.1-5.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
gnome-keyring-pam-2.28.2-6.el6.x86_64
which-2.19-5.1.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
abrt-plugin-logger-1.1.13-4.el6.x86_64
PackageKit-yum-plugin-0.5.8-13.el6.x86_64
iptables-1.4.7-3.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
system-config-lvm-1.1.12-7.el6.noarch
libgomp-4.4.4-13.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
libxcb-1.5-1.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
boost-test-1.41.0-11.el6.x86_64
libxklavier-4.0-7.el6.x86_64
libicu-4.2.1-9.el6.x86_64
fuse-2.8.3-1.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
gnome-media-2.29.91-6.el6.x86_64
file-5.04-5.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
m17n-lib-1.5.5-2.el6.x86_64
geoclue-0.11.1.1-0.13.20091026git73b6729.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
pbm2l7k-990321-8.el6.x86_64
libopenraw-gnome-0.0.5-4.1.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
ibus-qt-1.3.0-2.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gsm-1.0.13-4.el6.x86_64
notify-python-0.1.1-10.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
ibus-pinyin-1.3.8-1.el6.x86_64
libsemanage-2.0.43-4.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
nautilus-sendto-2.28.2-3.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
gnome-python2-extras-2.25.3-20.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
gvfs-smb-1.4.3-9.el6.x86_64
m17n-contrib-1.1.10-3.el6.noarch
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
libplist-1.2-1.el6.x86_64
gnome-terminal-2.31.3-4.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
cups-1.4.2-35.el6.x86_64
diffutils-2.8.1-28.el6.x86_64
libvirt-qpid-0.2.22-3.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
xorg-x11-font-utils-7.2-10.el6.x86_64
gcalctool-5.28.2-3.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
acpid-1.0.10-2.1.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
gconfmm26-2.28.0-1.el6.x86_64
udisks-1.0.1-2.el6.x86_64
passwd-0.77-4.el6.x86_64
abrt-cli-1.1.13-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
libXdmcp-1.0.3-1.el6.x86_64
system-config-printer-udev-1.1.16-17.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
m17n-db-oriya-1.5.5-1.1.el6.noarch
libuser-python-0.56.13-4.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
cronie-1.4.4-2.el6.x86_64
m17n-db-telugu-1.5.5-1.1.el6.noarch
sg3_utils-libs-1.28-3.el6.x86_64
xml-common-0.6.3-32.el6.noarch
m17n-db-tamil-1.5.5-1.1.el6.noarch
python-dmidecode-3.10.12-1.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
m17n-db-gujarati-1.5.5-1.1.el6.noarch
gamin-python-0.1.10-9.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
fakechroot-2.9-24.1.el6.x86_64
python-markupsafe-0.9.2-4.el6.x86_64
basesystem-10.0-4.el6.noarch
rhn-client-tools-1.0.0-38.el6.noarch
boost-python-1.41.0-11.el6.x86_64
un-core-fonts-common-1.0.2-0.15.080608.el6.noarch
pyxdg-0.18-1.el6.noarch
poppler-utils-0.12.4-3.el6.x86_64
hplip-common-3.9.8-33.el6.x86_64
python-slip-dbus-0.2.11-1.el6.noarch
libldb-0.9.10-23.el6.x86_64
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
neon-0.29.3-1.2.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
glibc-2.12-1.7.el6.x86_64
jline-0.9.94-0.8.el6.noarch
mysql-libs-5.1.47-4.el6.x86_64
freetype-2.3.11-5.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
at-3.1.10-42.el6.x86_64
libICE-1.0.6-1.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
cdparanoia-10.2-5.1.el6.x86_64
nspr-4.8.6-1.el6.x86_64
perl-XML-DOM-XPath-0.14-4.el6.noarch
elfutils-0.148-1.el6.x86_64
libusb-0.1.12-23.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
libXext-1.1-3.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
readline-6.0-3.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
gawk-3.1.7-6.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
iw-0.9.17-4.el6.x86_64
glib2-2.22.5-5.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
libgphoto2-2.4.7-4.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
libXt-1.0.7-1.el6.x86_64
rtkit-0.5-1.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
cairomm-1.8.0-2.1.el6.x86_64
lsof-4.82-1.2.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libnl-1.1-12.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
report-0.18-7.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
gtkmm24-2.18.2-1.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
speex-1.2-0.12.rc1.1.el6.x86_64
brasero-libs-2.28.3-6.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
findutils-4.4.2-6.el6.x86_64
poppler-glib-0.12.4-3.el6.x86_64
net-snmp-libs-5.5-27.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
PackageKit-yum-0.5.8-13.el6.x86_64
man-1.6f-29.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
gtk-vnc-0.3.10-3.el6.x86_64
ed-1.1-3.3.el6.x86_64
lcms-libs-1.19-1.el6.x86_64
evince-libs-2.28.2-14.el6.x86_64
gettext-0.17-16.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
taglib-1.6.1-1.1.el6.x86_64
apr-1.3.9-3.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
libcmpiutil-0.5.1-1.el6.1.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
gstreamer-python-0.10.16-1.1.el6.x86_64
kpathsea-2007-56.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
gnome-speech-0.4.25-3.1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
PackageKit-device-rebind-0.5.8-13.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
iok-1.3.10-2.el6.x86_64
mingetty-1.08-4.1.el6.x86_64
libgtop2-2.28.0-3.el6.x86_64
gutenprint-5.2.5-2.el6.x86_64
paps-libs-0.6.8-13.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
gtkspell-2.0.16-1.el6.x86_64
lx-20030328-5.1.el6.x86_64
gmp-4.3.1-7.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
c2050-0.3b-3.1.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
gpm-libs-1.20.6-11.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
libmpcdec-1.2.6-6.1.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
wavpack-4.60-1.1.el6.x86_64
openjpeg-libs-1.3-7.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
lzo-2.03-3.1.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
slang-2.2.1-1.el6.x86_64
usbmuxd-1.0.2-1.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
report-gtk-0.18-7.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
tzdata-java-2010l-1.el6.noarch
hicolor-icon-theme-0.11-1.1.el6.noarch
gdm-libs-2.30.4-21.el6.x86_64
iputils-20071127-13.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
usermode-1.102-3.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
openobex-1.4-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
python-slip-0.2.11-1.el6.noarch
enchant-1.5.0-4.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
kbd-1.15-11.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
nfs-utils-lib-1.1.5-1.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libsndfile-1.0.20-3.el6.x86_64
zenity-2.28.0-1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
libarchive-2.8.3-2.el6.x86_64
tog-pegasus-2.9.1-5.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
libsmbclient-3.5.4-68.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
vorbis-tools-1.2.0-7.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
dosfstools-3.0.9-3.el6.x86_64
DeviceKit-power-014-1.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
libiptcdata-1.0.4-2.1.el6.x86_64
ptouch-driver-1.3-2.1.el6.x86_64
grub-0.97-68.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
m17n-contrib-punjabi-1.1.10-3.el6.noarch
libxml2-python-2.7.6-1.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
rfkill-0.3-4.el6.x86_64
libvirt-0.8.1-27.el6.x86_64
latrace-0.5.9-2.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
gnome-panel-libs-2.30.2-5.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
orca-2.28.2-1.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
nautilus-2.28.4-15.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
gvfs-obexftp-1.4.3-9.el6.x86_64
iwl6000-firmware-9.176.4.1-2.el6.noarch
im-chooser-1.3.1-2.el6.x86_64
system-config-firewall-1.2.27-1.el6.noarch
ntpdate-4.2.4p8-2.el6.x86_64
cas-0.15-1.el6.1.noarch
yum-rhn-plugin-0.9.1-5.el6.noarch
m17n-contrib-urdu-1.1.10-3.el6.noarch
ibus-table-1.2.0.20100111-4.el6.noarch
xorg-x11-fonts-misc-7.2-9.1.el6.noarch
gnome-user-docs-2.28.0-4.el6.noarch
jomolhari-fonts-0.003-8.1.el6.noarch
system-config-users-1.2.104-1.el6.noarch
lohit-bengali-fonts-2.4.3-5.el6.noarch
python-virtinst-0.500.3-7.el6.noarch
thai-scalable-waree-fonts-0.4.12-2.1.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
paktype-tehreer-fonts-2.0-8.el6.noarch
media-player-info-6-1.el6.noarch
lohit-devanagari-fonts-2.4.3-6.el6.noarch
NetworkManager-0.8.1-5.el6.x86_64
paktype-naqsh-fonts-2.0-8.el6.noarch
dracut-004-32.el6.noarch
un-core-dotum-fonts-1.0.2-0.15.080608.el6.noarch
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
madan-fonts-2.000-3.el6.noarch
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
gnome-backgrounds-2.28.0-2.el6.noarch
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
tigervnc-server-1.0.90-0.10.20100115svn3945.el6.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
cloog-ppl-0.15.7-1.2.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
tigervnc-1.0.90-0.10.20100115svn3945.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
kernel-2.6.32-71.17.1.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
desktop-effects-0.8.4-7.el6.x86_64
plymouth-gdm-hooks-0.8.3-17.el6.x86_64
gdm-user-switch-applet-2.30.4-21.el6.x86_64
totem-nautilus-2.28.6-2.el6.x86_64
pulseaudio-module-x11-0.9.21-13.el6.x86_64
NetworkManager-gnome-0.8.1-5.el6.x86_64
ipa-client-2.0-9.el6.x86_64
ibus-m17n-1.3.0-1.el6.x86_64
ibus-anthy-1.2.1-1.el6.x86_64
gnome-user-share-2.28.2-3.el6.x86_64
gnome-screensaver-2.28.3-8.el6.x86_64
gvfs-archive-1.4.3-9.el6.x86_64
gnome-power-manager-2.28.3-3.el6.x86_64
gnome-vfs2-smb-2.24.2-6.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
gedit-2.28.4-3.el6.x86_64
sound-juicer-2.28.1-6.el6.x86_64
openssh-askpass-5.3p1-20.el6.x86_64
rng-tools-2-8.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
evince-dvi-2.28.2-14.el6.x86_64
paps-0.6.8-13.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
fence-virtd-multicast-0.2.1-5.el6.x86_64
blktrace-1.0.1-3.1.el6.x86_64
psacct-6.3.2-63.el6.x86_64
enscript-1.6.4-15.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgcc-4.4.4-13.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
m17n-contrib-kannada-1.1.10-3.el6.noarch
xkeyboard-config-1.6-7.el6.noarch
lm_sensors-libs-3.1.1-10.el6.x86_64
m17n-contrib-hindi-1.1.10-3.el6.noarch
filesystem-2.4.30-2.1.el6.x86_64
wpa_supplicant-0.6.8-10.el6.x86_64
m17n-contrib-malayalam-1.1.10-3.el6.noarch
paktype-fonts-common-2.0-8.el6.noarch
cracklib-python-2.8.16-2.el6.x86_64
m17n-contrib-sinhala-1.1.10-3.el6.noarch
foomatic-db-filesystem-4.0-7.20091126.el6.noarch
python-crypto-2.0.1-20.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
thai-scalable-fonts-common-0.4.12-2.1.el6.noarch
avahi-autoipd-0.6.25-8.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
poppler-data-0.4.0-1.el6.noarch
dvd+rw-tools-7.1-5.el6.x86_64
python-decorator-3.0.1-3.1.el6.noarch
seabios-0.5.1-3.el6.x86_64
apr-util-ldap-1.3.9-3.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
bind-libs-9.7.0-5.P2.el6.x86_64
ghostscript-fonts-5.50-23.1.el6.noarch
dbus-libs-1.2.24-3.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
libstdc++-4.4.4-13.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
popt-1.13-7.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
libjpeg-6b-46.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-XML-DOM-1.44-7.el6.noarch
bzip2-libs-1.0.5-6.1.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
polkit-desktop-policy-0.96-2.el6.noarch
db4-4.7.25-16.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
libX11-1.3-2.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
keyutils-1.4-1.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
eggdbus-0.6-3.el6.x86_64
libXv-1.0.5-1.el6.x86_64
libgudev1-147-2.29.el6.x86_64
dbus-c++-0.5.0-0.10.20090203git13281b3.1.el6.x86_64
ghostscript-8.70-6.el6.x86_64
libacl-2.2.49-4.el6.x86_64
patch-2.6-6.el6.x86_64
pango-1.28.1-3.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
grep-2.6.3-2.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
unique-1.1.4-2.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
gstreamer-plugins-good-0.10.23-1.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
pangomm-2.26.0-1.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
brasero-2.28.3-6.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
rpm-4.8.0-12.el6.x86_64
nspluginwrapper-1.3.0-14.el6.x86_64
pixman-0.16.6-1.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
PackageKit-glib-0.5.8-13.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
unzip-6.0-1.el6.x86_64
obex-data-server-0.4.3-4.el6.x86_64
libidn-1.18-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libspectre-0.2.4-1.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
festival-speechtools-libs-1.2.96-18.el6.x86_64
psmisc-22.6-15.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
libXScrnSaver-1.2.0-1.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
libtar-1.2.11-16.el6.x86_64
xorg-x11-xkb-utils-7.4-6.el6.x86_64
gnutls-2.8.5-4.el6.x86_64
pnm2ppa-1.04-19.el6.x86_64
festival-1.96-18.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
gtk-vnc-python-0.3.10-3.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
libchewing-0.3.2-27.el6.x86_64
gstreamer-plugins-bad-free-0.10.19-2.el6.x86_64
libutempter-1.1.5-4.1.el6.x86_64
scrub-2.2-1.el6.x86_64
pywebkitgtk-1.1.6-3.el6.x86_64
exempi-2.1.0-5.el6.x86_64
hdparm-9.16-3.4.el6.x86_64
gnome-utils-libs-2.28.1-10.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
min12xxw-0.0.9-5.1.el6.x86_64
pinentry-gtk-0.7.6-5.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
pax-3.4-10.1.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libburn-0.7.0-1.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
sgpio-1.2.0.10-5.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
numactl-2.0.3-9.el6.x86_64
libvpx-0.9.0-7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
libraw1394-2.0.4-1.el6.x86_64
libdiscid-0.2.2-4.1.el6.x86_64
gnome-python2-gconf-2.28.0-3.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
lzop-1.02-0.9.rc1.el6.x86_64
gnome-python2-gnomekeyring-2.28.0-4.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
newt-0.52.11-2.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
iptables-ipv6-1.4.7-3.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
acl-2.2.49-4.el6.x86_64
smp_utils-0.94-4.el6.x86_64
kbd-misc-1.15-11.el6.noarch
MAKEDEV-3.24-6.el6.x86_64
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
udev-147-2.29.el6.x86_64
bc-1.06.95-1.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
device-mapper-libs-1.02.53-8.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
mdadm-3.1.3-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
perl-URI-1.40-2.el6.noarch
net-snmp-5.5-27.el6.x86_64
gzip-1.3.12-18.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
qpid-cpp-client-0.7.946106-5.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
rarian-compat-0.8.1-5.1.el6.x86_64
qt-4.6.2-16.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
qmf-0.7.946106-5.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
perl-Module-Loaded-0.02-115.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
poppler-0.12.4-3.el6.x86_64
icedax-1.1.9-11.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
hal-0.5.14-8.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
libdaemon-0.14-1.el6.x86_64
m17n-db-bengali-1.5.5-1.1.el6.noarch
wireless-tools-29-5.1.1.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
m17n-db-assamese-1.5.5-1.1.el6.noarch
hplip-libs-3.9.8-33.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
attr-2.4.44-4.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
mtr-0.75-5.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
zip-3.0-1.el6.x86_64
oddjob-0.30-1.el6.x86_64
b43-fwcutter-012-2.2.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
firefox-3.6.9-2.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
system-config-kdump-2.0.2.2-2.el6.noarch
gnome-python2-gnome-2.28.0-3.el6.x86_64
virt-manager-0.8.4-8.el6.noarch
avahi-ui-0.6.25-8.el6.x86_64
abrt-desktop-1.1.13-4.el6.x86_64
gnome-python2-libegg-2.25.3-20.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libgail-gnome-1.20.1-4.1.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
ibus-gtk-1.3.4-3.el6.x86_64
system-config-printer-1.1.16-17.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
m17n-contrib-marathi-1.1.10-3.el6.noarch
gnome-session-xsession-2.28.0-15.el6.x86_64
qemu-kvm-tools-0.12.1.2-2.113.el6.x86_64
yelp-2.28.1-8.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
system-config-users-docs-1.0.8-1.el6.noarch
lohit-assamese-fonts-2.4.3-4.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
liberation-serif-fonts-1.05.1.20090721-4.el6.noarch
firstboot-1.110.8-1.el6.x86_64
khmeros-base-fonts-5.0-9.el6.noarch
redhat-bookmarks-6-1.el6.noarch
liberation-mono-fonts-1.05.1.20090721-4.el6.noarch
kernel-firmware-2.6.32-71.el6.noarch
lohit-gujarati-fonts-2.4.4-3.el6.noarch
dracut-kernel-004-32.el6.noarch
dejavu-sans-fonts-2.30-2.el6.noarch
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
lohit-telugu-fonts-2.4.5-4.el6.noarch
pulseaudio-module-bluetooth-0.9.21-13.el6.x86_64
scenery-backgrounds-6.0.0-1.el6.noarch
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
iwl3945-firmware-15.32.2.9-4.el6.noarch
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
ql2100-firmware-1.19.38-3.1.el6.noarch
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
ql23xx-firmware-3.03.27-3.1.el6.noarch
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
words-3.0-17.el6.noarch
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
ppl-0.10.2-11.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
ixgbevf-1.0.1-1.x86_64
totem-2.28.6-2.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
perl-libguestfs-1.2.7-1.24.el6.x86_64
gdm-2.30.4-21.el6.x86_64
gdm-plugin-fingerprint-2.30.4-21.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
rhythmbox-0.12.8-1.el6.x86_64
gnote-0.6.3-3.el6.x86_64
ibus-chewing-1.3.5.20100714-1.el6.x86_64
gnome-disk-utility-2.30.1-2.el6.x86_64
nautilus-open-terminal-0.17-3.el6.x86_64
eog-2.28.2-4.el6.x86_64
gvfs-afc-1.4.3-9.el6.x86_64
mousetweaks-2.28.2-1.el6.x86_64
vino-2.28.1-3.el6.x86_64
fence-virtd-libvirt-0.2.1-5.el6.x86_64
hpijs-3.9.8-33.el6.x86_64
gok-2.28.1-5.el6.x86_64
virt-viewer-0.2.1-2.el6.x86_64
gutenprint-cups-5.2.5-2.el6.x86_64
readahead-1.5.6-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
PackageKit-gstreamer-plugin-0.5.8-13.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
usbutils-0.86-2.el6.x86_64
cups-pk-helper-0.0.4-12.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
tcsh-6.17-8.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
m17n-db-kannada-1.5.5-1.1.el6.noarch
setup-2.8.14-10.el6.noarch
yp-tools-2.9-10.el6.x86_64
libieee1284-0.2.11-9.el6.x86_64
nano-2.0.9-7.el6.x86_64
m17n-db-malayalam-1.5.5-1.1.el6.noarch
control-center-filesystem-2.28.1-25.el6.x86_64
iscsi-initiator-utils-6.2.0.872-10.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
eject-2.1.5-17.el6.x86_64
boost-1.41.0-11.el6.x86_64
smc-fonts-common-04.2-11.el6.noarch
libgnome-2.28.0-11.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
libguestfs-java-1.2.7-1.24.el6.x86_64
python-mako-0.3.4-1.el6.noarch
vgabios-0.6b-3.4.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
pam_ldap-185-5.el6.x86_64
rhn-setup-gnome-1.0.0-38.el6.noarch
urw-fonts-2.4-10.el6.noarch
bash-4.1.2-3.el6.x86_64
gnome-python2-applet-2.28.0-4.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
iwl6050-firmware-9.201.4.1-2.el6.noarch
perl-IO-String-1.08-9.el6.noarch
libcom_err-1.41.12-3.el6.x86_64
ibus-1.3.4-3.el6.x86_64
wodim-1.1.9-11.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
perl-XML-Parser-2.36-7.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
rhnsd-4.9.3-2.el6.x86_64
libavc1394-0.5.3-9.1.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
libX11-common-1.3-2.el6.noarch
libudev-147-2.29.el6.x86_64
system-config-services-0.99.45-1.el6.3.noarch
mod_dnssd-0.6-2.el6.x86_64
dejavu-serif-fonts-2.30-2.el6.noarch
libXtst-1.0.99.2-3.el6.x86_64
libsepol-2.0.41-3.el6.x86_64
python-meh-0.9-1.el6.noarch
ModemManager-0.4.0-3.git20100628.el6.x86_64
lohit-kannada-fonts-2.4.5-2.el6.noarch
libXinerama-1.1-1.el6.x86_64
desktop-file-utils-0.15-9.el6.x86_64
cjkuni-fonts-common-0.2.20080216.1-34.el6.noarch
nc-1.84-22.el6.x86_64
smc-meera-fonts-04.2-11.el6.noarch
libXft-2.1.13-4.1.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
kernel-2.6.32-71.el6.x86_64
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
stix-fonts-0.9-13.1.el6.noarch
libsoup-2.28.2-1.el6.x86_64
libexif-0.6.16-4.1.el6.x86_64
bluez-4.66-1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
redhat-lsb-printing-4.0-2.1.el6.x86_64
gnome-bluetooth-libs-2.28.6-8.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
polkit-gnome-0.96-3.el6.x86_64
file-libs-5.04-5.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
ipw2100-firmware-1.3-11.el6.noarch
PackageKit-0.5.8-13.el6.x86_64
e2fsprogs-libs-1.41.12-3.el6.x86_64
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
make-3.81-19.el6.x86_64
zlib-devel-1.2.3-3.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
net-tools-1.60-102.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
gcc-4.4.4-13.el6.x86_64
libgnomekbd-2.28.2-2.el6.x86_64
libtasn1-2.3-3.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
psutils-1.17-34.el6.x86_64
gnome-media-libs-2.29.91-6.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libguestfs-1.2.7-1.24.el6.x86_64
libhangul-0.0.10-1.el6.x86_64
webkitgtk-1.2.3-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
c2070-0.99-7.el6.x86_64
kasumi-2.5-1.1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
compiz-gnome-0.8.2-24.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
pulseaudio-utils-0.9.21-13.el6.x86_64
perl-version-0.77-115.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
gnome-python2-libwnck-2.28.0-4.el6.x86_64
libv4l-0.6.3-2.el6.x86_64
ibus-sayura-1.2.99.20100209-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
gnome-python2-desktop-2.28.0-4.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
evince-2.28.2-14.el6.x86_64
newt-python-0.52.11-2.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
less-436-4.el6.x86_64
cheese-2.28.1-7.el6.x86_64
hwdata-0.233-1.el6.noarch
jna-3.2.4-2.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
gnome-utils-2.28.1-10.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
m4-1.4.13-5.el6.x86_64
fence-virtd-serial-0.2.1-5.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libnih-1.0.1-6.el6.x86_64
gnome-system-monitor-2.28.0-7.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
coreutils-8.4-9.el6.x86_64
quota-3.17-10.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
libsamplerate-0.1.7-2.1.el6.x86_64
xdg-user-dirs-gtk-0.8-7.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
xvattr-1.3-18.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
hal-info-20090716-3.1.el6.noarch
libical-0.43-5.1.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
python-2.6.5-3.el6.x86_64
audit-2.0.4-1.el6.x86_64
m17n-contrib-assamese-1.1.10-3.el6.noarch
cronie-anacron-1.4.4-2.el6.x86_64
irqbalance-0.55-27.el6.x86_64
pyorbit-2.24.0-5.el6.x86_64
m17n-contrib-telugu-1.1.10-3.el6.noarch
iso-codes-3.16-2.el6.noarch
certmonger-0.24-4.el6.x86_64
setserial-2.17-25.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
m17n-contrib-gujarati-1.1.10-3.el6.noarch
tzdata-2010l-1.el6.noarch
avahi-0.6.25-8.el6.x86_64
trace-cmd-1.0.4-7.el6.x86_64
gdb-7.1-29.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
vlgothic-fonts-common-20091202-2.el6.noarch
gnome-python2-bonobo-2.28.0-3.el6.x86_64
cjkuni-uming-fonts-0.2.20080216.1-34.el6.noarch
alsa-utils-1.0.21-3.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
nautilus-extensions-2.28.4-15.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
cyrus-sasl-md5-2.1.23-8.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
zlib-1.2.3-25.el6.x86_64
gnome-session-2.28.0-15.el6.x86_64
aic94xx-firmware-30-2.el6.noarch
cvs-1.11.23-11.el6.x86_64
perl-XML-RegExp-0.03-7.el6.noarch
libuuid-2.17.2-6.el6.x86_64
rhn-setup-1.0.0-38.el6.noarch
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
libimobiledevice-0.9.7-4.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
expat-2.0.1-9.1.el6.x86_64
at-spi-python-1.28.1-2.el6.x86_64
xorg-x11-fonts-100dpi-7.2-9.1.el6.noarch
libshout-2.2.2-5.1.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
sqlite-3.6.20-1.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
lklug-fonts-0.6-4.20090803cvs.el6.noarch
gstreamer-0.10.29-1.el6.x86_64
libcanberra-0.22-1.el6.x86_64
gamin-0.1.10-9.el6.x86_64
foomatic-db-4.0-7.20091126.el6.noarch
kurdit-unikurd-web-fonts-20020502-6.el6.noarch
ConsoleKit-0.4.1-3.el6.x86_64
dbus-x11-1.2.24-3.el6.x86_64
libattr-2.4.44-4.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
sil-padauk-fonts-2.6.1-1.el6.noarch
nss-3.12.7-2.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
libsigc++20-2.2.4.2-1.el6.x86_64
pulseaudio-0.9.21-13.el6.x86_64
lohit-oriya-fonts-2.4.3-4.el6.noarch
report-plugin-localsave-0.18-7.el6.x86_64
totem-pl-parser-2.28.3-1.el6.x86_64
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mailx-12.4-6.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
rpm-python-4.8.0-12.el6.x86_64
gtksourceview2-2.8.2-4.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
libopenraw-0.0.5-4.1.el6.x86_64
libgxim-0.3.3-3.1.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
ttmkfdir-3.0.9-32.1.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
cpio-2.10-9.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
rpm-build-4.8.0-12.el6.x86_64
portreserve-0.0.4-4.el6.x86_64
festival-lib-1.96-18.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
plymouth-utils-0.8.3-17.el6.x86_64
hesiod-3.1.0-19.el6.x86_64
pygtksourceview-2.8.0-1.el6.x86_64
tar-1.23-3.el6.x86_64
compiz-0.8.2-24.el6.x86_64
libthai-0.1.12-3.el6.x86_64
GConf2-gtk-2.28.0-6.el6.x86_64
fence-virtd-0.2.1-5.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
cjet-0.8.9-9.1.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
sysvinit-tools-2.87-3.dsf.el6.x86_64
pulseaudio-module-gconf-0.9.21-13.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
libXres-1.0.4-1.el6.x86_64
perl-5.10.1-115.el6.x86_64
gnome-applets-2.28.0-7.el6.x86_64
libdv-1.0.0-8.1.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
hivex-1.2.2-1.el6.x86_64
ibus-rawcode-1.3.0.20100421-2.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
xdg-user-dirs-0.12-4.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
brasero-nautilus-2.28.3-6.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
python-slip-gtk-0.2.11-1.el6.noarch
celt051-0.5.1.3-0.el6.x86_64
gthumb-2.10.11-8.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
util-linux-ng-2.17.2-6.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
gnome-menus-2.28.0-4.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
libvirt-cim-0.5.8-3.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
dnsmasq-2.48-4.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
openssh-server-5.3p1-20.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
libvirt-python-0.8.1-27.el6.x86_64
openssl-1.0.0-4.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
yum-3.2.27-14.el6.noarch
metacity-2.28.0-20.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
gtk2-immodule-xim-2.18.9-4.el6.x86_64
cdrdao-1.2.3-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
libgpod-0.7.2-6.el6.x86_64
anthy-9100h-10.1.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
m17n-db-punjabi-1.5.5-1.1.el6.noarch
sane-backends-libs-1.0.21-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
                           Physical_Configuration/System_Under_Test/ifconfig.txt                                               0000644 0000000 0000000 00000130151 11524350306 022164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   appt01    Link encap:Ethernet  HWaddr 2A:F4:50:6A:7E:E0  
          inet6 addr: fe80::28f4:50ff:fe6a:7ee0/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1078 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:986 (986.0 b)  TX bytes:96485 (94.2 KiB)

appt02    Link encap:Ethernet  HWaddr 7A:94:2A:A1:5A:69  
          inet6 addr: fe80::7894:2aff:fea1:5a69/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1089 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:97361 (95.0 KiB)

appt03    Link encap:Ethernet  HWaddr 56:FC:CF:C5:D8:29  
          inet6 addr: fe80::54fc:cfff:fec5:d829/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1105 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:99279 (96.9 KiB)

appt04    Link encap:Ethernet  HWaddr 26:D7:48:B6:45:83  
          inet6 addr: fe80::24d7:48ff:feb6:4583/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1093 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:986 (986.0 b)  TX bytes:98382 (96.0 KiB)

appt05    Link encap:Ethernet  HWaddr DE:69:61:A2:57:76  
          inet6 addr: fe80::dc69:61ff:fea2:5776/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1096 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:98938 (96.6 KiB)

appt06    Link encap:Ethernet  HWaddr 16:FF:C5:C3:F7:D1  
          inet6 addr: fe80::14ff:c5ff:fec3:f7d1/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1101 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:99428 (97.0 KiB)

appt07    Link encap:Ethernet  HWaddr B6:42:E1:7E:3C:DB  
          inet6 addr: fe80::b442:e1ff:fe7e:3cdb/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1107 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:100054 (97.7 KiB)

appt08    Link encap:Ethernet  HWaddr 7A:04:E9:9F:67:EB  
          inet6 addr: fe80::7804:e9ff:fe9f:67eb/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1093 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:986 (986.0 b)  TX bytes:98814 (96.4 KiB)

appt09    Link encap:Ethernet  HWaddr 8A:76:E0:DE:64:D8  
          inet6 addr: fe80::8876:e0ff:fede:64d8/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1083 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:98944 (96.6 KiB)

appt10    Link encap:Ethernet  HWaddr D2:93:42:0B:90:D7  
          inet6 addr: fe80::d093:42ff:fe0b:90d7/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1079 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:1076 (1.0 KiB)  TX bytes:98382 (96.0 KiB)

appt11    Link encap:Ethernet  HWaddr 4E:1D:7A:53:D2:2E  
          inet6 addr: fe80::4c1d:7aff:fe53:d22e/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1078 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:98600 (96.2 KiB)

appt12    Link encap:Ethernet  HWaddr E6:58:0B:BE:17:AD  
          inet6 addr: fe80::e458:bff:febe:17ad/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1084 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:1006 (1006.0 b)  TX bytes:99352 (97.0 KiB)

appt13    Link encap:Ethernet  HWaddr 22:31:38:31:A9:48  
          inet6 addr: fe80::2031:38ff:fe31:a948/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1072 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:98244 (95.9 KiB)

appt14    Link encap:Ethernet  HWaddr B6:83:EC:E2:C5:C2  
          inet6 addr: fe80::b483:ecff:fee2:c5c2/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1048 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:986 (986.0 b)  TX bytes:96272 (94.0 KiB)

br2       Link encap:Ethernet  HWaddr 00:21:5E:DA:48:64  
          inet addr:10.1.216.246  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::221:5eff:feda:4864/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:300612 errors:0 dropped:0 overruns:0 frame:0
          TX packets:52287 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:24632968 (23.4 MiB)  TX bytes:16927759 (16.1 MiB)

br3       Link encap:Ethernet  HWaddr 00:21:5E:DA:48:66  
          inet addr:10.3.200.4  Bcast:10.3.200.4  Mask:255.255.255.255
          inet6 addr: fe80::221:5eff:feda:4866/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:252543 errors:0 dropped:0 overruns:0 frame:0
          TX packets:73 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:15958280 (15.2 MiB)  TX bytes:7878 (7.6 KiB)

dbt01     Link encap:Ethernet  HWaddr 3A:DB:AB:DB:97:E2  
          inet6 addr: fe80::38db:abff:fedb:97e2/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1013 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:1054 (1.0 KiB)  TX bytes:92221 (90.0 KiB)

dbt02     Link encap:Ethernet  HWaddr FA:23:0F:0F:24:9C  
          inet6 addr: fe80::f823:fff:fe0f:249c/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1020 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:984 (984.0 b)  TX bytes:93555 (91.3 KiB)

dbt03     Link encap:Ethernet  HWaddr 0E:26:AB:FC:B6:09  
          inet6 addr: fe80::c26:abff:fefc:b609/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1019 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:1004 (1004.0 b)  TX bytes:93475 (91.2 KiB)

dbt04     Link encap:Ethernet  HWaddr 2E:9B:1B:33:11:2D  
          inet6 addr: fe80::2c9b:1bff:fe33:112d/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1030 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:914 (914.0 b)  TX bytes:93971 (91.7 KiB)

dbt05     Link encap:Ethernet  HWaddr 0E:DC:40:F0:4E:BE  
          inet6 addr: fe80::cdc:40ff:fef0:4ebe/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1039 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:914 (914.0 b)  TX bytes:94389 (92.1 KiB)

dbt06     Link encap:Ethernet  HWaddr F2:25:45:9A:0B:FB  
          inet6 addr: fe80::f025:45ff:fe9a:bfb/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1057 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:914 (914.0 b)  TX bytes:96033 (93.7 KiB)

dbt07     Link encap:Ethernet  HWaddr 6E:AB:C6:04:9D:51  
          inet6 addr: fe80::6cab:c6ff:fe04:9d51/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1058 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:984 (984.0 b)  TX bytes:95345 (93.1 KiB)

dbt08     Link encap:Ethernet  HWaddr EE:F3:E2:2B:5A:14  
          inet6 addr: fe80::ecf3:e2ff:fe2b:5a14/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1070 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:914 (914.0 b)  TX bytes:96686 (94.4 KiB)

dbt09     Link encap:Ethernet  HWaddr 72:BA:58:EA:FC:64  
          inet6 addr: fe80::70ba:58ff:feea:fc64/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1078 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:914 (914.0 b)  TX bytes:96740 (94.4 KiB)

dbt10     Link encap:Ethernet  HWaddr D6:49:7C:E1:78:FF  
          inet6 addr: fe80::d449:7cff:fee1:78ff/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1088 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:914 (914.0 b)  TX bytes:97518 (95.2 KiB)

dbt11     Link encap:Ethernet  HWaddr C6:38:27:0F:0F:8B  
          inet6 addr: fe80::c438:27ff:fe0f:f8b/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1064 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:914 (914.0 b)  TX bytes:95163 (92.9 KiB)

dbt12     Link encap:Ethernet  HWaddr 92:83:45:E6:5D:43  
          inet6 addr: fe80::9083:45ff:fee6:5d43/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1069 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:984 (984.0 b)  TX bytes:95999 (93.7 KiB)

dbt13     Link encap:Ethernet  HWaddr 5A:03:8B:CA:3F:57  
          inet6 addr: fe80::5803:8bff:feca:3f57/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1077 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:914 (914.0 b)  TX bytes:96333 (94.0 KiB)

dbt14     Link encap:Ethernet  HWaddr 02:D6:2F:C8:2E:C8  
          inet6 addr: fe80::d6:2fff:fec8:2ec8/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1072 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:984 (984.0 b)  TX bytes:96043 (93.7 KiB)

eth0      Link encap:Ethernet  HWaddr 00:1B:21:65:0F:18  
          inet addr:10.4.201.10  Bcast:10.4.201.10  Mask:255.255.255.255
          inet6 addr: fe80::21b:21ff:fe65:f18/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:281009 errors:0 dropped:0 overruns:0 frame:0
          TX packets:303 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:23549611 (22.4 MiB)  TX bytes:30809 (30.0 KiB)

eth1      Link encap:Ethernet  HWaddr 00:1B:21:65:0F:19  
          inet addr:10.5.201.1  Bcast:10.5.201.1  Mask:255.255.255.255
          inet6 addr: fe80::21b:21ff:fe65:f19/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:285920 errors:0 dropped:0 overruns:0 frame:0
          TX packets:153 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:23984189 (22.8 MiB)  TX bytes:19435 (18.9 KiB)

eth2      Link encap:Ethernet  HWaddr 00:21:5E:DA:48:64  
          inet6 addr: fe80::221:5eff:feda:4864/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:107866742 errors:0 dropped:0 overruns:0 frame:0
          TX packets:348090946 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11090144211 (10.3 GiB)  TX bytes:493779631076 (459.8 GiB)
          Interrupt:30 Memory:f8000000-f8012800 

eth3      Link encap:Ethernet  HWaddr 00:21:5E:DA:48:66  
          inet6 addr: fe80::221:5eff:feda:4866/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:262185 errors:0 dropped:0 overruns:0 frame:0
          TX packets:78 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:21122442 (20.1 MiB)  TX bytes:8888 (8.6 KiB)
          Interrupt:37 Memory:92000000-92012800 

idlet01   Link encap:Ethernet  HWaddr 56:1C:BD:5B:67:56  
          inet6 addr: fe80::541c:bdff:fe5b:6756/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2266 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43832 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:199111 (194.4 KiB)  TX bytes:3484011 (3.3 MiB)

idlet02   Link encap:Ethernet  HWaddr 16:B2:14:52:02:88  
          inet6 addr: fe80::14b2:14ff:fe52:288/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2270 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43844 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:199373 (194.7 KiB)  TX bytes:3484792 (3.3 MiB)

idlet03   Link encap:Ethernet  HWaddr FA:16:A1:9B:7B:4C  
          inet6 addr: fe80::f816:a1ff:fe9b:7b4c/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2286 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43844 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:200202 (195.5 KiB)  TX bytes:3484897 (3.3 MiB)

idlet04   Link encap:Ethernet  HWaddr EE:89:96:43:18:B8  
          inet6 addr: fe80::ec89:96ff:fe43:18b8/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2276 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43837 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:199650 (194.9 KiB)  TX bytes:3484511 (3.3 MiB)

idlet05   Link encap:Ethernet  HWaddr 66:05:A1:68:F3:36  
          inet6 addr: fe80::6405:a1ff:fe68:f336/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2275 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43838 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:199595 (194.9 KiB)  TX bytes:3484588 (3.3 MiB)

idlet06   Link encap:Ethernet  HWaddr 5A:22:D8:23:56:55  
          inet6 addr: fe80::5822:d8ff:fe23:5655/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2274 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43843 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:199640 (194.9 KiB)  TX bytes:3484866 (3.3 MiB)

idlet07   Link encap:Ethernet  HWaddr 2A:FC:40:23:28:8E  
          inet6 addr: fe80::28fc:40ff:fe23:288e/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2283 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43847 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:200170 (195.4 KiB)  TX bytes:3485034 (3.3 MiB)

idlet08   Link encap:Ethernet  HWaddr D2:88:39:C1:AF:89  
          inet6 addr: fe80::d088:39ff:fec1:af89/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2281 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43853 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:200010 (195.3 KiB)  TX bytes:3485561 (3.3 MiB)

idlet09   Link encap:Ethernet  HWaddr 8A:4B:F5:61:BC:BD  
          inet6 addr: fe80::884b:f5ff:fe61:bcbd/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2260 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43836 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:198985 (194.3 KiB)  TX bytes:3484365 (3.3 MiB)

idlet10   Link encap:Ethernet  HWaddr E2:29:F5:1C:06:8A  
          inet6 addr: fe80::e029:f5ff:fe1c:68a/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2277 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43852 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:200012 (195.3 KiB)  TX bytes:3485835 (3.3 MiB)

idlet11   Link encap:Ethernet  HWaddr 2A:4D:14:5C:86:2C  
          inet6 addr: fe80::284d:14ff:fe5c:862c/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2263 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43839 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:199158 (194.4 KiB)  TX bytes:3484951 (3.3 MiB)

idlet12   Link encap:Ethernet  HWaddr 36:36:0B:43:7A:72  
          inet6 addr: fe80::3436:bff:fe43:7a72/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2288 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43852 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:200424 (195.7 KiB)  TX bytes:3485917 (3.3 MiB)

idlet13   Link encap:Ethernet  HWaddr 36:92:14:C2:1C:E9  
          inet6 addr: fe80::3492:14ff:fec2:1ce9/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2267 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43839 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:199413 (194.7 KiB)  TX bytes:3484891 (3.3 MiB)

idlet14   Link encap:Ethernet  HWaddr 66:A9:07:E4:E6:AB  
          inet6 addr: fe80::64a9:7ff:fee4:e6ab/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2276 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43834 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:199795 (195.1 KiB)  TX bytes:3484510 (3.3 MiB)

infrat01  Link encap:Ethernet  HWaddr 12:9A:2A:EB:57:9E  
          inet6 addr: fe80::109a:2aff:feeb:579e/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1000 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:1010 (1010.0 b)  TX bytes:89523 (87.4 KiB)

infrat02  Link encap:Ethernet  HWaddr 42:10:01:44:9D:3A  
          inet6 addr: fe80::4010:1ff:fe44:9d3a/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1003 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:920 (920.0 b)  TX bytes:89551 (87.4 KiB)

infrat03  Link encap:Ethernet  HWaddr 4E:A2:B5:6E:E2:BF  
          inet6 addr: fe80::4ca2:b5ff:fe6e:e2bf/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1006 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:920 (920.0 b)  TX bytes:89774 (87.6 KiB)

infrat04  Link encap:Ethernet  HWaddr 4A:50:10:D1:C2:BE  
          inet6 addr: fe80::4850:10ff:fed1:c2be/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1007 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:920 (920.0 b)  TX bytes:90424 (88.3 KiB)

infrat05  Link encap:Ethernet  HWaddr B6:3D:F3:7F:8C:64  
          inet6 addr: fe80::b43d:f3ff:fe7f:8c64/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1006 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:920 (920.0 b)  TX bytes:90212 (88.0 KiB)

infrat06  Link encap:Ethernet  HWaddr C2:5C:B6:B7:24:7D  
          inet6 addr: fe80::c05c:b6ff:feb7:247d/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:977 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:1060 (1.0 KiB)  TX bytes:88076 (86.0 KiB)

infrat07  Link encap:Ethernet  HWaddr 72:66:B7:6E:84:A1  
          inet6 addr: fe80::7066:b7ff:fe6e:84a1/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:981 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:990 (990.0 b)  TX bytes:88748 (86.6 KiB)

infrat08  Link encap:Ethernet  HWaddr E6:9F:51:84:35:27  
          inet6 addr: fe80::e49f:51ff:fe84:3527/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:984 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:990 (990.0 b)  TX bytes:89032 (86.9 KiB)

infrat09  Link encap:Ethernet  HWaddr 0A:67:B1:61:83:20  
          inet6 addr: fe80::867:b1ff:fe61:8320/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:993 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:990 (990.0 b)  TX bytes:89736 (87.6 KiB)

infrat10  Link encap:Ethernet  HWaddr 76:00:49:60:E2:B7  
          inet6 addr: fe80::7400:49ff:fe60:e2b7/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1003 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:1060 (1.0 KiB)  TX bytes:91106 (88.9 KiB)

infrat11  Link encap:Ethernet  HWaddr 82:AA:D3:53:10:C9  
          inet6 addr: fe80::80aa:d3ff:fe53:10c9/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:988 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:920 (920.0 b)  TX bytes:90146 (88.0 KiB)

infrat12  Link encap:Ethernet  HWaddr 4E:4D:34:0A:DB:A2  
          inet6 addr: fe80::4c4d:34ff:fe0a:dba2/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:988 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:1010 (1010.0 b)  TX bytes:90050 (87.9 KiB)

infrat13  Link encap:Ethernet  HWaddr 76:82:F6:43:96:EB  
          inet6 addr: fe80::7482:f6ff:fe43:96eb/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:999 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:990 (990.0 b)  TX bytes:90884 (88.7 KiB)

infrat14  Link encap:Ethernet  HWaddr CA:49:C4:18:E6:E0  
          inet6 addr: fe80::c849:c4ff:fe18:e6e0/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1004 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:920 (920.0 b)  TX bytes:91546 (89.4 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6518 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6518 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:577620 (564.0 KiB)  TX bytes:577620 (564.0 KiB)

mailt01   Link encap:Ethernet  HWaddr 62:F6:AA:93:17:12  
          inet6 addr: fe80::60f6:aaff:fe93:1712/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1049 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:918 (918.0 b)  TX bytes:96345 (94.0 KiB)

mailt02   Link encap:Ethernet  HWaddr 56:A2:2A:19:2E:F8  
          inet6 addr: fe80::54a2:2aff:fe19:2ef8/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1040 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:918 (918.0 b)  TX bytes:95213 (92.9 KiB)

mailt03   Link encap:Ethernet  HWaddr 22:D2:EC:A7:18:BD  
          inet6 addr: fe80::20d2:ecff:fea7:18bd/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1022 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:918 (918.0 b)  TX bytes:93727 (91.5 KiB)

mailt04   Link encap:Ethernet  HWaddr E2:1B:6A:2A:8C:26  
          inet6 addr: fe80::e01b:6aff:fe2a:8c26/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1012 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:918 (918.0 b)  TX bytes:92820 (90.6 KiB)

mailt05   Link encap:Ethernet  HWaddr CE:8B:E3:BE:5C:4E  
          inet6 addr: fe80::cc8b:e3ff:febe:5c4e/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1030 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:918 (918.0 b)  TX bytes:94233 (92.0 KiB)

mailt06   Link encap:Ethernet  HWaddr F6:BB:09:17:1A:E2  
          inet6 addr: fe80::f4bb:9ff:fe17:1ae2/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1050 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:918 (918.0 b)  TX bytes:95963 (93.7 KiB)

mailt07   Link encap:Ethernet  HWaddr 22:9D:F5:BB:42:C2  
          inet6 addr: fe80::209d:f5ff:febb:42c2/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1065 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:1058 (1.0 KiB)  TX bytes:97403 (95.1 KiB)

mailt08   Link encap:Ethernet  HWaddr 32:4E:64:0E:E5:77  
          inet6 addr: fe80::304e:64ff:fe0e:e577/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:655 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:918 (918.0 b)  TX bytes:60689 (59.2 KiB)

mailt09   Link encap:Ethernet  HWaddr 66:6E:CC:2D:1A:8B  
          inet6 addr: fe80::646e:ccff:fe2d:1a8b/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:661 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:1148 (1.1 KiB)  TX bytes:61059 (59.6 KiB)

mailt10   Link encap:Ethernet  HWaddr BE:3C:13:42:E0:23  
          inet6 addr: fe80::bc3c:13ff:fe42:e023/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:702 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:988 (988.0 b)  TX bytes:64799 (63.2 KiB)

mailt11   Link encap:Ethernet  HWaddr AE:B8:E3:A2:CE:36  
          inet6 addr: fe80::acb8:e3ff:fea2:ce36/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:708 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:1078 (1.0 KiB)  TX bytes:65461 (63.9 KiB)

mailt12   Link encap:Ethernet  HWaddr 32:EE:F2:0F:60:2C  
          inet6 addr: fe80::30ee:f2ff:fe0f:602c/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:717 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:918 (918.0 b)  TX bytes:66169 (64.6 KiB)

mailt13   Link encap:Ethernet  HWaddr C2:A0:F7:B1:DE:09  
          inet6 addr: fe80::c0a0:f7ff:feb1:de09/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:732 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:918 (918.0 b)  TX bytes:67219 (65.6 KiB)

mailt14   Link encap:Ethernet  HWaddr 6A:34:82:C6:3C:4D  
          inet6 addr: fe80::6834:82ff:fec6:3c4d/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:735 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:918 (918.0 b)  TX bytes:67435 (65.8 KiB)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

t01       Link encap:Ethernet  HWaddr 7A:9C:E9:26:88:D9  
          inet6 addr: fe80::789c:e9ff:fe26:88d9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:1584 (1.5 KiB)

t02       Link encap:Ethernet  HWaddr F2:83:0D:30:BF:EA  
          inet6 addr: fe80::f083:dff:fe30:bfea/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:1514 (1.4 KiB)

t03       Link encap:Ethernet  HWaddr 52:6F:6A:08:5E:E2  
          inet6 addr: fe80::506f:6aff:fe08:5ee2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:1514 (1.4 KiB)

t04       Link encap:Ethernet  HWaddr 4E:52:FE:99:5C:A5  
          inet6 addr: fe80::4c52:feff:fe99:5ca5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:1514 (1.4 KiB)

t05       Link encap:Ethernet  HWaddr 16:3B:07:26:E3:3E  
          inet6 addr: fe80::143b:7ff:fe26:e33e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:1514 (1.4 KiB)

t06       Link encap:Ethernet  HWaddr 92:00:1B:69:67:57  
          inet6 addr: fe80::9000:1bff:fe69:6757/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:1514 (1.4 KiB)

t07       Link encap:Ethernet  HWaddr E2:29:9D:CB:3F:34  
          inet6 addr: fe80::e029:9dff:fecb:3f34/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:1514 (1.4 KiB)

t08       Link encap:Ethernet  HWaddr 4A:A1:1C:F2:91:DA  
          inet6 addr: fe80::48a1:1cff:fef2:91da/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:1514 (1.4 KiB)

t09       Link encap:Ethernet  HWaddr A2:AE:BE:8F:35:49  
          inet6 addr: fe80::a0ae:beff:fe8f:3549/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:1514 (1.4 KiB)

t10       Link encap:Ethernet  HWaddr 92:30:FF:71:A6:AE  
          inet6 addr: fe80::9030:ffff:fe71:a6ae/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:1514 (1.4 KiB)

t11       Link encap:Ethernet  HWaddr D2:37:80:22:EE:97  
          inet6 addr: fe80::d037:80ff:fe22:ee97/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:1514 (1.4 KiB)

t12       Link encap:Ethernet  HWaddr 92:5B:9D:0E:7B:A3  
          inet6 addr: fe80::905b:9dff:fe0e:7ba3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:1514 (1.4 KiB)

t13       Link encap:Ethernet  HWaddr D6:FB:BC:DC:B0:53  
          inet6 addr: fe80::d4fb:bcff:fedc:b053/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:1514 (1.4 KiB)

t14       Link encap:Ethernet  HWaddr 12:61:F0:3E:34:7D  
          inet6 addr: fe80::1061:f0ff:fe3e:347d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:1514 (1.4 KiB)

usb0      Link encap:Ethernet  HWaddr 02:21:5E:DA:C8:67  
          inet addr:169.254.95.119  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::21:5eff:feda:c867/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:79583 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41132 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5547019 (5.2 MiB)  TX bytes:1831798 (1.7 MiB)

virbr0    Link encap:Ethernet  HWaddr 7E:6A:77:3F:85:29  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1621 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:79159 (77.3 KiB)

webt01    Link encap:Ethernet  HWaddr FE:D1:58:C7:24:73  
          inet6 addr: fe80::fcd1:58ff:fec7:2473/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:613 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:986 (986.0 b)  TX bytes:48983 (47.8 KiB)

webt02    Link encap:Ethernet  HWaddr 3A:2C:2A:94:1D:23  
          inet6 addr: fe80::382c:2aff:fe94:1d23/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:615 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:49377 (48.2 KiB)

webt03    Link encap:Ethernet  HWaddr 16:4D:8E:BD:93:DB  
          inet6 addr: fe80::144d:8eff:febd:93db/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:467 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:41364 (40.3 KiB)

webt04    Link encap:Ethernet  HWaddr D2:BF:DC:9A:22:68  
          inet6 addr: fe80::d0bf:dcff:fe9a:2268/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:488 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:1006 (1006.0 b)  TX bytes:42909 (41.9 KiB)

webt05    Link encap:Ethernet  HWaddr 4A:36:F4:05:17:FA  
          inet6 addr: fe80::4836:f4ff:fe05:17fa/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:495 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:1056 (1.0 KiB)  TX bytes:43743 (42.7 KiB)

webt06    Link encap:Ethernet  HWaddr 3E:C8:8C:15:5C:25  
          inet6 addr: fe80::3cc8:8cff:fe15:5c25/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:504 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:44617 (43.5 KiB)

webt07    Link encap:Ethernet  HWaddr C6:FA:0F:33:72:44  
          inet6 addr: fe80::c4fa:fff:fe33:7244/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:502 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:44424 (43.3 KiB)

webt08    Link encap:Ethernet  HWaddr 72:2A:A1:7D:89:AA  
          inet6 addr: fe80::702a:a1ff:fe7d:89aa/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:695 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:58275 (56.9 KiB)

webt09    Link encap:Ethernet  HWaddr BA:0D:57:02:5C:3F  
          inet6 addr: fe80::b80d:57ff:fe02:5c3f/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:719 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:1076 (1.0 KiB)  TX bytes:61096 (59.6 KiB)

webt10    Link encap:Ethernet  HWaddr 7A:82:F6:17:EB:62  
          inet6 addr: fe80::7882:f6ff:fe17:eb62/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:759 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:64624 (63.1 KiB)

webt11    Link encap:Ethernet  HWaddr 16:6E:9D:69:0A:4A  
          inet6 addr: fe80::146e:9dff:fe69:a4a/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:848 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:72906 (71.1 KiB)

webt12    Link encap:Ethernet  HWaddr 26:38:12:57:C8:2B  
          inet6 addr: fe80::2438:12ff:fe57:c82b/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:916 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:80406 (78.5 KiB)

webt13    Link encap:Ethernet  HWaddr 72:0D:AF:12:01:CD  
          inet6 addr: fe80::700d:afff:fe12:1cd/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:972 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:86087 (84.0 KiB)

webt14    Link encap:Ethernet  HWaddr BE:75:64:A7:9C:D3  
          inet6 addr: fe80::bc75:64ff:fea7:9cd3/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1002 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:916 (916.0 b)  TX bytes:89937 (87.8 KiB)

                                                                                                                                                                                                                                                                                                                                                                                                                       Physical_Configuration/System_Under_Test/chkconfig.txt                                              0000644 0000000 0000000 00000007423 11524350245 022342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   NetworkManager 	0:off	1:off	2:on	3:on	4:on	5:on	6:off
abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:off	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:on	4:on	5:on	6:off
bluetooth      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:on	3:on	4:on	5:on	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
cups           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
dnsmasq        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ebtables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
firstboot      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsi          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-qpid   	0:off	1:off	2:off	3:off	4:off	5:off	6:off
libvirtd       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
portreserve    	0:off	1:off	2:on	3:on	4:on	5:on	6:off
postfix        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
snmpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
snmptrapd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:on	4:on	5:on	6:off
tog-pegasus    	0:off	1:off	2:off	3:on	4:off	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
vncserver      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
wpa_supplicant 	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
                                                                                                                                                                                                                                             Virtual_Configuration/                                                                              0000755 0000000 0000000 00000000000 11524351432 014071  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/                                                                       0000777 0000000 0000000 00000000000 11524350746 015203  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/                                                            0000777 0000000 0000000 00000000000 11524350663 017345  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/                                           0000777 0000000 0000000 00000000000 11524350702 022610  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/proc/                                      0000777 0000000 0000000 00000000000 11524350701 023552  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/proc/cpuinfo                               0000644 0000000 0000000 00000001017 11524350701 025133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/idleserver/VM_configuration/proc/mounts                                0000644 0000000 0000000 00000001356 11524350701 025023  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=503592k,nr_inodes=125898,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1260,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1260,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/idleserver/VM_configuration/proc/swaps                                 0000644 0000000 0000000 00000000144 11524350701 024625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/idleserver/VM_configuration/proc/devices                               0000644 0000000 0000000 00000000567 11524350701 025123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile11/idleserver/VM_configuration/proc/modules                               0000644 0000000 0000000 00000002547 11524350701 025151  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02a5000
stp 2107 1 bridge, Live 0xffffffffa029f000
llc 5608 2 bridge,stp, Live 0xffffffffa0297000
autofs4 27683 3 - Live 0xffffffffa028a000
sunrpc 241630 1 - Live 0xffffffffa0237000
ipv6 321209 39 - Live 0xffffffffa01a2000
dm_mirror 14003 0 - Live 0xffffffffa0176000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa016d000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0164000
ppdev 8695 0 - Live 0xffffffffa0156000
parport_pc 22944 0 - Live 0xffffffffa0149000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa0137000
sg 30186 0 - Live 0xffffffffa0128000
virtio_net 15665 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Virtual_Configuration/tile11/idleserver/VM_configuration/proc/partitions                            0000644 0000000 0000000 00000000260 11524350701 025663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile11/idleserver/VM_configuration/proc/meminfo                               0000644 0000000 0000000 00000002222 11524350701 025121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        1021520 kB
MemFree:          780812 kB
Buffers:           16488 kB
Cached:            97500 kB
SwapCached:            0 kB
Active:            89064 kB
Inactive:          75176 kB
Active(anon):      50384 kB
Inactive(anon):        0 kB
Active(file):      38680 kB
Inactive(file):    75176 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               208 kB
Writeback:             0 kB
AnonPages:         50280 kB
Mapped:            18540 kB
Shmem:               160 kB
Slab:              61224 kB
SReclaimable:      24740 kB
SUnreclaim:        36484 kB
KernelStack:         992 kB
PageTables:         3004 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2558752 kB
Committed_AS:     151248 kB
VmallocTotal:   34359738367 kB
VmallocUsed:        7592 kB
VmallocChunk:   34359726760 kB
HardwareCorrupted:     0 kB
AnonHugePages:     10240 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     1040384 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/idleserver/VM_configuration/root/                                      0000777 0000000 0000000 00000000000 11524350701 023572  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/root/convert_to_vf.sh                      0000755 0000000 0000000 00000001135 11524350701 027002  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/lspci.txt                                  0000644 0000000 0000000 00000001046 11524350700 024456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile11/idleserver/VM_configuration/df.txt                                     0000644 0000000 0000000 00000000401 11524350663 023737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3617544   9163392  29% /
tmpfs                   510760         0    510760   0% /dev/shm
/dev/vdb1             20642412    176072  19417768   1% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/idleserver/VM_configuration/mount.txt                                  0000644 0000000 0000000 00000000612 11524350700 024504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile11/idleserver/VM_configuration/etc/                                       0000777 0000000 0000000 00000000000 11524350700 023361  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/                                  0000777 0000000 0000000 00000000000 11524350672 024217  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/                            0000777 0000000 0000000 00000000000 11524350700 025120  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests           0000755 0000000 0000000 00000017172 11524350673 030323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                  0000755 0000000 0000000 00000004325 11524350673 026741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd               0000755 0000000 0000000 00000006014 11524350674 027530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                 0000755 0000000 0000000 00000012327 11524350675 027132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                0000755 0000000 0000000 00000005222 11524350676 027316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                     0000755 0000000 0000000 00000010671 11524350677 026322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                    0000755 0000000 0000000 00000006364 11524350673 026470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                0000755 0000000 0000000 00000020716 11524350675 027242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                     0000755 0000000 0000000 00000004731 11524350674 026320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon             0000755 0000000 0000000 00000004754 11524350673 027673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                0000755 0000000 0000000 00000001364 11524350677 027341  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                    0000755 0000000 0000000 00000003027 11524350675 026457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                   0000755 0000000 0000000 00000006743 11524350700 026645  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                    0000755 0000000 0000000 00000010777 11524350674 026463  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus               0000755 0000000 0000000 00000004230 11524350677 027503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                    0000755 0000000 0000000 00000006302 11524350674 026432  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                      0000755 0000000 0000000 00000004236 11524350700 026140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                  0000755 0000000 0000000 00000004031 11524350676 026764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance               0000755 0000000 0000000 00000003521 11524350676 027447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                  0000755 0000000 0000000 00000006050 11524350676 027021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                  0000755 0000000 0000000 00000002363 11524350675 027070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger               0000755 0000000 0000000 00000004054 11524350673 027477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                0000755 0000000 0000000 00000005013 11524350676 027356  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                    0000755 0000000 0000000 00000003213 11524350675 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                  0000755 0000000 0000000 00000003512 11524350674 027003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                     0000755 0000000 0000000 00000003603 11524350674 026311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                   0000755 0000000 0000000 00000011277 11524350674 026636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S10network                  0000755 0000000 0000000 00000014466 11524350676 027046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                  0000755 0000000 0000000 00000004326 11524350676 027053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                   0000755 0000000 0000000 00000006462 11524350676 026625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                    0000755 0000000 0000000 00000027662 11524350677 026501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                     0000755 0000000 0000000 00000006445 11524350674 026214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                0000755 0000000 0000000 00000003245 11524350677 027306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K60crond                    0000755 0000000 0000000 00000005445 11524350674 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                    0000755 0000000 0000000 00000005522 11524350673 026453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl            0000755 0000000 0000000 00000002221 11524350675 030143  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                0000755 0000000 0000000 00000004010 11524350673 027312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                      0000755 0000000 0000000 00000013536 11524350674 026133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                     0000755 0000000 0000000 00000004723 11524350677 026302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                   0000755 0000000 0000000 00000003024 11524350673 026603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                    0000755 0000000 0000000 00000003275 11524350677 026441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                 0000755 0000000 0000000 00000025442 11524350676 027164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                0000755 0000000 0000000 00000004370 11524350677 027304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S99local                    0000755 0000000 0000000 00000000334 11524350700 026441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                  0000755 0000000 0000000 00000006675 11524350676 027023  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole               0000755 0000000 0000000 00000005650 11524350674 027513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor             0000555 0000000 0000000 00000004612 11524350675 027710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                   0000755 0000000 0000000 00000007234 11524350677 026663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                 0000755 0000000 0000000 00000003433 11524350700 027177  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                   0000755 0000000 0000000 00000005672 11524350673 026633  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                    0000755 0000000 0000000 00000003254 11524350700 026437  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                0000755 0000000 0000000 00000005063 11524350677 027330  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                    0000755 0000000 0000000 00000012432 11524350677 026472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                  0000755 0000000 0000000 00000007414 11524350674 027034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                 0000755 0000000 0000000 00000020557 11524350675 027157  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond              0000755 0000000 0000000 00000003427 11524350675 027704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/rc3.d/K05atd                      0000755 0000000 0000000 00000004112 11524350673 026101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/                           0000777 0000000 0000000 00000000000 11524350672 025404  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/network                    0000755 0000000 0000000 00000014466 11524350670 027030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/gfs2                       0000755 0000000 0000000 00000006445 11524350666 026203  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/sysstat                    0000755 0000000 0000000 00000002363 11524350672 027044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/saslauthd                  0000755 0000000 0000000 00000004010 11524350672 027311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/messagebus                 0000755 0000000 0000000 00000004230 11524350667 027467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/autobench                  0000755 0000000 0000000 00000005063 11524350665 027304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/atd                        0000755 0000000 0000000 00000004112 11524350665 026076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/mcelogd                    0000755 0000000 0000000 00000003535 11524350667 026752  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/auditd                     0000755 0000000 0000000 00000006462 11524350665 026612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/certmonger                 0000755 0000000 0000000 00000004054 11524350665 027500  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/irqbalance                 0000755 0000000 0000000 00000003521 11524350667 027434  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/acpid                      0000755 0000000 0000000 00000003275 11524350665 026417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/nscd                       0000755 0000000 0000000 00000004723 11524350670 026261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                  0000755 0000000 0000000 00000005222 11524350671 027271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/nfs                        0000755 0000000 0000000 00000013536 11524350670 026122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/sssd                       0000755 0000000 0000000 00000004731 11524350672 026307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/crond                      0000755 0000000 0000000 00000005445 11524350666 026446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/ip6tables                  0000755 0000000 0000000 00000020716 11524350666 027230  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/autofs                     0000755 0000000 0000000 00000007234 11524350665 026637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/sshd                       0000755 0000000 0000000 00000010671 11524350672 026274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/ksm                        0000755 0000000 0000000 00000004236 11524350667 026131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/libvirt-guests             0000755 0000000 0000000 00000017172 11524350667 030325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/avahi-daemon               0000755 0000000 0000000 00000004754 11524350665 027673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/ypbind                     0000755 0000000 0000000 00000011277 11524350672 026623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/psacct                     0000755 0000000 0000000 00000003024 11524350671 026601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/xinetd                     0000755 0000000 0000000 00000006743 11524350672 026633  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/nfslock                    0000755 0000000 0000000 00000006675 11524350670 027001  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/cgred                      0000755 0000000 0000000 00000006302 11524350665 026415  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/migrateip                  0000755 0000000 0000000 00000001364 11524350670 027311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/udev-post                  0000755 0000000 0000000 00000004370 11524350672 027260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/haldaemon                  0000755 0000000 0000000 00000003245 11524350666 027265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/ipsec                      0000755 0000000 0000000 00000010777 11524350666 026450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/rpcbind                    0000755 0000000 0000000 00000004031 11524350671 026744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/rhnsd                      0000755 0000000 0000000 00000005522 11524350671 026447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/functions                  0000644 0000000 0000000 00000042767 11524350666 027356  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/kdump                      0000755 0000000 0000000 00000027662 11524350667 026467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/postfix                    0000755 0000000 0000000 00000007414 11524350671 027027  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/iptables                   0000755 0000000 0000000 00000020557 11524350666 027145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/rsyslog                    0000755 0000000 0000000 00000004326 11524350671 027034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/netconsole                 0000755 0000000 0000000 00000005650 11524350670 027503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/rpcgssd                    0000755 0000000 0000000 00000006050 11524350671 026773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/abrtd                      0000755 0000000 0000000 00000003254 11524350665 026430  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor               0000555 0000000 0000000 00000004612 11524350667 027700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/halt                       0000755 0000000 0000000 00000012723 11524350666 026266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/cgconfig                   0000755 0000000 0000000 00000012327 11524350665 027114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/single                     0000755 0000000 0000000 00000001207 11524350672 026607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/mdmonitor                  0000755 0000000 0000000 00000005013 11524350667 027341  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/restorecond                0000755 0000000 0000000 00000003427 11524350671 027662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/cpuspeed                   0000755 0000000 0000000 00000025442 11524350666 027150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/netfs                      0000755 0000000 0000000 00000012432 11524350670 026445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524350671 027507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/oddjobd                    0000755 0000000 0000000 00000004325 11524350670 026735  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/ksmtuned                   0000755 0000000 0000000 00000003433 11524350667 027167  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/sandbox                    0000755 0000000 0000000 00000003242 11524350671 026764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/killall                    0000755 0000000 0000000 00000001214 11524350667 026754  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/rdisc                      0000755 0000000 0000000 00000003027 11524350671 026433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/httpd                      0000755 0000000 0000000 00000006364 11524350666 026465  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/ntpd                       0000755 0000000 0000000 00000003603 11524350670 026273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/smartd                     0000755 0000000 0000000 00000005672 11524350672 026632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/nslcd                      0000755 0000000 0000000 00000003213 11524350670 026426  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/ntpdate                    0000755 0000000 0000000 00000003512 11524350670 026764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile11/idleserver/VM_configuration/etc/rc.d/init.d/microcode_ctl              0000755 0000000 0000000 00000002221 11524350667 030135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/idleserver/VM_configuration/etc/hosts                                  0000644 0000000 0000000 00000000267 11524350664 024456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/idleserver/VM_configuration/etc/iproute2/                              0000777 0000000 0000000 00000000000 11524350664 025143  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/etc/iproute2/rt_dsfield                    0000644 0000000 0000000 00000000672 11524350664 027206  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile11/idleserver/VM_configuration/etc/iproute2/rt_realms                     0000644 0000000 0000000 00000000160 11524350664 027047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile11/idleserver/VM_configuration/etc/iproute2/rt_scopes                     0000644 0000000 0000000 00000000134 11524350664 027061  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/idleserver/VM_configuration/etc/iproute2/ematch_map                    0000644 0000000 0000000 00000000073 11524350664 027160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/idleserver/VM_configuration/etc/iproute2/rt_tables                     0000644 0000000 0000000 00000000127 11524350664 027041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/idleserver/VM_configuration/etc/iproute2/rt_protos                     0000644 0000000 0000000 00000000475 11524350664 027123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/etc/nsswitch.conf                          0000644 0000000 0000000 00000003230 11524350664 026075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/idleserver/VM_configuration/etc/fstab                                  0000644 0000000 0000000 00000001603 11524350664 024410  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile11/idleserver/VM_configuration/etc/sysctl.conf                            0000644 0000000 0000000 00000001466 11524350700 025554  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile11/idleserver/VM_configuration/etc/inittab                                0000644 0000000 0000000 00000001564 11524350664 024751  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile11/idleserver/VM_configuration/var/                                       0000777 0000000 0000000 00000000000 11524350702 023400  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/var/log/                                   0000777 0000000 0000000 00000000000 11524350702 024161  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/var/log/dmesg                              0000644 0000000 0000000 00000041450 11524350702 025203  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003fffd000 (usable)
 BIOS-e820: 000000003fffd000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x3fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000003fffd000
 0000000000 - 003fe00000 page 2M
 003fe00000 - 003fffd000 page 4k
kernel direct mapping tables up to 3fffd000 @ 8000-b000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000003fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000003ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000003fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000003ffffe00 00040
ACPI: SSDT 000000003fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000003fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000003fffd000
Bootmem setup node 0 0000000000000000-000000003fffd000
  NODE_DATA [0000000000009000 - 000000000003cfff]
  bootmap [000000000003d000 -  0000000000044fff] pages 8
(7 early reservations) ==> bootmem [0000000000 - 003fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0000dfffff] PMD -> [ffff880002200000-ffff880002ffffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0003fffd
On node 0 totalpages: 262038
  DMA zone: 56 pages used for memmap
  DMA zone: 105 pages reserved
  DMA zone: 3832 pages, LIFO batch:0
  DMA32 zone: 3528 pages used for memmap
  DMA32 zone: 254517 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 40000000 (gap: 40000000:bffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 258349
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 1007148k/1048564k available (4935k kernel code, 412k absent, 41004k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 10485760 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116196.315:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 1992
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:03:15 UTC (1297116195)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda:
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 30 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                        Virtual_Configuration/tile11/idleserver/VM_configuration/boot/                                      0000777 0000000 0000000 00000000000 11524350663 023561  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/boot/grub/                                 0000777 0000000 0000000 00000000000 11524350663 024520  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/VM_configuration/boot/grub/grub.conf                        0000644 0000000 0000000 00000002217 11524350663 026324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/idleserver/VM_configuration/rpmpkgs.txt                                0000644 0000000 0000000 00000067153 11524350701 025043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/idleserver/VM_configuration/ifconfig.txt                               0000644 0000000 0000000 00000001573 11524350700 025135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:40  
          inet addr:10.1.217.64  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe91:40/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22870 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2707 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1932830 (1.8 MiB)  TX bytes:805632 (786.7 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:750 errors:0 dropped:0 overruns:0 frame:0
          TX packets:750 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:73619 (71.8 KiB)  TX bytes:73619 (71.8 KiB)

                                                                                                                                     Virtual_Configuration/tile11/idleserver/VM_configuration/chkconfig.txt                              0000644 0000000 0000000 00000006535 11524350663 025317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile11/idleserver/Software_Configuration/                                     0000777 0000000 0000000 00000000000 11524350663 024026  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/                                                             0000777 0000000 0000000 00000000000 11524350624 017205  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/                                            0000777 0000000 0000000 00000000000 11524350643 022457  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/proc/                                       0000777 0000000 0000000 00000000000 11524350642 023421  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/proc/cpuinfo                                0000644 0000000 0000000 00000002030 11524350642 024776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/appserver/VM_configuration/proc/mounts                                 0000644 0000000 0000000 00000001357 11524350642 024673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1278676k,nr_inodes=319669,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1374,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1374,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/appserver/VM_configuration/proc/swaps                                  0000644 0000000 0000000 00000000144 11524350642 024474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/appserver/VM_configuration/proc/devices                                0000644 0000000 0000000 00000000567 11524350642 024772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile11/appserver/VM_configuration/proc/modules                                0000644 0000000 0000000 00000002621 11524350642 025011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 63 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile11/appserver/VM_configuration/proc/partitions                             0000644 0000000 0000000 00000000260 11524350642 025532  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile11/appserver/VM_configuration/proc/meminfo                                0000644 0000000 0000000 00000002222 11524350642 024770  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2571688 kB
MemFree:          495212 kB
Buffers:           37840 kB
Cached:           244904 kB
SwapCached:            0 kB
Active:          1751632 kB
Inactive:         189316 kB
Active(anon):    1658396 kB
Inactive(anon):        4 kB
Active(file):      93236 kB
Inactive(file):   189312 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               156 kB
Writeback:             0 kB
AnonPages:       1658076 kB
Mapped:            76196 kB
Shmem:               164 kB
Slab:             101936 kB
SReclaimable:      35232 kB
SUnreclaim:        66704 kB
KernelStack:        2648 kB
PageTables:         7008 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3333836 kB
Committed_AS:     326864 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19244 kB
VmallocChunk:   34359711668 kB
HardwareCorrupted:     0 kB
AnonHugePages:   1413120 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2613248 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/appserver/VM_configuration/root/                                       0000777 0000000 0000000 00000000000 11524350643 023442  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/root/convert_to_vf.sh                       0000755 0000000 0000000 00000001135 11524350643 026652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/lspci.txt                                   0000644 0000000 0000000 00000001211 11524350642 024320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/appserver/VM_configuration/df.txt                                      0000644 0000000 0000000 00000000401 11524350625 023600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8772720   4008216  69% /
tmpfs                  1285844         0   1285844   0% /dev/shm
/dev/vdb1             20642412   2027344  17566496  11% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/appserver/VM_configuration/mount.txt                                   0000644 0000000 0000000 00000000612 11524350642 024354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile11/appserver/VM_configuration/etc/                                        0000777 0000000 0000000 00000000000 11524350641 023230  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/                                   0000777 0000000 0000000 00000000000 11524350634 024060  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/                             0000777 0000000 0000000 00000000000 11524350641 024767  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests            0000755 0000000 0000000 00000017172 11524350634 030163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                   0000755 0000000 0000000 00000004325 11524350634 026601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                0000755 0000000 0000000 00000006014 11524350635 027370  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                  0000755 0000000 0000000 00000012327 11524350637 026773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                 0000755 0000000 0000000 00000005222 11524350640 027150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                      0000755 0000000 0000000 00000010671 11524350641 026154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                     0000755 0000000 0000000 00000006364 11524350635 026331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                 0000755 0000000 0000000 00000020716 11524350636 027102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                      0000755 0000000 0000000 00000004731 11524350636 026161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon              0000755 0000000 0000000 00000004754 11524350634 027533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                 0000755 0000000 0000000 00000001364 11524350641 027173  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                     0000755 0000000 0000000 00000003027 11524350636 026317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                    0000755 0000000 0000000 00000006743 11524350641 026514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                     0000755 0000000 0000000 00000010777 11524350636 026324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                0000755 0000000 0000000 00000004230 11524350640 027334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                     0000755 0000000 0000000 00000006302 11524350636 026273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                       0000755 0000000 0000000 00000004236 11524350641 026007  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                   0000755 0000000 0000000 00000004031 11524350637 026624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                0000755 0000000 0000000 00000003521 11524350637 027307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                   0000755 0000000 0000000 00000006050 11524350640 026653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                   0000755 0000000 0000000 00000002363 11524350637 026731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                0000755 0000000 0000000 00000004054 11524350634 027337  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                 0000755 0000000 0000000 00000005013 11524350640 027210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                     0000755 0000000 0000000 00000003213 11524350636 026312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                   0000755 0000000 0000000 00000003512 11524350636 026644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                      0000755 0000000 0000000 00000003603 11524350636 026152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                    0000755 0000000 0000000 00000011277 11524350635 026476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S10network                   0000755 0000000 0000000 00000014466 11524350637 026706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                   0000755 0000000 0000000 00000004326 11524350637 026713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                    0000755 0000000 0000000 00000006462 11524350637 026465  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                     0000755 0000000 0000000 00000027662 11524350640 026332  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                      0000755 0000000 0000000 00000006445 11524350635 026054  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                 0000755 0000000 0000000 00000003245 11524350640 027137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K60crond                     0000755 0000000 0000000 00000005445 11524350635 026312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                     0000755 0000000 0000000 00000005522 11524350634 026313  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl             0000755 0000000 0000000 00000002221 11524350637 030004  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                 0000755 0000000 0000000 00000004010 11524350635 027153  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                       0000755 0000000 0000000 00000013536 11524350635 025773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                      0000755 0000000 0000000 00000004723 11524350641 026134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                    0000755 0000000 0000000 00000003024 11524350635 026444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                     0000755 0000000 0000000 00000003275 11524350640 026272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                  0000755 0000000 0000000 00000025442 11524350637 027024  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                 0000755 0000000 0000000 00000004370 11524350640 027135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S99local                     0000755 0000000 0000000 00000000334 11524350641 026310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                   0000755 0000000 0000000 00000006675 11524350640 026655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                0000755 0000000 0000000 00000005650 11524350635 027353  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor              0000555 0000000 0000000 00000004612 11524350637 027551  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                    0000755 0000000 0000000 00000007234 11524350640 026514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                  0000755 0000000 0000000 00000003433 11524350641 027046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                    0000755 0000000 0000000 00000005672 11524350634 026473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                     0000755 0000000 0000000 00000003254 11524350641 026306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                 0000755 0000000 0000000 00000005063 11524350641 027162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                     0000755 0000000 0000000 00000012432 11524350640 026323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                   0000755 0000000 0000000 00000007414 11524350635 026674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                  0000755 0000000 0000000 00000020557 11524350636 027017  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond               0000755 0000000 0000000 00000003427 11524350636 027544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/rc3.d/K05atd                       0000755 0000000 0000000 00000004112 11524350634 025741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/                            0000777 0000000 0000000 00000000000 11524350634 025245  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/network                     0000755 0000000 0000000 00000014466 11524350631 026670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/gfs2                        0000755 0000000 0000000 00000006445 11524350627 026043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/sysstat                     0000755 0000000 0000000 00000002363 11524350633 026704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/saslauthd                   0000755 0000000 0000000 00000004010 11524350633 027151  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/messagebus                  0000755 0000000 0000000 00000004230 11524350631 027321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/autobench                   0000755 0000000 0000000 00000005063 11524350626 027144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/atd                         0000755 0000000 0000000 00000004112 11524350626 025736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/mcelogd                     0000755 0000000 0000000 00000003535 11524350631 026604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/auditd                      0000755 0000000 0000000 00000006462 11524350626 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/certmonger                  0000755 0000000 0000000 00000004054 11524350627 027341  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/irqbalance                  0000755 0000000 0000000 00000003521 11524350630 027265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/acpid                       0000755 0000000 0000000 00000003275 11524350626 026257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/nscd                        0000755 0000000 0000000 00000004723 11524350632 026122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                   0000755 0000000 0000000 00000005222 11524350633 027132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/nfs                         0000755 0000000 0000000 00000013536 11524350631 025762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/sssd                        0000755 0000000 0000000 00000004731 11524350633 026147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/crond                       0000755 0000000 0000000 00000005445 11524350627 026306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/ip6tables                   0000755 0000000 0000000 00000020716 11524350630 027062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/autofs                      0000755 0000000 0000000 00000007234 11524350626 026477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/sshd                        0000755 0000000 0000000 00000010671 11524350633 026134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/ksm                         0000755 0000000 0000000 00000004236 11524350630 025762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/libvirt-guests              0000755 0000000 0000000 00000017172 11524350630 030156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                0000755 0000000 0000000 00000004754 11524350626 027533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/ypbind                      0000755 0000000 0000000 00000011277 11524350634 026464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/psacct                      0000755 0000000 0000000 00000003024 11524350632 026441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/xinetd                      0000755 0000000 0000000 00000006743 11524350634 026474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/nfslock                     0000755 0000000 0000000 00000006675 11524350631 026641  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/cgred                       0000755 0000000 0000000 00000006302 11524350627 026256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/migrateip                   0000755 0000000 0000000 00000001364 11524350631 027151  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/udev-post                   0000755 0000000 0000000 00000004370 11524350634 027121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/haldaemon                   0000755 0000000 0000000 00000003245 11524350627 027125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/ipsec                       0000755 0000000 0000000 00000010777 11524350630 026302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/rpcbind                     0000755 0000000 0000000 00000004031 11524350632 026604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/rhnsd                       0000755 0000000 0000000 00000005522 11524350632 026307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/functions                   0000644 0000000 0000000 00000042767 11524350627 027216  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/kdump                       0000755 0000000 0000000 00000027662 11524350630 026320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/postfix                     0000755 0000000 0000000 00000007414 11524350632 026667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/iptables                    0000755 0000000 0000000 00000020557 11524350630 026777  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/rsyslog                     0000755 0000000 0000000 00000004326 11524350633 026675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/netconsole                  0000755 0000000 0000000 00000005650 11524350631 027343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/rpcgssd                     0000755 0000000 0000000 00000006050 11524350632 026633  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/abrtd                       0000755 0000000 0000000 00000003254 11524350626 026270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                0000555 0000000 0000000 00000004612 11524350630 027531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/halt                        0000755 0000000 0000000 00000012723 11524350627 026126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/cgconfig                    0000755 0000000 0000000 00000012327 11524350627 026755  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/single                      0000755 0000000 0000000 00000001207 11524350633 026447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/mdmonitor                   0000755 0000000 0000000 00000005013 11524350631 027173  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/restorecond                 0000755 0000000 0000000 00000003427 11524350632 027522  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/cpuspeed                    0000755 0000000 0000000 00000025442 11524350627 027010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/netfs                       0000755 0000000 0000000 00000012432 11524350631 026305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                  0000755 0000000 0000000 00000006014 11524350633 027350  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/oddjobd                     0000755 0000000 0000000 00000004325 11524350632 026576  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/ksmtuned                    0000755 0000000 0000000 00000003433 11524350630 027020  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/sandbox                     0000755 0000000 0000000 00000003242 11524350633 026625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/killall                     0000755 0000000 0000000 00000001214 11524350630 026605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/rdisc                       0000755 0000000 0000000 00000003027 11524350632 026273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/httpd                       0000755 0000000 0000000 00000006364 11524350627 026325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/ntpd                        0000755 0000000 0000000 00000003603 11524350632 026134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/smartd                      0000755 0000000 0000000 00000005672 11524350633 026472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/nslcd                       0000755 0000000 0000000 00000003213 11524350632 026267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/ntpdate                     0000755 0000000 0000000 00000003512 11524350632 026625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile11/appserver/VM_configuration/etc/rc.d/init.d/microcode_ctl               0000755 0000000 0000000 00000002221 11524350631 027767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/appserver/VM_configuration/etc/hosts                                   0000644 0000000 0000000 00000000267 11524350625 024316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/appserver/VM_configuration/etc/iproute2/                               0000777 0000000 0000000 00000000000 11524350626 025004  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/etc/iproute2/rt_dsfield                     0000644 0000000 0000000 00000000672 11524350625 027046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile11/appserver/VM_configuration/etc/iproute2/rt_realms                      0000644 0000000 0000000 00000000160 11524350625 026707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile11/appserver/VM_configuration/etc/iproute2/rt_scopes                      0000644 0000000 0000000 00000000134 11524350626 026722  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/appserver/VM_configuration/etc/iproute2/ematch_map                     0000644 0000000 0000000 00000000073 11524350625 027020  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/appserver/VM_configuration/etc/iproute2/rt_tables                      0000644 0000000 0000000 00000000127 11524350626 026702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/appserver/VM_configuration/etc/iproute2/rt_protos                      0000644 0000000 0000000 00000000475 11524350625 026763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/etc/nsswitch.conf                           0000644 0000000 0000000 00000003230 11524350626 025736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/appserver/VM_configuration/etc/fstab                                   0000644 0000000 0000000 00000001603 11524350625 024250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile11/appserver/VM_configuration/etc/sysctl.conf                             0000644 0000000 0000000 00000001466 11524350641 025423  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile11/appserver/VM_configuration/etc/inittab                                 0000644 0000000 0000000 00000001564 11524350625 024611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile11/appserver/VM_configuration/var/                                        0000777 0000000 0000000 00000000000 11524350643 023247  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/var/log/                                    0000777 0000000 0000000 00000000000 11524350643 024030  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/var/log/dmesg                               0000644 0000000 0000000 00000044274 11524350643 025061  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000009fffd000 (usable)
 BIOS-e820: 000000009fffd000 - 00000000a0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x9fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000009fffd000
 0000000000 - 009fe00000 page 2M
 009fe00000 - 009fffd000 page 4k
kernel direct mapping tables up to 9fffd000 @ 8000-d000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 000000009fffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000009ffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000009fffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000009ffffdc0 00040
ACPI: SSDT 000000009fffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000009fffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000009fffd000
Bootmem setup node 0 0000000000000000-000000009fffd000
  NODE_DATA [000000000000b000 - 000000000003efff]
  bootmap [000000000003f000 -  0000000000052fff] pages 14
(7 early reservations) ==> bootmem [0000000000 - 009fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000b000]          PGTABLE ==> [0000008000 - 000000b000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00023fffff] PMD -> [ffff880002200000-ffff8800045fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0009fffd
On node 0 totalpages: 655254
  DMA zone: 56 pages used for memmap
  DMA zone: 107 pages reserved
  DMA zone: 3830 pages, LIFO batch:0
  DMA32 zone: 8904 pages used for memmap
  DMA32 zone: 642357 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at a0000000 (gap: a0000000:5ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 646187
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2557352k/2621428k available (4935k kernel code, 412k absent, 63664k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 26214400 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (13867.27 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116103.292:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 5020
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:42 UTC (1297116102)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
36:a7:2c:82:eb:5b
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/appserver/VM_configuration/boot/                                       0000777 0000000 0000000 00000000000 11524350624 023421  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/boot/grub/                                  0000777 0000000 0000000 00000000000 11524350624 024360  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/VM_configuration/boot/grub/grub.conf                         0000644 0000000 0000000 00000001352 11524350625 026164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/appserver/VM_configuration/rpmpkgs.txt                                 0000644 0000000 0000000 00000067153 11524350643 024713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/appserver/VM_configuration/ifconfig.txt                                0000644 0000000 0000000 00000002353 11524350642 025002  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:3E  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:245 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:23867 (23.3 KiB)  TX bytes:828 (828.0 b)

eth1      Link encap:Ethernet  HWaddr 36:A7:2C:82:EB:5B  
          inet addr:10.1.217.62  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::34a7:2cff:fe82:eb5b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17364777 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38342401 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5074712186 (4.7 GiB)  TX bytes:41993817171 (39.1 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:662313 errors:0 dropped:0 overruns:0 frame:0
          TX packets:662313 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:107800760 (102.8 MiB)  TX bytes:107800760 (102.8 MiB)

                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/appserver/VM_configuration/chkconfig.txt                               0000644 0000000 0000000 00000006535 11524350625 025160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile11/appserver/Software_Configuration/                                      0000777 0000000 0000000 00000000000 11524350624 023666  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/Software_Configuration/AppSrv01/                             0000777 0000000 0000000 00000000000 11524350624 025242  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/Software_Configuration/AppSrv01/server.xml                   0000644 0000000 0000000 00000103647 11524350624 027301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   <?xml version="1.0" encoding="UTF-8"?>
<process:Server xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:adminservice="http://www.ibm.com/websphere/appserver/schemas/5.0/adminservice.xmi" xmlns:applicationserver="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.xmi" xmlns:applicationserver.ejbcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.xmi" xmlns:applicationserver.ejbcontainer.messagelistener="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.messagelistener.xmi" xmlns:applicationserver.sipcontainer="www.ibm.com/websphere/appserver/schemas/7.0/applicationserver.sipcontainer.xmi" xmlns:applicationserver.webcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.webcontainer.xmi" xmlns:channelservice="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.xmi" xmlns:channelservice.channels="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.channels.xmi" xmlns:coregroupbridgeservice="http://www.ibm.com/websphere/appserver/schemas/6.0/coregroupbridgeservice.xmi" xmlns:diagnosticproviderservice="http://www.ibm.com/websphere/appserver/schemas/5.0/diagnosticproviderservice.xmi" xmlns:loggingservice.http="http://www.ibm.com/websphere/appserver/schemas/6.0/loggingservice.http.xmi" xmlns:loggingservice.ras="http://www.ibm.com/websphere/appserver/schemas/5.0/loggingservice.ras.xmi" xmlns:namingserver="http://www.ibm.com/websphere/appserver/schemas/5.0/namingserver.xmi" xmlns:orb="http://www.ibm.com/websphere/appserver/schemas/5.0/orb.xmi" xmlns:pmiservice="http://www.ibm.com/websphere/appserver/schemas/5.0/pmiservice.xmi" xmlns:portletcontainer="http://www.ibm.com/websphere/appserver/schemas/6.0/portletcontainer.xmi" xmlns:process="http://www.ibm.com/websphere/appserver/schemas/5.0/process.xmi" xmlns:processexec="http://www.ibm.com/websphere/appserver/schemas/5.0/processexec.xmi" xmlns:sibresources="http://www.ibm.com/websphere/appserver/schemas/6.0/sibresources.xmi" xmlns:threadpoolmanager="http://www.ibm.com/websphere/appserver/schemas/6.0/threadpoolmanager.xmi" xmlns:tperfviewer="http://www.ibm.com/websphere/appserver/schemas/6.0/tperfviewer.xmi" xmlns:traceservice="http://www.ibm.com/websphere/appserver/schemas/5.0/traceservice.xmi" xmi:id="Server_1183122130078" name="server1" parallelStartEnabled="true">
  <stateManagement xmi:id="StateManageable_1183122130078" initialState="START"/>
  <statisticsProvider xmi:id="StatisticsProvider_1183122130078" specification="com.ibm.orb=enabled"/>
  <services xmi:type="pmiservice:PMIService" xmi:id="PMIService_1183122130078" enable="false" initialSpecLevel="" statisticSet="basic" synchronizedUpdate="false"/>
  <services xmi:type="adminservice:AdminService" xmi:id="AdminService_1183122130078" enable="true" standalone="true" localAdminProtocol="IPCConnector_1" remoteAdminProtocol="SOAPConnector_1">
    <connectors xmi:type="adminservice:SOAPConnector" xmi:id="SOAPConnector_1" enable="true">
      <properties xmi:id="Property_3" name="requestTimeout" value="600"/>
    </connectors>
    <connectors xmi:type="adminservice:RMIConnector" xmi:id="RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:JSR160RMIConnector" xmi:id="JSR160RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:IPCConnector" xmi:id="IPCConnector_1" enable="true">
      <properties xmi:id="Property_4" name="requestTimeout" value="600"/>
    </connectors>
    <configRepository xmi:id="RepositoryService_1183122130078"/>
    <pluginConfigService xmi:id="PluginConfigService_1183122130078" enable="true"/>
  </services>
  <services xmi:type="traceservice:TraceService" xmi:id="TraceService_1183122130078" enable="false" startupTraceSpecification="*=all=disabled" traceOutputType="SPECIFIED_FILE" traceFormat="BASIC" memoryBufferSize="8">
    <traceLog xmi:id="TraceLog_1183122130078" fileName="${SERVER_LOG_ROOT}/trace.log" rolloverSize="100" maxNumberOfBackupFiles="10"/>
  </services>
  <services xmi:type="diagnosticproviderservice:DiagnosticProviderService" xmi:id="DiagnosticProviderService_1183122130078" enable="true" startupStateCollectionSpec=".*:.*=0"/>
  <services xmi:type="loggingservice.ras:RASLoggingService" xmi:id="RASLoggingService_1183122130078" enable="true" messageFilterLevel="NONE" enableCorrelationId="true">
    <serviceLog xmi:id="ServiceLog_1183122130078" name="${LOG_ROOT}/activity.log" size="2" enabled="true"/>
  </services>
  <services xmi:type="coregroupbridgeservice:CoreGroupBridgeService" xmi:id="CoreGroupBridgeService_1183122130078" enable="true"/>
  <services xmi:type="tperfviewer:TPVService" xmi:id="TPVService_1183122130078" enable="true"/>
  <services xmi:type="orb:ObjectRequestBroker" xmi:id="ObjectRequestBroker_1183122130078" enable="true" requestTimeout="180" requestRetriesCount="1" requestRetriesDelay="0" connectionCacheMaximum="240" connectionCacheMinimum="100" commTraceEnabled="false" locateRequestTimeout="180" forceTunnel="never" noLocalCopies="false" useServerThreadPool="true">
    <properties xmi:id="Property_1183122130079" name="com.ibm.CORBA.enableLocateRequest" value="true"/>
    <properties xmi:id="Property_1183122130080" name="com.ibm.ws.orb.transport.WSSSLServerSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLServerSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130081" name="com.ibm.ws.orb.transport.WSSSLClientSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130082" name="com.ibm.CORBA.ConnectionInterceptorName" value="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor"/>
    <properties xmi:id="Property_1183122130083" name="com.ibm.CORBA.RasManager" value="com.ibm.websphere.ras.WsOrbRasManager"/>
    <properties xmi:id="Property_1183122130084" name="com.ibm.ws.orb.transport.useMultiHome" value="true"/>
    <properties xmi:id="Property_1183122130085" name="com.ibm.websphere.management.registerServerIORWithLSD" value="true"/>
    <interceptors xmi:id="Interceptor_1183122130078" name="com.ibm.ejs.ras.RasContextSupport"/>
    <interceptors xmi:id="Interceptor_1183122130079" name="com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRequestInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130080" name="com.ibm.ws.Transaction.JTS.TxInterceptorInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130081" name="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityComponentFactory"/>
    <interceptors xmi:id="Interceptor_1183122130082" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ServerRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130083" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ClientRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130084" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIClientRI"/>
    <interceptors xmi:id="Interceptor_1183122130085" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRI"/>
    <interceptors xmi:id="Interceptor_1183122130086" name="com.ibm.ws.wlm.client.WLMClientInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130087" name="com.ibm.ws.wlm.server.WLMServerInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130088" name="com.ibm.ws.activity.remote.cos.ActivityServiceServerInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130089" name="com.ibm.debug.DebugPortableInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130090" name="com.ibm.debug.olt.ivbtrjrt.OLT_RI"/>
    <plugins xmi:id="ORBPlugin_1183122130078" name="com.ibm.ws.orbimpl.transport.WSTransport"/>
    <plugins xmi:id="ORBPlugin_1183122130079" name="com.ibm.ISecurityUtilityImpl.SecurityPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130080" name="com.ibm.ws.orbimpl.WSORBPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130081" name="com.ibm.ws.wlm.client.WLMClient"/>
    <plugins xmi:id="ORBPlugin_1183122130082" name="com.ibm.ws.pmi.server.modules.OrbPerfModule"/>
    <plugins xmi:id="ORBPlugin_1183122130083" name="com.ibm.ws.csi.CORBAORBMethodAccessControl"/>
    <threadPool xmi:id="ThreadPool_1183122130078" minimumSize="13" maximumSize="13" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
  </services>
  <services xmi:type="channelservice:TransportChannelService" xmi:id="TransportChannelService_1183122130078" enable="true">
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130078" name="TCP_1" endPointName="WC_adminhost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130079" name="TCP_2" endPointName="WC_defaulthost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130080" name="TCP_3" endPointName="WC_adminhost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130081" name="TCP_4" endPointName="WC_defaulthost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130082" name="TCP_5" endPointName="DCS_UNICAST_ADDRESS" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130080"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130083" name="TCP_8" discriminationWeight="0" endPointName="SIP_DEFAULTHOST" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130084" name="TCP_9" discriminationWeight="0" endPointName="SIP_DEFAULTHOST_SECURE" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130078" name="SSL_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130079" name="SSL_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130080" name="SSL_3" discriminationWeight="2"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130081" name="SSL_5" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130078" name="HTTP_1" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130079" name="HTTP_2" discriminationWeight="1" maximumPersistentRequests="-1" keepAlive="true" readTimeout="6000" writeTimeout="6000" persistentTimeout="3000" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130080" name="HTTP_3" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130081" name="HTTP_4" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130078" name="HTTPQ_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130079" name="HTTPQ_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130078" name="WCC_1" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130079" name="WCC_2" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130080" name="WCC_3" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130081" name="WCC_4" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130082" name="WCC_5" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130083" name="WCC_6" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130078" name="DCS_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130079" name="DCS_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130078" name="SIP_1" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130079" name="SIP_2" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130080" name="SIP_3" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130078" name="SIPCC_1" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130079" name="SIPCC_2" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130080" name="SIPCC_3" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:UDPInboundChannel" xmi:id="UDPInboundChannel_1183122130078" name="UDP_1" discriminationWeight="0" endPointName="SIP_DEFAULTHOST"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130085" name="SIB_TCP_JFAP" endPointName="SIB_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130086" name="SIB_TCP_JFAP_SSL" endPointName="SIB_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130087" name="SIB_TCP_MQFAP" endPointName="SIB_MQ_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130088" name="SIB_TCP_MQFAP_SSL" endPointName="SIB_MQ_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130082" name="SIB_SSL_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130083" name="SIB_SSL_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130078" name="SIB_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130079" name="SIB_JFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130078" name="SIB_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130079" name="SIB_MQFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130078" name="SIB_TCP_JFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130079" name="SIB_TCP_JFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130080" name="SIB_TCP_JFAP_TUN_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130081" name="SIB_TCP_JFAP_TUN_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130082" name="SIB_TCP_MQFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130083" name="SIB_TCP_MQFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130078" name="SIB_SSL_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130079" name="SIB_SSL_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130080" name="SIB_SSL_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130078" name="SIB_HTTP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130079" name="SIB_HTTP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130078" name="SIB_HTC_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130079" name="SIB_HTC_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130078" name="SIB_JFAP_JFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130079" name="SIB_JFAP_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130080" name="SIB_JFAP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130081" name="SIB_JFAP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130078" name="SIB_MQFAP_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130079" name="SIB_MQFAP_MQFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130084" name="SIB_TCP_RMQ_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130085" name="SIB_TCP_RMQ_SSL_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130081" name="SIB_SSL_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130078" name="SIB_RMQ_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130079" name="SIB_RMQ_RMQ_OUT"/>
    <chains xmi:id="Chain_1183122130078" name="WCInboundAdmin" enable="true" transportChannels="TCPInboundChannel_1183122130078 HTTPInboundChannel_1183122130078 WebContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130079" name="WCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 WebContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130080" name="HttpQueueInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 HTTPQueueInboundChannel_1183122130078 WebContainerInboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130081" name="HttpQueueInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 HTTPQueueInboundChannel_1183122130079 WebContainerInboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130082" name="WCInboundAdminSecure" enable="true" transportChannels="TCPInboundChannel_1183122130080 SSLInboundChannel_1183122130078 HTTPInboundChannel_1183122130080 WebContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130083" name="WCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 WebContainerInboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130084" name="DCS" enable="true" transportChannels="TCPInboundChannel_1183122130082 DCSInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130085" name="DCS-Secure" enable="true" transportChannels="TCPInboundChannel_1183122130082 SSLInboundChannel_1183122130080 DCSInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130086" name="SIPCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130083 SIPInboundChannel_1183122130078 SIPContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130087" name="SIPCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130084 SSLInboundChannel_1183122130081 SIPInboundChannel_1183122130079 SIPContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130088" name="SIPCInboundDefaultUDP" enable="true" transportChannels="UDPInboundChannel_1183122130078 SIPInboundChannel_1183122130080 SIPContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130089" name="InboundBasicMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130085 JFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130090" name="InboundSecureMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130086 SSLInboundChannel_1183122130082 JFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130091" name="InboundBasicMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130087 MQFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130092" name="InboundSecureMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130088 SSLInboundChannel_1183122130083 MQFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130093" name="BootstrapBasicMessaging" transportChannels="JFAPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130094" name="BootstrapSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130079 TCPOutboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130095" name="BootstrapTunneledMessaging" transportChannels="JFAPOutboundChannel_1183122130080 HTTPTunnelOutboundChannel_1183122130078 HTTPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130096" name="BootstrapTunneledSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130081 HTTPTunnelOutboundChannel_1183122130079 HTTPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130080 TCPOutboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130097" name="OutboundBasicMQLink" transportChannels="MQFAPOutboundChannel_1183122130079 TCPOutboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130098" name="OutboundSecureMQLink" transportChannels="MQFAPOutboundChannel_1183122130078 SSLOutboundChannel_1183122130078 TCPOutboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130099" name="OutboundBasicWMQClient" transportChannels="RMQOutboundChannel_1183122130079 TCPOutboundChannel_1183122130084"/>
    <chains xmi:id="Chain_1183122130100" name="OutboundSecureWMQClient" transportChannels="RMQOutboundChannel_1183122130078 SSLOutboundChannel_1183122130081 TCPOutboundChannel_1183122130085"/>
  </services>
  <services xmi:type="threadpoolmanager:ThreadPoolManager" xmi:id="ThreadPoolManager_1183122130078" enable="true">
    <threadPools xmi:id="ThreadPool_1183122130083" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
    <threadPools xmi:id="ThreadPool_1183122130084" minimumSize="1" maximumSize="3" inactivityTimeout="30000" isGrowable="false" name="server.startup" description="This pool is used by WebSphere during server startup."/>
    <threadPools xmi:id="ThreadPool_1183122130085" minimumSize="15" maximumSize="15" inactivityTimeout="3500" name="Default"/>
    <threadPools xmi:id="ThreadPool_1183122130079" minimumSize="38" maximumSize="38" inactivityTimeout="3500" isGrowable="false" name="WebContainer"/>
    <threadPools xmi:id="ThreadPool_1183122130080" minimumSize="5" maximumSize="20" name="TCPChannel.DCS"/>
    <threadPools xmi:id="ThreadPool_1183122130081" minimumSize="4" maximumSize="50" name="SIBFAPInboundThreadPool" description="Service integration bus FAP inbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1183122130082" minimumSize="4" maximumSize="50" name="SIBFAPThreadPool" description="Service integration bus FAP outbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1265156361721" minimumSize="35" maximumSize="41" inactivityTimeout="3500" name="SIBJMSRAThreadPool" description="Service Integration Bus JMS Resource Adapter thread pool"/>
    <threadPools xmi:id="ThreadPool_1265156361827" minimumSize="1" maximumSize="40" name="WMQCommonServices" description="WebSphere MQ common services thread pool">
      <customProperties xmi:id="Property_1265156361829" name="com.ibm.websphere.threadpool.disableHungThreadDetection" value="true" required="false"/>
    </threadPools>
    <threadPools xmi:id="ThreadPool_1265156361831" minimumSize="5" maximumSize="25" name="WMQJCAResourceAdapter" description="wmqJcaRaThreadPoolDescription"/>
  </services>
  <services xmi:type="loggingservice.http:HTTPAccessLoggingService" xmi:id="HTTPAccessLoggingService_1183122130078" enable="false" enableErrorLogging="true" enableAccessLogging="true">
    <errorLog xmi:id="LogFile_1183122130078" filePath="${SERVER_LOG_ROOT}/http_error.log" maximumSize="500"/>
    <accessLog xmi:id="LogFile_1183122130079" filePath="${SERVER_LOG_ROOT}/http_access.log" maximumSize="500"/>
  </services>
  <errorStreamRedirect xmi:id="StreamRedirect_1183122130078" fileName="${SERVER_LOG_ROOT}/SystemErr.log" rolloverType="NONE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <outputStreamRedirect xmi:id="StreamRedirect_1183122130079" fileName="${SERVER_LOG_ROOT}/SystemOut.log" rolloverType="NONE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <components xmi:type="namingserver:NameServer" xmi:id="NameServer_1183122130078">
    <stateManagement xmi:id="StateManageable_1183122130079" initialState="START"/>
  </components>
  <components xmi:type="applicationserver:ApplicationServer" xmi:id="ApplicationServer_1183122130078" applicationClassLoaderPolicy="MULTIPLE">
    <stateManagement xmi:id="StateManageable_1183122130080" initialState="START"/>
    <services xmi:type="applicationserver:TransactionService" xmi:id="TransactionService_1183122130078" enable="true" totalTranLifetimeTimeout="0" clientInactivityTimeout="0" propogatedOrBMTTranLifetimeTimeout="300" httpProxyPrefix="" httpsProxyPrefix=""/>
    <services xmi:type="applicationserver:DynamicCache" xmi:id="DynamicCache_1183122130078" enable="true">
      <cacheGroups xmi:id="ExternalCacheGroup_1183122130078" name="EsiInvalidator">
        <members xmi:id="ExternalCacheGroupMember_1183122130078" address="localhost" adapterBeanName="com.ibm.websphere.servlet.cache.ESIInvalidatorServlet"/>
      </cacheGroups>
    </services>
    <components xmi:type="applicationserver.webcontainer:WebContainer" xmi:id="WebContainer_1183122130078" enableServletCaching="false" disablePooling="false">
      <stateManagement xmi:id="StateManageable_1183122130081" initialState="START"/>
      <services xmi:type="applicationserver.webcontainer:SessionManager" xmi:id="SessionManager_1183122130078" enable="true" enableUrlRewriting="false" enableCookies="true" enableSSLTracking="false" enableProtocolSwitchRewriting="false" sessionPersistenceMode="NONE" enableSecurityIntegration="false" allowSerializedSessionAccess="false" maxWaitTime="5" accessSessionOnTimeout="true">
        <defaultCookieSettings xmi:id="Cookie_1183122130078" domain="" maximumAge="-1" secure="false"/>
        <sessionDatabasePersistence xmi:id="SessionDatabasePersistence_1183122130078" datasourceJNDIName="jdbc/Sessions" userId="db2admin" password="{xor}Oz1tPjsyNjE=" db2RowSize="ROW_SIZE_4KB" tableSpaceName=""/>
        <tuningParams xmi:id="TuningParams_1183122130078" usingMultiRowSchema="false" maxInMemorySessionCount="1000" allowOverflow="true" scheduleInvalidation="false" writeFrequency="TIME_BASED_WRITE" writeInterval="10" writeContents="ONLY_UPDATED_ATTRIBUTES" invalidationTimeout="30">
          <invalidationSchedule xmi:id="InvalidationSchedule_1183122130078" firstHour="14" secondHour="2"/>
        </tuningParams>
      </services>
    </components>
    <components xmi:type="applicationserver.ejbcontainer:EJBContainer" xmi:id="EJBContainer_1183122130078" passivationDirectory="${USER_INSTALL_ROOT}/temp" inactivePoolCleanupInterval="30000">
      <stateManagement xmi:id="StateManageable_1183122130082" initialState="START"/>
      <services xmi:type="applicationserver.ejbcontainer.messagelistener:MessageListenerService" xmi:id="MessageListenerService_1183122130078">
        <threadPool xmi:id="ThreadPool_1183122130086" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="Message.Listener.Pool"/>
      </services>
      <cacheSettings xmi:id="EJBCache_1183122130078" cleanupInterval="3000" cacheSize="60000"/>
      <timerSettings xmi:id="EJBTimer_1183122130078" datasourceJNDIName="jdbc/DefaultEJBTimerDataSource" tablePrefix="EJBTIMER_" pollInterval="300" numAlarmThreads="1"/>
    </components>
    <components xmi:type="portletcontainer:PortletContainer" xmi:id="PortletContainer_1183122130078"/>
    <components xmi:type="applicationserver.sipcontainer:SIPContainer" xmi:id="SIPContainer_1183122130078" name="" maxAppSessions="120000" maxMessageRate="5000" maxDispatchQueueSize="3200" maxResponseTime="0" statAveragePeriod="1000" statUpdateRange="10000">
      <stack xmi:id="Stack_1183122130078">
        <timers xmi:id="Timers_1183122130078"/>
      </stack>
    </components>
    <webserverPluginSettings xmi:id="WebserverPluginSettings_1183122130078" WaitForContinue="false" ConnectTimeout="0" MaxConnections="-1" ExtendedHandshake="false" ServerIOTimeout="0"/>
  </components>
  <processDefinitions xmi:type="processexec:JavaProcessDef" xmi:id="JavaProcessDef_1183122130078" workingDirectory="${USER_INSTALL_ROOT}" executableTargetKind="JAVA_CLASS" executableTarget="com.ibm.ws.runtime.WsServer">
    <execution xmi:id="ProcessExecution_1183122130078" processPriority="20" runAsUser="" runAsGroup=""/>
    <ioRedirect xmi:id="OutputRedirect_1183122130078" stdoutFilename="${SERVER_LOG_ROOT}/native_stdout.log" stderrFilename="${SERVER_LOG_ROOT}/native_stderr.log"/>
    <monitoringPolicy xmi:id="MonitoringPolicy_1183122130078" maximumStartupAttempts="3" pingInterval="60" pingTimeout="300" autoRestart="true" nodeRestartState="STOPPED"/>
    <jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="true" verboseModeJNI="false" initialHeapSize="1280" maximumHeapSize="1280" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777" genericJvmArguments="-Dcom.ibm.CORBA.TransportMode=Pluggable -Dcom.ibm.ws.pm.batch=true -Dcom.ibm.ws.pm.deferredcreate=true -Dcom.ibm.CORBA.FragmentSize=3000 -Dcom.ibm.ws.pm.useLegacyCache=false -Dcom.ibm.ws.pm.grouppartialupdate=true -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XML11Configuration -noclassgc -Xss128k  -Xgcpolicy:gencon -Xmo320m -Xcodecache16m -Xgcthreads4 -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=0">
      <systemProperties xmi:id="Property_1" name="com.ibm.security.jgss.debug" value="off" required="false"/>
      <systemProperties xmi:id="Property_2" name="com.ibm.security.krb5.Krb5Debug" value="off" required="false"/>
    </jvmEntries>
  </processDefinitions>
</process:Server>
                                                                                         Virtual_Configuration/tile11/appserver/Software_Configuration/AppSrv02/                             0000777 0000000 0000000 00000000000 11524350624 025243  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/appserver/Software_Configuration/AppSrv02/server.xml                   0000644 0000000 0000000 00000102162 11524350624 027271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   <?xml version="1.0" encoding="UTF-8"?>
<process:Server xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:adminservice="http://www.ibm.com/websphere/appserver/schemas/5.0/adminservice.xmi" xmlns:applicationserver="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.xmi" xmlns:applicationserver.ejbcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.xmi" xmlns:applicationserver.ejbcontainer.messagelistener="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.messagelistener.xmi" xmlns:applicationserver.sipcontainer="www.ibm.com/websphere/appserver/schemas/7.0/applicationserver.sipcontainer.xmi" xmlns:applicationserver.webcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.webcontainer.xmi" xmlns:channelservice="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.xmi" xmlns:channelservice.channels="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.channels.xmi" xmlns:coregroupbridgeservice="http://www.ibm.com/websphere/appserver/schemas/6.0/coregroupbridgeservice.xmi" xmlns:diagnosticproviderservice="http://www.ibm.com/websphere/appserver/schemas/5.0/diagnosticproviderservice.xmi" xmlns:loggingservice.http="http://www.ibm.com/websphere/appserver/schemas/6.0/loggingservice.http.xmi" xmlns:loggingservice.ras="http://www.ibm.com/websphere/appserver/schemas/5.0/loggingservice.ras.xmi" xmlns:namingserver="http://www.ibm.com/websphere/appserver/schemas/5.0/namingserver.xmi" xmlns:orb="http://www.ibm.com/websphere/appserver/schemas/5.0/orb.xmi" xmlns:pmiservice="http://www.ibm.com/websphere/appserver/schemas/5.0/pmiservice.xmi" xmlns:portletcontainer="http://www.ibm.com/websphere/appserver/schemas/6.0/portletcontainer.xmi" xmlns:process="http://www.ibm.com/websphere/appserver/schemas/5.0/process.xmi" xmlns:processexec="http://www.ibm.com/websphere/appserver/schemas/5.0/processexec.xmi" xmlns:sibresources="http://www.ibm.com/websphere/appserver/schemas/6.0/sibresources.xmi" xmlns:threadpoolmanager="http://www.ibm.com/websphere/appserver/schemas/6.0/threadpoolmanager.xmi" xmlns:tperfviewer="http://www.ibm.com/websphere/appserver/schemas/6.0/tperfviewer.xmi" xmlns:traceservice="http://www.ibm.com/websphere/appserver/schemas/5.0/traceservice.xmi" xmi:id="Server_1183122130078" name="server1">
  <stateManagement xmi:id="StateManageable_1183122130078" initialState="START"/>
  <statisticsProvider xmi:id="StatisticsProvider_1183122130078" specification="com.ibm.orb=enabled"/>
  <services xmi:type="pmiservice:PMIService" xmi:id="PMIService_1183122130078" enable="true" initialSpecLevel="" statisticSet="basic" synchronizedUpdate="false"/>
  <services xmi:type="adminservice:AdminService" xmi:id="AdminService_1183122130078" enable="true" standalone="true" localAdminProtocol="IPCConnector_1" remoteAdminProtocol="SOAPConnector_1">
    <connectors xmi:type="adminservice:SOAPConnector" xmi:id="SOAPConnector_1" enable="true">
      <properties xmi:id="Property_3" name="requestTimeout" value="600"/>
    </connectors>
    <connectors xmi:type="adminservice:RMIConnector" xmi:id="RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:JSR160RMIConnector" xmi:id="JSR160RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:IPCConnector" xmi:id="IPCConnector_1" enable="true">
      <properties xmi:id="Property_4" name="requestTimeout" value="600"/>
    </connectors>
    <configRepository xmi:id="RepositoryService_1183122130078"/>
    <pluginConfigService xmi:id="PluginConfigService_1183122130078" enable="true"/>
  </services>
  <services xmi:type="traceservice:TraceService" xmi:id="TraceService_1183122130078" enable="true" startupTraceSpecification="*=info" traceOutputType="SPECIFIED_FILE" traceFormat="BASIC" memoryBufferSize="8">
    <traceLog xmi:id="TraceLog_1183122130078" fileName="${SERVER_LOG_ROOT}/trace.log" rolloverSize="20" maxNumberOfBackupFiles="1"/>
  </services>
  <services xmi:type="diagnosticproviderservice:DiagnosticProviderService" xmi:id="DiagnosticProviderService_1183122130078" enable="true" startupStateCollectionSpec=".*:.*=0"/>
  <services xmi:type="loggingservice.ras:RASLoggingService" xmi:id="RASLoggingService_1183122130078" enable="true" messageFilterLevel="NONE" enableCorrelationId="true">
    <serviceLog xmi:id="ServiceLog_1183122130078" name="${LOG_ROOT}/activity.log" size="2" enabled="true"/>
  </services>
  <services xmi:type="coregroupbridgeservice:CoreGroupBridgeService" xmi:id="CoreGroupBridgeService_1183122130078" enable="true"/>
  <services xmi:type="tperfviewer:TPVService" xmi:id="TPVService_1183122130078" enable="true"/>
  <services xmi:type="orb:ObjectRequestBroker" xmi:id="ObjectRequestBroker_1183122130078" enable="true" requestTimeout="180" requestRetriesCount="1" requestRetriesDelay="0" connectionCacheMaximum="240" connectionCacheMinimum="100" commTraceEnabled="false" locateRequestTimeout="180" forceTunnel="never" noLocalCopies="false" useServerThreadPool="false">
    <properties xmi:id="Property_1183122130079" name="com.ibm.CORBA.enableLocateRequest" value="true"/>
    <properties xmi:id="Property_1183122130080" name="com.ibm.ws.orb.transport.WSSSLServerSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLServerSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130081" name="com.ibm.ws.orb.transport.WSSSLClientSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130082" name="com.ibm.CORBA.ConnectionInterceptorName" value="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor"/>
    <properties xmi:id="Property_1183122130083" name="com.ibm.CORBA.RasManager" value="com.ibm.websphere.ras.WsOrbRasManager"/>
    <properties xmi:id="Property_1183122130084" name="com.ibm.ws.orb.transport.useMultiHome" value="true"/>
    <properties xmi:id="Property_1183122130085" name="com.ibm.websphere.management.registerServerIORWithLSD" value="true"/>
    <interceptors xmi:id="Interceptor_1183122130078" name="com.ibm.ejs.ras.RasContextSupport"/>
    <interceptors xmi:id="Interceptor_1183122130079" name="com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRequestInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130080" name="com.ibm.ws.Transaction.JTS.TxInterceptorInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130081" name="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityComponentFactory"/>
    <interceptors xmi:id="Interceptor_1183122130082" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ServerRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130083" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ClientRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130084" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIClientRI"/>
    <interceptors xmi:id="Interceptor_1183122130085" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRI"/>
    <interceptors xmi:id="Interceptor_1183122130086" name="com.ibm.ws.wlm.client.WLMClientInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130087" name="com.ibm.ws.wlm.server.WLMServerInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130088" name="com.ibm.ws.activity.remote.cos.ActivityServiceServerInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130089" name="com.ibm.debug.DebugPortableInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130090" name="com.ibm.debug.olt.ivbtrjrt.OLT_RI"/>
    <plugins xmi:id="ORBPlugin_1183122130078" name="com.ibm.ws.orbimpl.transport.WSTransport"/>
    <plugins xmi:id="ORBPlugin_1183122130079" name="com.ibm.ISecurityUtilityImpl.SecurityPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130080" name="com.ibm.ws.orbimpl.WSORBPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130081" name="com.ibm.ws.wlm.client.WLMClient"/>
    <plugins xmi:id="ORBPlugin_1183122130082" name="com.ibm.ws.pmi.server.modules.OrbPerfModule"/>
    <plugins xmi:id="ORBPlugin_1183122130083" name="com.ibm.ws.csi.CORBAORBMethodAccessControl"/>
    <threadPool xmi:id="ThreadPool_1183122130078" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
  </services>
  <services xmi:type="channelservice:TransportChannelService" xmi:id="TransportChannelService_1183122130078" enable="true">
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130078" name="TCP_1" endPointName="WC_adminhost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130079" name="TCP_2" endPointName="WC_defaulthost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130080" name="TCP_3" endPointName="WC_adminhost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130081" name="TCP_4" endPointName="WC_defaulthost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130082" name="TCP_5" endPointName="DCS_UNICAST_ADDRESS" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130080"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130083" name="TCP_8" discriminationWeight="0" endPointName="SIP_DEFAULTHOST" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130084" name="TCP_9" discriminationWeight="0" endPointName="SIP_DEFAULTHOST_SECURE" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130078" name="SSL_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130079" name="SSL_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130080" name="SSL_3" discriminationWeight="2"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130081" name="SSL_5" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130078" name="HTTP_1" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130079" name="HTTP_2" discriminationWeight="1" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130080" name="HTTP_3" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130081" name="HTTP_4" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130078" name="HTTPQ_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130079" name="HTTPQ_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130078" name="WCC_1" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130079" name="WCC_2" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130080" name="WCC_3" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130081" name="WCC_4" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130082" name="WCC_5" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130083" name="WCC_6" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130078" name="DCS_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130079" name="DCS_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130078" name="SIP_1" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130079" name="SIP_2" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130080" name="SIP_3" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130078" name="SIPCC_1" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130079" name="SIPCC_2" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130080" name="SIPCC_3" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:UDPInboundChannel" xmi:id="UDPInboundChannel_1183122130078" name="UDP_1" discriminationWeight="0" endPointName="SIP_DEFAULTHOST"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130085" name="SIB_TCP_JFAP" endPointName="SIB_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130086" name="SIB_TCP_JFAP_SSL" endPointName="SIB_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130087" name="SIB_TCP_MQFAP" endPointName="SIB_MQ_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130088" name="SIB_TCP_MQFAP_SSL" endPointName="SIB_MQ_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130082" name="SIB_SSL_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130083" name="SIB_SSL_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130078" name="SIB_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130079" name="SIB_JFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130078" name="SIB_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130079" name="SIB_MQFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130078" name="SIB_TCP_JFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130079" name="SIB_TCP_JFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130080" name="SIB_TCP_JFAP_TUN_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130081" name="SIB_TCP_JFAP_TUN_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130082" name="SIB_TCP_MQFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130083" name="SIB_TCP_MQFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130078" name="SIB_SSL_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130079" name="SIB_SSL_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130080" name="SIB_SSL_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130078" name="SIB_HTTP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130079" name="SIB_HTTP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130078" name="SIB_HTC_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130079" name="SIB_HTC_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130078" name="SIB_JFAP_JFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130079" name="SIB_JFAP_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130080" name="SIB_JFAP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130081" name="SIB_JFAP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130078" name="SIB_MQFAP_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130079" name="SIB_MQFAP_MQFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130084" name="SIB_TCP_RMQ_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130085" name="SIB_TCP_RMQ_SSL_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130081" name="SIB_SSL_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130078" name="SIB_RMQ_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130079" name="SIB_RMQ_RMQ_OUT"/>
    <chains xmi:id="Chain_1183122130078" name="WCInboundAdmin" enable="true" transportChannels="TCPInboundChannel_1183122130078 HTTPInboundChannel_1183122130078 WebContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130079" name="WCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 WebContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130080" name="HttpQueueInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 HTTPQueueInboundChannel_1183122130078 WebContainerInboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130081" name="HttpQueueInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 HTTPQueueInboundChannel_1183122130079 WebContainerInboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130082" name="WCInboundAdminSecure" enable="true" transportChannels="TCPInboundChannel_1183122130080 SSLInboundChannel_1183122130078 HTTPInboundChannel_1183122130080 WebContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130083" name="WCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 WebContainerInboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130084" name="DCS" enable="true" transportChannels="TCPInboundChannel_1183122130082 DCSInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130085" name="DCS-Secure" enable="true" transportChannels="TCPInboundChannel_1183122130082 SSLInboundChannel_1183122130080 DCSInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130086" name="SIPCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130083 SIPInboundChannel_1183122130078 SIPContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130087" name="SIPCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130084 SSLInboundChannel_1183122130081 SIPInboundChannel_1183122130079 SIPContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130088" name="SIPCInboundDefaultUDP" enable="true" transportChannels="UDPInboundChannel_1183122130078 SIPInboundChannel_1183122130080 SIPContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130089" name="InboundBasicMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130085 JFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130090" name="InboundSecureMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130086 SSLInboundChannel_1183122130082 JFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130091" name="InboundBasicMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130087 MQFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130092" name="InboundSecureMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130088 SSLInboundChannel_1183122130083 MQFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130093" name="BootstrapBasicMessaging" transportChannels="JFAPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130094" name="BootstrapSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130079 TCPOutboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130095" name="BootstrapTunneledMessaging" transportChannels="JFAPOutboundChannel_1183122130080 HTTPTunnelOutboundChannel_1183122130078 HTTPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130096" name="BootstrapTunneledSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130081 HTTPTunnelOutboundChannel_1183122130079 HTTPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130080 TCPOutboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130097" name="OutboundBasicMQLink" transportChannels="MQFAPOutboundChannel_1183122130079 TCPOutboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130098" name="OutboundSecureMQLink" transportChannels="MQFAPOutboundChannel_1183122130078 SSLOutboundChannel_1183122130078 TCPOutboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130099" name="OutboundBasicWMQClient" transportChannels="RMQOutboundChannel_1183122130079 TCPOutboundChannel_1183122130084"/>
    <chains xmi:id="Chain_1183122130100" name="OutboundSecureWMQClient" transportChannels="RMQOutboundChannel_1183122130078 SSLOutboundChannel_1183122130081 TCPOutboundChannel_1183122130085"/>
  </services>
  <services xmi:type="threadpoolmanager:ThreadPoolManager" xmi:id="ThreadPoolManager_1183122130078" enable="true">
    <threadPools xmi:id="ThreadPool_1183122130083" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
    <threadPools xmi:id="ThreadPool_1183122130084" minimumSize="1" maximumSize="3" inactivityTimeout="30000" isGrowable="false" name="server.startup" description="This pool is used by WebSphere during server startup."/>
    <threadPools xmi:id="ThreadPool_1183122130085" minimumSize="20" maximumSize="20" name="Default"/>
    <threadPools xmi:id="ThreadPool_1183122130079" minimumSize="50" maximumSize="50" inactivityTimeout="60000" isGrowable="false" name="WebContainer"/>
    <threadPools xmi:id="ThreadPool_1183122130080" minimumSize="5" maximumSize="20" name="TCPChannel.DCS"/>
    <threadPools xmi:id="ThreadPool_1183122130081" minimumSize="4" maximumSize="50" name="SIBFAPInboundThreadPool" description="Service integration bus FAP inbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1183122130082" minimumSize="4" maximumSize="50" name="SIBFAPThreadPool" description="Service integration bus FAP outbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1268079912035" minimumSize="35" maximumSize="41" inactivityTimeout="3500" name="SIBJMSRAThreadPool" description="Service Integration Bus JMS Resource Adapter thread pool"/>
    <threadPools xmi:id="ThreadPool_1268079912120" minimumSize="1" maximumSize="40" name="WMQCommonServices" description="WebSphere MQ common services thread pool">
      <customProperties xmi:id="Property_1268079912122" name="com.ibm.websphere.threadpool.disableHungThreadDetection" value="true" required="false"/>
    </threadPools>
    <threadPools xmi:id="ThreadPool_1268079912124" minimumSize="5" maximumSize="25" name="WMQJCAResourceAdapter" description="wmqJcaRaThreadPoolDescription"/>
  </services>
  <services xmi:type="loggingservice.http:HTTPAccessLoggingService" xmi:id="HTTPAccessLoggingService_1183122130078" enable="false" enableErrorLogging="true" enableAccessLogging="true">
    <errorLog xmi:id="LogFile_1183122130078" filePath="${SERVER_LOG_ROOT}/http_error.log" maximumSize="500"/>
    <accessLog xmi:id="LogFile_1183122130079" filePath="${SERVER_LOG_ROOT}/http_access.log" maximumSize="500"/>
  </services>
  <errorStreamRedirect xmi:id="StreamRedirect_1183122130078" fileName="${SERVER_LOG_ROOT}/SystemErr.log" rolloverType="SIZE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <outputStreamRedirect xmi:id="StreamRedirect_1183122130079" fileName="${SERVER_LOG_ROOT}/SystemOut.log" rolloverType="SIZE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <components xmi:type="namingserver:NameServer" xmi:id="NameServer_1183122130078">
    <stateManagement xmi:id="StateManageable_1183122130079" initialState="START"/>
  </components>
  <components xmi:type="applicationserver:ApplicationServer" xmi:id="ApplicationServer_1183122130078" applicationClassLoaderPolicy="MULTIPLE">
    <stateManagement xmi:id="StateManageable_1183122130080" initialState="START"/>
    <services xmi:type="applicationserver:TransactionService" xmi:id="TransactionService_1183122130078" enable="true" totalTranLifetimeTimeout="120" clientInactivityTimeout="60" propogatedOrBMTTranLifetimeTimeout="300" httpProxyPrefix="" httpsProxyPrefix=""/>
    <services xmi:type="applicationserver:DynamicCache" xmi:id="DynamicCache_1183122130078" enable="true">
      <cacheGroups xmi:id="ExternalCacheGroup_1183122130078" name="EsiInvalidator">
        <members xmi:id="ExternalCacheGroupMember_1183122130078" address="localhost" adapterBeanName="com.ibm.websphere.servlet.cache.ESIInvalidatorServlet"/>
      </cacheGroups>
    </services>
    <components xmi:type="applicationserver.webcontainer:WebContainer" xmi:id="WebContainer_1183122130078" enableServletCaching="false" disablePooling="false">
      <stateManagement xmi:id="StateManageable_1183122130081" initialState="START"/>
      <services xmi:type="applicationserver.webcontainer:SessionManager" xmi:id="SessionManager_1183122130078" enable="true" enableUrlRewriting="false" enableCookies="true" enableSSLTracking="false" enableProtocolSwitchRewriting="false" sessionPersistenceMode="NONE" enableSecurityIntegration="false" allowSerializedSessionAccess="false" maxWaitTime="5" accessSessionOnTimeout="true">
        <defaultCookieSettings xmi:id="Cookie_1183122130078" domain="" maximumAge="-1" secure="false"/>
        <sessionDatabasePersistence xmi:id="SessionDatabasePersistence_1183122130078" datasourceJNDIName="jdbc/Sessions" userId="db2admin" password="{xor}Oz1tPjsyNjE=" db2RowSize="ROW_SIZE_4KB" tableSpaceName=""/>
        <tuningParams xmi:id="TuningParams_1183122130078" usingMultiRowSchema="false" maxInMemorySessionCount="1000" allowOverflow="true" scheduleInvalidation="false" writeFrequency="TIME_BASED_WRITE" writeInterval="10" writeContents="ONLY_UPDATED_ATTRIBUTES" invalidationTimeout="30">
          <invalidationSchedule xmi:id="InvalidationSchedule_1183122130078" firstHour="14" secondHour="2"/>
        </tuningParams>
      </services>
    </components>
    <components xmi:type="applicationserver.ejbcontainer:EJBContainer" xmi:id="EJBContainer_1183122130078" passivationDirectory="${USER_INSTALL_ROOT}/temp" inactivePoolCleanupInterval="30000">
      <stateManagement xmi:id="StateManageable_1183122130082" initialState="START"/>
      <services xmi:type="applicationserver.ejbcontainer.messagelistener:MessageListenerService" xmi:id="MessageListenerService_1183122130078">
        <threadPool xmi:id="ThreadPool_1183122130086" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="Message.Listener.Pool"/>
      </services>
      <cacheSettings xmi:id="EJBCache_1183122130078" cleanupInterval="3000" cacheSize="2053"/>
      <timerSettings xmi:id="EJBTimer_1183122130078" datasourceJNDIName="jdbc/DefaultEJBTimerDataSource" tablePrefix="EJBTIMER_" pollInterval="300" numAlarmThreads="1"/>
    </components>
    <components xmi:type="portletcontainer:PortletContainer" xmi:id="PortletContainer_1183122130078"/>
    <components xmi:type="applicationserver.sipcontainer:SIPContainer" xmi:id="SIPContainer_1183122130078" name="" maxAppSessions="120000" maxMessageRate="5000" maxDispatchQueueSize="3200" maxResponseTime="0" statAveragePeriod="1000" statUpdateRange="10000">
      <stack xmi:id="Stack_1183122130078">
        <timers xmi:id="Timers_1183122130078"/>
      </stack>
    </components>
    <webserverPluginSettings xmi:id="WebserverPluginSettings_1183122130078" WaitForContinue="false" ConnectTimeout="0" MaxConnections="-1" ExtendedHandshake="false" ServerIOTimeout="0"/>
  </components>
  <processDefinitions xmi:type="processexec:JavaProcessDef" xmi:id="JavaProcessDef_1183122130078" workingDirectory="${USER_INSTALL_ROOT}" executableTargetKind="JAVA_CLASS" executableTarget="com.ibm.ws.runtime.WsServer">
    <execution xmi:id="ProcessExecution_1183122130078" processPriority="20" runAsUser="" runAsGroup=""/>
    <ioRedirect xmi:id="OutputRedirect_1183122130078" stdoutFilename="${SERVER_LOG_ROOT}/native_stdout.log" stderrFilename="${SERVER_LOG_ROOT}/native_stderr.log"/>
    <monitoringPolicy xmi:id="MonitoringPolicy_1183122130078" maximumStartupAttempts="3" pingInterval="60" pingTimeout="300" autoRestart="true" nodeRestartState="STOPPED"/>
    <jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7778" genericJvmArguments="">
      <systemProperties xmi:id="Property_1" name="com.ibm.security.jgss.debug" value="off" required="false"/>
      <systemProperties xmi:id="Property_2" name="com.ibm.security.krb5.Krb5Debug" value="off" required="false"/>
    </jvmEntries>
  </processDefinitions>
</process:Server>
                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/dbserver/                                                              0000777 0000000 0000000 00000000000 11524350644 017014  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/                                             0000777 0000000 0000000 00000000000 11524350662 022265  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/proc/                                        0000777 0000000 0000000 00000000000 11524350662 023230  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/proc/cpuinfo                                 0000644 0000000 0000000 00000001017 11524350661 024610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/dbserver/VM_configuration/proc/mounts                                  0000644 0000000 0000000 00000001357 11524350662 024502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1020708k,nr_inodes=255177,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1267,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1267,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/dbserver/VM_configuration/proc/swaps                                   0000644 0000000 0000000 00000000150 11524350662 024300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	29348	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/dbserver/VM_configuration/proc/devices                                 0000644 0000000 0000000 00000000567 11524350662 024601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile11/dbserver/VM_configuration/proc/modules                                 0000644 0000000 0000000 00000002621 11524350662 024620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 39 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile11/dbserver/VM_configuration/proc/partitions                              0000644 0000000 0000000 00000000260 11524350662 025341  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile11/dbserver/VM_configuration/proc/meminfo                                 0000644 0000000 0000000 00000002222 11524350662 024577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2055756 kB
MemFree:           61952 kB
Buffers:           16636 kB
Cached:           143268 kB
SwapCached:         2784 kB
Active:           752168 kB
Inactive:         287952 kB
Active(anon):     699756 kB
Inactive(anon):   237644 kB
Active(file):      52412 kB
Inactive(file):    50308 kB
Unevictable:        3228 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2018816 kB
Dirty:               220 kB
Writeback:             0 kB
AnonPages:        882076 kB
Mapped:            96936 kB
Shmem:             52580 kB
Slab:              71364 kB
SReclaimable:      16440 kB
SUnreclaim:        54924 kB
KernelStack:        2128 kB
PageTables:         8980 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2649884 kB
Committed_AS:    3493308 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       11532 kB
VmallocChunk:   34359719476 kB
HardwareCorrupted:     0 kB
AnonHugePages:    587776 kB
HugePages_Total:     416
HugePages_Free:       74
HugePages_Rsvd:       49
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2088960 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/dbserver/VM_configuration/root/                                        0000777 0000000 0000000 00000000000 11524350662 023250  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/root/convert_to_vf.sh                        0000755 0000000 0000000 00000001135 11524350662 026460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/lspci.txt                                    0000644 0000000 0000000 00000001211 11524350661 024126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/dbserver/VM_configuration/df.txt                                       0000644 0000000 0000000 00000000401 11524350644 023406  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916  10357512   2423424  82% /
tmpfs                  1027876         0   1027876   0% /dev/shm
/dev/vdb1             20642412  11290468   8303372  58% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/dbserver/VM_configuration/mount.txt                                    0000644 0000000 0000000 00000000612 11524350661 024162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile11/dbserver/VM_configuration/etc/                                         0000777 0000000 0000000 00000000000 11524350661 023037  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/                                    0000777 0000000 0000000 00000000000 11524350653 023666  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/                              0000777 0000000 0000000 00000000000 11524350661 024576  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests             0000755 0000000 0000000 00000017172 11524350654 027772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                    0000755 0000000 0000000 00000004325 11524350654 026410  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524350655 027177  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                   0000755 0000000 0000000 00000012327 11524350656 026601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                  0000755 0000000 0000000 00000005222 11524350657 026765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S99firstboot                  0000755 0000000 0000000 00000005341 11524350661 027043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                       0000755 0000000 0000000 00000010671 11524350660 025762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                      0000755 0000000 0000000 00000006364 11524350654 026137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                  0000755 0000000 0000000 00000020716 11524350656 026711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                       0000755 0000000 0000000 00000004731 11524350655 025767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon               0000755 0000000 0000000 00000004754 11524350654 027342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                  0000755 0000000 0000000 00000001364 11524350660 027001  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                      0000755 0000000 0000000 00000003027 11524350656 026126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                     0000755 0000000 0000000 00000006743 11524350660 026322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                      0000755 0000000 0000000 00000010777 11524350655 026132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                 0000755 0000000 0000000 00000004230 11524350657 027151  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                      0000755 0000000 0000000 00000006302 11524350655 026101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                        0000755 0000000 0000000 00000004236 11524350661 025616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                    0000755 0000000 0000000 00000004031 11524350657 026433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                 0000755 0000000 0000000 00000003521 11524350657 027116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                    0000755 0000000 0000000 00000006050 11524350657 026470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                    0000755 0000000 0000000 00000002363 11524350656 026537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                 0000755 0000000 0000000 00000004054 11524350653 027145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                  0000755 0000000 0000000 00000005013 11524350657 027025  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                      0000755 0000000 0000000 00000003213 11524350656 026121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                    0000755 0000000 0000000 00000003512 11524350655 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                       0000755 0000000 0000000 00000003603 11524350655 025760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                     0000755 0000000 0000000 00000011277 11524350655 026305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S10network                    0000755 0000000 0000000 00000014466 11524350656 026514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                    0000755 0000000 0000000 00000004326 11524350656 026521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                     0000755 0000000 0000000 00000006462 11524350656 026273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                      0000755 0000000 0000000 00000027662 11524350657 026147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                       0000755 0000000 0000000 00000006445 11524350655 025663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                  0000755 0000000 0000000 00000003245 11524350660 026746  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K60crond                      0000755 0000000 0000000 00000005445 11524350655 026121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                      0000755 0000000 0000000 00000005522 11524350654 026122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl              0000755 0000000 0000000 00000002221 11524350656 027612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                  0000755 0000000 0000000 00000004010 11524350654 026761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                        0000755 0000000 0000000 00000013536 11524350655 025602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                       0000755 0000000 0000000 00000004723 11524350660 025742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                     0000755 0000000 0000000 00000003024 11524350654 026252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                      0000755 0000000 0000000 00000003275 11524350660 026101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                   0000755 0000000 0000000 00000025442 11524350657 026633  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                  0000755 0000000 0000000 00000004370 11524350660 026744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S99local                      0000755 0000000 0000000 00000000334 11524350661 026117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                    0000755 0000000 0000000 00000006675 11524350657 026472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                 0000755 0000000 0000000 00000005650 11524350654 027161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor               0000555 0000000 0000000 00000004612 11524350656 027357  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                     0000755 0000000 0000000 00000007234 11524350660 026323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                   0000755 0000000 0000000 00000003433 11524350661 026655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                     0000755 0000000 0000000 00000005672 11524350653 026301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                      0000755 0000000 0000000 00000003254 11524350660 026114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                  0000755 0000000 0000000 00000005063 11524350660 026770  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                      0000755 0000000 0000000 00000012432 11524350660 026132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                    0000755 0000000 0000000 00000007414 11524350654 026502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                   0000755 0000000 0000000 00000020557 11524350656 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond                0000755 0000000 0000000 00000003427 11524350655 027352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/rc3.d/K05atd                        0000755 0000000 0000000 00000004112 11524350654 025550  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/                             0000777 0000000 0000000 00000000000 11524350653 025053  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/network                      0000755 0000000 0000000 00000014466 11524350651 026477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/gfs2                         0000755 0000000 0000000 00000006445 11524350647 025652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/sysstat                      0000755 0000000 0000000 00000002363 11524350653 026513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/saslauthd                    0000755 0000000 0000000 00000004010 11524350653 026760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/messagebus                   0000755 0000000 0000000 00000004230 11524350650 027127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/autobench                    0000755 0000000 0000000 00000005063 11524350646 026753  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/atd                          0000755 0000000 0000000 00000004112 11524350645 025544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/mcelogd                      0000755 0000000 0000000 00000003535 11524350650 026412  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/auditd                       0000755 0000000 0000000 00000006462 11524350646 026261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/certmonger                   0000755 0000000 0000000 00000004054 11524350646 027147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/irqbalance                   0000755 0000000 0000000 00000003521 11524350647 027102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/acpid                        0000755 0000000 0000000 00000003275 11524350645 026065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/nscd                         0000755 0000000 0000000 00000004723 11524350651 025730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                    0000755 0000000 0000000 00000005222 11524350652 026740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/nfs                          0000755 0000000 0000000 00000013536 11524350651 025571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/sssd                         0000755 0000000 0000000 00000004731 11524350653 025756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/crond                        0000755 0000000 0000000 00000005445 11524350646 026114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/ip6tables                    0000755 0000000 0000000 00000020716 11524350647 026677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/firstboot                    0000755 0000000 0000000 00000005341 11524350646 027015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/autofs                       0000755 0000000 0000000 00000007234 11524350646 026306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/sshd                         0000755 0000000 0000000 00000010671 11524350653 025743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/ksm                          0000755 0000000 0000000 00000004236 11524350650 025571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/libvirt-guests               0000755 0000000 0000000 00000017172 11524350650 027765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                 0000755 0000000 0000000 00000004754 11524350646 027342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/ypbind                       0000755 0000000 0000000 00000011277 11524350653 026272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/psacct                       0000755 0000000 0000000 00000003024 11524350652 026250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/xinetd                       0000755 0000000 0000000 00000006743 11524350653 026302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/nfslock                      0000755 0000000 0000000 00000006675 11524350651 026450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/cgred                        0000755 0000000 0000000 00000006302 11524350646 026064  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/migrateip                    0000755 0000000 0000000 00000001364 11524350650 026757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/udev-post                    0000755 0000000 0000000 00000004370 11524350653 026727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/haldaemon                    0000755 0000000 0000000 00000003245 11524350647 026734  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/ipsec                        0000755 0000000 0000000 00000010777 11524350647 026117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/rpcbind                      0000755 0000000 0000000 00000004031 11524350652 026413  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/rhnsd                        0000755 0000000 0000000 00000005522 11524350652 026116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/functions                    0000644 0000000 0000000 00000042767 11524350646 027024  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/kdump                        0000755 0000000 0000000 00000027662 11524350647 026135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/postfix                      0000755 0000000 0000000 00000007414 11524350651 026475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/iptables                     0000755 0000000 0000000 00000020557 11524350647 026614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/rsyslog                      0000755 0000000 0000000 00000004326 11524350652 026503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/netconsole                   0000755 0000000 0000000 00000005650 11524350650 027151  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/rpcgssd                      0000755 0000000 0000000 00000006050 11524350652 026442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/abrtd                        0000755 0000000 0000000 00000003254 11524350645 026076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                 0000555 0000000 0000000 00000004612 11524350650 027340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/halt                         0000755 0000000 0000000 00000012723 11524350647 025735  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/cgconfig                     0000755 0000000 0000000 00000012327 11524350646 026563  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/single                       0000755 0000000 0000000 00000001207 11524350653 026256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/mdmonitor                    0000755 0000000 0000000 00000005013 11524350650 027001  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/restorecond                  0000755 0000000 0000000 00000003427 11524350652 027331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/cpuspeed                     0000755 0000000 0000000 00000025442 11524350646 026616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/netfs                        0000755 0000000 0000000 00000012432 11524350651 026114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                   0000755 0000000 0000000 00000006014 11524350652 027156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/oddjobd                      0000755 0000000 0000000 00000004325 11524350651 026404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/ksmtuned                     0000755 0000000 0000000 00000003433 11524350650 026627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/sandbox                      0000755 0000000 0000000 00000003242 11524350652 026433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/killall                      0000755 0000000 0000000 00000001214 11524350650 026414  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/rdisc                        0000755 0000000 0000000 00000003027 11524350652 026102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/httpd                        0000755 0000000 0000000 00000006364 11524350647 026134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/ntpd                         0000755 0000000 0000000 00000003603 11524350651 025742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/smartd                       0000755 0000000 0000000 00000005672 11524350653 026301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/nslcd                        0000755 0000000 0000000 00000003213 11524350651 026075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/ntpdate                      0000755 0000000 0000000 00000003512 11524350651 026433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile11/dbserver/VM_configuration/etc/rc.d/init.d/microcode_ctl                0000755 0000000 0000000 00000002221 11524350650 027575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/dbserver/VM_configuration/etc/hosts                                    0000644 0000000 0000000 00000000267 11524350644 024124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/dbserver/VM_configuration/etc/iproute2/                                0000777 0000000 0000000 00000000000 11524350645 024612  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/etc/iproute2/rt_dsfield                      0000644 0000000 0000000 00000000672 11524350645 026655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile11/dbserver/VM_configuration/etc/iproute2/rt_realms                       0000644 0000000 0000000 00000000160 11524350645 026516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile11/dbserver/VM_configuration/etc/iproute2/rt_scopes                       0000644 0000000 0000000 00000000134 11524350645 026530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/dbserver/VM_configuration/etc/iproute2/ematch_map                      0000644 0000000 0000000 00000000073 11524350645 026627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/dbserver/VM_configuration/etc/iproute2/rt_tables                       0000644 0000000 0000000 00000000127 11524350645 026510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/dbserver/VM_configuration/etc/iproute2/rt_protos                       0000644 0000000 0000000 00000000475 11524350645 026572  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/etc/nsswitch.conf                            0000644 0000000 0000000 00000003230 11524350645 025544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/dbserver/VM_configuration/etc/fstab                                    0000644 0000000 0000000 00000001603 11524350644 024056  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile11/dbserver/VM_configuration/etc/sysctl.conf                              0000644 0000000 0000000 00000001466 11524350661 025232  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile11/dbserver/VM_configuration/etc/inittab                                  0000644 0000000 0000000 00000001714 11524350644 024414  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
fmc:2345:respawn:/data-disk/opt/ibm/db2/V9.7/bin/db2fmcd #DB2 Fault Monitor Coordinator
                                                    Virtual_Configuration/tile11/dbserver/VM_configuration/var/                                         0000777 0000000 0000000 00000000000 11524350662 023055  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/var/log/                                     0000777 0000000 0000000 00000000000 11524350662 023636  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/var/log/dmesg                                0000644 0000000 0000000 00000043426 11524350663 024666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0 hugepages=416
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007fffd000 (usable)
 BIOS-e820: 000000007fffd000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x7fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007fffd000
 0000000000 - 007fe00000 page 2M
 007fe00000 - 007fffd000 page 4k
kernel direct mapping tables up to 7fffd000 @ 8000-c000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000007fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000007ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000007fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000007ffffe00 00040
ACPI: SSDT 000000007fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000007fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000007fffd000
Bootmem setup node 0 0000000000000000-000000007fffd000
  NODE_DATA [000000000000a000 - 000000000003dfff]
  bootmap [000000000003e000 -  000000000004dfff] pages 10
(7 early reservations) ==> bootmem [0000000000 - 007fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000a000]          PGTABLE ==> [0000008000 - 000000a000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0001bfffff] PMD -> [ffff880002200000-ffff880003dfffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0007fffd
On node 0 totalpages: 524182
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3831 pages, LIFO batch:0
  DMA32 zone: 7112 pages used for memmap
  DMA32 zone: 513077 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 80000000 (gap: 80000000:7ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 516908
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0 hugepages=416
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2041384k/2097140k available (4935k kernel code, 412k absent, 55344k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 20971520 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116119.291:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 416 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 4012
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:58 UTC (1297116118)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
3e:8d:9c:22:da:0d
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                          Virtual_Configuration/tile11/dbserver/VM_configuration/boot/                                        0000777 0000000 0000000 00000000000 11524350644 023230  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/boot/grub/                                   0000777 0000000 0000000 00000000000 11524350644 024167  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/VM_configuration/boot/grub/grub.conf                          0000644 0000000 0000000 00000001457 11524350644 026000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0 hugepages=416
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                 Virtual_Configuration/tile11/dbserver/VM_configuration/rpmpkgs.txt                                  0000644 0000000 0000000 00000076554 11524350662 024526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
scrub-2.2-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
xvattr-1.3-18.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
python-slip-0.2.11-1.el6.noarch
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
python-meh-0.9-1.el6.noarch
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
libstdc++-4.4.4-13.el6.i686
vte-0.25.1-5.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
glx-utils-7.7-2.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
yelp-2.28.1-8.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
gnome-terminal-2.31.3-4.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
cracklib-python-2.8.16-2.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
system-config-users-docs-1.0.8-1.el6.noarch
report-gtk-0.18-7.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
xorg-x11-xkb-utils-7.4-6.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
report-newt-0.18-7.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
zenity-2.28.0-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
fuse-2.8.3-1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
seabios-0.5.1-3.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                    Virtual_Configuration/tile11/dbserver/VM_configuration/ifconfig.txt                                 0000644 0000000 0000000 00000002327 11524350661 024611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:3F  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:260 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:24299 (23.7 KiB)  TX bytes:827 (827.0 b)

eth1      Link encap:Ethernet  HWaddr 3E:8D:9C:22:DA:0D  
          inet addr:10.1.217.63  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::3c8d:9cff:fe22:da0d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9422935 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9118724 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1947187435 (1.8 GiB)  TX bytes:3746380885 (3.4 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:764 errors:0 dropped:0 overruns:0 frame:0
          TX packets:764 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:74598 (72.8 KiB)  TX bytes:74598 (72.8 KiB)

                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/dbserver/VM_configuration/chkconfig.txt                                0000644 0000000 0000000 00000006625 11524350644 024766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
firstboot      	0:off	1:off	2:off	3:on	4:off	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                           Virtual_Configuration/tile11/dbserver/Software_Configuration/                                       0000777 0000000 0000000 00000000000 11524350643 023474  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/dbserver/Software_Configuration/profile.env                            0000644 0000000 0000000 00000000116 11524350644 025641  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   DB2_LARGE_PAGE_MEM='DB'
DB2_PINNED_BP='ON'
DB2COMM='TCPIP'
DB2AUTOSTART='YES'
                                                                                                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/dbserver/Software_Configuration/db2nodes.cfg                           0000444 0000000 0000000 00000000016 11524350643 025644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0 tb3-dbt11 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/webserver/                                                             0000777 0000000 0000000 00000000000 11524350750 017202  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/                                            0000777 0000000 0000000 00000000000 11524350767 022463  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/proc/                                       0000777 0000000 0000000 00000000000 11524350767 023426  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/proc/cpuinfo                                0000644 0000000 0000000 00000002030 11524350766 025002  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/webserver/VM_configuration/proc/mounts                                 0000644 0000000 0000000 00000001754 11524350767 024701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=5574592k,nr_inodes=1393648,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1364,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1364,timeout=300,minproto=5,maxproto=5,indirect 0 0
tb3-infrat11:/support-download /var/www/html/support/downloads nfs rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.1.217.65,mountvers=3,mountport=55243,mountproto=udp,addr=10.1.217.65 0 0
                    Virtual_Configuration/tile11/webserver/VM_configuration/proc/swaps                                  0000644 0000000 0000000 00000000144 11524350767 024501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/webserver/VM_configuration/proc/devices                                0000644 0000000 0000000 00000000567 11524350766 024776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile11/webserver/VM_configuration/proc/modules                                0000644 0000000 0000000 00000003213 11524350767 025014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   nfs 348522 1 - Live 0xffffffffa026d000
lockd 73984 1 nfs, Live 0xffffffffa01a9000
fscache 46761 1 nfs, Live 0xffffffffa013f000
nfs_acl 2677 1 nfs, Live 0xffffffffa001b000
auth_rpcgss 44862 1 nfs, Live 0xffffffffa0132000
bridge 74113 0 - Live 0xffffffffa0258000
stp 2107 1 bridge, Live 0xffffffffa0252000
llc 5608 2 bridge,stp, Live 0xffffffffa024a000
autofs4 27683 3 - Live 0xffffffffa023d000
sunrpc 241630 16 nfs,lockd,nfs_acl,auth_rpcgss, Live 0xffffffffa01ea000
ipv6 321209 67 - Live 0xffffffffa0158000
dm_mirror 14003 0 - Live 0xffffffffa012c000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0127000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0122000
ppdev 8695 0 - Live 0xffffffffa011d000
parport_pc 22944 0 - Live 0xffffffffa00e9000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa0111000
sg 30186 0 - Live 0xffffffffa00df000
virtio_net 15665 0 - Live 0xffffffffa0015000
ixgbevf 47200 0 - Live 0xffffffffa0103000
i2c_piix4 12574 0 - Live 0xffffffffa00fd000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00f3000
ext4 353979 2 - Live 0xffffffffa0086000
mbcache 7918 1 ext4, Live 0xffffffffa0026000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/webserver/VM_configuration/proc/partitions                             0000644 0000000 0000000 00000000260 11524350767 025537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20970496 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile11/webserver/VM_configuration/proc/meminfo                                0000644 0000000 0000000 00000002222 11524350767 024775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:       11163520 kB
MemFree:          918760 kB
Buffers:            6568 kB
Cached:          9770232 kB
SwapCached:            0 kB
Active:          1415964 kB
Inactive:        8467656 kB
Active(anon):      45636 kB
Inactive(anon):    64172 kB
Active(file):    1370328 kB
Inactive(file):  8403484 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               184 kB
Writeback:             0 kB
AnonPages:        106880 kB
Mapped:            21928 kB
Shmem:              2988 kB
Slab:             299876 kB
SReclaimable:      86508 kB
SUnreclaim:       213368 kB
KernelStack:        1296 kB
PageTables:        12756 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     7629752 kB
Committed_AS:     313504 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       40792 kB
VmallocChunk:   34359693584 kB
HardwareCorrupted:     0 kB
AnonHugePages:     28672 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:    11526144 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/webserver/VM_configuration/root/                                       0000777 0000000 0000000 00000000000 11524350767 023446  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/root/convert_to_vf.sh                       0000755 0000000 0000000 00000001135 11524350767 026656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/lspci.txt                                   0000644 0000000 0000000 00000001211 11524350766 024324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/webserver/VM_configuration/df.txt                                      0000644 0000000 0000000 00000000570 11524350750 023603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3889980   8890956  31% /
tmpfs                  5581760         0   5581760   0% /dev/shm
/dev/vdb1             20641404    969848  18623032   5% /data-disk
tb3-infrat11:/support-download
                      61923456  33417216  25360768  57% /var/www/html/support/downloads
                                                                                                                                        Virtual_Configuration/tile11/webserver/VM_configuration/mount.txt                                   0000644 0000000 0000000 00000000753 11524350766 024366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
tb3-infrat11:/support-download on /var/www/html/support/downloads type nfs (rw,addr=10.1.217.65)
                     Virtual_Configuration/tile11/webserver/VM_configuration/etc/                                        0000777 0000000 0000000 00000000000 11524350766 023235  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/                                   0000777 0000000 0000000 00000000000 11524350760 024055  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/                             0000777 0000000 0000000 00000000000 11524350766 024774  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests            0000755 0000000 0000000 00000017172 11524350761 030161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                   0000755 0000000 0000000 00000004325 11524350761 026577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                0000755 0000000 0000000 00000006014 11524350762 027366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                  0000755 0000000 0000000 00000012327 11524350763 026770  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                 0000755 0000000 0000000 00000005222 11524350764 027154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                      0000755 0000000 0000000 00000010671 11524350765 026160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                     0000755 0000000 0000000 00000006364 11524350761 026326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                 0000755 0000000 0000000 00000020716 11524350763 027100  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                      0000755 0000000 0000000 00000004731 11524350762 026156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon              0000755 0000000 0000000 00000004754 11524350761 027531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                 0000755 0000000 0000000 00000001364 11524350765 027177  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                     0000755 0000000 0000000 00000003027 11524350763 026315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                    0000755 0000000 0000000 00000006743 11524350765 026520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                     0000755 0000000 0000000 00000010777 11524350762 026321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                0000755 0000000 0000000 00000004230 11524350764 027340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                     0000755 0000000 0000000 00000006302 11524350762 026270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                       0000755 0000000 0000000 00000004236 11524350766 026014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                   0000755 0000000 0000000 00000004031 11524350764 026622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                0000755 0000000 0000000 00000003521 11524350764 027305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                   0000755 0000000 0000000 00000006050 11524350764 026657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                   0000755 0000000 0000000 00000002363 11524350763 026726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                0000755 0000000 0000000 00000004054 11524350761 027335  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                 0000755 0000000 0000000 00000005013 11524350764 027214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                     0000755 0000000 0000000 00000003213 11524350763 026310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                   0000755 0000000 0000000 00000003512 11524350762 026641  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                      0000755 0000000 0000000 00000003603 11524350762 026147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                    0000755 0000000 0000000 00000011277 11524350762 026474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S10network                   0000755 0000000 0000000 00000014466 11524350763 026703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                   0000755 0000000 0000000 00000004326 11524350764 026711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                    0000755 0000000 0000000 00000006462 11524350763 026462  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                     0000755 0000000 0000000 00000027662 11524350764 026336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                      0000755 0000000 0000000 00000006445 11524350762 026052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                 0000755 0000000 0000000 00000003245 11524350765 027144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K60crond                     0000755 0000000 0000000 00000005445 11524350762 026310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                     0000755 0000000 0000000 00000005522 11524350761 026311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl             0000755 0000000 0000000 00000002221 11524350763 030001  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                 0000755 0000000 0000000 00000004010 11524350761 027150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                       0000755 0000000 0000000 00000013536 11524350762 025771  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                      0000755 0000000 0000000 00000004723 11524350765 026140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                    0000755 0000000 0000000 00000003024 11524350761 026441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                     0000755 0000000 0000000 00000003275 11524350765 026277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                  0000755 0000000 0000000 00000025442 11524350764 027022  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                 0000755 0000000 0000000 00000004370 11524350765 027142  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S99local                     0000755 0000000 0000000 00000000334 11524350766 026315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                   0000755 0000000 0000000 00000006675 11524350764 026661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                0000755 0000000 0000000 00000005650 11524350762 027351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor              0000555 0000000 0000000 00000004612 11524350763 027546  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                    0000755 0000000 0000000 00000007234 11524350765 026521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                  0000755 0000000 0000000 00000003433 11524350766 027053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                    0000755 0000000 0000000 00000005672 11524350761 026471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                     0000755 0000000 0000000 00000003254 11524350766 026313  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                 0000755 0000000 0000000 00000005063 11524350765 027166  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                     0000755 0000000 0000000 00000012432 11524350765 026330  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                   0000755 0000000 0000000 00000007414 11524350761 026671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                  0000755 0000000 0000000 00000020557 11524350763 027015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond               0000755 0000000 0000000 00000003427 11524350763 027542  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/rc3.d/K05atd                       0000755 0000000 0000000 00000004112 11524350761 025737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/                            0000777 0000000 0000000 00000000000 11524350760 025242  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/network                     0000755 0000000 0000000 00000014466 11524350756 026675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/gfs2                        0000755 0000000 0000000 00000006445 11524350753 026040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/sysstat                     0000755 0000000 0000000 00000002363 11524350760 026702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/saslauthd                   0000755 0000000 0000000 00000004010 11524350760 027147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/messagebus                  0000755 0000000 0000000 00000004230 11524350755 027325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/autobench                   0000755 0000000 0000000 00000005063 11524350752 027141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/atd                         0000755 0000000 0000000 00000004112 11524350752 025733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/mcelogd                     0000755 0000000 0000000 00000003535 11524350755 026610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/auditd                      0000755 0000000 0000000 00000006462 11524350752 026447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/certmonger                  0000755 0000000 0000000 00000004054 11524350752 027335  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/irqbalance                  0000755 0000000 0000000 00000003521 11524350754 027271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/acpid                       0000755 0000000 0000000 00000003275 11524350752 026254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/nscd                        0000755 0000000 0000000 00000004723 11524350756 026126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                   0000755 0000000 0000000 00000005222 11524350757 027136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/nfs                         0000755 0000000 0000000 00000013536 11524350756 025767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/sssd                        0000755 0000000 0000000 00000004731 11524350760 026145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/crond                       0000755 0000000 0000000 00000005445 11524350753 026303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/ip6tables                   0000755 0000000 0000000 00000020716 11524350753 027065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/autofs                      0000755 0000000 0000000 00000007234 11524350752 026474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/sshd                        0000755 0000000 0000000 00000010671 11524350760 026132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/ksm                         0000755 0000000 0000000 00000004236 11524350754 025766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/libvirt-guests              0000755 0000000 0000000 00000017172 11524350755 030163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                0000755 0000000 0000000 00000004754 11524350752 027530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/ypbind                      0000755 0000000 0000000 00000011277 11524350760 026461  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/psacct                      0000755 0000000 0000000 00000003024 11524350756 026445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/xinetd                      0000755 0000000 0000000 00000006743 11524350760 026471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/nfslock                     0000755 0000000 0000000 00000006675 11524350756 026646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/cgred                       0000755 0000000 0000000 00000006302 11524350753 026253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/migrateip                   0000755 0000000 0000000 00000001364 11524350755 027155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/udev-post                   0000755 0000000 0000000 00000004370 11524350760 027116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/haldaemon                   0000755 0000000 0000000 00000003245 11524350753 027122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/ipsec                       0000755 0000000 0000000 00000010777 11524350753 026305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/rpcbind                     0000755 0000000 0000000 00000004031 11524350757 026611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/rhnsd                       0000755 0000000 0000000 00000005522 11524350757 026314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/functions                   0000644 0000000 0000000 00000042767 11524350753 027213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/kdump                       0000755 0000000 0000000 00000027662 11524350754 026324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/postfix                     0000755 0000000 0000000 00000007414 11524350756 026673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/iptables                    0000755 0000000 0000000 00000020557 11524350754 027003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/rsyslog                     0000755 0000000 0000000 00000004326 11524350757 026701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/netconsole                  0000755 0000000 0000000 00000005650 11524350755 027347  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/rpcgssd                     0000755 0000000 0000000 00000006050 11524350757 026640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/abrtd                       0000755 0000000 0000000 00000003254 11524350752 026265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                0000555 0000000 0000000 00000004612 11524350755 027536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/halt                        0000755 0000000 0000000 00000012723 11524350753 026123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/cgconfig                    0000755 0000000 0000000 00000012327 11524350752 026751  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/single                      0000755 0000000 0000000 00000001207 11524350760 026445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/mdmonitor                   0000755 0000000 0000000 00000005013 11524350755 027177  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/restorecond                 0000755 0000000 0000000 00000003427 11524350757 027527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/cpuspeed                    0000755 0000000 0000000 00000025442 11524350753 027005  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/netfs                       0000755 0000000 0000000 00000012432 11524350756 026312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                  0000755 0000000 0000000 00000006014 11524350757 027354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/oddjobd                     0000755 0000000 0000000 00000004325 11524350756 026602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/ksmtuned                    0000755 0000000 0000000 00000003433 11524350754 027024  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/sandbox                     0000755 0000000 0000000 00000003242 11524350757 026631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/killall                     0000755 0000000 0000000 00000001214 11524350754 026611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/rdisc                       0000755 0000000 0000000 00000003027 11524350757 026300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/httpd                       0000755 0000000 0000000 00000006364 11524350753 026322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/ntpd                        0000755 0000000 0000000 00000003603 11524350756 026140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/smartd                      0000755 0000000 0000000 00000005672 11524350760 026470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/nslcd                       0000755 0000000 0000000 00000003213 11524350756 026273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/ntpdate                     0000755 0000000 0000000 00000003512 11524350756 026631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile11/webserver/VM_configuration/etc/rc.d/init.d/microcode_ctl               0000755 0000000 0000000 00000002221 11524350755 027773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/webserver/VM_configuration/etc/hosts                                   0000644 0000000 0000000 00000000236 11524350751 024307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/webserver/VM_configuration/etc/iproute2/                               0000777 0000000 0000000 00000000000 11524350751 025000  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/etc/iproute2/rt_dsfield                     0000644 0000000 0000000 00000000672 11524350751 027043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile11/webserver/VM_configuration/etc/iproute2/rt_realms                      0000644 0000000 0000000 00000000160 11524350751 026704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile11/webserver/VM_configuration/etc/iproute2/rt_scopes                      0000644 0000000 0000000 00000000134 11524350751 026716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/webserver/VM_configuration/etc/iproute2/ematch_map                     0000644 0000000 0000000 00000000073 11524350751 027015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/webserver/VM_configuration/etc/iproute2/rt_tables                      0000644 0000000 0000000 00000000127 11524350751 026676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/webserver/VM_configuration/etc/iproute2/rt_protos                      0000644 0000000 0000000 00000000475 11524350751 026760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/etc/nsswitch.conf                           0000644 0000000 0000000 00000003230 11524350751 025732  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/webserver/VM_configuration/etc/fstab                                   0000644 0000000 0000000 00000001603 11524350751 024245  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile11/webserver/VM_configuration/etc/sysctl.conf                             0000644 0000000 0000000 00000001466 11524350766 025430  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile11/webserver/VM_configuration/etc/inittab                                 0000644 0000000 0000000 00000001564 11524350751 024606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile11/webserver/VM_configuration/var/                                        0000777 0000000 0000000 00000000000 11524350767 023253  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/var/log/                                    0000777 0000000 0000000 00000000000 11524350767 024034  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/var/log/dmesg                               0000644 0000000 0000000 00000046142 11524350770 025053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
 BIOS-e820: 0000000100000000 - 00000002e0000000 (usable)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x2e0000 max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
init_memory_mapping: 0000000100000000-00000002e0000000
 0100000000 - 02e0000000 page 2M
kernel direct mapping tables up to 2e0000000 @ c000-19000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffddc0 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffdf0 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf30 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffd80 00040
ACPI: SSDT 00000000dfffdee0 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffddf0 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000002e0000000
Bootmem setup node 0 0000000000000000-00000002e0000000
  NODE_DATA [0000000000014000 - 0000000000047fff]
  bootmap [0000000000100000 -  000000000015bfff] pages 5c
(8 early reservations) ==> bootmem [0000000000 - 02e0000000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
  #7 [000000c000 - 0000014000]          PGTABLE ==> [000000c000 - 0000014000]
found SMP MP-table at [ffff8800000f8120] f8120
Reserving 129MB of memory at 32MB for crashkernel (System RAM: 11776MB)
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea000a1fffff] PMD -> [ffff880028600000-ffff8800321fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x002e0000
Movable zone start PFN for each node
early_node_map[3] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x000dfffd
    0: 0x00100000 -> 0x002e0000
On node 0 totalpages: 2883478
  DMA zone: 56 pages used for memmap
  DMA zone: 116 pages reserved
  DMA zone: 3821 pages, LIFO batch:0
  DMA32 zone: 14280 pages used for memmap
  DMA32 zone: 899125 pages, LIFO batch:31
  Normal zone: 26880 pages used for memmap
  Normal zone: 1939200 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
PM: Registered nosave memory: 00000000dfffd000 - 00000000e0000000
PM: Registered nosave memory: 00000000e0000000 - 00000000fffbc000
PM: Registered nosave memory: 00000000fffbc000 - 0000000100000000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880028200000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:28216901, primary cpu clock
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 2842146
Policy zone: Normal
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=129M@0M elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing 64MB software IO TLB between ffff880020000000 - ffff880024000000
software IO TLB at phys 0x20000000 - 0x24000000
Memory: 11149184k/12058624k available (4935k kernel code, 524712k absent, 384728k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 115343360 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes)
Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:28316901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (13867.27 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 524288 (order: 10, 4194304 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116154.301:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 21801
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:02:33 UTC (1297116153)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
aa:36:d4:25:7c:d6
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/webserver/VM_configuration/boot/                                       0000777 0000000 0000000 00000000000 11524350750 023416  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/boot/grub/                                  0000777 0000000 0000000 00000000000 11524350750 024355  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/boot/grub/grub.conf                         0000644 0000000 0000000 00000002217 11524350750 026161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/webserver/VM_configuration/rpmpkgs.txt                                 0000644 0000000 0000000 00000067255 11524350767 024722  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
php-pecl-apc-3.1.3p1-1.2.el6.1.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
php-pear-1.9.0-2.el6.noarch
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/VM_configuration/ifconfig.txt                                0000644 0000000 0000000 00000002351 11524350766 025004  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:3D  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:240 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:20619 (20.1 KiB)  TX bytes:828 (828.0 b)

eth1      Link encap:Ethernet  HWaddr AA:36:D4:25:7C:D6  
          inet addr:10.1.217.61  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::a836:d4ff:fe25:7cd6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:181232657 errors:0 dropped:0 overruns:0 frame:0
          TX packets:286193019 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:170347284823 (158.6 GiB)  TX bytes:323574608613 (301.3 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:53043 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53043 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5522944 (5.2 MiB)  TX bytes:5522944 (5.2 MiB)

                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/webserver/VM_configuration/chkconfig.txt                               0000644 0000000 0000000 00000006535 11524350750 025154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile11/webserver/Software_Configuration/                                      0000777 0000000 0000000 00000000000 11524350747 023671  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/Software_Configuration/httpd/                                0000777 0000000 0000000 00000000000 11524350746 025013  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/Software_Configuration/httpd/conf.d/                         0000777 0000000 0000000 00000000000 11524350747 026163  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/Software_Configuration/httpd/conf.d/manual.conf              0000644 0000000 0000000 00000000447 11524350747 030310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This configuration file allows the manual to be accessed at 
# http://localhost/manual/
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"

<Directory "/var/www/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
                                                                                                                                                                                                                         Virtual_Configuration/tile11/webserver/Software_Configuration/httpd/conf.d/php.conf                 0000644 0000000 0000000 00000001242 11524350747 027614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/webserver/Software_Configuration/httpd/conf.d/welcome.conf             0000644 0000000 0000000 00000000453 11524350747 030463  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # 
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

                                                                                                                                                                                                                     Virtual_Configuration/tile11/webserver/Software_Configuration/httpd/conf.d/README                   0000644 0000000 0000000 00000000610 11524350747 027034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
This directory holds Apache 2.0 module-specific configuration files;
any files in this directory which have the ".conf" extension will be
processed as Apache configuration files.

Files are processed in alphabetical order, so if using configuration
directives which depend on, say, mod_perl being loaded, ensure that
these are placed in a filename later in the sort order than "perl.conf".

                                                                                                                        Virtual_Configuration/tile11/webserver/Software_Configuration/httpd/conf/                           0000777 0000000 0000000 00000000000 11524350746 025740  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/Software_Configuration/httpd/conf/httpd.conf                 0000644 0000000 0000000 00000103133 11524350746 027727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# Don't give away too much information about all the subcomponents
# we are running.  Comment out this line if you don't mind remote sites
# finding out what major optional modules you are running
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.  Note the PIDFILE variable in
# /etc/sysconfig/httpd must be set appropriately if this location is
# changed.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 60

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 0

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAlive On

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit 10240
MaxClients 10240
MaxRequestsPerChild  4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         4
MaxClients 10240
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

#
# The following modules are not loaded by default:
#
#LoadModule asis_module modules/mod_asis.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
#

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group #-1 on these systems!
#
User apache
Group apache

### Section 2: 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
#ServerName www.example.com:80

#
# UseCanonicalName: Determines how Apache constructs self-referencing 
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.  This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir disabled

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disabled" line above, and uncomment
    # the following line instead:
    # 
    #UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is 
# used to deliver files (assuming that the OS supports it). 
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
#
#EnableSendfile off

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
# requires the mod_logio module to be loaded.
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access_log common

#
# If you would like to have separate agent and referer logfiles, uncomment
# the following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# WebDAV module configuration section.
# 
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Directives controlling the display of server-generated directory listings.
#

#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes.  These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

#
# DefaultLanguage and AddLanguage allows you to specify the language of 
# a document. You can then use content negotiation to give a browser a 
# file in a language the user can understand.
#
# Specify a default language. This means that all data
# going out without a specific language tag (see below) will 
# be marked with this one. You probably do NOT want to set
# this unless you are sure it is correct for all cases.
#
# * It is generally better to not mark a page as 
# * being a certain language than marking it with the wrong
# * language!
#
# DefaultLanguage nl
#
# Note 1: The suffix does not have to be the same as the language
# keyword --- those with documents in Polish (whose net-standard
# language code is pl) may wish to use "AddLanguage pl .po" to
# avoid the ambiguity with the common suffix for perl scripts.
#
# Note 2: The example entries below illustrate that in some cases 
# the two character 'Language' abbreviation is not identical to 
# the two character 'Country' code for its country,
# E.g. 'Danmark/dk' versus 'Danish/da'.
#
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
# specifier. There is 'work in progress' to fix this and get
# the reference data for rfc1766 cleaned up.
#
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the 
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz

#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
#   MIME-types for downloading Certificates and CRLs
#
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
#  to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#    ErrorDocument 410 /error/HTTP_GONE.html.var
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Proxy>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
#   CacheEnable disk /
#   CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#

#</IfModule>
# End of proxy directives.

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/webserver/Software_Configuration/httpd/conf/magic                      0000644 0000000 0000000 00000031523 11524350746 026743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Magic data for mod_mime_magic Apache module (originally for file(1) command)
# The module is described in /manual/mod/mod_mime_magic.html
#
# The format is 4-5 columns:
#    Column #1: byte number to begin checking from, ">" indicates continuation
#    Column #2: type of data to match
#    Column #3: contents of data to match
#    Column #4: MIME type of result
#    Column #5: MIME encoding of result (optional)

#------------------------------------------------------------------------------
# Localstuff:  file(1) magic for locally observed files
# Add any locally observed files here.

#------------------------------------------------------------------------------
# end local stuff
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Java

0	short		0xcafe
>2	short		0xbabe		application/java

#------------------------------------------------------------------------------
# audio:  file(1) magic for sound formats
#
# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
#

# Sun/NeXT audio data
0	string		.snd
>12	belong		1		audio/basic
>12	belong		2		audio/basic
>12	belong		3		audio/basic
>12	belong		4		audio/basic
>12	belong		5		audio/basic
>12	belong		6		audio/basic
>12	belong		7		audio/basic

>12	belong		23		audio/x-adpcm

# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
# (0x0064732E in little-endian encoding).
0	lelong		0x0064732E	
>12	lelong		1		audio/x-dec-basic
>12	lelong		2		audio/x-dec-basic
>12	lelong		3		audio/x-dec-basic
>12	lelong		4		audio/x-dec-basic
>12	lelong		5		audio/x-dec-basic
>12	lelong		6		audio/x-dec-basic
>12	lelong		7		audio/x-dec-basic
#                                       compressed (G.721 ADPCM)
>12	lelong		23		audio/x-dec-adpcm

# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
#					AIFF audio data
8	string		AIFF		audio/x-aiff	
#					AIFF-C audio data
8	string		AIFC		audio/x-aiff	
#					IFF/8SVX audio data
8	string		8SVX		audio/x-aiff	

# Creative Labs AUDIO stuff
#					Standard MIDI data
0	string	MThd			audio/unknown	
#>9 	byte	>0			(format %d)
#>11	byte	>1			using %d channels
#					Creative Music (CMF) data
0	string	CTMF			audio/unknown	
#					SoundBlaster instrument data
0	string	SBI			audio/unknown	
#					Creative Labs voice data
0	string	Creative\ Voice\ File	audio/unknown	
## is this next line right?  it came this way...
#>19	byte	0x1A
#>23	byte	>0			- version %d
#>22	byte	>0			\b.%d

# [GRR 950115:  is this also Creative Labs?  Guessing that first line
#  should be string instead of unknown-endian long...]
#0	long		0x4e54524b	MultiTrack sound data
#0	string		NTRK		MultiTrack sound data
#>4	long		x		- version %ld

# Microsoft WAVE format (*.wav)
# [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
#					Microsoft RIFF
0	string		RIFF		audio/unknown
#					- WAVE format
>8	string		WAVE		audio/x-wav
# MPEG audio.
0   beshort&0xfff0  0xfff0  audio/mpeg
# C64 SID Music files, from Linus Walleij <triad@df.lth.se>
0   string      PSID        audio/prs.sid

#------------------------------------------------------------------------------
# c-lang:  file(1) magic for C programs or various scripts
#

# XPM icons (Greg Roelofs, newt@uchicago.edu)
# ideally should go into "images", but entries below would tag XPM as C source
0	string		/*\ XPM		image/x-xbm	7bit

# this first will upset you if you're a PL/1 shop... (are there any left?)
# in which case rm it; ascmagic will catch real C programs
#					C or REXX program text
0	string		/*		text/plain
#					C++ program text
0	string		//		text/plain

#------------------------------------------------------------------------------
# compress:  file(1) magic for pure-compression formats (no archives)
#
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
#
# Formats for various forms of compressed data
# Formats for "compress" proper have been moved into "compress.c",
# because it tries to uncompress it to figure out what's inside.

# standard unix compress
0	string		\037\235	application/octet-stream	x-compress

# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
0       string          \037\213        application/octet-stream	x-gzip

# According to gzip.h, this is the correct byte order for packed data.
0	string		\037\036	application/octet-stream
#
# This magic number is byte-order-independent.
#
0	short		017437		application/octet-stream

# XXX - why *two* entries for "compacted data", one of which is
# byte-order independent, and one of which is byte-order dependent?
#
# compacted data
0	short		0x1fff		application/octet-stream
0	string		\377\037	application/octet-stream
# huf output
0	short		0145405		application/octet-stream

# Squeeze and Crunch...
# These numbers were gleaned from the Unix versions of the programs to
# handle these formats.  Note that I can only uncrunch, not crunch, and
# I didn't have a crunched file handy, so the crunch number is untested.
#				Keith Waclena <keith@cerberus.uchicago.edu>
#0	leshort		0x76FF		squeezed data (CP/M, DOS)
#0	leshort		0x76FE		crunched data (CP/M, DOS)

# Freeze
#0	string		\037\237	Frozen file 2.1
#0	string		\037\236	Frozen file 1.0 (or gzip 0.5)

# lzh?
#0	string		\037\240	LZH compressed data

#------------------------------------------------------------------------------
# frame:  file(1) magic for FrameMaker files
#
# This stuff came on a FrameMaker demo tape, most of which is
# copyright, but this file is "published" as witness the following:
#
0	string		\<MakerFile	application/x-frame
0	string		\<MIFFile	application/x-frame
0	string		\<MakerDictionary	application/x-frame
0	string		\<MakerScreenFon	application/x-frame
0	string		\<MML		application/x-frame
0	string		\<Book		application/x-frame
0	string		\<Maker		application/x-frame

#------------------------------------------------------------------------------
# html:  file(1) magic for HTML (HyperText Markup Language) docs
#
# from Daniel Quinlan <quinlan@yggdrasil.com>
# and Anna Shergold <anna@inext.co.uk>
#
0   string      \<!DOCTYPE\ HTML    text/html
0   string      \<!doctype\ html    text/html
0   string      \<HEAD      text/html
0   string      \<head      text/html
0   string      \<TITLE     text/html
0   string      \<title     text/html
0   string      \<html      text/html
0   string      \<HTML      text/html
0   string      \<!--       text/html
0   string      \<h1        text/html
0   string      \<H1        text/html

# XML eXtensible Markup Language, from Linus Walleij <triad@df.lth.se>
0   string      \<?xml      text/xml

#------------------------------------------------------------------------------
# images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
#
# originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
# additions by janl@ifi.uio.no as well as others. Jan also suggested
# merging several one- and two-line files into here.
#
# XXX - byte order for GIF and TIFF fields?
# [GRR:  TIFF allows both byte orders; GIF is probably little-endian]
#

# [GRR:  what the hell is this doing in here?]
#0	string		xbtoa		btoa'd file

# PBMPLUS
#					PBM file
0	string		P1		image/x-portable-bitmap	7bit
#					PGM file
0	string		P2		image/x-portable-greymap	7bit
#					PPM file
0	string		P3		image/x-portable-pixmap	7bit
#					PBM "rawbits" file
0	string		P4		image/x-portable-bitmap
#					PGM "rawbits" file
0	string		P5		image/x-portable-greymap
#					PPM "rawbits" file
0	string		P6		image/x-portable-pixmap

# NIFF (Navy Interchange File Format, a modification of TIFF)
# [GRR:  this *must* go before TIFF]
0	string		IIN1		image/x-niff

# TIFF and friends
#					TIFF file, big-endian
0	string		MM		image/tiff
#					TIFF file, little-endian
0	string		II		image/tiff

# possible GIF replacements; none yet released!
# (Greg Roelofs, newt@uchicago.edu)
#
# GRR 950115:  this was mine ("Zip GIF"):
#					ZIF image (GIF+deflate alpha)
0	string		GIF94z		image/unknown
#
# GRR 950115:  this is Jeremy Wohl's Free Graphics Format (better):
#					FGF image (GIF+deflate beta)
0	string		FGF95a		image/unknown
#
# GRR 950115:  this is Thomas Boutell's Portable Bitmap Format proposal
# (best; not yet implemented):
#					PBF image (deflate compression)
0	string		PBF		image/unknown

# GIF
0	string		GIF		image/gif

# JPEG images
0	beshort		0xffd8		image/jpeg

# PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
0	string		BM		image/bmp
#>14	byte		12		(OS/2 1.x format)
#>14	byte		64		(OS/2 2.x format)
#>14	byte		40		(Windows 3.x format)
#0	string		IC		icon
#0	string		PI		pointer
#0	string		CI		color icon
#0	string		CP		color pointer
#0	string		BA		bitmap array


#------------------------------------------------------------------------------
# lisp:  file(1) magic for lisp programs
#
# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
0	string	;;			text/plain	8bit
# Emacs 18 - this is always correct, but not very magical.
0	string	\012(			application/x-elc
# Emacs 19
0	string	;ELC\023\000\000\000	application/x-elc

#------------------------------------------------------------------------------
# mail.news:  file(1) magic for mail and news
#
# There are tests to ascmagic.c to cope with mail and news.
0	string		Relay-Version: 	message/rfc822	7bit
0	string		#!\ rnews	message/rfc822	7bit
0	string		N#!\ rnews	message/rfc822	7bit
0	string		Forward\ to 	message/rfc822	7bit
0	string		Pipe\ to 	message/rfc822	7bit
0	string		Return-Path:	message/rfc822	7bit
0	string		Path:		message/news	8bit
0	string		Xref:		message/news	8bit
0	string		From:		message/rfc822	7bit
0	string		Article 	message/news	8bit
#------------------------------------------------------------------------------
# msword: file(1) magic for MS Word files
#
# Contributor claims:
# Reversed-engineered MS Word magic numbers
#

0	string		\376\067\0\043			application/msword
0	string		\333\245-\0\0\0			application/msword

# disable this one because it applies also to other
# Office/OLE documents for which msword is not correct. See PR#2608.
#0	string		\320\317\021\340\241\261	application/msword



#------------------------------------------------------------------------------
# printer:  file(1) magic for printer-formatted files
#

# PostScript
0	string		%!		application/postscript
0	string		\004%!		application/postscript

# Acrobat
# (due to clamen@cs.cmu.edu)
0	string		%PDF-		application/pdf

#------------------------------------------------------------------------------
# sc:  file(1) magic for "sc" spreadsheet
#
38	string		Spreadsheet	application/x-sc

#------------------------------------------------------------------------------
# tex:  file(1) magic for TeX files
#
# XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
#
# From <conklin@talisman.kaleida.com>

# Although we may know the offset of certain text fields in TeX DVI
# and font files, we can't use them reliably because they are not
# zero terminated. [but we do anyway, christos]
0	string		\367\002	application/x-dvi
#0	string		\367\203	TeX generic font data
#0	string		\367\131	TeX packed font data
#0	string		\367\312	TeX virtual font data
#0	string		This\ is\ TeX,	TeX transcript text	
#0	string		This\ is\ METAFONT,	METAFONT transcript text

# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data.  The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
#2	string		\000\021	TeX font metric data
#2	string		\000\022	TeX font metric data
#>34	string		>\0		(%s)

# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
#0	string		\\input\ texinfo	Texinfo source text
#0	string		This\ is\ Info\ file	GNU Info text

# correct TeX magic for Linux (and maybe more)
# from Peter Tobias (tobias@server.et-inf.fho-emden.de)
#
0	leshort		0x02f7		application/x-dvi

# RTF - Rich Text Format
0	string		{\\rtf		application/rtf

#------------------------------------------------------------------------------
# animation:  file(1) magic for animation/movie formats
#
# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
#						MPEG file
0	string		\000\000\001\263	video/mpeg
#
# The contributor claims:
#   I couldn't find a real magic number for these, however, this
#   -appears- to work.  Note that it might catch other files, too,
#   so BE CAREFUL!
#
# Note that title and author appear in the two 20-byte chunks
# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
# 255 (hex FF)! DL format SUCKS BIG ROCKS.
#
#						DL file version 1 , medium format (160x100, 4 images/screen)
0	byte		1			video/unknown
0	byte		2			video/unknown
# Quicktime video, from Linus Walleij <triad@df.lth.se>
# from Apple quicktime file format documentation.
4   string      moov        video/quicktime
4   string      mdat        video/quicktime

# PNG [Portable Network Graphics, or "PNG's Not GIF"] images
#
# 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
0   string      \211PNG\015      image/png
                                                                                                                                                                             Virtual_Configuration/tile11/webserver/Software_Configuration/php/                                  0000777 0000000 0000000 00000000000 11524350750 024452  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/Software_Configuration/php/php.ini                           0000644 0000000 0000000 00000206751 11524350750 025751  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   [PHP]

;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.

; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
; 1. SAPI module specific location.
; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; 4. Current working directory (except CLI)
; 5. The web server's directory (for SAPI modules), or directory of PHP
; (otherwise in Windows)
; 6. The directory from the --with-config-file-path compile time option, or the
; Windows directory (C:\windows or C:\winnt)
; See the PHP docs for more specific information.
; http://www.php.net/manual/en/configuration.file.php

; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future. 

; Directives following the section heading [PATH=/www/mysite] only
; apply to PHP files in the /www/mysite directory.  Directives
; following the section heading [HOST=www.example.com] only apply to
; PHP files served from www.example.com.  Directives set in these
; special sections cannot be overridden by user-defined INI files or
; at runtime. Currently, [PATH=] and [HOST=] sections only work under
; CGI/FastCGI.
; http://www.php.net/manual/en/ini.sections.php

; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
; Directives are variables used to configure PHP or PHP extensions.
; There is no name validation.  If PHP can't find an expected
; directive because it is not set or is mistyped, a default value will be used.

; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
; previously set variable or directive (e.g. ${foo})

; Expressions in the INI file are limited to bitwise operators and parentheses:
; |  bitwise OR
; ^  bitwise XOR
; &  bitwise AND
; ~  bitwise NOT
; !  boolean NOT

; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.

; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:

;  foo =         ; sets foo to an empty string
;  foo = None    ; sets foo to an empty string
;  foo = "None"  ; sets foo to the string 'None'

; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.

;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; PHP comes packaged with two INI files. One that is recommended to be used
; in production environments and one that is recommended to be used in
; development environments.

; php.ini-production contains settings which hold security, performance and
; best practices at its core. But please be aware, these settings may break
; compatibility with older or less security conscience applications. We
; recommending using the production ini in production and testing environments.

; php.ini-development is very similar to its production variant, except it's
; much more verbose when it comes to errors. We recommending using the
; development version only in development environments as errors shown to
; application users can inadvertently leak otherwise secure information.

; This 2 files are provided, by RPM, in /usr/share/doc/php-common-*/
; File used by RPM (the /etc/php.ini) is mainly the php.ini-production

;;;;;;;;;;;;;;;;;;;
; Quick Reference ;
;;;;;;;;;;;;;;;;;;;
; The following are all the settings which are different in either the production
; or development versions of the INIs with respect to PHP's default behavior.
; Please see the actual settings later in the document for more details as to why
; we recommend these changes in PHP's behavior.

; allow_call_time_pass_reference
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; display_errors
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; display_startup_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; error_reporting
;   Default Value: E_ALL & ~E_NOTICE
;   Development Value: E_ALL | E_STRICT
;   Production Value: E_ALL & ~E_DEPRECATED

; html_errors
;   Default Value: On
;   Development Value: On
;   Production value: Off

; log_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: On

; magic_quotes_gpc
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; max_input_time
;   Default Value: -1 (Unlimited)
;   Development Value: 60 (60 seconds)
;   Production Value: 60 (60 seconds)

; output_buffering
;   Default Value: Off
;   Development Value: 4096
;   Production Value: 4096

; register_argc_argv
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; register_long_arrays
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; request_order
;   Default Value: None
;   Development Value: "GP"
;   Production Value: "GP"

; session.bug_compat_42
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; session.bug_compat_warn
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; session.gc_divisor
;   Default Value: 100
;   Development Value: 1000
;   Production Value: 1000

; session.hash_bits_per_character
;   Default Value: 4
;   Development Value: 5
;   Production Value: 5

; short_open_tag
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; track_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; url_rewriter.tags
;   Default Value: "a=href,area=href,frame=src,form=,fieldset="
;   Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
;   Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"

; variables_order
;   Default Value: "EGPCS"
;   Development Value: "GPCS"
;   Production Value: "GPCS"

;;;;;;;;;;;;;;;;;;;;
; php.ini Options  ;
;;;;;;;;;;;;;;;;;;;;
; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
;user_ini.filename = ".user.ini"

; To disable this feature set this option to empty value
;user_ini.filename =

; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
;user_ini.cache_ttl = 300

;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
; http://www.php.net/manual/en/apache.configuration.php#ini.engine
engine = On

; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.short-open-tag
short_open_tag = Off

; Allow ASP-style <% %> tags.
; http://www.php.net/manual/en/ini.core.php#ini.asp-tags
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
; http://www.php.net/manual/en/ini.core.php#ini.precision
precision = 14

; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
; http://www.php.net/manual/en/ini.core.php#ini.y2k-compliance
y2k_compliance = On

; Output buffering is a mechanism for controlling how much output data
; (excluding headers and cookies) PHP should keep internally before pushing that
; data to the client. If your application's output exceeds this setting, PHP
; will send that data in chunks of roughly the size you specify.
; Turning on this setting and managing its maximum buffer size can yield some
; interesting side-effects depending on your application and web server.
; You may be able to send headers and cookies after you've already sent output
; through print or echo. You also may see performance benefits if your server is
; emitting less packets due to buffered output versus PHP streaming the output
; as it gets it. On production servers, 4096 bytes is a good setting for performance
; reasons.
; Note: Output buffering can also be controlled via Output Buffering Control
;   functions.
; Possible Values:
;   On = Enabled and buffer is unlimited. (Use with caution)
;   Off = Disabled
;   Integer = Enables the buffer and sets its maximum size in bytes.
; Default Value: Off
; Development Value: 4096
; Production Value: 4096
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-buffering
output_buffering = 4096

; You can redirect all of the output of your scripts to a function.  For
; example, if you set output_handler to "mb_output_handler", character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
;   directive. Instead, explicitly set the output handler using ob_start().
;   Using this ini directive may cause problems unless you know what script
;   is doing.
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
;   and you cannot use both "ob_gzhandler" and "zlib.output_compression".
; Note: output_handler must be empty if this is set 'On' !!!!
;   Instead you must use zlib.output_handler.
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-handler
;output_handler =

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
; Note: Resulting chunk size may vary due to nature of compression. PHP
;   outputs chunks that are few hundreds bytes each as a result of
;   compression. If you prefer a larger chunk size for better
;   performance, enable output_buffering in addition.
; Note: You need to use zlib.output_handler instead of the standard
;   output_handler, or otherwise the output will be corrupted.
; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression
zlib.output_compression = Off

; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression-level
;zlib.output_compression_level = -1

; You cannot specify additional output handlers if zlib.output_compression
; is activated here. This setting does the same as output_handler but in
; a different order.
; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-handler
;zlib.output_handler =

; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block.  This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block.  Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.implicit-flush
implicit_flush = Off

; The unserialize callback function will be called (with the undefined class'
; name as parameter), if the unserializer finds an undefined class
; which should be instantiated. A warning appears if the specified function is
; not defined, or if the function doesn't include/implement the missing class.
; So only set this entry, if you really want to implement such a
; callback-function.
unserialize_callback_func =

; When floats & doubles are serialized store serialize_precision significant
; digits after the floating point. The default value ensures that when floats
; are decoded with unserialize, the data will remain the same.
serialize_precision = 100

; This directive allows you to enable and disable warnings which PHP will issue
; if you pass a value by reference at function call time. Passing values by
; reference at function call time is a deprecated feature which will be removed
; from PHP at some point in the near future. The acceptable method for passing a
; value by reference to a function is by declaring the reference in the functions
; definition, not at call time. This directive does not disable this feature, it
; only determines whether PHP will warn you about it or not. These warnings
; should enabled in development environments only.
; Default Value: On (Suppress warnings)
; Development Value: Off (Issue warnings)
; Production Value: Off (Issue warnings)
; http://www.php.net/manual/en/ini.core.php#ini.allow-call-time-pass-reference
allow_call_time_pass_reference = Off

; Safe Mode
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode
safe_mode = Off

; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-gid
safe_mode_gid = Off

; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-include-dir
safe_mode_include_dir =

; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-exec-dir
safe_mode_exec_dir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here.  By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
; Note:  If this directive is empty, PHP will let the user modify ANY
;   environment variable!
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-allowed-env-vars
safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv().  These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-protected-env-vars
safe_mode_protected_env_vars = LD_LIBRARY_PATH

; open_basedir, if set, limits all file operations to the defined directory
; and below.  This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.open-basedir
;open_basedir =

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.disable-functions
disable_functions =

; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.disable-classes
disable_classes =

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; <span style="color: ???????"> would work.
; http://www.php.net/manual/en/misc.configuration.php#ini.syntax-highlighting
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg      = #FFFFFF
;highlight.default = #0000BB
;highlight.html    = #000000

; If enabled, the request will be allowed to complete even if the user aborts
; the request. Consider enabling it if executing long requests, which may end up
; being interrupted by the user or a browser timing out. PHP's default behavior
; is to disable this feature.
; http://www.php.net/manual/en/misc.configuration.php#ini.ignore-user-abort
;ignore_user_abort = On

; Determines the size of the realpath cache to be used by PHP. This value should
; be increased on systems where PHP opens many files to reflect the quantity of
; the file operations performed.
; http://www.php.net/manual/en/ini.core.php#ini.realpath-cache-size
;realpath_cache_size = 16k

; Duration of time, in seconds for which to cache realpath information for a given
; file or directory. For systems with rarely changing files, consider increasing this
; value.
; http://www.php.net/manual/en/ini.core.php#ini.realpath-cache-ttl
;realpath_cache_ttl = 120

;;;;;;;;;;;;;;;;;
; Miscellaneous ;
;;;;;;;;;;;;;;;;;

; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header).  It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
; http://www.php.net/manual/en/ini.core.php#ini.expose-php
expose_php = On

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time
max_execution_time = 30     

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts. 
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://www.php.net/manual/en/info.configuration.php#ini.max-input-time
max_input_time = 60

; Maximum input variable nesting level
; http://www.php.net/manual/en/info.configuration.php#ini.max-input-nesting-level
;max_input_nesting_level = 64

; Maximum amount of memory a script may consume (128MB)
; http://www.php.net/manual/en/ini.core.php#ini.memory-limit
memory_limit = 128M

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; This directive informs PHP of which errors, warnings and notices you would like
; it to take action for. The recommended way of setting values for this
; directive is through the use of the error level constants and bitwise
; operators. The error level constants are below here for convenience as well as
; some common settings and their meanings.
; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
; those related to E_NOTICE and E_STRICT, which together cover best practices and
; recommended coding standards in PHP. For performance reasons, this is the
; recommend error reporting setting. Your production server shouldn't be wasting
; resources complaining about best practices and coding standards. That's what
; development servers and development settings are for.
; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This
; means it pretty much reports everything which is exactly what you want during
; development and early testing.
;
; Error Level Constants:
; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
; E_ERROR           - fatal run-time errors
; E_RECOVERABLE_ERROR  - almost fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_STRICT          - run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
; E_DEPRECATED      - warn about code that will not work in future versions
;                     of PHP
; E_USER_DEPRECATED - user-generated deprecation warnings
;
; Common Values:
;   E_ALL & ~E_NOTICE  (Show all errors, except for notices and coding standards warnings.)
;   E_ALL & ~E_NOTICE | E_STRICT  (Show all errors, except for notices)
;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
;   E_ALL | E_STRICT  (Show all errors, warnings and notices including coding standards.)
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
error_reporting = E_ALL & ~E_DEPRECATED

; This directive controls whether or not and where PHP will output errors,
; notices and warnings too. Error output is very useful during development, but
; it could be very dangerous in production environments. Depending on the code
; which is triggering the error, sensitive information could potentially leak
; out of your application such as database usernames and passwords or worse.
; It's recommended that errors be logged on production servers rather than
; having the errors sent to STDOUT.
; Possible Values:
;   Off = Do not display any errors 
;   stderr = Display errors to STDERR (affects only CGI/CLI binaries!)   
;   On or stdout = Display errors to STDOUT
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors
display_errors = Off

; The display of errors which occur during PHP's startup sequence are handled
; separately from display_errors. PHP's default behavior is to suppress those
; errors from clients. Turning the display of startup errors on can be useful in
; debugging configuration problems. But, it's strongly recommended that you
; leave this setting off on production servers.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-startup-errors
display_startup_errors = Off

; Besides displaying errors, PHP can also log errors to locations such as a
; server-specific log, STDERR, or a location specified by the error_log
; directive found below. While errors should not be displayed on productions
; servers they should still be monitored and logging is a great way to do that.
; Default Value: Off
; Development Value: On
; Production Value: On
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors
log_errors = On

; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors-max-len
log_errors_max_len = 1024

; Do not log repeated messages. Repeated errors must occur in same file on same
; line unless ignore_repeated_source is set true.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.ignore-repeated-errors
ignore_repeated_errors = Off

; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; source lines.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.ignore-repeated-source
ignore_repeated_source = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.report-memleaks
report_memleaks = On

; This setting is on by default.
;report_zend_debug = 0

; Store the last error/warning message in $php_errormsg (boolean). Setting this value
; to On can assist in debugging and is appropriate for development servers. It should
; however be disabled on production servers.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors
track_errors = Off

; Turn off normal error reporting and emit XML-RPC error XML
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.xmlrpc-errors
;xmlrpc_errors = 0

; An XML-RPC faultCode
;xmlrpc_error_number = 0

; When PHP displays or logs an error, it has the capability of inserting html
; links to documentation related to that error. This directive controls whether
; those HTML links appear in error messages or not. For performance and security
; reasons, it's recommended you disable this on production servers.
; Default Value: On
; Development Value: On
; Production value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.html-errors
html_errors = Off

; If html_errors is set On PHP produces clickable error messages that direct
; to a page describing the error or function causing the error in detail.
; You can download a copy of the PHP manual from http://www.php.net/docs.php
; and change docref_root to the base URL of your local copy including the
; leading '/'. You must also specify the file extension being used including
; the dot. PHP's default behavior is to leave these settings empty.
; Note: Never use this feature for production boxes.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.docref-root
; Examples
;docref_root = "/phpmanual/"

; http://www.php.net/manual/en/errorfunc.configuration.php#ini.docref-ext
;docref_ext = .html

; String to output before an error message. PHP's default behavior is to leave
; this setting blank.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-prepend-string
; Example:
;error_prepend_string = "<font color=#ff0000>"

; String to output after an error message. PHP's default behavior is to leave
; this setting blank.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-append-string
; Example:
;error_append_string = "</font>"

; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-log
; Example:
;error_log = php_errors.log
; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog

;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;

; Note - track_vars is ALWAYS enabled as of PHP 4.0.3

; The separator used in PHP generated URLs to separate arguments.
; PHP's default setting is "&".
; http://www.php.net/manual/en/ini.core.php#ini.arg-separator.output
; Example:
;arg_separator.output = "&amp;"

; List of separator(s) used by PHP to parse input URLs into variables.
; PHP's default setting is "&".
; NOTE: Every character in this directive is considered as separator!
; http://www.php.net/manual/en/ini.core.php#ini.arg-separator.input
; Example:
;arg_separator.input = ";&"

; This directive determines which super global arrays are registered when PHP
; starts up. If the register_globals directive is enabled, it also determines
; what order variables are populated into the global space. G,P,C,E & S are
; abbreviations for the following respective super globals: GET, POST, COOKIE,
; ENV and SERVER. There is a performance penalty paid for the registration of
; these arrays and because ENV is not as commonly used as the others, ENV is
; is not recommended on productions servers. You can still get access to
; the environment variables through getenv() should you need to.
; Default Value: "EGPCS"
; Development Value: "GPCS"
; Production Value: "GPCS";
; http://www.php.net/manual/en/ini.core.php#ini.variables-order
variables_order = "GPCS"

; This directive determines which super global data (G,P,C,E & S) should
; be registered into the super global array REQUEST. If so, it also determines
; the order in which that data is registered. The values for this directive are
; specified in the same manner as the variables_order directive, EXCEPT one.
; Leaving this value empty will cause PHP to use the value set in the 
; variables_order directive. It does not mean it will leave the super globals
; array REQUEST empty.
; Default Value: None
; Development Value: "GP"
; Production Value: "GP"
; http://www.php.net/manual/en/ini.core.php#ini.request-order
request_order = "GP"

; Whether or not to register the EGPCS variables as global variables.  You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data.  This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARS[],
; variables.
; You should do your best to write your scripts so that they do not require
; register_globals to be on;  Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
; http://www.php.net/manual/en/ini.core.php#ini.register-globals
register_globals = Off

; Determines whether the deprecated long $HTTP_*_VARS type predefined variables
; are registered by PHP or not. As they are deprecated, we obviously don't
; recommend you use them. They are on by default for compatibility reasons but
; they are not recommended on production servers.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.register-long-arrays
register_long_arrays = Off

; This directive determines whether PHP registers $argv & $argc each time it
; runs. $argv contains an array of all the arguments passed to PHP when a script
; is invoked. $argc contains an integer representing the number of arguments
; that were passed when the script was invoked. These arrays are extremely
; useful when running scripts from the command line. When this directive is
; enabled, registering these variables consumes CPU cycles and memory each time
; a script is executed. For performance reasons, this feature should be disabled
; on production servers.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.register-argc-argv
register_argc_argv = Off

; When enabled, the SERVER and ENV variables are created when they're first
; used (Just In Time) instead of when the script starts. If these variables
; are not used within a script, having this directive on will result in a
; performance gain. The PHP directives register_globals, register_long_arrays,
; and register_argc_argv must be disabled for this directive to have any affect.
; http://www.php.net/manual/en/ini.core.php#ini.auto-globals-jit
auto_globals_jit = On

; Maximum size of POST data that PHP will accept.
; http://www.php.net/manual/en/ini.core.php#ini.post-max-size
post_max_size = 8M

; Magic quotes are a preprocessing feature of PHP where PHP will attempt to
; escape any character sequences in GET, POST, COOKIE and ENV data which might
; otherwise corrupt data being placed in resources such as databases before
; making that data available to you. Because of character encoding issues and
; non-standard SQL implementations across many databases, it's not currently
; possible for this feature to be 100% accurate. PHP's default behavior is to
; enable the feature. We strongly recommend you use the escaping mechanisms
; designed specifically for the database your using instead of relying on this
; feature. Also note, this feature has been deprecated as of PHP 5.3.0 and is
; scheduled for removal in PHP 6.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
; http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-runtime
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
; http://www.php.net/manual/en/sybase.configuration.php#ini.magic-quotes-sybase
magic_quotes_sybase = Off

; Automatically add files before PHP document.
; http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file
auto_prepend_file =

; Automatically add files after PHP document.
; http://www.php.net/manual/en/ini.core.php#ini.auto-append-file
auto_append_file =

; As of 4.0b4, PHP always outputs a character encoding by default in
; the Content-type: header.  To disable sending of the charset, simply
; set it to be empty.
;
; PHP's built-in default is text/html
; http://www.php.net/manual/en/ini.core.php#ini.default-mimetype
default_mimetype = "text/html"

; PHP's default character set is set to empty.
; http://www.php.net/manual/en/ini.core.php#ini.default-charset
;default_charset = "iso-8859-1"

; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
; to disable this feature.
; http://www.php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data
;always_populate_raw_post_data = On

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
;
; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://www.php.net/manual/en/ini.core.php#ini.include-path

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
; http://www.php.net/manual/en/ini.core.php#ini.doc-root
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
; http://www.php.net/manual/en/ini.core.php#ini.user-dir
user_dir =

; Directory in which the loadable extensions (modules) reside.
; http://www.php.net/manual/en/ini.core.php#ini.extension-dir
; extension_dir = "./"

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
; http://www.php.net/manual/en/info.configuration.php#ini.enable-dl
enable_dl = Off

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers.  Left undefined, PHP turns this on by default.  You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; http://www.php.net/manual/en/ini.core.php#ini.cgi.force-redirect
;cgi.force_redirect = 1

; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
; every request. PHP's default behavior is to disable this feature.
;cgi.nph = 1

; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution.  Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.redirect-status-env
;cgi.redirect_status_env = ;

; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
; this to 1 will cause PHP CGI to fix its paths to conform to the spec.  A setting
; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.fix-pathinfo
;cgi.fix_pathinfo=1

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; security tokens of the calling client.  This allows IIS to define the
; security context that the request runs under.  mod_fastcgi under Apache
; does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS.  Default is zero.
; http://www.php.net/manual/en/ini.core.php#ini.fastcgi.impersonate
;fastcgi.impersonate = 1;

; Disable logging through FastCGI connection. PHP's default behavior is to enable
; this feature.
;fastcgi.logging = 0

; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
; is supported by Apache. When this option is set to 1 PHP will send
; RFC2616 compliant header.
; Default is zero.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.rfc2616-headers
;cgi.rfc2616_headers = 0

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
; http://www.php.net/manual/en/ini.core.php#ini.file-uploads
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://www.php.net/manual/en/ini.core.php#ini.upload-tmp-dir
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
; http://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize
upload_max_filesize = 2M

;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen
allow_url_fopen = On

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-include
allow_url_include = Off

; Define the anonymous ftp password (your email address). PHP's default setting
; for this is empty.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.from
;from="john@doe.com"

; Define the User-Agent string. PHP's default setting for this is empty.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.user-agent
;user_agent="PHP"

; Default timeout for socket based streams (seconds)
; http://www.php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout
default_socket_timeout = 60

; If your scripts have to deal with files from Macintosh systems,
; or you are running on a Mac and need to deal with files from
; unix or win32 systems, setting this flag will cause PHP to
; automatically detect the EOL character in those files so that
; fgets() and file() will work regardless of the source of the file.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.auto-detect-line-endings
;auto_detect_line_endings = Off

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example
;
;   extension=msql.so
;
; ... or with a path:
;
;   extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.

;;;;
; Note: packaged extension modules are now loaded via the .ini files
; found in the directory /etc/php.d; these are loaded by default.
;;;;


;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
;date.timezone =

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.default-latitude
;date.default_latitude = 31.7667

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.default-longitude
;date.default_longitude = 35.2333

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.sunrise-zenith
;date.sunrise_zenith = 90.583333

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.sunset-zenith
;date.sunset_zenith = 90.583333

[filter]
; http://www.php.net/manual/en/filter.configuration.php#ini.filter.default
;filter.default = unsafe_raw

; http://www.php.net/manual/en/filter.configuration.php#ini.filter.default-flags
;filter.default_flags =

[iconv]
;iconv.input_encoding = ISO-8859-1
;iconv.internal_encoding = ISO-8859-1
;iconv.output_encoding = ISO-8859-1

[intl]
;intl.default_locale = 

[sqlite]
; http://www.php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case
;sqlite.assoc_case = 0

[sqlite3]
;sqlite3.extension_dir =

[Pcre]
;PCRE library backtracking limit.
; http://www.php.net/manual/en/pcre.configuration.php#ini.pcre.backtrack-limit
;pcre.backtrack_limit=100000

;PCRE library recursion limit. 
;Please note that if you set this value to a high number you may consume all 
;the available process stack and eventually crash PHP (due to reaching the 
;stack size limit imposed by the Operating System).
; http://www.php.net/manual/en/pcre.configuration.php#ini.pcre.recursion-limit
;pcre.recursion_limit=100000

[Pdo]
; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
; http://www.php.net/manual/en/ref.pdo-odbc.php#ini.pdo-odbc.connection-pooling
;pdo_odbc.connection_pooling=strict

[Phar]
; http://www.php.net/manual/en/phar.configuration.php#ini.phar.readonly
;phar.readonly = On

; http://www.php.net/manual/en/phar.configuration.php#ini.phar.require-hash
;phar.require_hash = On

;phar.cache_list =

[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.).  Turning it off is a good idea performance-wise.  In
; runtime, you can define these variables by calling define_syslog_variables().
; http://www.php.net/manual/en/network.configuration.php#ini.define-syslog-variables
define_syslog_variables  = Off

[mail function]
; For Win32 only.
; http://www.php.net/manual/en/mail.configuration.php#ini.smtp
SMTP = localhost
; http://www.php.net/manual/en/mail.configuration.php#ini.smtp-port
smtp_port = 25

; For Win32 only.
; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-from
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-path
sendmail_path = /usr/sbin/sendmail -t -i

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originaiting-Script: that will include uid of the script followed by the filename
mail.add_x_header = On

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log =

[SQL]
; http://www.php.net/manual/en/ini.core.php#ini.sql.safe-mode
sql.safe_mode = Off

[ODBC]
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-db
;odbc.default_db    =  Not yet implemented

; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-user
;odbc.default_user  =  Not yet implemented

; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-pw
;odbc.default_pw    =  Not yet implemented

; Allow or prevent persistent links.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.allow-persistent
odbc.allow_persistent = On

; Check that a connection is still valid before reuse.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.check-persistent
odbc.check_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.max-persistent
odbc.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.max-links
odbc.max_links = -1

; Handling of LONG fields.  Returns number of bytes to variables.  0 means
; passthru.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.defaultlrl
odbc.defaultlrl = 4096

; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of uodbc.defaultlrl and uodbc.defaultbinmode
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.defaultbinmode
odbc.defaultbinmode = 1

;birdstep.max_links = -1

[MySQL]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.allow-persistent
mysql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.max-persistent
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.max-links
mysql.max_links = -1

; Default port number for mysql_connect().  If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-port
mysql.default_port =

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-socket
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-host
mysql.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-user
mysql.default_user =

; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-password
mysql.default_password =

; Maximum time (in seconds) for connect timeout. -1 means no limit
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.connect-timeout
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.trace-mode
mysql.trace_mode = Off

[MySQLi]

; Maximum number of links.  -1 means no limit.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.max-links
mysqli.max_links = -1

; Default port number for mysqli_connect().  If unset, mysqli_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-port
mysqli.default_port = 3306

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-socket
mysqli.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-host
mysqli.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-user
mysqli.default_user =

; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-pw
mysqli.default_pw =

; Allow or prevent reconnect
mysqli.reconnect = Off

[PostgresSQL]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.allow-persistent
pgsql.allow_persistent = On

; Detect broken persistent links always with pg_pconnect().
; Auto reset feature requires a little overheads.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.auto-reset-persistent
pgsql.auto_reset_persistent = Off

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-persistent
pgsql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-links
pgsql.max_links = -1

; Ignore PostgreSQL backends Notice message or not.
; Notice message logging require a little overheads.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.ignore-notice
pgsql.ignore_notice = 0

; Log PostgreSQL backends Noitce message or not.
; Unless pgsql.ignore_notice=0, module cannot log notice message.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.log-notice
pgsql.log_notice = 0

[Sybase-CT]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.allow-persistent
sybct.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.max-persistent
sybct.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.max-links
sybct.max_links = -1

; Minimum server message severity to display.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.min-server-severity
sybct.min_server_severity = 10

; Minimum client message severity to display.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.min-client-severity
sybct.min_client_severity = 10

; Set per-context timeout
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.timeout
;sybct.timeout=

;sybct.packet_size

[bcmath]
; Number of decimal digits for all bcmath functions.
; http://www.php.net/manual/en/bc.configuration.php#ini.bcmath.scale
bcmath.scale = 0

[browscap]
; http://www.php.net/manual/en/misc.configuration.php#ini.browscap
;browscap = extra/browscap.ini

[Session]
; Handler used to store/retrieve data.
; http://www.php.net/manual/en/session.configuration.php#ini.session.save-handler
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
;
; As of PHP 4.0.1, you can define the path as:
;
;     session.save_path = "N;/path"
;
; where N is an integer.  Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories.  This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
;         You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
;         use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
;     session.save_path = "N;MODE;/path"
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
; http://www.php.net/manual/en/session.configuration.php#ini.session.save-path
session.save_path = "/var/lib/php/session"

; Whether to use cookies.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-cookies
session.use_cookies = 1

; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-secure
;session.cookie_secure =

; This option forces PHP to fetch and use a cookie for storing and maintaining
; the session id. We encourage this operation as it's very helpful in combatting
; session hijacking when not specifying and managing your own session id. It is
; not the end all be all of session hijacking defense, but it's a good start.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-only-cookies
session.use_only_cookies = 1

; Name of the session (used as cookie name).
; http://www.php.net/manual/en/session.configuration.php#ini.session.name
session.name = PHPSESSID

; Initialize session on request startup.
; http://www.php.net/manual/en/session.configuration.php#ini.session.auto-start
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime
session.cookie_lifetime = 0

; The path for which the cookie is valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-path
session.cookie_path = /

; The domain for which the cookie is valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-domain
session.cookie_domain =

; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-httponly
session.cookie_httponly = 

; Handler used to serialize data.  php is the standard serializer of PHP.
; http://www.php.net/manual/en/session.configuration.php#ini.session.serialize-handler
session.serialize_handler = php

; Defines the probability that the 'garbage collection' process is started
; on every session initialization. The probability is calculated by using
; gc_probability/gc_divisor. Where session.gc_probability is the numerator
; and gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request.
; Default Value: 1
; Development Value: 1
; Production Value: 1
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-probability
session.gc_probability = 1

; Defines the probability that the 'garbage collection' process is started on every
; session initialization. The probability is calculated by using the following equation: 
; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
; session.gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request. Increasing this value to 1000 will give you
; a 0.1% chance the gc will run on any give request. For high volume production servers,
; this is a more efficient approach.
; Default Value: 100
; Development Value: 1000
; Production Value: 1000
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-divisor
session.gc_divisor = 1000

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime
session.gc_maxlifetime = 1440

; NOTE: If you are using the subdirectory option for storing session files
;       (see session.save_path above), then garbage collection does *not*
;       happen automatically.  You will need to do your own garbage
;       collection through a shell script, cron entry, or some other method.
;       For example, the following script would is the equivalent of
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
;          cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, even when register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled. This feature
; introduces some serious security problems if not handled correctly. It's
; recommended that you do not use this feature on production servers. But you
; should enable this on development servers and enable the warning as well. If you
; do not enable the feature on development servers, you won't be warned when it's
; used and debugging errors caused by this can be difficult to track down.
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/session.configuration.php#ini.session.bug-compat-42
session.bug_compat_42 = Off

; This setting controls whether or not you are warned by PHP when initializing a
; session value into the global space. session.bug_compat_42 must be enabled before
; these warnings can be issued by PHP. See the directive above for more information.
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/session.configuration.php#ini.session.bug-compat-warn
session.bug_compat_warn = Off

; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.referer-check
session.referer_check =

; How many bytes to read from the file.
; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-length
session.entropy_length = 0

; Specified here to create the session id.
; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-file
;session.entropy_file = /dev/urandom
session.entropy_file =

; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-length
;session.entropy_length = 16

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cache-limiter
session.cache_limiter = nocache

; Document expires after n minutes.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cache-expire
session.cache_expire = 180

; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
;   to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
;   in publically accessible computer.
; - User may access your site with the same session ID
;   always using URL stored in browser's history or bookmarks.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-trans-sid
session.use_trans_sid = 0

; Select a hash function for use in generating session ids.
; Possible Values 
;   0  (MD5 128 bits)
;   1  (SHA-1 160 bits)
; http://www.php.net/manual/en/session.configuration.php#ini.session.hash-function
session.hash_function = 0

; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
; Possible values:
;   4  (4 bits: 0-9, a-f)
;   5  (5 bits: 0-9, a-v)
;   6  (6 bits: 0-9, a-z, A-Z, "-", ",")
; Default Value: 4
; Development Value: 5
; Production Value: 5
; http://www.php.net/manual/en/session.configuration.php#ini.session.hash-bits-per-character
session.hash_bits_per_character = 5

; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden <input> field with the info which is otherwise appended
; to URLs.  If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a "=", even if no value follows.
; Default Value: "a=href,area=href,frame=src,form=,fieldset="
; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; http://www.php.net/manual/en/session.configuration.php#ini.url-rewriter.tags
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
mssql.max_links = -1

; Minimum error severity to display.
mssql.min_error_severity = 10

; Minimum message severity to display.
mssql.min_message_severity = 10

; Compatibility mode with old versions of PHP 3.0.
mssql.compatability_mode = Off

; Connect timeout
;mssql.connect_timeout = 5

; Query timeout
;mssql.timeout = 60

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textsize = 4096

; Limits the number of records in each batch.  0 = all records in one batch.
;mssql.batchsize = 0

; Specify how datetime and datetim4 columns are returned
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server
mssql.secure_connection = Off

; Specify max number of processes. -1 = library default
; msdlib defaults to 25
; FreeTDS defaults to 4096
;mssql.max_procs = -1

; Specify client character set. 
; If empty or not set the client charset from freetds.comf is used
; This is only used when compiled with FreeTDS
;mssql.charset = "ISO-8859-1"

[Assertion]
; Assert(expr); active by default.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.active
;assert.active = On

; Issue a PHP warning for each failed assertion.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.warning
;assert.warning = On

; Don't bail out by default.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.bail
;assert.bail = Off

; User-function to be called if an assertion fails.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.callback
;assert.callback = 0

; Eval the expression with current error_reporting().  Set to true if you want
; error_reporting(0) around the eval().
; http://www.php.net/manual/en/info.configuration.php#ini.assert.quiet-eval
;assert.quiet_eval = 0

[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
; http://www.php.net/manual/en/com.configuration.php#ini.com.typelib-file
;com.typelib_file =

; allow Distributed-COM calls
; http://www.php.net/manual/en/com.configuration.php#ini.com.allow-dcom
;com.allow_dcom = true

; autoregister constants of a components typlib on com_load()
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-typelib
;com.autoregister_typelib = true

; register constants casesensitive
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-casesensitive
;com.autoregister_casesensitive = false

; show warnings on duplicate constant registrations
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-verbose
;com.autoregister_verbose = true

[mbstring]
; language for internal character representation.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.language
;mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.internal-encoding
;mbstring.internal_encoding = EUC-JP

; http input encoding.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-input
;mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-output
;mbstring.http_output = SJIS

; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.encoding-translation
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; auto means
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.detect-order
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.substitute-character
;mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.func-overload
;mbstring.func_overload = 0

; enable strict encoding detection.
;mbstring.strict_detection = Off

; This directive specifies the regex pattern of content types for which mb_output_handler()
; is activated.
; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
;mbstring.http_output_conv_mimetype=

[gd]
; Tell the jpeg decode to ignore warnings and try to create
; a gd image. The warning will then be displayed as notices
; disabled by default
; http://www.php.net/manual/en/image.configuration.php#ini.image.jpeg-ignore-warning
;gd.jpeg_ignore_warning = 0

[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-unicode
;exif.encode_unicode = ISO-8859-15

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-motorola
;exif.decode_unicode_motorola = UCS-2BE

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-intel
;exif.decode_unicode_intel    = UCS-2LE

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-jis
;exif.encode_jis =

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-motorola
;exif.decode_jis_motorola = JIS

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-intel
;exif.decode_jis_intel    = JIS

[Tidy]
; The path to a default tidy configuration file to use when using tidy
; http://www.php.net/manual/en/tidy.configuration.php#ini.tidy.default-config
;tidy.default_config = /usr/local/lib/php/default.tcfg

; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
; http://www.php.net/manual/en/tidy.configuration.php#ini.tidy.clean-output
tidy.clean_output = Off

[soap]
; Enables or disables WSDL caching feature.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-enabled
soap.wsdl_cache_enabled=1

; Sets the directory name where SOAP extension will put cache files.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-dir
soap.wsdl_cache_dir="/tmp"

; (time to live) Sets the number of second while cached file will be used 
; instead of original one.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-ttl
soap.wsdl_cache_ttl=86400

[sysvshm]
; A default size of the shared memory segment
;sysvshm.init_mem = 10000


; Local Variables:
; tab-width: 4
; End:
                       Virtual_Configuration/tile11/webserver/Software_Configuration/php/php.d/                            0000777 0000000 0000000 00000000000 11524350747 025471  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/webserver/Software_Configuration/php/php.d/phar.ini                    0000644 0000000 0000000 00000000061 11524350747 027115  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable phar extension module
extension=phar.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/webserver/Software_Configuration/php/php.d/zip.ini                     0000644 0000000 0000000 00000000057 11524350750 026764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable zip extension module
extension=zip.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/webserver/Software_Configuration/php/php.d/json.ini                    0000644 0000000 0000000 00000000061 11524350747 027134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable json extension module
extension=json.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/webserver/Software_Configuration/php/php.d/apc.ini                     0000644 0000000 0000000 00000005340 11524350747 026733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable apc extension module
extension = apc.so

; Options for the APC module version >= 3.1.3

; This can be set to 0 to disable APC. 
apc.enabled=1
; The number of shared memory segments to allocate for the compiler cache. 
apc.shm_segments=1
; The size of each shared memory segment in MB.
apc.shm_size=64
; A "hint" about the number of distinct source files that will be included or 
; requested on your web server. Set to zero or omit if you're not sure;
apc.num_files_hint=1024
; Just like num_files_hint, a "hint" about the number of distinct user cache
; variables to store.  Set to zero or omit if you're not sure;
apc.user_entries_hint=4096
; The number of seconds a cache entry is allowed to idle in a slot in case this
; cache entry slot is needed by another entry.
apc.ttl=7200
; use the SAPI request start time for TTL
apc.use_request_time=1
; The number of seconds a user cache entry is allowed to idle in a slot in case
; this cache entry slot is needed by another entry.
apc.user_ttl=7200
; The number of seconds that a cache entry may remain on the garbage-collection list. 
apc.gc_ttl=3600
; On by default, but can be set to off and used in conjunction with positive
; apc.filters so that files are only cached if matched by a positive filter.
apc.cache_by_default=1
; A comma-separated list of POSIX extended regular expressions.
apc.filters
; The mktemp-style file_mask to pass to the mmap module 
apc.mmap_file_mask=/tmp/apc.XXXXXX
; This file_update_protection setting puts a delay on caching brand new files.
apc.file_update_protection=2
; Setting this enables APC for the CLI version of PHP (Mostly for testing and debugging).
apc.enable_cli=0
; Prevents large files from being cached
apc.max_file_size=1M
; Whether to stat the main script file and the fullpath includes.
apc.stat=1
; Vertification with ctime will avoid problems caused by programs such as svn or rsync by making 
; sure inodes havn't changed since the last stat. APC will normally only check mtime.
apc.stat_ctime=0
; Whether to canonicalize paths in stat=0 mode or fall back to stat behaviour
apc.canonicalize=0
; With write_lock enabled, only one process at a time will try to compile an 
; uncached script while the other processes will run uncached
apc.write_lock=1
; Logs any scripts that were automatically excluded from being cached due to early/late binding issues.
apc.report_autofilter=0
; RFC1867 File Upload Progress hook handler
apc.rfc1867=0
apc.rfc1867_prefix =upload_
apc.rfc1867_name=APC_UPLOAD_PROGRESS
apc.rfc1867_freq=0
apc.rfc1867_ttl=3600
; Optimize include_once and require_once calls and avoid the expensive system calls used.
apc.include_once_override=0
apc.lazy_classes=00
apc.lazy_functions=0
; not documented
apc.coredump_unmap=0
apc.file_md5=0
apc.preload_path
                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile11/webserver/Software_Configuration/php/php.d/curl.ini                    0000644 0000000 0000000 00000000061 11524350747 027130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable curl extension module
extension=curl.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/webserver/Software_Configuration/php/php.d/fileinfo.ini                0000644 0000000 0000000 00000000071 11524350747 027757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable fileinfo extension module
extension=fileinfo.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/mailserver/                                                            0000777 0000000 0000000 00000000000 11524350723 017347  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/                                           0000777 0000000 0000000 00000000000 11524350745 022624  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/proc/                                      0000777 0000000 0000000 00000000000 11524350745 023567  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/proc/cpuinfo                               0000644 0000000 0000000 00000001017 11524350744 025147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/mailserver/VM_configuration/proc/mounts                                0000644 0000000 0000000 00000001357 11524350745 025041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1020708k,nr_inodes=255177,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1322,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1322,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/mailserver/VM_configuration/proc/swaps                                 0000644 0000000 0000000 00000000144 11524350745 024642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/mailserver/VM_configuration/proc/devices                               0000644 0000000 0000000 00000000567 11524350744 025137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile11/mailserver/VM_configuration/proc/modules                               0000644 0000000 0000000 00000002621 11524350745 025157  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 39 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile11/mailserver/VM_configuration/proc/partitions                            0000644 0000000 0000000 00000000260 11524350745 025700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   41943040 vdb
 252       17   41943024 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile11/mailserver/VM_configuration/proc/meminfo                               0000644 0000000 0000000 00000002222 11524350745 025136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2055756 kB
MemFree:          357772 kB
Buffers:          380532 kB
Cached:           894744 kB
SwapCached:            0 kB
Active:           891948 kB
Inactive:         456636 kB
Active(anon):      16000 kB
Inactive(anon):    57468 kB
Active(file):     875948 kB
Inactive(file):   399168 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               248 kB
Writeback:             0 kB
AnonPages:         73304 kB
Mapped:             9584 kB
Shmem:               160 kB
Slab:             328732 kB
SReclaimable:     257704 kB
SUnreclaim:        71028 kB
KernelStack:        1056 kB
PageTables:         3912 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3075868 kB
Committed_AS:     178784 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       11532 kB
VmallocChunk:   34359719476 kB
HardwareCorrupted:     0 kB
AnonHugePages:     24576 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2088960 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/mailserver/VM_configuration/root/                                      0000777 0000000 0000000 00000000000 11524350745 023607  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/root/convert_to_vf.sh                      0000755 0000000 0000000 00000001135 11524350745 027017  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/lspci.txt                                  0000644 0000000 0000000 00000001211 11524350744 024465  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/mailserver/VM_configuration/df.txt                                     0000644 0000000 0000000 00000000401 11524350723 023741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3827880   8953056  30% /
tmpfs                  1027876         0   1027876   0% /dev/shm
/dev/vdb1             41284912  24787948  14399816  64% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/mailserver/VM_configuration/mount.txt                                  0000644 0000000 0000000 00000000612 11524350744 024521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile11/mailserver/VM_configuration/etc/                                       0000777 0000000 0000000 00000000000 11524350744 023376  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/                                  0000777 0000000 0000000 00000000000 11524350734 024223  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/                            0000777 0000000 0000000 00000000000 11524350744 025135  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests           0000755 0000000 0000000 00000017172 11524350734 030326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                  0000755 0000000 0000000 00000004325 11524350735 026745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd               0000755 0000000 0000000 00000006014 11524350736 027534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                 0000755 0000000 0000000 00000012327 11524350740 027130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                0000755 0000000 0000000 00000005222 11524350742 027315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                     0000755 0000000 0000000 00000010671 11524350743 026321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                    0000755 0000000 0000000 00000006364 11524350735 026474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                0000755 0000000 0000000 00000020716 11524350740 027240  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                     0000755 0000000 0000000 00000004731 11524350737 026325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon             0000755 0000000 0000000 00000004754 11524350734 027676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                0000755 0000000 0000000 00000001364 11524350743 027340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                    0000755 0000000 0000000 00000003027 11524350740 026455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                   0000755 0000000 0000000 00000006743 11524350743 026661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                    0000755 0000000 0000000 00000010777 11524350737 026470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus               0000755 0000000 0000000 00000004230 11524350742 027501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                    0000755 0000000 0000000 00000006302 11524350737 026437  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                      0000755 0000000 0000000 00000004236 11524350744 026155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                  0000755 0000000 0000000 00000004031 11524350741 026762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance               0000755 0000000 0000000 00000003521 11524350741 027445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                  0000755 0000000 0000000 00000006050 11524350742 027020  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                  0000755 0000000 0000000 00000002363 11524350740 027066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger               0000755 0000000 0000000 00000004054 11524350734 027502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                0000755 0000000 0000000 00000005013 11524350742 027355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                    0000755 0000000 0000000 00000003213 11524350737 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                  0000755 0000000 0000000 00000003512 11524350737 027010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                     0000755 0000000 0000000 00000003603 11524350737 026316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                   0000755 0000000 0000000 00000011277 11524350736 026642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S10network                  0000755 0000000 0000000 00000014466 11524350741 027044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                  0000755 0000000 0000000 00000004326 11524350741 027051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                   0000755 0000000 0000000 00000006462 11524350741 026623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                    0000755 0000000 0000000 00000027662 11524350742 026477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                     0000755 0000000 0000000 00000006445 11524350736 026220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                0000755 0000000 0000000 00000003245 11524350743 027305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K60crond                    0000755 0000000 0000000 00000005445 11524350736 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                    0000755 0000000 0000000 00000005522 11524350735 026457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl            0000755 0000000 0000000 00000002221 11524350740 030141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                0000755 0000000 0000000 00000004010 11524350735 027316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                      0000755 0000000 0000000 00000013536 11524350736 026137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                     0000755 0000000 0000000 00000004723 11524350743 026301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                   0000755 0000000 0000000 00000003024 11524350735 026607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                    0000755 0000000 0000000 00000003275 11524350743 026440  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                 0000755 0000000 0000000 00000025442 11524350741 027162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                0000755 0000000 0000000 00000004370 11524350743 027303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S99local                    0000755 0000000 0000000 00000000334 11524350744 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                  0000755 0000000 0000000 00000006675 11524350742 027022  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole               0000755 0000000 0000000 00000005650 11524350736 027517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor             0000555 0000000 0000000 00000004612 11524350740 027706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                   0000755 0000000 0000000 00000007234 11524350743 026662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                 0000755 0000000 0000000 00000003433 11524350744 027214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                   0000755 0000000 0000000 00000005672 11524350734 026636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                    0000755 0000000 0000000 00000003254 11524350743 026453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                0000755 0000000 0000000 00000005063 11524350743 027327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                    0000755 0000000 0000000 00000012432 11524350742 026470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                  0000755 0000000 0000000 00000007414 11524350735 027037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                 0000755 0000000 0000000 00000020557 11524350740 027155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond              0000755 0000000 0000000 00000003427 11524350737 027710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/rc3.d/K05atd                      0000755 0000000 0000000 00000004112 11524350735 026105  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/                           0000777 0000000 0000000 00000000000 11524350734 025410  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/network                    0000755 0000000 0000000 00000014466 11524350730 027032  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/gfs2                       0000755 0000000 0000000 00000006445 11524350726 026205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/sysstat                    0000755 0000000 0000000 00000002363 11524350733 027047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/saslauthd                  0000755 0000000 0000000 00000004010 11524350733 027314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/messagebus                 0000755 0000000 0000000 00000004230 11524350727 027471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/autobench                  0000755 0000000 0000000 00000005063 11524350725 027306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/atd                        0000755 0000000 0000000 00000004112 11524350725 026100  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/mcelogd                    0000755 0000000 0000000 00000003535 11524350727 026754  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/auditd                     0000755 0000000 0000000 00000006462 11524350725 026614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/certmonger                 0000755 0000000 0000000 00000004054 11524350725 027502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/irqbalance                 0000755 0000000 0000000 00000003521 11524350726 027435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/acpid                      0000755 0000000 0000000 00000003275 11524350725 026421  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/nscd                       0000755 0000000 0000000 00000004723 11524350730 026263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                  0000755 0000000 0000000 00000005222 11524350732 027274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/nfs                        0000755 0000000 0000000 00000013536 11524350730 026124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/sssd                       0000755 0000000 0000000 00000004731 11524350733 026312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/crond                      0000755 0000000 0000000 00000005445 11524350726 026450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/ip6tables                  0000755 0000000 0000000 00000020716 11524350726 027232  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/autofs                     0000755 0000000 0000000 00000007234 11524350725 026641  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/sshd                       0000755 0000000 0000000 00000010671 11524350733 026277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/ksm                        0000755 0000000 0000000 00000004236 11524350727 026133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/libvirt-guests             0000755 0000000 0000000 00000017172 11524350727 030327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/avahi-daemon               0000755 0000000 0000000 00000004754 11524350725 027675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/ypbind                     0000755 0000000 0000000 00000011277 11524350734 026627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/psacct                     0000755 0000000 0000000 00000003024 11524350731 026603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/xinetd                     0000755 0000000 0000000 00000006743 11524350734 026637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/nfslock                    0000755 0000000 0000000 00000006675 11524350730 027003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/cgred                      0000755 0000000 0000000 00000006302 11524350725 026417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/migrateip                  0000755 0000000 0000000 00000001364 11524350730 027313  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/udev-post                  0000755 0000000 0000000 00000004370 11524350733 027263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/haldaemon                  0000755 0000000 0000000 00000003245 11524350726 027267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/ipsec                      0000755 0000000 0000000 00000010777 11524350726 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/rpcbind                    0000755 0000000 0000000 00000004031 11524350732 026747  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/rhnsd                      0000755 0000000 0000000 00000005522 11524350732 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/functions                  0000644 0000000 0000000 00000042767 11524350726 027360  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/kdump                      0000755 0000000 0000000 00000027662 11524350727 026471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/postfix                    0000755 0000000 0000000 00000007414 11524350731 027031  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/iptables                   0000755 0000000 0000000 00000020557 11524350726 027147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/rsyslog                    0000755 0000000 0000000 00000004326 11524350732 027037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/netconsole                 0000755 0000000 0000000 00000005650 11524350730 027505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/rpcgssd                    0000755 0000000 0000000 00000006050 11524350732 026776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/abrtd                      0000755 0000000 0000000 00000003254 11524350725 026432  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor               0000555 0000000 0000000 00000004612 11524350727 027702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/halt                       0000755 0000000 0000000 00000012723 11524350726 026270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/cgconfig                   0000755 0000000 0000000 00000012327 11524350725 027116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/single                     0000755 0000000 0000000 00000001207 11524350733 026612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/mdmonitor                  0000755 0000000 0000000 00000005013 11524350727 027343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/restorecond                0000755 0000000 0000000 00000003427 11524350731 027664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/cpuspeed                   0000755 0000000 0000000 00000025442 11524350725 027151  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/netfs                      0000755 0000000 0000000 00000012432 11524350730 026447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524350732 027512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/oddjobd                    0000755 0000000 0000000 00000004325 11524350731 026740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/ksmtuned                   0000755 0000000 0000000 00000003433 11524350727 027171  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/sandbox                    0000755 0000000 0000000 00000003242 11524350732 026767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/killall                    0000755 0000000 0000000 00000001214 11524350727 026756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/rdisc                      0000755 0000000 0000000 00000003027 11524350731 026435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/httpd                      0000755 0000000 0000000 00000006364 11524350726 026467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/ntpd                       0000755 0000000 0000000 00000003603 11524350731 026276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/smartd                     0000755 0000000 0000000 00000005672 11524350733 026635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/nslcd                      0000755 0000000 0000000 00000003213 11524350731 026431  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/ntpdate                    0000755 0000000 0000000 00000003512 11524350731 026767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile11/mailserver/VM_configuration/etc/rc.d/init.d/microcode_ctl              0000755 0000000 0000000 00000002221 11524350727 030137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/mailserver/VM_configuration/etc/hosts                                  0000644 0000000 0000000 00000000267 11524350724 024460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/mailserver/VM_configuration/etc/iproute2/                              0000777 0000000 0000000 00000000000 11524350724 025145  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/etc/iproute2/rt_dsfield                    0000644 0000000 0000000 00000000672 11524350724 027210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile11/mailserver/VM_configuration/etc/iproute2/rt_realms                     0000644 0000000 0000000 00000000160 11524350724 027051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile11/mailserver/VM_configuration/etc/iproute2/rt_scopes                     0000644 0000000 0000000 00000000134 11524350724 027063  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/mailserver/VM_configuration/etc/iproute2/ematch_map                    0000644 0000000 0000000 00000000073 11524350724 027162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/mailserver/VM_configuration/etc/iproute2/rt_tables                     0000644 0000000 0000000 00000000127 11524350724 027043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/mailserver/VM_configuration/etc/iproute2/rt_protos                     0000644 0000000 0000000 00000000475 11524350724 027125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/etc/nsswitch.conf                          0000644 0000000 0000000 00000003230 11524350724 026077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/mailserver/VM_configuration/etc/fstab                                  0000644 0000000 0000000 00000001603 11524350724 024412  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile11/mailserver/VM_configuration/etc/sysctl.conf                            0000644 0000000 0000000 00000001466 11524350744 025571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile11/mailserver/VM_configuration/etc/inittab                                0000644 0000000 0000000 00000001564 11524350724 024753  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile11/mailserver/VM_configuration/var/                                       0000777 0000000 0000000 00000000000 11524350745 023414  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/var/log/                                   0000777 0000000 0000000 00000000000 11524350745 024175  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/var/log/dmesg                              0000644 0000000 0000000 00000043370 11524350746 025223  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007fffd000 (usable)
 BIOS-e820: 000000007fffd000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x7fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007fffd000
 0000000000 - 007fe00000 page 2M
 007fe00000 - 007fffd000 page 4k
kernel direct mapping tables up to 7fffd000 @ 8000-c000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000007fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000007ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000007fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000007ffffe00 00040
ACPI: SSDT 000000007fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000007fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000007fffd000
Bootmem setup node 0 0000000000000000-000000007fffd000
  NODE_DATA [000000000000a000 - 000000000003dfff]
  bootmap [000000000003e000 -  000000000004dfff] pages 10
(7 early reservations) ==> bootmem [0000000000 - 007fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000a000]          PGTABLE ==> [0000008000 - 000000a000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0001bfffff] PMD -> [ffff880002200000-ffff880003dfffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0007fffd
On node 0 totalpages: 524182
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3831 pages, LIFO batch:0
  DMA32 zone: 7112 pages used for memmap
  DMA32 zone: 513077 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 80000000 (gap: 80000000:7ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 516908
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2041384k/2097140k available (4935k kernel code, 412k absent, 55344k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 20971520 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116090.298:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 4012
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:29 UTC (1297116089)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
56:0c:bb:4a:17:52
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/mailserver/VM_configuration/boot/                                      0000777 0000000 0000000 00000000000 11524350723 023563  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/boot/grub/                                 0000777 0000000 0000000 00000000000 11524350723 024522  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/VM_configuration/boot/grub/grub.conf                        0000644 0000000 0000000 00000002217 11524350723 026326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/mailserver/VM_configuration/rpmpkgs.txt                                0000644 0000000 0000000 00000067153 11524350745 025060  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/mailserver/VM_configuration/ifconfig.txt                               0000644 0000000 0000000 00000002327 11524350744 025150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:42  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:94 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:8770 (8.5 KiB)  TX bytes:1008 (1008.0 b)

eth1      Link encap:Ethernet  HWaddr 56:0C:BB:4A:17:52  
          inet addr:10.1.217.66  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::540c:bbff:fe4a:1752/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3943840 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4100866 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:672278815 (641.1 MiB)  TX bytes:4600756525 (4.2 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:752 errors:0 dropped:0 overruns:0 frame:0
          TX packets:752 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:73723 (71.9 KiB)  TX bytes:73723 (71.9 KiB)

                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/mailserver/VM_configuration/chkconfig.txt                              0000644 0000000 0000000 00000006535 11524350723 025321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/Software_Configuration/                                     0000777 0000000 0000000 00000000000 11524350723 024030  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/mailserver/Software_Configuration/dovecot.conf                         0000644 0000000 0000000 00000000654 11524350723 026343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   base_dir = /var/run/dovecot/
ssl = no
disable_plaintext_auth = no
listen = *
log_path = /var/log/dovecot
mail_debug = yes
mail_location = dbox:/mailstore/dovecot/maildir/%u
mdbox_rotate_size = 2048
passdb {
  args = /etc/passwd.dovecot
  driver = passwd-file
}
protocols = imap
service auth {
  user = root
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  process_min_avail = 10
}
userdb {
  driver = passwd
}
                                                                                    Virtual_Configuration/tile11/infraserver/                                                           0000777 0000000 0000000 00000000000 11524350703 017522  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/                                          0000777 0000000 0000000 00000000000 11524350722 022774  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/proc/                                     0000777 0000000 0000000 00000000000 11524350721 023736  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/proc/cpuinfo                              0000644 0000000 0000000 00000001017 11524350721 025317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/infraserver/VM_configuration/proc/mounts                               0000644 0000000 0000000 00000001426 11524350721 025205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=503592k,nr_inodes=125898,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1269,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1269,timeout=300,minproto=5,maxproto=5,indirect 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
                                                                                                                                                                                                                                          Virtual_Configuration/tile11/infraserver/VM_configuration/proc/swaps                                0000644 0000000 0000000 00000000144 11524350721 025011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/infraserver/VM_configuration/proc/devices                              0000644 0000000 0000000 00000000567 11524350721 025307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile11/infraserver/VM_configuration/proc/modules                              0000644 0000000 0000000 00000003222 11524350721 025324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa034e000
stp 2107 1 bridge, Live 0xffffffffa0348000
llc 5608 2 bridge,stp, Live 0xffffffffa0340000
nfsd 302737 13 - Live 0xffffffffa02e7000
lockd 73984 1 nfsd, Live 0xffffffffa02cb000
nfs_acl 2677 1 nfsd, Live 0xffffffffa02c5000
auth_rpcgss 44862 1 nfsd, Live 0xffffffffa02b2000
exportfs 4202 1 nfsd, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 16 nfsd,lockd,nfs_acl,auth_rpcgss, Live 0xffffffffa024b000
ipv6 321209 63 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/infraserver/VM_configuration/proc/partitions                           0000644 0000000 0000000 00000000260 11524350721 026047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   62914560 vdb
 252       17   62910508 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile11/infraserver/VM_configuration/proc/meminfo                              0000644 0000000 0000000 00000002222 11524350721 025305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        1021520 kB
MemFree:           64872 kB
Buffers:            7728 kB
Cached:           771436 kB
SwapCached:            0 kB
Active:           181032 kB
Inactive:         682532 kB
Active(anon):      44020 kB
Inactive(anon):    43364 kB
Active(file):     137012 kB
Inactive(file):   639168 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               212 kB
Writeback:             0 kB
AnonPages:         84444 kB
Mapped:            20300 kB
Shmem:              2988 kB
Slab:              62464 kB
SReclaimable:      20172 kB
SUnreclaim:        42292 kB
KernelStack:        1592 kB
PageTables:        14308 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2558752 kB
Committed_AS:     303904 kB
VmallocTotal:   34359738367 kB
VmallocUsed:        7680 kB
VmallocChunk:   34359722652 kB
HardwareCorrupted:     0 kB
AnonHugePages:     26624 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     1040384 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/infraserver/VM_configuration/root/                                     0000777 0000000 0000000 00000000000 11524350722 023757  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/root/convert_to_vf.sh                     0000755 0000000 0000000 00000001135 11524350722 027167  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/lspci.txt                                 0000644 0000000 0000000 00000001211 11524350721 024635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/infraserver/VM_configuration/df.txt                                    0000644 0000000 0000000 00000000401 11524350704 024115  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3482792   9298144  28% /
tmpfs                   510760         0    510760   0% /dev/shm
/dev/vdb1             61923368  33417152  25360692  57% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/infraserver/VM_configuration/mount.txt                                 0000644 0000000 0000000 00000000657 11524350721 024702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
                                                                                 Virtual_Configuration/tile11/infraserver/VM_configuration/etc/                                      0000777 0000000 0000000 00000000000 11524350720 023545  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/                                 0000777 0000000 0000000 00000000000 11524350713 024375  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/                           0000777 0000000 0000000 00000000000 11524350720 025304  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests          0000755 0000000 0000000 00000017172 11524350713 030500  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                 0000755 0000000 0000000 00000004325 11524350713 027116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd              0000755 0000000 0000000 00000006014 11524350714 027705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                0000755 0000000 0000000 00000012327 11524350715 027307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd               0000755 0000000 0000000 00000005222 11524350716 027473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                    0000755 0000000 0000000 00000010671 11524350720 026471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                   0000755 0000000 0000000 00000006364 11524350714 026646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables               0000755 0000000 0000000 00000020716 11524350715 027417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                    0000755 0000000 0000000 00000004731 11524350714 026475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S30nfs                     0000755 0000000 0000000 00000013536 11524350717 026320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon            0000755 0000000 0000000 00000004754 11524350713 030050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip               0000755 0000000 0000000 00000001364 11524350720 027510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                   0000755 0000000 0000000 00000003027 11524350715 026634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                  0000755 0000000 0000000 00000006743 11524350720 027031  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                   0000755 0000000 0000000 00000010777 11524350714 026640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus              0000755 0000000 0000000 00000004230 11524350717 027660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                   0000755 0000000 0000000 00000006302 11524350715 026610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                     0000755 0000000 0000000 00000004236 11524350720 026324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                 0000755 0000000 0000000 00000004031 11524350716 027141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance              0000755 0000000 0000000 00000003521 11524350716 027624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                 0000755 0000000 0000000 00000006050 11524350716 027176  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                 0000755 0000000 0000000 00000002363 11524350715 027245  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger              0000755 0000000 0000000 00000004054 11524350713 027654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor               0000755 0000000 0000000 00000005013 11524350716 027533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                   0000755 0000000 0000000 00000003213 11524350715 026627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                 0000755 0000000 0000000 00000003512 11524350714 027160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                    0000755 0000000 0000000 00000003603 11524350714 026466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                  0000755 0000000 0000000 00000011277 11524350714 027013  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S10network                 0000755 0000000 0000000 00000014466 11524350715 027222  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                 0000755 0000000 0000000 00000004326 11524350716 027230  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                  0000755 0000000 0000000 00000006462 11524350716 027002  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                   0000755 0000000 0000000 00000027662 11524350716 026655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                    0000755 0000000 0000000 00000006445 11524350714 026371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon               0000755 0000000 0000000 00000003245 11524350717 027463  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K60crond                   0000755 0000000 0000000 00000005445 11524350714 026627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                   0000755 0000000 0000000 00000005522 11524350713 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl           0000755 0000000 0000000 00000002221 11524350715 030320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd               0000755 0000000 0000000 00000004010 11524350713 027467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                    0000755 0000000 0000000 00000004723 11524350717 026457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                  0000755 0000000 0000000 00000003024 11524350713 026760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                   0000755 0000000 0000000 00000003275 11524350717 026616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                0000755 0000000 0000000 00000025442 11524350716 027341  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post               0000755 0000000 0000000 00000004370 11524350717 027461  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S99local                   0000755 0000000 0000000 00000000334 11524350720 026625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                 0000755 0000000 0000000 00000006675 11524350716 027200  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole              0000755 0000000 0000000 00000005650 11524350714 027670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor            0000555 0000000 0000000 00000004612 11524350715 030065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                  0000755 0000000 0000000 00000007234 11524350717 027040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                0000755 0000000 0000000 00000003433 11524350720 027363  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                  0000755 0000000 0000000 00000005672 11524350713 027010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                   0000755 0000000 0000000 00000003254 11524350720 026623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S55autobench               0000755 0000000 0000000 00000005063 11524350717 027505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                   0000755 0000000 0000000 00000012432 11524350717 026647  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                 0000755 0000000 0000000 00000007414 11524350714 027211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                0000755 0000000 0000000 00000020557 11524350715 027334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond             0000755 0000000 0000000 00000003427 11524350715 030061  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/rc3.d/K05atd                     0000755 0000000 0000000 00000004112 11524350713 026256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/                          0000777 0000000 0000000 00000000000 11524350712 025561  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/network                   0000755 0000000 0000000 00000014466 11524350710 027205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/gfs2                      0000755 0000000 0000000 00000006445 11524350706 026360  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/sysstat                   0000755 0000000 0000000 00000002363 11524350712 027221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/saslauthd                 0000755 0000000 0000000 00000004010 11524350712 027466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/messagebus                0000755 0000000 0000000 00000004230 11524350710 027636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/autobench                 0000755 0000000 0000000 00000005063 11524350705 027461  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/atd                       0000755 0000000 0000000 00000004112 11524350705 026253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/mcelogd                   0000755 0000000 0000000 00000003535 11524350707 027127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/auditd                    0000755 0000000 0000000 00000006462 11524350705 026767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/certmonger                0000755 0000000 0000000 00000004054 11524350706 027656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/irqbalance                0000755 0000000 0000000 00000003521 11524350707 027611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/acpid                     0000755 0000000 0000000 00000003275 11524350705 026574  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/nscd                      0000755 0000000 0000000 00000004723 11524350710 026436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                 0000755 0000000 0000000 00000005222 11524350711 027446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/nfs                       0000755 0000000 0000000 00000013536 11524350710 026277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/sssd                      0000755 0000000 0000000 00000004731 11524350712 026464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/crond                     0000755 0000000 0000000 00000005445 11524350706 026623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/ip6tables                 0000755 0000000 0000000 00000020716 11524350707 027406  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/autofs                    0000755 0000000 0000000 00000007234 11524350705 027014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/sshd                      0000755 0000000 0000000 00000010671 11524350712 026451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/ksm                       0000755 0000000 0000000 00000004236 11524350707 026306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/libvirt-guests            0000755 0000000 0000000 00000017172 11524350707 030502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/avahi-daemon              0000755 0000000 0000000 00000004754 11524350705 030050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/ypbind                    0000755 0000000 0000000 00000011277 11524350713 027001  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/psacct                    0000755 0000000 0000000 00000003024 11524350711 026756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/xinetd                    0000755 0000000 0000000 00000006743 11524350712 027010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/nfslock                   0000755 0000000 0000000 00000006675 11524350710 027156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/cgred                     0000755 0000000 0000000 00000006302 11524350706 026573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/migrateip                 0000755 0000000 0000000 00000001364 11524350710 027466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/udev-post                 0000755 0000000 0000000 00000004370 11524350712 027435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/haldaemon                 0000755 0000000 0000000 00000003245 11524350706 027442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/ipsec                     0000755 0000000 0000000 00000010777 11524350707 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/rpcbind                   0000755 0000000 0000000 00000004031 11524350711 027121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/rhnsd                     0000755 0000000 0000000 00000005522 11524350711 026624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/functions                 0000644 0000000 0000000 00000042767 11524350706 027533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/kdump                     0000755 0000000 0000000 00000027662 11524350707 026644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/postfix                   0000755 0000000 0000000 00000007414 11524350711 027204  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/iptables                  0000755 0000000 0000000 00000020557 11524350707 027323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/rsyslog                   0000755 0000000 0000000 00000004326 11524350712 027212  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/netconsole                0000755 0000000 0000000 00000005650 11524350710 027660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/rpcgssd                   0000755 0000000 0000000 00000006050 11524350711 027150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/abrtd                     0000755 0000000 0000000 00000003254 11524350705 026605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor              0000555 0000000 0000000 00000004612 11524350707 030055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/halt                      0000755 0000000 0000000 00000012723 11524350706 026443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/cgconfig                  0000755 0000000 0000000 00000012327 11524350706 027272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/single                    0000755 0000000 0000000 00000001207 11524350712 026764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/mdmonitor                 0000755 0000000 0000000 00000005013 11524350710 027510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/restorecond               0000755 0000000 0000000 00000003427 11524350711 030037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/cpuspeed                  0000755 0000000 0000000 00000025442 11524350706 027325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/netfs                     0000755 0000000 0000000 00000012432 11524350710 026622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                0000755 0000000 0000000 00000006014 11524350712 027665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/oddjobd                   0000755 0000000 0000000 00000004325 11524350711 027113  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/ksmtuned                  0000755 0000000 0000000 00000003433 11524350707 027344  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/sandbox                   0000755 0000000 0000000 00000003242 11524350712 027142  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/killall                   0000755 0000000 0000000 00000001214 11524350707 027131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/rdisc                     0000755 0000000 0000000 00000003027 11524350711 026610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/httpd                     0000755 0000000 0000000 00000006364 11524350706 026642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/ntpd                      0000755 0000000 0000000 00000003603 11524350711 026451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/smartd                    0000755 0000000 0000000 00000005672 11524350712 027007  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/nslcd                     0000755 0000000 0000000 00000003213 11524350710 026603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/ntpdate                   0000755 0000000 0000000 00000003512 11524350711 027142  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile11/infraserver/VM_configuration/etc/rc.d/init.d/microcode_ctl             0000755 0000000 0000000 00000002221 11524350710 030304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/infraserver/VM_configuration/etc/hosts                                 0000644 0000000 0000000 00000000236 11524350704 024627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile11/infraserver/VM_configuration/etc/iproute2/                             0000777 0000000 0000000 00000000000 11524350705 025321  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/etc/iproute2/rt_dsfield                   0000644 0000000 0000000 00000000672 11524350704 027363  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile11/infraserver/VM_configuration/etc/iproute2/rt_realms                    0000644 0000000 0000000 00000000160 11524350704 027224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile11/infraserver/VM_configuration/etc/iproute2/rt_scopes                    0000644 0000000 0000000 00000000134 11524350705 027237  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile11/infraserver/VM_configuration/etc/iproute2/ematch_map                   0000644 0000000 0000000 00000000073 11524350704 027335  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile11/infraserver/VM_configuration/etc/iproute2/rt_tables                    0000644 0000000 0000000 00000000127 11524350705 027217  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile11/infraserver/VM_configuration/etc/iproute2/rt_protos                    0000644 0000000 0000000 00000000475 11524350704 027300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/etc/nsswitch.conf                         0000644 0000000 0000000 00000003230 11524350705 026253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile11/infraserver/VM_configuration/etc/fstab                                 0000644 0000000 0000000 00000001603 11524350704 024565  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile11/infraserver/VM_configuration/etc/sysctl.conf                           0000644 0000000 0000000 00000001466 11524350720 025740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile11/infraserver/VM_configuration/etc/inittab                               0000644 0000000 0000000 00000001564 11524350704 025126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile11/infraserver/VM_configuration/var/                                      0000777 0000000 0000000 00000000000 11524350722 023564  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/var/log/                                  0000777 0000000 0000000 00000000000 11524350722 024345  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/var/log/dmesg                             0000644 0000000 0000000 00000043364 11524350722 025375  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003fffd000 (usable)
 BIOS-e820: 000000003fffd000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x3fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000003fffd000
 0000000000 - 003fe00000 page 2M
 003fe00000 - 003fffd000 page 4k
kernel direct mapping tables up to 3fffd000 @ 8000-b000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000003fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000003ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000003fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000003ffffe00 00040
ACPI: SSDT 000000003fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000003fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000003fffd000
Bootmem setup node 0 0000000000000000-000000003fffd000
  NODE_DATA [0000000000009000 - 000000000003cfff]
  bootmap [000000000003d000 -  0000000000044fff] pages 8
(7 early reservations) ==> bootmem [0000000000 - 003fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0000dfffff] PMD -> [ffff880002200000-ffff880002ffffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0003fffd
On node 0 totalpages: 262038
  DMA zone: 56 pages used for memmap
  DMA zone: 105 pages reserved
  DMA zone: 3832 pages, LIFO batch:0
  DMA32 zone: 3528 pages used for memmap
  DMA32 zone: 254517 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 40000000 (gap: 40000000:bffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 258349
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 1007148k/1048564k available (4935k kernel code, 412k absent, 41004k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 10485760 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116130.296:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 1992
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:02:10 UTC (1297116130)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
1a:8b:66:22:14:d3
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/infraserver/VM_configuration/boot/                                     0000777 0000000 0000000 00000000000 11524350703 023736  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/boot/grub/                                0000777 0000000 0000000 00000000000 11524350703 024675  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/VM_configuration/boot/grub/grub.conf                       0000644 0000000 0000000 00000002217 11524350703 026501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile11/infraserver/VM_configuration/rpmpkgs.txt                               0000644 0000000 0000000 00000067243 11524350722 025230  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
hivex-1.2.2-1.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
fcgi-2.4.0-14.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
scrub-2.2-1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
fcgi-devel-2.4.0-14.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
libguestfs-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile11/infraserver/VM_configuration/ifconfig.txt                              0000644 0000000 0000000 00000002344 11524350721 025317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:41  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:247 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:23853 (23.2 KiB)  TX bytes:850 (850.0 b)

eth1      Link encap:Ethernet  HWaddr 1A:8B:66:22:14:D3  
          inet addr:10.1.217.65  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::188b:66ff:fe22:14d3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:61485920 errors:0 dropped:0 overruns:0 frame:0
          TX packets:114178854 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4329237052 (4.0 GiB)  TX bytes:164460448498 (153.1 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3763 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3763 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:387384 (378.3 KiB)  TX bytes:387384 (378.3 KiB)

                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile11/infraserver/VM_configuration/chkconfig.txt                             0000644 0000000 0000000 00000006531 11524350704 025471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                       Virtual_Configuration/tile11/infraserver/Software_Configuration/                                    0000777 0000000 0000000 00000000000 11524350702 024202  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/Software_Configuration/exports                             0000644 0000000 0000000 00000000101 11524350702 025615  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /support-download *(rw,no_subtree_check,crossmnt,no_root_squash)
                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile11/infraserver/Software_Configuration/httpd/                              0000777 0000000 0000000 00000000000 11524350703 025326  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/Software_Configuration/httpd/conf.d/                       0000777 0000000 0000000 00000000000 11524350703 026475  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/Software_Configuration/httpd/conf.d/manual.conf            0000644 0000000 0000000 00000000447 11524350703 030622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This configuration file allows the manual to be accessed at 
# http://localhost/manual/
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"

<Directory "/var/www/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
                                                                                                                                                                                                                         Virtual_Configuration/tile11/infraserver/Software_Configuration/httpd/conf.d/php.conf               0000644 0000000 0000000 00000001242 11524350703 030126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile11/infraserver/Software_Configuration/httpd/conf.d/welcome.conf           0000644 0000000 0000000 00000000453 11524350703 030775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # 
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

                                                                                                                                                                                                                     Virtual_Configuration/tile11/infraserver/Software_Configuration/httpd/conf.d/README                 0000644 0000000 0000000 00000000610 11524350703 027346  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
This directory holds Apache 2.0 module-specific configuration files;
any files in this directory which have the ".conf" extension will be
processed as Apache configuration files.

Files are processed in alphabetical order, so if using configuration
directives which depend on, say, mod_perl being loaded, ensure that
these are placed in a filename later in the sort order than "perl.conf".

                                                                                                                        Virtual_Configuration/tile11/infraserver/Software_Configuration/httpd/conf/                         0000777 0000000 0000000 00000000000 11524350703 026253  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile11/infraserver/Software_Configuration/httpd/conf/httpd.conf               0000644 0000000 0000000 00000103212 11524350702 030237  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# Don't give away too much information about all the subcomponents
# we are running.  Comment out this line if you don't mind remote sites
# finding out what major optional modules you are running
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.  Note the PIDFILE variable in
# /etc/sysconfig/httpd must be set appropriately if this location is
# changed.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 60

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive Off

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit 10240
MaxClients 10240
MaxRequestsPerChild  4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         4
MaxClients 10240
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 81

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

#
# The following modules are not loaded by default:
#
#LoadModule asis_module modules/mod_asis.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
#

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group #-1 on these systems!
#
User apache
Group apache

### Section 2: 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
#ServerName www.example.com:80

#
# UseCanonicalName: Determines how Apache constructs self-referencing 
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.  This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir disabled

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disabled" line above, and uncomment
    # the following line instead:
    # 
    #UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is 
# used to deliver files (assuming that the OS supports it). 
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
#
#EnableSendfile off

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
# requires the mod_logio module to be loaded.
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access_log common

#
# If you would like to have separate agent and referer logfiles, uncomment
# the following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# WebDAV module configuration section.
# 
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Directives controlling the display of server-generated directory listings.
#

#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes.  These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

#
# DefaultLanguage and AddLanguage allows you to specify the language of 
# a document. You can then use content negotiation to give a browser a 
# file in a language the user can understand.
#
# Specify a default language. This means that all data
# going out without a specific language tag (see below) will 
# be marked with this one. You probably do NOT want to set
# this unless you are sure it is correct for all cases.
#
# * It is generally better to not mark a page as 
# * being a certain language than marking it with the wrong
# * language!
#
# DefaultLanguage nl
#
# Note 1: The suffix does not have to be the same as the language
# keyword --- those with documents in Polish (whose net-standard
# language code is pl) may wish to use "AddLanguage pl .po" to
# avoid the ambiguity with the common suffix for perl scripts.
#
# Note 2: The example entries below illustrate that in some cases 
# the two character 'Language' abbreviation is not identical to 
# the two character 'Country' code for its country,
# E.g. 'Danmark/dk' versus 'Danish/da'.
#
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
# specifier. There is 'work in progress' to fix this and get
# the reference data for rfc1766 cleaned up.
#
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the 
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz

#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
#   MIME-types for downloading Certificates and CRLs
#
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
#  to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#    ErrorDocument 410 /error/HTTP_GONE.html.var
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Proxy>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
#   CacheEnable disk /
#   CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#

#</IfModule>
# End of proxy directives.

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>














Include conf/fcgi.conf
                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile11/infraserver/Software_Configuration/httpd/conf/fcgi.conf                0000644 0000000 0000000 00000000607 11524350702 030030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   LoadModule fastcgi_module modules/mod_fastcgi.so
ScriptAlias /fcgi-bin/ "/var/www/fcgi-bin/"
FastCgiIpcDir /etc/httpd/fastcgi
<Directory "/var/www/fcgi-bin">
    AllowOverride None
    Options +ExecCGI -Includes
    SetHandler fastcgi-script
    Order allow,deny
    Allow from all
 </Directory>
 AddHandler fastcgi-script fcgi
 FastCgiServer /var/www/fcgi-bin/besim_fcgi.fcgi -processes 50
                                                                                                                         Virtual_Configuration/tile11/infraserver/Software_Configuration/httpd/conf/magic                    0000644 0000000 0000000 00000031523 11524350703 027256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Magic data for mod_mime_magic Apache module (originally for file(1) command)
# The module is described in /manual/mod/mod_mime_magic.html
#
# The format is 4-5 columns:
#    Column #1: byte number to begin checking from, ">" indicates continuation
#    Column #2: type of data to match
#    Column #3: contents of data to match
#    Column #4: MIME type of result
#    Column #5: MIME encoding of result (optional)

#------------------------------------------------------------------------------
# Localstuff:  file(1) magic for locally observed files
# Add any locally observed files here.

#------------------------------------------------------------------------------
# end local stuff
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Java

0	short		0xcafe
>2	short		0xbabe		application/java

#------------------------------------------------------------------------------
# audio:  file(1) magic for sound formats
#
# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
#

# Sun/NeXT audio data
0	string		.snd
>12	belong		1		audio/basic
>12	belong		2		audio/basic
>12	belong		3		audio/basic
>12	belong		4		audio/basic
>12	belong		5		audio/basic
>12	belong		6		audio/basic
>12	belong		7		audio/basic

>12	belong		23		audio/x-adpcm

# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
# (0x0064732E in little-endian encoding).
0	lelong		0x0064732E	
>12	lelong		1		audio/x-dec-basic
>12	lelong		2		audio/x-dec-basic
>12	lelong		3		audio/x-dec-basic
>12	lelong		4		audio/x-dec-basic
>12	lelong		5		audio/x-dec-basic
>12	lelong		6		audio/x-dec-basic
>12	lelong		7		audio/x-dec-basic
#                                       compressed (G.721 ADPCM)
>12	lelong		23		audio/x-dec-adpcm

# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
#					AIFF audio data
8	string		AIFF		audio/x-aiff	
#					AIFF-C audio data
8	string		AIFC		audio/x-aiff	
#					IFF/8SVX audio data
8	string		8SVX		audio/x-aiff	

# Creative Labs AUDIO stuff
#					Standard MIDI data
0	string	MThd			audio/unknown	
#>9 	byte	>0			(format %d)
#>11	byte	>1			using %d channels
#					Creative Music (CMF) data
0	string	CTMF			audio/unknown	
#					SoundBlaster instrument data
0	string	SBI			audio/unknown	
#					Creative Labs voice data
0	string	Creative\ Voice\ File	audio/unknown	
## is this next line right?  it came this way...
#>19	byte	0x1A
#>23	byte	>0			- version %d
#>22	byte	>0			\b.%d

# [GRR 950115:  is this also Creative Labs?  Guessing that first line
#  should be string instead of unknown-endian long...]
#0	long		0x4e54524b	MultiTrack sound data
#0	string		NTRK		MultiTrack sound data
#>4	long		x		- version %ld

# Microsoft WAVE format (*.wav)
# [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
#					Microsoft RIFF
0	string		RIFF		audio/unknown
#					- WAVE format
>8	string		WAVE		audio/x-wav
# MPEG audio.
0   beshort&0xfff0  0xfff0  audio/mpeg
# C64 SID Music files, from Linus Walleij <triad@df.lth.se>
0   string      PSID        audio/prs.sid

#------------------------------------------------------------------------------
# c-lang:  file(1) magic for C programs or various scripts
#

# XPM icons (Greg Roelofs, newt@uchicago.edu)
# ideally should go into "images", but entries below would tag XPM as C source
0	string		/*\ XPM		image/x-xbm	7bit

# this first will upset you if you're a PL/1 shop... (are there any left?)
# in which case rm it; ascmagic will catch real C programs
#					C or REXX program text
0	string		/*		text/plain
#					C++ program text
0	string		//		text/plain

#------------------------------------------------------------------------------
# compress:  file(1) magic for pure-compression formats (no archives)
#
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
#
# Formats for various forms of compressed data
# Formats for "compress" proper have been moved into "compress.c",
# because it tries to uncompress it to figure out what's inside.

# standard unix compress
0	string		\037\235	application/octet-stream	x-compress

# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
0       string          \037\213        application/octet-stream	x-gzip

# According to gzip.h, this is the correct byte order for packed data.
0	string		\037\036	application/octet-stream
#
# This magic number is byte-order-independent.
#
0	short		017437		application/octet-stream

# XXX - why *two* entries for "compacted data", one of which is
# byte-order independent, and one of which is byte-order dependent?
#
# compacted data
0	short		0x1fff		application/octet-stream
0	string		\377\037	application/octet-stream
# huf output
0	short		0145405		application/octet-stream

# Squeeze and Crunch...
# These numbers were gleaned from the Unix versions of the programs to
# handle these formats.  Note that I can only uncrunch, not crunch, and
# I didn't have a crunched file handy, so the crunch number is untested.
#				Keith Waclena <keith@cerberus.uchicago.edu>
#0	leshort		0x76FF		squeezed data (CP/M, DOS)
#0	leshort		0x76FE		crunched data (CP/M, DOS)

# Freeze
#0	string		\037\237	Frozen file 2.1
#0	string		\037\236	Frozen file 1.0 (or gzip 0.5)

# lzh?
#0	string		\037\240	LZH compressed data

#------------------------------------------------------------------------------
# frame:  file(1) magic for FrameMaker files
#
# This stuff came on a FrameMaker demo tape, most of which is
# copyright, but this file is "published" as witness the following:
#
0	string		\<MakerFile	application/x-frame
0	string		\<MIFFile	application/x-frame
0	string		\<MakerDictionary	application/x-frame
0	string		\<MakerScreenFon	application/x-frame
0	string		\<MML		application/x-frame
0	string		\<Book		application/x-frame
0	string		\<Maker		application/x-frame

#------------------------------------------------------------------------------
# html:  file(1) magic for HTML (HyperText Markup Language) docs
#
# from Daniel Quinlan <quinlan@yggdrasil.com>
# and Anna Shergold <anna@inext.co.uk>
#
0   string      \<!DOCTYPE\ HTML    text/html
0   string      \<!doctype\ html    text/html
0   string      \<HEAD      text/html
0   string      \<head      text/html
0   string      \<TITLE     text/html
0   string      \<title     text/html
0   string      \<html      text/html
0   string      \<HTML      text/html
0   string      \<!--       text/html
0   string      \<h1        text/html
0   string      \<H1        text/html

# XML eXtensible Markup Language, from Linus Walleij <triad@df.lth.se>
0   string      \<?xml      text/xml

#------------------------------------------------------------------------------
# images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
#
# originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
# additions by janl@ifi.uio.no as well as others. Jan also suggested
# merging several one- and two-line files into here.
#
# XXX - byte order for GIF and TIFF fields?
# [GRR:  TIFF allows both byte orders; GIF is probably little-endian]
#

# [GRR:  what the hell is this doing in here?]
#0	string		xbtoa		btoa'd file

# PBMPLUS
#					PBM file
0	string		P1		image/x-portable-bitmap	7bit
#					PGM file
0	string		P2		image/x-portable-greymap	7bit
#					PPM file
0	string		P3		image/x-portable-pixmap	7bit
#					PBM "rawbits" file
0	string		P4		image/x-portable-bitmap
#					PGM "rawbits" file
0	string		P5		image/x-portable-greymap
#					PPM "rawbits" file
0	string		P6		image/x-portable-pixmap

# NIFF (Navy Interchange File Format, a modification of TIFF)
# [GRR:  this *must* go before TIFF]
0	string		IIN1		image/x-niff

# TIFF and friends
#					TIFF file, big-endian
0	string		MM		image/tiff
#					TIFF file, little-endian
0	string		II		image/tiff

# possible GIF replacements; none yet released!
# (Greg Roelofs, newt@uchicago.edu)
#
# GRR 950115:  this was mine ("Zip GIF"):
#					ZIF image (GIF+deflate alpha)
0	string		GIF94z		image/unknown
#
# GRR 950115:  this is Jeremy Wohl's Free Graphics Format (better):
#					FGF image (GIF+deflate beta)
0	string		FGF95a		image/unknown
#
# GRR 950115:  this is Thomas Boutell's Portable Bitmap Format proposal
# (best; not yet implemented):
#					PBF image (deflate compression)
0	string		PBF		image/unknown

# GIF
0	string		GIF		image/gif

# JPEG images
0	beshort		0xffd8		image/jpeg

# PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
0	string		BM		image/bmp
#>14	byte		12		(OS/2 1.x format)
#>14	byte		64		(OS/2 2.x format)
#>14	byte		40		(Windows 3.x format)
#0	string		IC		icon
#0	string		PI		pointer
#0	string		CI		color icon
#0	string		CP		color pointer
#0	string		BA		bitmap array


#------------------------------------------------------------------------------
# lisp:  file(1) magic for lisp programs
#
# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
0	string	;;			text/plain	8bit
# Emacs 18 - this is always correct, but not very magical.
0	string	\012(			application/x-elc
# Emacs 19
0	string	;ELC\023\000\000\000	application/x-elc

#------------------------------------------------------------------------------
# mail.news:  file(1) magic for mail and news
#
# There are tests to ascmagic.c to cope with mail and news.
0	string		Relay-Version: 	message/rfc822	7bit
0	string		#!\ rnews	message/rfc822	7bit
0	string		N#!\ rnews	message/rfc822	7bit
0	string		Forward\ to 	message/rfc822	7bit
0	string		Pipe\ to 	message/rfc822	7bit
0	string		Return-Path:	message/rfc822	7bit
0	string		Path:		message/news	8bit
0	string		Xref:		message/news	8bit
0	string		From:		message/rfc822	7bit
0	string		Article 	message/news	8bit
#------------------------------------------------------------------------------
# msword: file(1) magic for MS Word files
#
# Contributor claims:
# Reversed-engineered MS Word magic numbers
#

0	string		\376\067\0\043			application/msword
0	string		\333\245-\0\0\0			application/msword

# disable this one because it applies also to other
# Office/OLE documents for which msword is not correct. See PR#2608.
#0	string		\320\317\021\340\241\261	application/msword



#------------------------------------------------------------------------------
# printer:  file(1) magic for printer-formatted files
#

# PostScript
0	string		%!		application/postscript
0	string		\004%!		application/postscript

# Acrobat
# (due to clamen@cs.cmu.edu)
0	string		%PDF-		application/pdf

#------------------------------------------------------------------------------
# sc:  file(1) magic for "sc" spreadsheet
#
38	string		Spreadsheet	application/x-sc

#------------------------------------------------------------------------------
# tex:  file(1) magic for TeX files
#
# XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
#
# From <conklin@talisman.kaleida.com>

# Although we may know the offset of certain text fields in TeX DVI
# and font files, we can't use them reliably because they are not
# zero terminated. [but we do anyway, christos]
0	string		\367\002	application/x-dvi
#0	string		\367\203	TeX generic font data
#0	string		\367\131	TeX packed font data
#0	string		\367\312	TeX virtual font data
#0	string		This\ is\ TeX,	TeX transcript text	
#0	string		This\ is\ METAFONT,	METAFONT transcript text

# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data.  The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
#2	string		\000\021	TeX font metric data
#2	string		\000\022	TeX font metric data
#>34	string		>\0		(%s)

# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
#0	string		\\input\ texinfo	Texinfo source text
#0	string		This\ is\ Info\ file	GNU Info text

# correct TeX magic for Linux (and maybe more)
# from Peter Tobias (tobias@server.et-inf.fho-emden.de)
#
0	leshort		0x02f7		application/x-dvi

# RTF - Rich Text Format
0	string		{\\rtf		application/rtf

#------------------------------------------------------------------------------
# animation:  file(1) magic for animation/movie formats
#
# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
#						MPEG file
0	string		\000\000\001\263	video/mpeg
#
# The contributor claims:
#   I couldn't find a real magic number for these, however, this
#   -appears- to work.  Note that it might catch other files, too,
#   so BE CAREFUL!
#
# Note that title and author appear in the two 20-byte chunks
# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
# 255 (hex FF)! DL format SUCKS BIG ROCKS.
#
#						DL file version 1 , medium format (160x100, 4 images/screen)
0	byte		1			video/unknown
0	byte		2			video/unknown
# Quicktime video, from Linus Walleij <triad@df.lth.se>
# from Apple quicktime file format documentation.
4   string      moov        video/quicktime
4   string      mdat        video/quicktime

# PNG [Portable Network Graphics, or "PNG's Not GIF"] images
#
# 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
0   string      \211PNG\015      image/png
                                                                                                                                                                             Virtual_Configuration/tile14/                                                                       0000777 0000000 0000000 00000000000 11524351411 015174  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/                                                            0000777 0000000 0000000 00000000000 11524351333 017343  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/                                           0000777 0000000 0000000 00000000000 11524351352 022615  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/proc/                                      0000777 0000000 0000000 00000000000 11524351351 023557  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/proc/cpuinfo                               0000644 0000000 0000000 00000001017 11524351351 025140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/idleserver/VM_configuration/proc/mounts                                0000644 0000000 0000000 00000001356 11524351351 025030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=503592k,nr_inodes=125898,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1283,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1283,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/idleserver/VM_configuration/proc/swaps                                 0000644 0000000 0000000 00000000144 11524351351 024632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/idleserver/VM_configuration/proc/devices                               0000644 0000000 0000000 00000000567 11524351351 025130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile14/idleserver/VM_configuration/proc/modules                               0000644 0000000 0000000 00000002547 11524351351 025156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02a5000
stp 2107 1 bridge, Live 0xffffffffa029f000
llc 5608 2 bridge,stp, Live 0xffffffffa0297000
autofs4 27683 3 - Live 0xffffffffa028a000
sunrpc 241630 1 - Live 0xffffffffa0237000
ipv6 321209 38 - Live 0xffffffffa01a2000
dm_mirror 14003 0 - Live 0xffffffffa0176000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa016d000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0164000
ppdev 8695 0 - Live 0xffffffffa0156000
parport_pc 22944 0 - Live 0xffffffffa0149000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa0137000
sg 30186 0 - Live 0xffffffffa0128000
virtio_net 15665 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Virtual_Configuration/tile14/idleserver/VM_configuration/proc/partitions                            0000644 0000000 0000000 00000000260 11524351351 025670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile14/idleserver/VM_configuration/proc/meminfo                               0000644 0000000 0000000 00000002222 11524351351 025126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        1021520 kB
MemFree:          782736 kB
Buffers:           16496 kB
Cached:            97552 kB
SwapCached:            0 kB
Active:            93148 kB
Inactive:          69212 kB
Active(anon):      48408 kB
Inactive(anon):        0 kB
Active(file):      44740 kB
Inactive(file):    69212 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               208 kB
Writeback:             0 kB
AnonPages:         48252 kB
Mapped:            18524 kB
Shmem:               160 kB
Slab:              61216 kB
SReclaimable:      24744 kB
SUnreclaim:        36472 kB
KernelStack:         984 kB
PageTables:         3020 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2558752 kB
Committed_AS:     152168 kB
VmallocTotal:   34359738367 kB
VmallocUsed:        7592 kB
VmallocChunk:   34359726760 kB
HardwareCorrupted:     0 kB
AnonHugePages:      8192 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     1040384 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/idleserver/VM_configuration/root/                                      0000777 0000000 0000000 00000000000 11524351351 023577  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/root/convert_to_vf.sh                      0000755 0000000 0000000 00000001135 11524351352 027010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/lspci.txt                                  0000644 0000000 0000000 00000001046 11524351351 024464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile14/idleserver/VM_configuration/df.txt                                     0000644 0000000 0000000 00000000401 11524351334 023736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3618456   9162480  29% /
tmpfs                   510760         0    510760   0% /dev/shm
/dev/vdb1             20642412    176072  19417768   1% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/idleserver/VM_configuration/mount.txt                                  0000644 0000000 0000000 00000000612 11524351351 024512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile14/idleserver/VM_configuration/etc/                                       0000777 0000000 0000000 00000000000 11524351350 023366  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/                                  0000777 0000000 0000000 00000000000 11524351343 024216  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/                            0000777 0000000 0000000 00000000000 11524351350 025125  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests           0000755 0000000 0000000 00000017172 11524351343 030321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                  0000755 0000000 0000000 00000004325 11524351343 026737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd               0000755 0000000 0000000 00000006014 11524351344 027526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                 0000755 0000000 0000000 00000012327 11524351346 027131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                0000755 0000000 0000000 00000005222 11524351347 027315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                     0000755 0000000 0000000 00000010671 11524351350 026312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                    0000755 0000000 0000000 00000006364 11524351344 026467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                0000755 0000000 0000000 00000020716 11524351345 027240  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                     0000755 0000000 0000000 00000004731 11524351345 026317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon             0000755 0000000 0000000 00000004754 11524351343 027671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                0000755 0000000 0000000 00000001364 11524351350 027331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                    0000755 0000000 0000000 00000003027 11524351345 026455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                   0000755 0000000 0000000 00000006743 11524351350 026652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                    0000755 0000000 0000000 00000010777 11524351345 026462  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus               0000755 0000000 0000000 00000004230 11524351347 027501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                    0000755 0000000 0000000 00000006302 11524351345 026431  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                      0000755 0000000 0000000 00000004236 11524351350 026145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                  0000755 0000000 0000000 00000004031 11524351346 026762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance               0000755 0000000 0000000 00000003521 11524351346 027445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                  0000755 0000000 0000000 00000006050 11524351347 027020  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                  0000755 0000000 0000000 00000002363 11524351346 027067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger               0000755 0000000 0000000 00000004054 11524351343 027475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                0000755 0000000 0000000 00000005013 11524351347 027355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                    0000755 0000000 0000000 00000003213 11524351345 026450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                  0000755 0000000 0000000 00000003512 11524351345 027002  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                     0000755 0000000 0000000 00000003603 11524351345 026310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                   0000755 0000000 0000000 00000011277 11524351344 026634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S10network                  0000755 0000000 0000000 00000014466 11524351346 027044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                  0000755 0000000 0000000 00000004326 11524351346 027051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                   0000755 0000000 0000000 00000006462 11524351346 026623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                    0000755 0000000 0000000 00000027662 11524351347 026477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                     0000755 0000000 0000000 00000006445 11524351345 026213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                0000755 0000000 0000000 00000003245 11524351347 027304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K60crond                    0000755 0000000 0000000 00000005445 11524351344 026450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                    0000755 0000000 0000000 00000005522 11524351344 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl            0000755 0000000 0000000 00000002221 11524351346 030142  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                0000755 0000000 0000000 00000004010 11524351344 027311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                      0000755 0000000 0000000 00000013536 11524351344 026131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                     0000755 0000000 0000000 00000004723 11524351347 026300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                   0000755 0000000 0000000 00000003024 11524351344 026602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                    0000755 0000000 0000000 00000003275 11524351347 026437  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                 0000755 0000000 0000000 00000025442 11524351346 027162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                0000755 0000000 0000000 00000004370 11524351347 027302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S99local                    0000755 0000000 0000000 00000000334 11524351350 026446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                  0000755 0000000 0000000 00000006675 11524351346 027021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole               0000755 0000000 0000000 00000005650 11524351344 027511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor             0000555 0000000 0000000 00000004612 11524351346 027707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                   0000755 0000000 0000000 00000007234 11524351347 026661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                 0000755 0000000 0000000 00000003433 11524351350 027204  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                   0000755 0000000 0000000 00000005672 11524351343 026631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                    0000755 0000000 0000000 00000003254 11524351350 026444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                0000755 0000000 0000000 00000005063 11524351347 027326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                    0000755 0000000 0000000 00000012432 11524351347 026470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                  0000755 0000000 0000000 00000007414 11524351344 027032  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                 0000755 0000000 0000000 00000020557 11524351345 027155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond              0000755 0000000 0000000 00000003427 11524351345 027702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/rc3.d/K05atd                      0000755 0000000 0000000 00000004112 11524351344 026100  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/                           0000777 0000000 0000000 00000000000 11524351343 025403  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/network                    0000755 0000000 0000000 00000014466 11524351340 027026  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/gfs2                       0000755 0000000 0000000 00000006445 11524351337 026202  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/sysstat                    0000755 0000000 0000000 00000002363 11524351343 027043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/saslauthd                  0000755 0000000 0000000 00000004010 11524351342 027307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/messagebus                 0000755 0000000 0000000 00000004230 11524351340 027457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/autobench                  0000755 0000000 0000000 00000005063 11524351336 027303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/atd                        0000755 0000000 0000000 00000004112 11524351335 026074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/mcelogd                    0000755 0000000 0000000 00000003535 11524351340 026742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/auditd                     0000755 0000000 0000000 00000006462 11524351335 026610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/certmonger                 0000755 0000000 0000000 00000004054 11524351336 027477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/irqbalance                 0000755 0000000 0000000 00000003521 11524351337 027432  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/acpid                      0000755 0000000 0000000 00000003275 11524351335 026415  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/nscd                       0000755 0000000 0000000 00000004723 11524351341 026260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                  0000755 0000000 0000000 00000005222 11524351342 027270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/nfs                        0000755 0000000 0000000 00000013536 11524351341 026121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/sssd                       0000755 0000000 0000000 00000004731 11524351342 026305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/crond                      0000755 0000000 0000000 00000005445 11524351336 026444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/ip6tables                  0000755 0000000 0000000 00000020716 11524351337 027227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/autofs                     0000755 0000000 0000000 00000007234 11524351336 026636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/sshd                       0000755 0000000 0000000 00000010671 11524351342 026272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/ksm                        0000755 0000000 0000000 00000004236 11524351340 026121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/libvirt-guests             0000755 0000000 0000000 00000017172 11524351340 030315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/avahi-daemon               0000755 0000000 0000000 00000004754 11524351336 027672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/ypbind                     0000755 0000000 0000000 00000011277 11524351343 026622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/psacct                     0000755 0000000 0000000 00000003024 11524351341 026577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/xinetd                     0000755 0000000 0000000 00000006743 11524351343 026632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/nfslock                    0000755 0000000 0000000 00000006675 11524351341 027000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/cgred                      0000755 0000000 0000000 00000006302 11524351336 026414  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/migrateip                  0000755 0000000 0000000 00000001364 11524351340 027307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/udev-post                  0000755 0000000 0000000 00000004370 11524351343 027257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/haldaemon                  0000755 0000000 0000000 00000003245 11524351337 027264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/ipsec                      0000755 0000000 0000000 00000010777 11524351337 026447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/rpcbind                    0000755 0000000 0000000 00000004031 11524351342 026743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/rhnsd                      0000755 0000000 0000000 00000005522 11524351342 026446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/functions                  0000644 0000000 0000000 00000042767 11524351336 027354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/kdump                      0000755 0000000 0000000 00000027662 11524351337 026465  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/postfix                    0000755 0000000 0000000 00000007414 11524351341 027025  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/iptables                   0000755 0000000 0000000 00000020557 11524351337 027144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/rsyslog                    0000755 0000000 0000000 00000004326 11524351342 027033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/netconsole                 0000755 0000000 0000000 00000005650 11524351340 027501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/rpcgssd                    0000755 0000000 0000000 00000006050 11524351342 026772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/abrtd                      0000755 0000000 0000000 00000003254 11524351335 026426  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor               0000555 0000000 0000000 00000004612 11524351340 027670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/halt                       0000755 0000000 0000000 00000012723 11524351337 026265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/cgconfig                   0000755 0000000 0000000 00000012327 11524351336 027113  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/single                     0000755 0000000 0000000 00000001207 11524351342 026605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/mdmonitor                  0000755 0000000 0000000 00000005013 11524351340 027331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/restorecond                0000755 0000000 0000000 00000003427 11524351341 027660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/cpuspeed                   0000755 0000000 0000000 00000025442 11524351336 027146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/netfs                      0000755 0000000 0000000 00000012432 11524351340 026443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524351342 027506  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/oddjobd                    0000755 0000000 0000000 00000004325 11524351341 026734  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/ksmtuned                   0000755 0000000 0000000 00000003433 11524351340 027157  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/sandbox                    0000755 0000000 0000000 00000003242 11524351342 026763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/killall                    0000755 0000000 0000000 00000001214 11524351337 026752  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/rdisc                      0000755 0000000 0000000 00000003027 11524351341 026431  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/httpd                      0000755 0000000 0000000 00000006364 11524351337 026464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/ntpd                       0000755 0000000 0000000 00000003603 11524351341 026272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/smartd                     0000755 0000000 0000000 00000005672 11524351342 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/nslcd                      0000755 0000000 0000000 00000003213 11524351341 026425  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/ntpdate                    0000755 0000000 0000000 00000003512 11524351341 026763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile14/idleserver/VM_configuration/etc/rc.d/init.d/microcode_ctl              0000755 0000000 0000000 00000002221 11524351340 030125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/idleserver/VM_configuration/etc/hosts                                  0000644 0000000 0000000 00000000267 11524351334 024454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/idleserver/VM_configuration/etc/iproute2/                              0000777 0000000 0000000 00000000000 11524351335 025142  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/etc/iproute2/rt_dsfield                    0000644 0000000 0000000 00000000672 11524351335 027205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile14/idleserver/VM_configuration/etc/iproute2/rt_realms                     0000644 0000000 0000000 00000000160 11524351335 027046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile14/idleserver/VM_configuration/etc/iproute2/rt_scopes                     0000644 0000000 0000000 00000000134 11524351335 027060  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/idleserver/VM_configuration/etc/iproute2/ematch_map                    0000644 0000000 0000000 00000000073 11524351334 027156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/idleserver/VM_configuration/etc/iproute2/rt_tables                     0000644 0000000 0000000 00000000127 11524351335 027040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/idleserver/VM_configuration/etc/iproute2/rt_protos                     0000644 0000000 0000000 00000000475 11524351335 027122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/etc/nsswitch.conf                          0000644 0000000 0000000 00000003230 11524351335 026074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/idleserver/VM_configuration/etc/fstab                                  0000644 0000000 0000000 00000001603 11524351334 024406  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile14/idleserver/VM_configuration/etc/sysctl.conf                            0000644 0000000 0000000 00000001466 11524351350 025561  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile14/idleserver/VM_configuration/etc/inittab                                0000644 0000000 0000000 00000001564 11524351334 024747  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile14/idleserver/VM_configuration/var/                                       0000777 0000000 0000000 00000000000 11524351352 023405  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/var/log/                                   0000777 0000000 0000000 00000000000 11524351352 024166  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/var/log/dmesg                              0000644 0000000 0000000 00000041447 11524351352 025216  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003fffd000 (usable)
 BIOS-e820: 000000003fffd000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x3fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000003fffd000
 0000000000 - 003fe00000 page 2M
 003fe00000 - 003fffd000 page 4k
kernel direct mapping tables up to 3fffd000 @ 8000-b000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000003fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000003ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000003fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000003ffffe00 00040
ACPI: SSDT 000000003fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000003fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000003fffd000
Bootmem setup node 0 0000000000000000-000000003fffd000
  NODE_DATA [0000000000009000 - 000000000003cfff]
  bootmap [000000000003d000 -  0000000000044fff] pages 8
(7 early reservations) ==> bootmem [0000000000 - 003fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0000dfffff] PMD -> [ffff880002200000-ffff880002ffffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0003fffd
On node 0 totalpages: 262038
  DMA zone: 56 pages used for memmap
  DMA zone: 105 pages reserved
  DMA zone: 3832 pages, LIFO batch:0
  DMA32 zone: 3528 pages used for memmap
  DMA32 zone: 254517 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 40000000 (gap: 40000000:bffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 258349
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 1007148k/1048564k available (4935k kernel code, 412k absent, 41004k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 10485760 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116196.300:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 1992
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:03:15 UTC (1297116195)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 30 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                         Virtual_Configuration/tile14/idleserver/VM_configuration/boot/                                      0000777 0000000 0000000 00000000000 11524351334 023560  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/boot/grub/                                 0000777 0000000 0000000 00000000000 11524351334 024517  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/VM_configuration/boot/grub/grub.conf                        0000644 0000000 0000000 00000002217 11524351334 026323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/idleserver/VM_configuration/rpmpkgs.txt                                0000644 0000000 0000000 00000067153 11524351352 025051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/idleserver/VM_configuration/ifconfig.txt                               0000644 0000000 0000000 00000001573 11524351350 025142  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:52  
          inet addr:10.1.217.82  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe91:52/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22954 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2765 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1939065 (1.8 MiB)  TX bytes:810227 (791.2 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:756 errors:0 dropped:0 overruns:0 frame:0
          TX packets:756 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:74087 (72.3 KiB)  TX bytes:74087 (72.3 KiB)

                                                                                                                                     Virtual_Configuration/tile14/idleserver/VM_configuration/chkconfig.txt                              0000644 0000000 0000000 00000006535 11524351334 025316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile14/idleserver/Software_Configuration/                                     0000777 0000000 0000000 00000000000 11524351333 024024  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/                                                             0000777 0000000 0000000 00000000000 11524351275 017213  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/                                            0000777 0000000 0000000 00000000000 11524351314 022456  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/proc/                                       0000777 0000000 0000000 00000000000 11524351313 023420  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/proc/cpuinfo                                0000644 0000000 0000000 00000002030 11524351313 024775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/appserver/VM_configuration/proc/mounts                                 0000644 0000000 0000000 00000001357 11524351313 024672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1278676k,nr_inodes=319669,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1360,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1360,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/appserver/VM_configuration/proc/swaps                                  0000644 0000000 0000000 00000000144 11524351313 024473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/appserver/VM_configuration/proc/devices                                0000644 0000000 0000000 00000000567 11524351313 024771  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile14/appserver/VM_configuration/proc/modules                                0000644 0000000 0000000 00000002621 11524351313 025010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 61 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile14/appserver/VM_configuration/proc/partitions                             0000644 0000000 0000000 00000000260 11524351313 025531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile14/appserver/VM_configuration/proc/meminfo                                0000644 0000000 0000000 00000002222 11524351313 024767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2571688 kB
MemFree:          500760 kB
Buffers:           38068 kB
Cached:           244728 kB
SwapCached:            0 kB
Active:          1745476 kB
Inactive:         189556 kB
Active(anon):    1652384 kB
Inactive(anon):        4 kB
Active(file):      93092 kB
Inactive(file):   189552 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               168 kB
Writeback:             0 kB
AnonPages:       1652132 kB
Mapped:            76316 kB
Shmem:               164 kB
Slab:             102440 kB
SReclaimable:      35404 kB
SUnreclaim:        67036 kB
KernelStack:        2704 kB
PageTables:         6940 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3333836 kB
Committed_AS:     332068 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19244 kB
VmallocChunk:   34359711668 kB
HardwareCorrupted:     0 kB
AnonHugePages:   1421312 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2613248 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/appserver/VM_configuration/root/                                       0000777 0000000 0000000 00000000000 11524351313 023440  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/root/convert_to_vf.sh                       0000755 0000000 0000000 00000001135 11524351313 026650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/lspci.txt                                   0000644 0000000 0000000 00000001211 11524351312 024316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/appserver/VM_configuration/df.txt                                      0000644 0000000 0000000 00000000401 11524351276 023606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8773904   4007032  69% /
tmpfs                  1285844         0   1285844   0% /dev/shm
/dev/vdb1             20642412   2027452  17566388  11% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/appserver/VM_configuration/mount.txt                                   0000644 0000000 0000000 00000000612 11524351312 024352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile14/appserver/VM_configuration/etc/                                        0000777 0000000 0000000 00000000000 11524351312 023227  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/                                   0000777 0000000 0000000 00000000000 11524351305 024057  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/                             0000777 0000000 0000000 00000000000 11524351312 024766  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests            0000755 0000000 0000000 00000017172 11524351305 030162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                   0000755 0000000 0000000 00000004325 11524351305 026600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                0000755 0000000 0000000 00000006014 11524351306 027367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                  0000755 0000000 0000000 00000012327 11524351307 026771  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                 0000755 0000000 0000000 00000005222 11524351310 027146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                      0000755 0000000 0000000 00000010671 11524351312 026153  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                     0000755 0000000 0000000 00000006364 11524351306 026330  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                 0000755 0000000 0000000 00000020716 11524351307 027101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                      0000755 0000000 0000000 00000004731 11524351307 026160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon              0000755 0000000 0000000 00000004754 11524351305 027532  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                 0000755 0000000 0000000 00000001364 11524351311 027171  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                     0000755 0000000 0000000 00000003027 11524351307 026316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                    0000755 0000000 0000000 00000006743 11524351312 026513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                     0000755 0000000 0000000 00000010777 11524351307 026323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                0000755 0000000 0000000 00000004230 11524351311 027333  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                     0000755 0000000 0000000 00000006302 11524351307 026272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                       0000755 0000000 0000000 00000004236 11524351312 026006  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                   0000755 0000000 0000000 00000004031 11524351310 026614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                0000755 0000000 0000000 00000003521 11524351310 027277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                   0000755 0000000 0000000 00000006050 11524351311 026652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                   0000755 0000000 0000000 00000002363 11524351307 026727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                0000755 0000000 0000000 00000004054 11524351305 027336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                 0000755 0000000 0000000 00000005013 11524351310 027206  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                     0000755 0000000 0000000 00000003213 11524351307 026311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                   0000755 0000000 0000000 00000003512 11524351307 026643  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                      0000755 0000000 0000000 00000003603 11524351306 026150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                    0000755 0000000 0000000 00000011277 11524351306 026475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S10network                   0000755 0000000 0000000 00000014466 11524351310 026676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                   0000755 0000000 0000000 00000004326 11524351310 026703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                    0000755 0000000 0000000 00000006462 11524351310 026455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                     0000755 0000000 0000000 00000027662 11524351311 026331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                      0000755 0000000 0000000 00000006445 11524351306 026053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                 0000755 0000000 0000000 00000003245 11524351311 027136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K60crond                     0000755 0000000 0000000 00000005445 11524351306 026311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                     0000755 0000000 0000000 00000005522 11524351305 026312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl             0000755 0000000 0000000 00000002221 11524351310 027774  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                 0000755 0000000 0000000 00000004010 11524351306 027152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                       0000755 0000000 0000000 00000013536 11524351306 025772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                      0000755 0000000 0000000 00000004723 11524351311 026132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                    0000755 0000000 0000000 00000003024 11524351305 026442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                     0000755 0000000 0000000 00000003275 11524351311 026271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                  0000755 0000000 0000000 00000025442 11524351310 027014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                 0000755 0000000 0000000 00000004370 11524351311 027134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S99local                     0000755 0000000 0000000 00000000334 11524351312 026307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                   0000755 0000000 0000000 00000006675 11524351310 026653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                0000755 0000000 0000000 00000005650 11524351306 027352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor              0000555 0000000 0000000 00000004612 11524351310 027541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                    0000755 0000000 0000000 00000007234 11524351311 026513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                  0000755 0000000 0000000 00000003433 11524351312 027045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                    0000755 0000000 0000000 00000005672 11524351305 026472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                     0000755 0000000 0000000 00000003254 11524351312 026305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                 0000755 0000000 0000000 00000005063 11524351311 027160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                     0000755 0000000 0000000 00000012432 11524351311 026322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                   0000755 0000000 0000000 00000007414 11524351306 026673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                  0000755 0000000 0000000 00000020557 11524351307 027016  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond               0000755 0000000 0000000 00000003427 11524351307 027543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/rc3.d/K05atd                       0000755 0000000 0000000 00000004112 11524351305 025740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/                            0000777 0000000 0000000 00000000000 11524351305 025244  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/network                     0000755 0000000 0000000 00000014466 11524351302 026667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/gfs2                        0000755 0000000 0000000 00000006445 11524351300 026033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/sysstat                     0000755 0000000 0000000 00000002363 11524351304 026703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/saslauthd                   0000755 0000000 0000000 00000004010 11524351304 027150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/messagebus                  0000755 0000000 0000000 00000004230 11524351302 027320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/autobench                   0000755 0000000 0000000 00000005063 11524351277 027152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/atd                         0000755 0000000 0000000 00000004112 11524351277 025744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/mcelogd                     0000755 0000000 0000000 00000003535 11524351302 026603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/auditd                      0000755 0000000 0000000 00000006462 11524351277 026460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/certmonger                  0000755 0000000 0000000 00000004054 11524351300 027331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/irqbalance                  0000755 0000000 0000000 00000003521 11524351301 027264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/acpid                       0000755 0000000 0000000 00000003275 11524351277 026265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/nscd                        0000755 0000000 0000000 00000004723 11524351302 026120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                   0000755 0000000 0000000 00000005222 11524351304 027131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/nfs                         0000755 0000000 0000000 00000013536 11524351302 025761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/sssd                        0000755 0000000 0000000 00000004731 11524351304 026146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/crond                       0000755 0000000 0000000 00000005445 11524351300 026276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/ip6tables                   0000755 0000000 0000000 00000020716 11524351301 027061  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/autofs                      0000755 0000000 0000000 00000007234 11524351277 026505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/sshd                        0000755 0000000 0000000 00000010671 11524351304 026133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/ksm                         0000755 0000000 0000000 00000004236 11524351301 025761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/libvirt-guests              0000755 0000000 0000000 00000017172 11524351301 030155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                0000755 0000000 0000000 00000004754 11524351300 027524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/ypbind                      0000755 0000000 0000000 00000011277 11524351305 026463  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/psacct                      0000755 0000000 0000000 00000003024 11524351303 026440  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/xinetd                      0000755 0000000 0000000 00000006743 11524351305 026473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/nfslock                     0000755 0000000 0000000 00000006675 11524351302 026640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/cgred                       0000755 0000000 0000000 00000006302 11524351300 026246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/migrateip                   0000755 0000000 0000000 00000001364 11524351302 027150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/udev-post                   0000755 0000000 0000000 00000004370 11524351304 027117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/haldaemon                   0000755 0000000 0000000 00000003245 11524351300 027115  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/ipsec                       0000755 0000000 0000000 00000010777 11524351301 026301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/rpcbind                     0000755 0000000 0000000 00000004031 11524351303 026603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/rhnsd                       0000755 0000000 0000000 00000005522 11524351303 026306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/functions                   0000644 0000000 0000000 00000042767 11524351300 027206  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/kdump                       0000755 0000000 0000000 00000027662 11524351301 026317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/postfix                     0000755 0000000 0000000 00000007414 11524351303 026666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/iptables                    0000755 0000000 0000000 00000020557 11524351301 026776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/rsyslog                     0000755 0000000 0000000 00000004326 11524351304 026674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/netconsole                  0000755 0000000 0000000 00000005650 11524351302 027342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/rpcgssd                     0000755 0000000 0000000 00000006050 11524351303 026632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/abrtd                       0000755 0000000 0000000 00000003254 11524351277 026276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                0000555 0000000 0000000 00000004612 11524351301 027530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/halt                        0000755 0000000 0000000 00000012723 11524351300 026116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/cgconfig                    0000755 0000000 0000000 00000012327 11524351300 026745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/single                      0000755 0000000 0000000 00000001207 11524351304 026446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/mdmonitor                   0000755 0000000 0000000 00000005013 11524351302 027172  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/restorecond                 0000755 0000000 0000000 00000003427 11524351303 027521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/cpuspeed                    0000755 0000000 0000000 00000025442 11524351300 027000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/netfs                       0000755 0000000 0000000 00000012432 11524351302 026304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                  0000755 0000000 0000000 00000006014 11524351304 027347  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/oddjobd                     0000755 0000000 0000000 00000004325 11524351303 026575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/ksmtuned                    0000755 0000000 0000000 00000003433 11524351301 027017  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/sandbox                     0000755 0000000 0000000 00000003242 11524351304 026624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/killall                     0000755 0000000 0000000 00000001214 11524351301 026604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/rdisc                       0000755 0000000 0000000 00000003027 11524351303 026272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/httpd                       0000755 0000000 0000000 00000006364 11524351301 026316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/ntpd                        0000755 0000000 0000000 00000003603 11524351303 026133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/smartd                      0000755 0000000 0000000 00000005672 11524351304 026471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/nslcd                       0000755 0000000 0000000 00000003213 11524351303 026266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/ntpdate                     0000755 0000000 0000000 00000003512 11524351303 026624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile14/appserver/VM_configuration/etc/rc.d/init.d/microcode_ctl               0000755 0000000 0000000 00000002221 11524351302 027766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/appserver/VM_configuration/etc/hosts                                   0000644 0000000 0000000 00000000267 11524351276 024324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/appserver/VM_configuration/etc/iproute2/                               0000777 0000000 0000000 00000000000 11524351277 025012  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/etc/iproute2/rt_dsfield                     0000644 0000000 0000000 00000000672 11524351276 027054  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile14/appserver/VM_configuration/etc/iproute2/rt_realms                      0000644 0000000 0000000 00000000160 11524351277 026716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile14/appserver/VM_configuration/etc/iproute2/rt_scopes                      0000644 0000000 0000000 00000000134 11524351277 026730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/appserver/VM_configuration/etc/iproute2/ematch_map                     0000644 0000000 0000000 00000000073 11524351276 027026  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/appserver/VM_configuration/etc/iproute2/rt_tables                      0000644 0000000 0000000 00000000127 11524351277 026710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/appserver/VM_configuration/etc/iproute2/rt_protos                      0000644 0000000 0000000 00000000475 11524351276 026771  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/etc/nsswitch.conf                           0000644 0000000 0000000 00000003230 11524351277 025744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/appserver/VM_configuration/etc/fstab                                   0000644 0000000 0000000 00000001603 11524351276 024256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile14/appserver/VM_configuration/etc/sysctl.conf                             0000644 0000000 0000000 00000001466 11524351312 025422  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile14/appserver/VM_configuration/etc/inittab                                 0000644 0000000 0000000 00000001564 11524351276 024617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile14/appserver/VM_configuration/var/                                        0000777 0000000 0000000 00000000000 11524351314 023246  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/var/log/                                    0000777 0000000 0000000 00000000000 11524351314 024027  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/var/log/dmesg                               0000644 0000000 0000000 00000044275 11524351314 025061  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000009fffd000 (usable)
 BIOS-e820: 000000009fffd000 - 00000000a0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x9fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000009fffd000
 0000000000 - 009fe00000 page 2M
 009fe00000 - 009fffd000 page 4k
kernel direct mapping tables up to 9fffd000 @ 8000-d000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 000000009fffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000009ffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000009fffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000009ffffdc0 00040
ACPI: SSDT 000000009fffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000009fffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000009fffd000
Bootmem setup node 0 0000000000000000-000000009fffd000
  NODE_DATA [000000000000b000 - 000000000003efff]
  bootmap [000000000003f000 -  0000000000052fff] pages 14
(7 early reservations) ==> bootmem [0000000000 - 009fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000b000]          PGTABLE ==> [0000008000 - 000000b000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00023fffff] PMD -> [ffff880002200000-ffff8800045fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0009fffd
On node 0 totalpages: 655254
  DMA zone: 56 pages used for memmap
  DMA zone: 107 pages reserved
  DMA zone: 3830 pages, LIFO batch:0
  DMA32 zone: 8904 pages used for memmap
  DMA32 zone: 642357 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at a0000000 (gap: a0000000:5ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 646187
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2557352k/2621428k available (4935k kernel code, 412k absent, 63664k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 26214400 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (13867.27 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116100.295:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 5020
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:39 UTC (1297116099)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda:
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
de:14:ac:47:40:22
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/boot/                                       0000777 0000000 0000000 00000000000 11524351275 023427  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/boot/grub/                                  0000777 0000000 0000000 00000000000 11524351276 024367  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/VM_configuration/boot/grub/grub.conf                         0000644 0000000 0000000 00000001352 11524351276 026172  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/appserver/VM_configuration/rpmpkgs.txt                                 0000644 0000000 0000000 00000067153 11524351313 024711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/appserver/VM_configuration/ifconfig.txt                                0000644 0000000 0000000 00000002353 11524351312 025000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:50  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:213 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:21207 (20.7 KiB)  TX bytes:916 (916.0 b)

eth1      Link encap:Ethernet  HWaddr DE:14:AC:47:40:22  
          inet addr:10.1.217.80  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::dc14:acff:fe47:4022/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18462836 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38319906 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5114810357 (4.7 GiB)  TX bytes:41784524204 (38.9 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:657590 errors:0 dropped:0 overruns:0 frame:0
          TX packets:657590 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:106914161 (101.9 MiB)  TX bytes:106914161 (101.9 MiB)

                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/appserver/VM_configuration/chkconfig.txt                               0000644 0000000 0000000 00000006535 11524351276 025166  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile14/appserver/Software_Configuration/                                      0000777 0000000 0000000 00000000000 11524351275 023674  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/Software_Configuration/AppSrv01/                             0000777 0000000 0000000 00000000000 11524351275 025250  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/Software_Configuration/AppSrv01/server.xml                   0000644 0000000 0000000 00000103647 11524351275 027307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   <?xml version="1.0" encoding="UTF-8"?>
<process:Server xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:adminservice="http://www.ibm.com/websphere/appserver/schemas/5.0/adminservice.xmi" xmlns:applicationserver="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.xmi" xmlns:applicationserver.ejbcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.xmi" xmlns:applicationserver.ejbcontainer.messagelistener="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.messagelistener.xmi" xmlns:applicationserver.sipcontainer="www.ibm.com/websphere/appserver/schemas/7.0/applicationserver.sipcontainer.xmi" xmlns:applicationserver.webcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.webcontainer.xmi" xmlns:channelservice="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.xmi" xmlns:channelservice.channels="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.channels.xmi" xmlns:coregroupbridgeservice="http://www.ibm.com/websphere/appserver/schemas/6.0/coregroupbridgeservice.xmi" xmlns:diagnosticproviderservice="http://www.ibm.com/websphere/appserver/schemas/5.0/diagnosticproviderservice.xmi" xmlns:loggingservice.http="http://www.ibm.com/websphere/appserver/schemas/6.0/loggingservice.http.xmi" xmlns:loggingservice.ras="http://www.ibm.com/websphere/appserver/schemas/5.0/loggingservice.ras.xmi" xmlns:namingserver="http://www.ibm.com/websphere/appserver/schemas/5.0/namingserver.xmi" xmlns:orb="http://www.ibm.com/websphere/appserver/schemas/5.0/orb.xmi" xmlns:pmiservice="http://www.ibm.com/websphere/appserver/schemas/5.0/pmiservice.xmi" xmlns:portletcontainer="http://www.ibm.com/websphere/appserver/schemas/6.0/portletcontainer.xmi" xmlns:process="http://www.ibm.com/websphere/appserver/schemas/5.0/process.xmi" xmlns:processexec="http://www.ibm.com/websphere/appserver/schemas/5.0/processexec.xmi" xmlns:sibresources="http://www.ibm.com/websphere/appserver/schemas/6.0/sibresources.xmi" xmlns:threadpoolmanager="http://www.ibm.com/websphere/appserver/schemas/6.0/threadpoolmanager.xmi" xmlns:tperfviewer="http://www.ibm.com/websphere/appserver/schemas/6.0/tperfviewer.xmi" xmlns:traceservice="http://www.ibm.com/websphere/appserver/schemas/5.0/traceservice.xmi" xmi:id="Server_1183122130078" name="server1" parallelStartEnabled="true">
  <stateManagement xmi:id="StateManageable_1183122130078" initialState="START"/>
  <statisticsProvider xmi:id="StatisticsProvider_1183122130078" specification="com.ibm.orb=enabled"/>
  <services xmi:type="pmiservice:PMIService" xmi:id="PMIService_1183122130078" enable="false" initialSpecLevel="" statisticSet="basic" synchronizedUpdate="false"/>
  <services xmi:type="adminservice:AdminService" xmi:id="AdminService_1183122130078" enable="true" standalone="true" localAdminProtocol="IPCConnector_1" remoteAdminProtocol="SOAPConnector_1">
    <connectors xmi:type="adminservice:SOAPConnector" xmi:id="SOAPConnector_1" enable="true">
      <properties xmi:id="Property_3" name="requestTimeout" value="600"/>
    </connectors>
    <connectors xmi:type="adminservice:RMIConnector" xmi:id="RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:JSR160RMIConnector" xmi:id="JSR160RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:IPCConnector" xmi:id="IPCConnector_1" enable="true">
      <properties xmi:id="Property_4" name="requestTimeout" value="600"/>
    </connectors>
    <configRepository xmi:id="RepositoryService_1183122130078"/>
    <pluginConfigService xmi:id="PluginConfigService_1183122130078" enable="true"/>
  </services>
  <services xmi:type="traceservice:TraceService" xmi:id="TraceService_1183122130078" enable="false" startupTraceSpecification="*=all=disabled" traceOutputType="SPECIFIED_FILE" traceFormat="BASIC" memoryBufferSize="8">
    <traceLog xmi:id="TraceLog_1183122130078" fileName="${SERVER_LOG_ROOT}/trace.log" rolloverSize="100" maxNumberOfBackupFiles="10"/>
  </services>
  <services xmi:type="diagnosticproviderservice:DiagnosticProviderService" xmi:id="DiagnosticProviderService_1183122130078" enable="true" startupStateCollectionSpec=".*:.*=0"/>
  <services xmi:type="loggingservice.ras:RASLoggingService" xmi:id="RASLoggingService_1183122130078" enable="true" messageFilterLevel="NONE" enableCorrelationId="true">
    <serviceLog xmi:id="ServiceLog_1183122130078" name="${LOG_ROOT}/activity.log" size="2" enabled="true"/>
  </services>
  <services xmi:type="coregroupbridgeservice:CoreGroupBridgeService" xmi:id="CoreGroupBridgeService_1183122130078" enable="true"/>
  <services xmi:type="tperfviewer:TPVService" xmi:id="TPVService_1183122130078" enable="true"/>
  <services xmi:type="orb:ObjectRequestBroker" xmi:id="ObjectRequestBroker_1183122130078" enable="true" requestTimeout="180" requestRetriesCount="1" requestRetriesDelay="0" connectionCacheMaximum="240" connectionCacheMinimum="100" commTraceEnabled="false" locateRequestTimeout="180" forceTunnel="never" noLocalCopies="false" useServerThreadPool="true">
    <properties xmi:id="Property_1183122130079" name="com.ibm.CORBA.enableLocateRequest" value="true"/>
    <properties xmi:id="Property_1183122130080" name="com.ibm.ws.orb.transport.WSSSLServerSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLServerSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130081" name="com.ibm.ws.orb.transport.WSSSLClientSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130082" name="com.ibm.CORBA.ConnectionInterceptorName" value="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor"/>
    <properties xmi:id="Property_1183122130083" name="com.ibm.CORBA.RasManager" value="com.ibm.websphere.ras.WsOrbRasManager"/>
    <properties xmi:id="Property_1183122130084" name="com.ibm.ws.orb.transport.useMultiHome" value="true"/>
    <properties xmi:id="Property_1183122130085" name="com.ibm.websphere.management.registerServerIORWithLSD" value="true"/>
    <interceptors xmi:id="Interceptor_1183122130078" name="com.ibm.ejs.ras.RasContextSupport"/>
    <interceptors xmi:id="Interceptor_1183122130079" name="com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRequestInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130080" name="com.ibm.ws.Transaction.JTS.TxInterceptorInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130081" name="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityComponentFactory"/>
    <interceptors xmi:id="Interceptor_1183122130082" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ServerRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130083" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ClientRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130084" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIClientRI"/>
    <interceptors xmi:id="Interceptor_1183122130085" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRI"/>
    <interceptors xmi:id="Interceptor_1183122130086" name="com.ibm.ws.wlm.client.WLMClientInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130087" name="com.ibm.ws.wlm.server.WLMServerInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130088" name="com.ibm.ws.activity.remote.cos.ActivityServiceServerInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130089" name="com.ibm.debug.DebugPortableInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130090" name="com.ibm.debug.olt.ivbtrjrt.OLT_RI"/>
    <plugins xmi:id="ORBPlugin_1183122130078" name="com.ibm.ws.orbimpl.transport.WSTransport"/>
    <plugins xmi:id="ORBPlugin_1183122130079" name="com.ibm.ISecurityUtilityImpl.SecurityPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130080" name="com.ibm.ws.orbimpl.WSORBPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130081" name="com.ibm.ws.wlm.client.WLMClient"/>
    <plugins xmi:id="ORBPlugin_1183122130082" name="com.ibm.ws.pmi.server.modules.OrbPerfModule"/>
    <plugins xmi:id="ORBPlugin_1183122130083" name="com.ibm.ws.csi.CORBAORBMethodAccessControl"/>
    <threadPool xmi:id="ThreadPool_1183122130078" minimumSize="13" maximumSize="13" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
  </services>
  <services xmi:type="channelservice:TransportChannelService" xmi:id="TransportChannelService_1183122130078" enable="true">
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130078" name="TCP_1" endPointName="WC_adminhost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130079" name="TCP_2" endPointName="WC_defaulthost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130080" name="TCP_3" endPointName="WC_adminhost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130081" name="TCP_4" endPointName="WC_defaulthost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130082" name="TCP_5" endPointName="DCS_UNICAST_ADDRESS" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130080"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130083" name="TCP_8" discriminationWeight="0" endPointName="SIP_DEFAULTHOST" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130084" name="TCP_9" discriminationWeight="0" endPointName="SIP_DEFAULTHOST_SECURE" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130078" name="SSL_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130079" name="SSL_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130080" name="SSL_3" discriminationWeight="2"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130081" name="SSL_5" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130078" name="HTTP_1" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130079" name="HTTP_2" discriminationWeight="1" maximumPersistentRequests="-1" keepAlive="true" readTimeout="6000" writeTimeout="6000" persistentTimeout="3000" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130080" name="HTTP_3" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130081" name="HTTP_4" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130078" name="HTTPQ_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130079" name="HTTPQ_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130078" name="WCC_1" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130079" name="WCC_2" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130080" name="WCC_3" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130081" name="WCC_4" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130082" name="WCC_5" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130083" name="WCC_6" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130078" name="DCS_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130079" name="DCS_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130078" name="SIP_1" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130079" name="SIP_2" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130080" name="SIP_3" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130078" name="SIPCC_1" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130079" name="SIPCC_2" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130080" name="SIPCC_3" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:UDPInboundChannel" xmi:id="UDPInboundChannel_1183122130078" name="UDP_1" discriminationWeight="0" endPointName="SIP_DEFAULTHOST"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130085" name="SIB_TCP_JFAP" endPointName="SIB_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130086" name="SIB_TCP_JFAP_SSL" endPointName="SIB_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130087" name="SIB_TCP_MQFAP" endPointName="SIB_MQ_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130088" name="SIB_TCP_MQFAP_SSL" endPointName="SIB_MQ_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130082" name="SIB_SSL_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130083" name="SIB_SSL_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130078" name="SIB_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130079" name="SIB_JFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130078" name="SIB_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130079" name="SIB_MQFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130078" name="SIB_TCP_JFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130079" name="SIB_TCP_JFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130080" name="SIB_TCP_JFAP_TUN_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130081" name="SIB_TCP_JFAP_TUN_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130082" name="SIB_TCP_MQFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130083" name="SIB_TCP_MQFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130078" name="SIB_SSL_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130079" name="SIB_SSL_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130080" name="SIB_SSL_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130078" name="SIB_HTTP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130079" name="SIB_HTTP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130078" name="SIB_HTC_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130079" name="SIB_HTC_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130078" name="SIB_JFAP_JFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130079" name="SIB_JFAP_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130080" name="SIB_JFAP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130081" name="SIB_JFAP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130078" name="SIB_MQFAP_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130079" name="SIB_MQFAP_MQFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130084" name="SIB_TCP_RMQ_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130085" name="SIB_TCP_RMQ_SSL_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130081" name="SIB_SSL_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130078" name="SIB_RMQ_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130079" name="SIB_RMQ_RMQ_OUT"/>
    <chains xmi:id="Chain_1183122130078" name="WCInboundAdmin" enable="true" transportChannels="TCPInboundChannel_1183122130078 HTTPInboundChannel_1183122130078 WebContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130079" name="WCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 WebContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130080" name="HttpQueueInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 HTTPQueueInboundChannel_1183122130078 WebContainerInboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130081" name="HttpQueueInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 HTTPQueueInboundChannel_1183122130079 WebContainerInboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130082" name="WCInboundAdminSecure" enable="true" transportChannels="TCPInboundChannel_1183122130080 SSLInboundChannel_1183122130078 HTTPInboundChannel_1183122130080 WebContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130083" name="WCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 WebContainerInboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130084" name="DCS" enable="true" transportChannels="TCPInboundChannel_1183122130082 DCSInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130085" name="DCS-Secure" enable="true" transportChannels="TCPInboundChannel_1183122130082 SSLInboundChannel_1183122130080 DCSInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130086" name="SIPCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130083 SIPInboundChannel_1183122130078 SIPContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130087" name="SIPCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130084 SSLInboundChannel_1183122130081 SIPInboundChannel_1183122130079 SIPContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130088" name="SIPCInboundDefaultUDP" enable="true" transportChannels="UDPInboundChannel_1183122130078 SIPInboundChannel_1183122130080 SIPContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130089" name="InboundBasicMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130085 JFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130090" name="InboundSecureMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130086 SSLInboundChannel_1183122130082 JFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130091" name="InboundBasicMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130087 MQFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130092" name="InboundSecureMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130088 SSLInboundChannel_1183122130083 MQFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130093" name="BootstrapBasicMessaging" transportChannels="JFAPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130094" name="BootstrapSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130079 TCPOutboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130095" name="BootstrapTunneledMessaging" transportChannels="JFAPOutboundChannel_1183122130080 HTTPTunnelOutboundChannel_1183122130078 HTTPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130096" name="BootstrapTunneledSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130081 HTTPTunnelOutboundChannel_1183122130079 HTTPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130080 TCPOutboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130097" name="OutboundBasicMQLink" transportChannels="MQFAPOutboundChannel_1183122130079 TCPOutboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130098" name="OutboundSecureMQLink" transportChannels="MQFAPOutboundChannel_1183122130078 SSLOutboundChannel_1183122130078 TCPOutboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130099" name="OutboundBasicWMQClient" transportChannels="RMQOutboundChannel_1183122130079 TCPOutboundChannel_1183122130084"/>
    <chains xmi:id="Chain_1183122130100" name="OutboundSecureWMQClient" transportChannels="RMQOutboundChannel_1183122130078 SSLOutboundChannel_1183122130081 TCPOutboundChannel_1183122130085"/>
  </services>
  <services xmi:type="threadpoolmanager:ThreadPoolManager" xmi:id="ThreadPoolManager_1183122130078" enable="true">
    <threadPools xmi:id="ThreadPool_1183122130083" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
    <threadPools xmi:id="ThreadPool_1183122130084" minimumSize="1" maximumSize="3" inactivityTimeout="30000" isGrowable="false" name="server.startup" description="This pool is used by WebSphere during server startup."/>
    <threadPools xmi:id="ThreadPool_1183122130085" minimumSize="15" maximumSize="15" inactivityTimeout="3500" name="Default"/>
    <threadPools xmi:id="ThreadPool_1183122130079" minimumSize="38" maximumSize="38" inactivityTimeout="3500" isGrowable="false" name="WebContainer"/>
    <threadPools xmi:id="ThreadPool_1183122130080" minimumSize="5" maximumSize="20" name="TCPChannel.DCS"/>
    <threadPools xmi:id="ThreadPool_1183122130081" minimumSize="4" maximumSize="50" name="SIBFAPInboundThreadPool" description="Service integration bus FAP inbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1183122130082" minimumSize="4" maximumSize="50" name="SIBFAPThreadPool" description="Service integration bus FAP outbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1265156361721" minimumSize="35" maximumSize="41" inactivityTimeout="3500" name="SIBJMSRAThreadPool" description="Service Integration Bus JMS Resource Adapter thread pool"/>
    <threadPools xmi:id="ThreadPool_1265156361827" minimumSize="1" maximumSize="40" name="WMQCommonServices" description="WebSphere MQ common services thread pool">
      <customProperties xmi:id="Property_1265156361829" name="com.ibm.websphere.threadpool.disableHungThreadDetection" value="true" required="false"/>
    </threadPools>
    <threadPools xmi:id="ThreadPool_1265156361831" minimumSize="5" maximumSize="25" name="WMQJCAResourceAdapter" description="wmqJcaRaThreadPoolDescription"/>
  </services>
  <services xmi:type="loggingservice.http:HTTPAccessLoggingService" xmi:id="HTTPAccessLoggingService_1183122130078" enable="false" enableErrorLogging="true" enableAccessLogging="true">
    <errorLog xmi:id="LogFile_1183122130078" filePath="${SERVER_LOG_ROOT}/http_error.log" maximumSize="500"/>
    <accessLog xmi:id="LogFile_1183122130079" filePath="${SERVER_LOG_ROOT}/http_access.log" maximumSize="500"/>
  </services>
  <errorStreamRedirect xmi:id="StreamRedirect_1183122130078" fileName="${SERVER_LOG_ROOT}/SystemErr.log" rolloverType="NONE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <outputStreamRedirect xmi:id="StreamRedirect_1183122130079" fileName="${SERVER_LOG_ROOT}/SystemOut.log" rolloverType="NONE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <components xmi:type="namingserver:NameServer" xmi:id="NameServer_1183122130078">
    <stateManagement xmi:id="StateManageable_1183122130079" initialState="START"/>
  </components>
  <components xmi:type="applicationserver:ApplicationServer" xmi:id="ApplicationServer_1183122130078" applicationClassLoaderPolicy="MULTIPLE">
    <stateManagement xmi:id="StateManageable_1183122130080" initialState="START"/>
    <services xmi:type="applicationserver:TransactionService" xmi:id="TransactionService_1183122130078" enable="true" totalTranLifetimeTimeout="0" clientInactivityTimeout="0" propogatedOrBMTTranLifetimeTimeout="300" httpProxyPrefix="" httpsProxyPrefix=""/>
    <services xmi:type="applicationserver:DynamicCache" xmi:id="DynamicCache_1183122130078" enable="true">
      <cacheGroups xmi:id="ExternalCacheGroup_1183122130078" name="EsiInvalidator">
        <members xmi:id="ExternalCacheGroupMember_1183122130078" address="localhost" adapterBeanName="com.ibm.websphere.servlet.cache.ESIInvalidatorServlet"/>
      </cacheGroups>
    </services>
    <components xmi:type="applicationserver.webcontainer:WebContainer" xmi:id="WebContainer_1183122130078" enableServletCaching="false" disablePooling="false">
      <stateManagement xmi:id="StateManageable_1183122130081" initialState="START"/>
      <services xmi:type="applicationserver.webcontainer:SessionManager" xmi:id="SessionManager_1183122130078" enable="true" enableUrlRewriting="false" enableCookies="true" enableSSLTracking="false" enableProtocolSwitchRewriting="false" sessionPersistenceMode="NONE" enableSecurityIntegration="false" allowSerializedSessionAccess="false" maxWaitTime="5" accessSessionOnTimeout="true">
        <defaultCookieSettings xmi:id="Cookie_1183122130078" domain="" maximumAge="-1" secure="false"/>
        <sessionDatabasePersistence xmi:id="SessionDatabasePersistence_1183122130078" datasourceJNDIName="jdbc/Sessions" userId="db2admin" password="{xor}Oz1tPjsyNjE=" db2RowSize="ROW_SIZE_4KB" tableSpaceName=""/>
        <tuningParams xmi:id="TuningParams_1183122130078" usingMultiRowSchema="false" maxInMemorySessionCount="1000" allowOverflow="true" scheduleInvalidation="false" writeFrequency="TIME_BASED_WRITE" writeInterval="10" writeContents="ONLY_UPDATED_ATTRIBUTES" invalidationTimeout="30">
          <invalidationSchedule xmi:id="InvalidationSchedule_1183122130078" firstHour="14" secondHour="2"/>
        </tuningParams>
      </services>
    </components>
    <components xmi:type="applicationserver.ejbcontainer:EJBContainer" xmi:id="EJBContainer_1183122130078" passivationDirectory="${USER_INSTALL_ROOT}/temp" inactivePoolCleanupInterval="30000">
      <stateManagement xmi:id="StateManageable_1183122130082" initialState="START"/>
      <services xmi:type="applicationserver.ejbcontainer.messagelistener:MessageListenerService" xmi:id="MessageListenerService_1183122130078">
        <threadPool xmi:id="ThreadPool_1183122130086" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="Message.Listener.Pool"/>
      </services>
      <cacheSettings xmi:id="EJBCache_1183122130078" cleanupInterval="3000" cacheSize="60000"/>
      <timerSettings xmi:id="EJBTimer_1183122130078" datasourceJNDIName="jdbc/DefaultEJBTimerDataSource" tablePrefix="EJBTIMER_" pollInterval="300" numAlarmThreads="1"/>
    </components>
    <components xmi:type="portletcontainer:PortletContainer" xmi:id="PortletContainer_1183122130078"/>
    <components xmi:type="applicationserver.sipcontainer:SIPContainer" xmi:id="SIPContainer_1183122130078" name="" maxAppSessions="120000" maxMessageRate="5000" maxDispatchQueueSize="3200" maxResponseTime="0" statAveragePeriod="1000" statUpdateRange="10000">
      <stack xmi:id="Stack_1183122130078">
        <timers xmi:id="Timers_1183122130078"/>
      </stack>
    </components>
    <webserverPluginSettings xmi:id="WebserverPluginSettings_1183122130078" WaitForContinue="false" ConnectTimeout="0" MaxConnections="-1" ExtendedHandshake="false" ServerIOTimeout="0"/>
  </components>
  <processDefinitions xmi:type="processexec:JavaProcessDef" xmi:id="JavaProcessDef_1183122130078" workingDirectory="${USER_INSTALL_ROOT}" executableTargetKind="JAVA_CLASS" executableTarget="com.ibm.ws.runtime.WsServer">
    <execution xmi:id="ProcessExecution_1183122130078" processPriority="20" runAsUser="" runAsGroup=""/>
    <ioRedirect xmi:id="OutputRedirect_1183122130078" stdoutFilename="${SERVER_LOG_ROOT}/native_stdout.log" stderrFilename="${SERVER_LOG_ROOT}/native_stderr.log"/>
    <monitoringPolicy xmi:id="MonitoringPolicy_1183122130078" maximumStartupAttempts="3" pingInterval="60" pingTimeout="300" autoRestart="true" nodeRestartState="STOPPED"/>
    <jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="true" verboseModeJNI="false" initialHeapSize="1280" maximumHeapSize="1280" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777" genericJvmArguments="-Dcom.ibm.CORBA.TransportMode=Pluggable -Dcom.ibm.ws.pm.batch=true -Dcom.ibm.ws.pm.deferredcreate=true -Dcom.ibm.CORBA.FragmentSize=3000 -Dcom.ibm.ws.pm.useLegacyCache=false -Dcom.ibm.ws.pm.grouppartialupdate=true -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XML11Configuration -noclassgc -Xss128k  -Xgcpolicy:gencon -Xmo320m -Xcodecache16m -Xgcthreads4 -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=0">
      <systemProperties xmi:id="Property_1" name="com.ibm.security.jgss.debug" value="off" required="false"/>
      <systemProperties xmi:id="Property_2" name="com.ibm.security.krb5.Krb5Debug" value="off" required="false"/>
    </jvmEntries>
  </processDefinitions>
</process:Server>
                                                                                         Virtual_Configuration/tile14/appserver/Software_Configuration/AppSrv02/                             0000777 0000000 0000000 00000000000 11524351275 025251  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/appserver/Software_Configuration/AppSrv02/server.xml                   0000644 0000000 0000000 00000102162 11524351275 027277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   <?xml version="1.0" encoding="UTF-8"?>
<process:Server xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:adminservice="http://www.ibm.com/websphere/appserver/schemas/5.0/adminservice.xmi" xmlns:applicationserver="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.xmi" xmlns:applicationserver.ejbcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.xmi" xmlns:applicationserver.ejbcontainer.messagelistener="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.messagelistener.xmi" xmlns:applicationserver.sipcontainer="www.ibm.com/websphere/appserver/schemas/7.0/applicationserver.sipcontainer.xmi" xmlns:applicationserver.webcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.webcontainer.xmi" xmlns:channelservice="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.xmi" xmlns:channelservice.channels="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.channels.xmi" xmlns:coregroupbridgeservice="http://www.ibm.com/websphere/appserver/schemas/6.0/coregroupbridgeservice.xmi" xmlns:diagnosticproviderservice="http://www.ibm.com/websphere/appserver/schemas/5.0/diagnosticproviderservice.xmi" xmlns:loggingservice.http="http://www.ibm.com/websphere/appserver/schemas/6.0/loggingservice.http.xmi" xmlns:loggingservice.ras="http://www.ibm.com/websphere/appserver/schemas/5.0/loggingservice.ras.xmi" xmlns:namingserver="http://www.ibm.com/websphere/appserver/schemas/5.0/namingserver.xmi" xmlns:orb="http://www.ibm.com/websphere/appserver/schemas/5.0/orb.xmi" xmlns:pmiservice="http://www.ibm.com/websphere/appserver/schemas/5.0/pmiservice.xmi" xmlns:portletcontainer="http://www.ibm.com/websphere/appserver/schemas/6.0/portletcontainer.xmi" xmlns:process="http://www.ibm.com/websphere/appserver/schemas/5.0/process.xmi" xmlns:processexec="http://www.ibm.com/websphere/appserver/schemas/5.0/processexec.xmi" xmlns:sibresources="http://www.ibm.com/websphere/appserver/schemas/6.0/sibresources.xmi" xmlns:threadpoolmanager="http://www.ibm.com/websphere/appserver/schemas/6.0/threadpoolmanager.xmi" xmlns:tperfviewer="http://www.ibm.com/websphere/appserver/schemas/6.0/tperfviewer.xmi" xmlns:traceservice="http://www.ibm.com/websphere/appserver/schemas/5.0/traceservice.xmi" xmi:id="Server_1183122130078" name="server1">
  <stateManagement xmi:id="StateManageable_1183122130078" initialState="START"/>
  <statisticsProvider xmi:id="StatisticsProvider_1183122130078" specification="com.ibm.orb=enabled"/>
  <services xmi:type="pmiservice:PMIService" xmi:id="PMIService_1183122130078" enable="true" initialSpecLevel="" statisticSet="basic" synchronizedUpdate="false"/>
  <services xmi:type="adminservice:AdminService" xmi:id="AdminService_1183122130078" enable="true" standalone="true" localAdminProtocol="IPCConnector_1" remoteAdminProtocol="SOAPConnector_1">
    <connectors xmi:type="adminservice:SOAPConnector" xmi:id="SOAPConnector_1" enable="true">
      <properties xmi:id="Property_3" name="requestTimeout" value="600"/>
    </connectors>
    <connectors xmi:type="adminservice:RMIConnector" xmi:id="RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:JSR160RMIConnector" xmi:id="JSR160RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:IPCConnector" xmi:id="IPCConnector_1" enable="true">
      <properties xmi:id="Property_4" name="requestTimeout" value="600"/>
    </connectors>
    <configRepository xmi:id="RepositoryService_1183122130078"/>
    <pluginConfigService xmi:id="PluginConfigService_1183122130078" enable="true"/>
  </services>
  <services xmi:type="traceservice:TraceService" xmi:id="TraceService_1183122130078" enable="true" startupTraceSpecification="*=info" traceOutputType="SPECIFIED_FILE" traceFormat="BASIC" memoryBufferSize="8">
    <traceLog xmi:id="TraceLog_1183122130078" fileName="${SERVER_LOG_ROOT}/trace.log" rolloverSize="20" maxNumberOfBackupFiles="1"/>
  </services>
  <services xmi:type="diagnosticproviderservice:DiagnosticProviderService" xmi:id="DiagnosticProviderService_1183122130078" enable="true" startupStateCollectionSpec=".*:.*=0"/>
  <services xmi:type="loggingservice.ras:RASLoggingService" xmi:id="RASLoggingService_1183122130078" enable="true" messageFilterLevel="NONE" enableCorrelationId="true">
    <serviceLog xmi:id="ServiceLog_1183122130078" name="${LOG_ROOT}/activity.log" size="2" enabled="true"/>
  </services>
  <services xmi:type="coregroupbridgeservice:CoreGroupBridgeService" xmi:id="CoreGroupBridgeService_1183122130078" enable="true"/>
  <services xmi:type="tperfviewer:TPVService" xmi:id="TPVService_1183122130078" enable="true"/>
  <services xmi:type="orb:ObjectRequestBroker" xmi:id="ObjectRequestBroker_1183122130078" enable="true" requestTimeout="180" requestRetriesCount="1" requestRetriesDelay="0" connectionCacheMaximum="240" connectionCacheMinimum="100" commTraceEnabled="false" locateRequestTimeout="180" forceTunnel="never" noLocalCopies="false" useServerThreadPool="false">
    <properties xmi:id="Property_1183122130079" name="com.ibm.CORBA.enableLocateRequest" value="true"/>
    <properties xmi:id="Property_1183122130080" name="com.ibm.ws.orb.transport.WSSSLServerSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLServerSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130081" name="com.ibm.ws.orb.transport.WSSSLClientSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130082" name="com.ibm.CORBA.ConnectionInterceptorName" value="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor"/>
    <properties xmi:id="Property_1183122130083" name="com.ibm.CORBA.RasManager" value="com.ibm.websphere.ras.WsOrbRasManager"/>
    <properties xmi:id="Property_1183122130084" name="com.ibm.ws.orb.transport.useMultiHome" value="true"/>
    <properties xmi:id="Property_1183122130085" name="com.ibm.websphere.management.registerServerIORWithLSD" value="true"/>
    <interceptors xmi:id="Interceptor_1183122130078" name="com.ibm.ejs.ras.RasContextSupport"/>
    <interceptors xmi:id="Interceptor_1183122130079" name="com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRequestInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130080" name="com.ibm.ws.Transaction.JTS.TxInterceptorInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130081" name="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityComponentFactory"/>
    <interceptors xmi:id="Interceptor_1183122130082" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ServerRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130083" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ClientRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130084" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIClientRI"/>
    <interceptors xmi:id="Interceptor_1183122130085" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRI"/>
    <interceptors xmi:id="Interceptor_1183122130086" name="com.ibm.ws.wlm.client.WLMClientInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130087" name="com.ibm.ws.wlm.server.WLMServerInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130088" name="com.ibm.ws.activity.remote.cos.ActivityServiceServerInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130089" name="com.ibm.debug.DebugPortableInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130090" name="com.ibm.debug.olt.ivbtrjrt.OLT_RI"/>
    <plugins xmi:id="ORBPlugin_1183122130078" name="com.ibm.ws.orbimpl.transport.WSTransport"/>
    <plugins xmi:id="ORBPlugin_1183122130079" name="com.ibm.ISecurityUtilityImpl.SecurityPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130080" name="com.ibm.ws.orbimpl.WSORBPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130081" name="com.ibm.ws.wlm.client.WLMClient"/>
    <plugins xmi:id="ORBPlugin_1183122130082" name="com.ibm.ws.pmi.server.modules.OrbPerfModule"/>
    <plugins xmi:id="ORBPlugin_1183122130083" name="com.ibm.ws.csi.CORBAORBMethodAccessControl"/>
    <threadPool xmi:id="ThreadPool_1183122130078" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
  </services>
  <services xmi:type="channelservice:TransportChannelService" xmi:id="TransportChannelService_1183122130078" enable="true">
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130078" name="TCP_1" endPointName="WC_adminhost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130079" name="TCP_2" endPointName="WC_defaulthost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130080" name="TCP_3" endPointName="WC_adminhost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130081" name="TCP_4" endPointName="WC_defaulthost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130082" name="TCP_5" endPointName="DCS_UNICAST_ADDRESS" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130080"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130083" name="TCP_8" discriminationWeight="0" endPointName="SIP_DEFAULTHOST" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130084" name="TCP_9" discriminationWeight="0" endPointName="SIP_DEFAULTHOST_SECURE" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130078" name="SSL_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130079" name="SSL_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130080" name="SSL_3" discriminationWeight="2"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130081" name="SSL_5" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130078" name="HTTP_1" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130079" name="HTTP_2" discriminationWeight="1" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130080" name="HTTP_3" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130081" name="HTTP_4" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130078" name="HTTPQ_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130079" name="HTTPQ_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130078" name="WCC_1" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130079" name="WCC_2" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130080" name="WCC_3" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130081" name="WCC_4" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130082" name="WCC_5" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130083" name="WCC_6" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130078" name="DCS_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130079" name="DCS_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130078" name="SIP_1" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130079" name="SIP_2" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130080" name="SIP_3" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130078" name="SIPCC_1" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130079" name="SIPCC_2" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130080" name="SIPCC_3" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:UDPInboundChannel" xmi:id="UDPInboundChannel_1183122130078" name="UDP_1" discriminationWeight="0" endPointName="SIP_DEFAULTHOST"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130085" name="SIB_TCP_JFAP" endPointName="SIB_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130086" name="SIB_TCP_JFAP_SSL" endPointName="SIB_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130087" name="SIB_TCP_MQFAP" endPointName="SIB_MQ_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130088" name="SIB_TCP_MQFAP_SSL" endPointName="SIB_MQ_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130082" name="SIB_SSL_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130083" name="SIB_SSL_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130078" name="SIB_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130079" name="SIB_JFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130078" name="SIB_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130079" name="SIB_MQFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130078" name="SIB_TCP_JFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130079" name="SIB_TCP_JFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130080" name="SIB_TCP_JFAP_TUN_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130081" name="SIB_TCP_JFAP_TUN_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130082" name="SIB_TCP_MQFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130083" name="SIB_TCP_MQFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130078" name="SIB_SSL_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130079" name="SIB_SSL_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130080" name="SIB_SSL_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130078" name="SIB_HTTP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130079" name="SIB_HTTP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130078" name="SIB_HTC_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130079" name="SIB_HTC_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130078" name="SIB_JFAP_JFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130079" name="SIB_JFAP_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130080" name="SIB_JFAP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130081" name="SIB_JFAP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130078" name="SIB_MQFAP_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130079" name="SIB_MQFAP_MQFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130084" name="SIB_TCP_RMQ_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130085" name="SIB_TCP_RMQ_SSL_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130081" name="SIB_SSL_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130078" name="SIB_RMQ_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130079" name="SIB_RMQ_RMQ_OUT"/>
    <chains xmi:id="Chain_1183122130078" name="WCInboundAdmin" enable="true" transportChannels="TCPInboundChannel_1183122130078 HTTPInboundChannel_1183122130078 WebContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130079" name="WCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 WebContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130080" name="HttpQueueInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 HTTPQueueInboundChannel_1183122130078 WebContainerInboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130081" name="HttpQueueInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 HTTPQueueInboundChannel_1183122130079 WebContainerInboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130082" name="WCInboundAdminSecure" enable="true" transportChannels="TCPInboundChannel_1183122130080 SSLInboundChannel_1183122130078 HTTPInboundChannel_1183122130080 WebContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130083" name="WCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 WebContainerInboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130084" name="DCS" enable="true" transportChannels="TCPInboundChannel_1183122130082 DCSInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130085" name="DCS-Secure" enable="true" transportChannels="TCPInboundChannel_1183122130082 SSLInboundChannel_1183122130080 DCSInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130086" name="SIPCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130083 SIPInboundChannel_1183122130078 SIPContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130087" name="SIPCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130084 SSLInboundChannel_1183122130081 SIPInboundChannel_1183122130079 SIPContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130088" name="SIPCInboundDefaultUDP" enable="true" transportChannels="UDPInboundChannel_1183122130078 SIPInboundChannel_1183122130080 SIPContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130089" name="InboundBasicMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130085 JFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130090" name="InboundSecureMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130086 SSLInboundChannel_1183122130082 JFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130091" name="InboundBasicMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130087 MQFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130092" name="InboundSecureMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130088 SSLInboundChannel_1183122130083 MQFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130093" name="BootstrapBasicMessaging" transportChannels="JFAPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130094" name="BootstrapSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130079 TCPOutboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130095" name="BootstrapTunneledMessaging" transportChannels="JFAPOutboundChannel_1183122130080 HTTPTunnelOutboundChannel_1183122130078 HTTPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130096" name="BootstrapTunneledSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130081 HTTPTunnelOutboundChannel_1183122130079 HTTPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130080 TCPOutboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130097" name="OutboundBasicMQLink" transportChannels="MQFAPOutboundChannel_1183122130079 TCPOutboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130098" name="OutboundSecureMQLink" transportChannels="MQFAPOutboundChannel_1183122130078 SSLOutboundChannel_1183122130078 TCPOutboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130099" name="OutboundBasicWMQClient" transportChannels="RMQOutboundChannel_1183122130079 TCPOutboundChannel_1183122130084"/>
    <chains xmi:id="Chain_1183122130100" name="OutboundSecureWMQClient" transportChannels="RMQOutboundChannel_1183122130078 SSLOutboundChannel_1183122130081 TCPOutboundChannel_1183122130085"/>
  </services>
  <services xmi:type="threadpoolmanager:ThreadPoolManager" xmi:id="ThreadPoolManager_1183122130078" enable="true">
    <threadPools xmi:id="ThreadPool_1183122130083" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
    <threadPools xmi:id="ThreadPool_1183122130084" minimumSize="1" maximumSize="3" inactivityTimeout="30000" isGrowable="false" name="server.startup" description="This pool is used by WebSphere during server startup."/>
    <threadPools xmi:id="ThreadPool_1183122130085" minimumSize="20" maximumSize="20" name="Default"/>
    <threadPools xmi:id="ThreadPool_1183122130079" minimumSize="50" maximumSize="50" inactivityTimeout="60000" isGrowable="false" name="WebContainer"/>
    <threadPools xmi:id="ThreadPool_1183122130080" minimumSize="5" maximumSize="20" name="TCPChannel.DCS"/>
    <threadPools xmi:id="ThreadPool_1183122130081" minimumSize="4" maximumSize="50" name="SIBFAPInboundThreadPool" description="Service integration bus FAP inbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1183122130082" minimumSize="4" maximumSize="50" name="SIBFAPThreadPool" description="Service integration bus FAP outbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1268079912035" minimumSize="35" maximumSize="41" inactivityTimeout="3500" name="SIBJMSRAThreadPool" description="Service Integration Bus JMS Resource Adapter thread pool"/>
    <threadPools xmi:id="ThreadPool_1268079912120" minimumSize="1" maximumSize="40" name="WMQCommonServices" description="WebSphere MQ common services thread pool">
      <customProperties xmi:id="Property_1268079912122" name="com.ibm.websphere.threadpool.disableHungThreadDetection" value="true" required="false"/>
    </threadPools>
    <threadPools xmi:id="ThreadPool_1268079912124" minimumSize="5" maximumSize="25" name="WMQJCAResourceAdapter" description="wmqJcaRaThreadPoolDescription"/>
  </services>
  <services xmi:type="loggingservice.http:HTTPAccessLoggingService" xmi:id="HTTPAccessLoggingService_1183122130078" enable="false" enableErrorLogging="true" enableAccessLogging="true">
    <errorLog xmi:id="LogFile_1183122130078" filePath="${SERVER_LOG_ROOT}/http_error.log" maximumSize="500"/>
    <accessLog xmi:id="LogFile_1183122130079" filePath="${SERVER_LOG_ROOT}/http_access.log" maximumSize="500"/>
  </services>
  <errorStreamRedirect xmi:id="StreamRedirect_1183122130078" fileName="${SERVER_LOG_ROOT}/SystemErr.log" rolloverType="SIZE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <outputStreamRedirect xmi:id="StreamRedirect_1183122130079" fileName="${SERVER_LOG_ROOT}/SystemOut.log" rolloverType="SIZE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <components xmi:type="namingserver:NameServer" xmi:id="NameServer_1183122130078">
    <stateManagement xmi:id="StateManageable_1183122130079" initialState="START"/>
  </components>
  <components xmi:type="applicationserver:ApplicationServer" xmi:id="ApplicationServer_1183122130078" applicationClassLoaderPolicy="MULTIPLE">
    <stateManagement xmi:id="StateManageable_1183122130080" initialState="START"/>
    <services xmi:type="applicationserver:TransactionService" xmi:id="TransactionService_1183122130078" enable="true" totalTranLifetimeTimeout="120" clientInactivityTimeout="60" propogatedOrBMTTranLifetimeTimeout="300" httpProxyPrefix="" httpsProxyPrefix=""/>
    <services xmi:type="applicationserver:DynamicCache" xmi:id="DynamicCache_1183122130078" enable="true">
      <cacheGroups xmi:id="ExternalCacheGroup_1183122130078" name="EsiInvalidator">
        <members xmi:id="ExternalCacheGroupMember_1183122130078" address="localhost" adapterBeanName="com.ibm.websphere.servlet.cache.ESIInvalidatorServlet"/>
      </cacheGroups>
    </services>
    <components xmi:type="applicationserver.webcontainer:WebContainer" xmi:id="WebContainer_1183122130078" enableServletCaching="false" disablePooling="false">
      <stateManagement xmi:id="StateManageable_1183122130081" initialState="START"/>
      <services xmi:type="applicationserver.webcontainer:SessionManager" xmi:id="SessionManager_1183122130078" enable="true" enableUrlRewriting="false" enableCookies="true" enableSSLTracking="false" enableProtocolSwitchRewriting="false" sessionPersistenceMode="NONE" enableSecurityIntegration="false" allowSerializedSessionAccess="false" maxWaitTime="5" accessSessionOnTimeout="true">
        <defaultCookieSettings xmi:id="Cookie_1183122130078" domain="" maximumAge="-1" secure="false"/>
        <sessionDatabasePersistence xmi:id="SessionDatabasePersistence_1183122130078" datasourceJNDIName="jdbc/Sessions" userId="db2admin" password="{xor}Oz1tPjsyNjE=" db2RowSize="ROW_SIZE_4KB" tableSpaceName=""/>
        <tuningParams xmi:id="TuningParams_1183122130078" usingMultiRowSchema="false" maxInMemorySessionCount="1000" allowOverflow="true" scheduleInvalidation="false" writeFrequency="TIME_BASED_WRITE" writeInterval="10" writeContents="ONLY_UPDATED_ATTRIBUTES" invalidationTimeout="30">
          <invalidationSchedule xmi:id="InvalidationSchedule_1183122130078" firstHour="14" secondHour="2"/>
        </tuningParams>
      </services>
    </components>
    <components xmi:type="applicationserver.ejbcontainer:EJBContainer" xmi:id="EJBContainer_1183122130078" passivationDirectory="${USER_INSTALL_ROOT}/temp" inactivePoolCleanupInterval="30000">
      <stateManagement xmi:id="StateManageable_1183122130082" initialState="START"/>
      <services xmi:type="applicationserver.ejbcontainer.messagelistener:MessageListenerService" xmi:id="MessageListenerService_1183122130078">
        <threadPool xmi:id="ThreadPool_1183122130086" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="Message.Listener.Pool"/>
      </services>
      <cacheSettings xmi:id="EJBCache_1183122130078" cleanupInterval="3000" cacheSize="2053"/>
      <timerSettings xmi:id="EJBTimer_1183122130078" datasourceJNDIName="jdbc/DefaultEJBTimerDataSource" tablePrefix="EJBTIMER_" pollInterval="300" numAlarmThreads="1"/>
    </components>
    <components xmi:type="portletcontainer:PortletContainer" xmi:id="PortletContainer_1183122130078"/>
    <components xmi:type="applicationserver.sipcontainer:SIPContainer" xmi:id="SIPContainer_1183122130078" name="" maxAppSessions="120000" maxMessageRate="5000" maxDispatchQueueSize="3200" maxResponseTime="0" statAveragePeriod="1000" statUpdateRange="10000">
      <stack xmi:id="Stack_1183122130078">
        <timers xmi:id="Timers_1183122130078"/>
      </stack>
    </components>
    <webserverPluginSettings xmi:id="WebserverPluginSettings_1183122130078" WaitForContinue="false" ConnectTimeout="0" MaxConnections="-1" ExtendedHandshake="false" ServerIOTimeout="0"/>
  </components>
  <processDefinitions xmi:type="processexec:JavaProcessDef" xmi:id="JavaProcessDef_1183122130078" workingDirectory="${USER_INSTALL_ROOT}" executableTargetKind="JAVA_CLASS" executableTarget="com.ibm.ws.runtime.WsServer">
    <execution xmi:id="ProcessExecution_1183122130078" processPriority="20" runAsUser="" runAsGroup=""/>
    <ioRedirect xmi:id="OutputRedirect_1183122130078" stdoutFilename="${SERVER_LOG_ROOT}/native_stdout.log" stderrFilename="${SERVER_LOG_ROOT}/native_stderr.log"/>
    <monitoringPolicy xmi:id="MonitoringPolicy_1183122130078" maximumStartupAttempts="3" pingInterval="60" pingTimeout="300" autoRestart="true" nodeRestartState="STOPPED"/>
    <jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7778" genericJvmArguments="">
      <systemProperties xmi:id="Property_1" name="com.ibm.security.jgss.debug" value="off" required="false"/>
      <systemProperties xmi:id="Property_2" name="com.ibm.security.krb5.Krb5Debug" value="off" required="false"/>
    </jvmEntries>
  </processDefinitions>
</process:Server>
                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/dbserver/                                                              0000777 0000000 0000000 00000000000 11524351314 017012  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/                                             0000777 0000000 0000000 00000000000 11524351333 022264  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/proc/                                        0000777 0000000 0000000 00000000000 11524351332 023226  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/proc/cpuinfo                                 0000644 0000000 0000000 00000001017 11524351332 024607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/dbserver/VM_configuration/proc/mounts                                  0000644 0000000 0000000 00000001357 11524351332 024500  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1020708k,nr_inodes=255177,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1264,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1264,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/dbserver/VM_configuration/proc/swaps                                   0000644 0000000 0000000 00000000150 11524351332 024276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	26120	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/dbserver/VM_configuration/proc/devices                                 0000644 0000000 0000000 00000000567 11524351332 024577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile14/dbserver/VM_configuration/proc/modules                                 0000644 0000000 0000000 00000002621 11524351332 024616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 38 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
sr_mod 16162 0 - Live 0xffffffffa0064000
cdrom 39769 1 sr_mod, Live 0xffffffffa0053000
virtio_blk 5087 5 - Live 0xffffffffa004c000
pata_acpi 3667 0 - Live 0xffffffffa0046000
ata_generic 3611 0 - Live 0xffffffffa0040000
ata_piix 22588 0 - Live 0xffffffffa0034000
virtio_pci 6733 0 - Live 0xffffffffa002c000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0025000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile14/dbserver/VM_configuration/proc/partitions                              0000644 0000000 0000000 00000000260 11524351332 025337  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile14/dbserver/VM_configuration/proc/meminfo                                 0000644 0000000 0000000 00000002222 11524351332 024575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2055756 kB
MemFree:           61472 kB
Buffers:           15872 kB
Cached:           154756 kB
SwapCached:         2244 kB
Active:           753344 kB
Inactive:         289432 kB
Active(anon):     696808 kB
Inactive(anon):   234212 kB
Active(file):      56536 kB
Inactive(file):    55220 kB
Unevictable:        3228 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2022012 kB
Dirty:               240 kB
Writeback:             0 kB
AnonPages:        874540 kB
Mapped:           101920 kB
Shmem:             54280 kB
Slab:              69092 kB
SReclaimable:      14100 kB
SUnreclaim:        54992 kB
KernelStack:        2144 kB
PageTables:         8920 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2649884 kB
Committed_AS:    3483884 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       11532 kB
VmallocChunk:   34359719476 kB
HardwareCorrupted:     0 kB
AnonHugePages:    581632 kB
HugePages_Total:     416
HugePages_Free:       74
HugePages_Rsvd:       49
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2088960 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/dbserver/VM_configuration/root/                                        0000777 0000000 0000000 00000000000 11524351332 023246  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/root/convert_to_vf.sh                        0000755 0000000 0000000 00000001135 11524351332 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/lspci.txt                                    0000644 0000000 0000000 00000001211 11524351332 024125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/dbserver/VM_configuration/df.txt                                       0000644 0000000 0000000 00000000401 11524351315 023405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916  10363980   2416956  82% /
tmpfs                  1027876         0   1027876   0% /dev/shm
/dev/vdb1             20642412  11291292   8302548  58% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/dbserver/VM_configuration/mount.txt                                    0000644 0000000 0000000 00000000612 11524351332 024161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile14/dbserver/VM_configuration/etc/                                         0000777 0000000 0000000 00000000000 11524351331 023035  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/                                    0000777 0000000 0000000 00000000000 11524351324 023665  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/                              0000777 0000000 0000000 00000000000 11524351331 024574  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests             0000755 0000000 0000000 00000017172 11524351324 027770  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                    0000755 0000000 0000000 00000004325 11524351324 026406  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524351325 027175  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                   0000755 0000000 0000000 00000012327 11524351326 026577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                  0000755 0000000 0000000 00000005222 11524351330 026755  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S99firstboot                  0000755 0000000 0000000 00000005341 11524351331 027041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                       0000755 0000000 0000000 00000010671 11524351331 025761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                      0000755 0000000 0000000 00000006364 11524351325 026136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                  0000755 0000000 0000000 00000020716 11524351326 026707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                       0000755 0000000 0000000 00000004731 11524351326 025766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon               0000755 0000000 0000000 00000004754 11524351324 027340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                  0000755 0000000 0000000 00000001364 11524351331 027000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                      0000755 0000000 0000000 00000003027 11524351326 026124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                     0000755 0000000 0000000 00000006743 11524351331 026321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                      0000755 0000000 0000000 00000010777 11524351326 026131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                 0000755 0000000 0000000 00000004230 11524351330 027141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                      0000755 0000000 0000000 00000006302 11524351326 026100  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                        0000755 0000000 0000000 00000004236 11524351331 025614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                    0000755 0000000 0000000 00000004031 11524351327 026431  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                 0000755 0000000 0000000 00000003521 11524351327 027114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                    0000755 0000000 0000000 00000006050 11524351330 026460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                    0000755 0000000 0000000 00000002363 11524351327 026536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                 0000755 0000000 0000000 00000004054 11524351324 027144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                  0000755 0000000 0000000 00000005013 11524351327 027023  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                      0000755 0000000 0000000 00000003213 11524351326 026117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                    0000755 0000000 0000000 00000003512 11524351326 026451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                       0000755 0000000 0000000 00000003603 11524351326 025757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                     0000755 0000000 0000000 00000011277 11524351325 026303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S10network                    0000755 0000000 0000000 00000014466 11524351327 026513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                    0000755 0000000 0000000 00000004326 11524351327 026520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                     0000755 0000000 0000000 00000006462 11524351327 026272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                      0000755 0000000 0000000 00000027662 11524351330 026137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                       0000755 0000000 0000000 00000006445 11524351325 025661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                  0000755 0000000 0000000 00000003245 11524351330 026744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K60crond                      0000755 0000000 0000000 00000005445 11524351325 026117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                      0000755 0000000 0000000 00000005522 11524351324 026120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl              0000755 0000000 0000000 00000002221 11524351327 027611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                  0000755 0000000 0000000 00000004010 11524351325 026760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                        0000755 0000000 0000000 00000013536 11524351325 025600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                       0000755 0000000 0000000 00000004723 11524351330 025740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                     0000755 0000000 0000000 00000003024 11524351325 026251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                      0000755 0000000 0000000 00000003275 11524351330 026077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                   0000755 0000000 0000000 00000025442 11524351327 026631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                  0000755 0000000 0000000 00000004370 11524351330 026742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S99local                      0000755 0000000 0000000 00000000334 11524351331 026115  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                    0000755 0000000 0000000 00000006675 11524351327 026470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                 0000755 0000000 0000000 00000005650 11524351325 027160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor               0000555 0000000 0000000 00000004612 11524351327 027356  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                     0000755 0000000 0000000 00000007234 11524351330 026321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                   0000755 0000000 0000000 00000003433 11524351331 026653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                     0000755 0000000 0000000 00000005672 11524351324 026300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                      0000755 0000000 0000000 00000003254 11524351331 026113  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                  0000755 0000000 0000000 00000005063 11524351330 026766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                      0000755 0000000 0000000 00000012432 11524351330 026130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                    0000755 0000000 0000000 00000007414 11524351325 026501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                   0000755 0000000 0000000 00000020557 11524351326 026624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond                0000755 0000000 0000000 00000003427 11524351326 027351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/rc3.d/K05atd                        0000755 0000000 0000000 00000004112 11524351325 025547  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/                             0000777 0000000 0000000 00000000000 11524351324 025052  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/network                      0000755 0000000 0000000 00000014466 11524351321 026475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/gfs2                         0000755 0000000 0000000 00000006445 11524351317 025650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/sysstat                      0000755 0000000 0000000 00000002363 11524351324 026512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/saslauthd                    0000755 0000000 0000000 00000004010 11524351323 026756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/messagebus                   0000755 0000000 0000000 00000004230 11524351321 027126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/autobench                    0000755 0000000 0000000 00000005063 11524351316 026751  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/atd                          0000755 0000000 0000000 00000004112 11524351316 025543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/mcelogd                      0000755 0000000 0000000 00000003535 11524351321 026411  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/auditd                       0000755 0000000 0000000 00000006462 11524351316 026257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/certmonger                   0000755 0000000 0000000 00000004054 11524351317 027146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/irqbalance                   0000755 0000000 0000000 00000003521 11524351320 027072  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/acpid                        0000755 0000000 0000000 00000003275 11524351316 026064  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/nscd                         0000755 0000000 0000000 00000004723 11524351321 025726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                    0000755 0000000 0000000 00000005222 11524351323 026737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/nfs                          0000755 0000000 0000000 00000013536 11524351321 025567  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/sssd                         0000755 0000000 0000000 00000004731 11524351323 025754  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/crond                        0000755 0000000 0000000 00000005445 11524351317 026113  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/ip6tables                    0000755 0000000 0000000 00000020716 11524351320 026667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/firstboot                    0000755 0000000 0000000 00000005341 11524351317 027014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/autofs                       0000755 0000000 0000000 00000007234 11524351316 026304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/sshd                         0000755 0000000 0000000 00000010671 11524351323 025741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/ksm                          0000755 0000000 0000000 00000004236 11524351320 025567  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/libvirt-guests               0000755 0000000 0000000 00000017172 11524351320 027763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                 0000755 0000000 0000000 00000004754 11524351316 027340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/ypbind                       0000755 0000000 0000000 00000011277 11524351324 026271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/psacct                       0000755 0000000 0000000 00000003024 11524351322 026246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/xinetd                       0000755 0000000 0000000 00000006743 11524351324 026301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/nfslock                      0000755 0000000 0000000 00000006675 11524351321 026446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/cgred                        0000755 0000000 0000000 00000006302 11524351317 026063  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/migrateip                    0000755 0000000 0000000 00000001364 11524351321 026756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/udev-post                    0000755 0000000 0000000 00000004370 11524351324 026726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/haldaemon                    0000755 0000000 0000000 00000003245 11524351317 026732  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/ipsec                        0000755 0000000 0000000 00000010777 11524351320 026107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/rpcbind                      0000755 0000000 0000000 00000004031 11524351323 026412  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/rhnsd                        0000755 0000000 0000000 00000005522 11524351322 026114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/functions                    0000644 0000000 0000000 00000042767 11524351317 027023  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/kdump                        0000755 0000000 0000000 00000027662 11524351320 026125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/postfix                      0000755 0000000 0000000 00000007414 11524351322 026474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/iptables                     0000755 0000000 0000000 00000020557 11524351320 026604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/rsyslog                      0000755 0000000 0000000 00000004326 11524351323 026502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/netconsole                   0000755 0000000 0000000 00000005650 11524351321 027150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/rpcgssd                      0000755 0000000 0000000 00000006050 11524351323 026441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/abrtd                        0000755 0000000 0000000 00000003254 11524351316 026075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                 0000555 0000000 0000000 00000004612 11524351320 027336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/halt                         0000755 0000000 0000000 00000012723 11524351317 025733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/cgconfig                     0000755 0000000 0000000 00000012327 11524351317 026562  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/single                       0000755 0000000 0000000 00000001207 11524351323 026254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/mdmonitor                    0000755 0000000 0000000 00000005013 11524351321 027000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/restorecond                  0000755 0000000 0000000 00000003427 11524351322 027327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/cpuspeed                     0000755 0000000 0000000 00000025442 11524351317 026615  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/netfs                        0000755 0000000 0000000 00000012432 11524351321 026112  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                   0000755 0000000 0000000 00000006014 11524351323 027155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/oddjobd                      0000755 0000000 0000000 00000004325 11524351322 026403  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/ksmtuned                     0000755 0000000 0000000 00000003433 11524351320 026625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/sandbox                      0000755 0000000 0000000 00000003242 11524351323 026432  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/killall                      0000755 0000000 0000000 00000001214 11524351320 026412  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/rdisc                        0000755 0000000 0000000 00000003027 11524351322 026100  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/httpd                        0000755 0000000 0000000 00000006364 11524351317 026132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/ntpd                         0000755 0000000 0000000 00000003603 11524351322 025741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/smartd                       0000755 0000000 0000000 00000005672 11524351323 026277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/nslcd                        0000755 0000000 0000000 00000003213 11524351322 026074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/ntpdate                      0000755 0000000 0000000 00000003512 11524351322 026432  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile14/dbserver/VM_configuration/etc/rc.d/init.d/microcode_ctl                0000755 0000000 0000000 00000002221 11524351321 027574  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/dbserver/VM_configuration/etc/hosts                                    0000644 0000000 0000000 00000000267 11524351315 024123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/dbserver/VM_configuration/etc/iproute2/                                0000777 0000000 0000000 00000000000 11524351316 024611  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/etc/iproute2/rt_dsfield                      0000644 0000000 0000000 00000000672 11524351315 026653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile14/dbserver/VM_configuration/etc/iproute2/rt_realms                       0000644 0000000 0000000 00000000160 11524351315 026514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile14/dbserver/VM_configuration/etc/iproute2/rt_scopes                       0000644 0000000 0000000 00000000134 11524351316 026527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/dbserver/VM_configuration/etc/iproute2/ematch_map                      0000644 0000000 0000000 00000000073 11524351315 026625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/dbserver/VM_configuration/etc/iproute2/rt_tables                       0000644 0000000 0000000 00000000127 11524351316 026507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/dbserver/VM_configuration/etc/iproute2/rt_protos                       0000644 0000000 0000000 00000000475 11524351315 026570  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/etc/nsswitch.conf                            0000644 0000000 0000000 00000003230 11524351316 025543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/dbserver/VM_configuration/etc/fstab                                    0000644 0000000 0000000 00000001603 11524351315 024055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile14/dbserver/VM_configuration/etc/sysctl.conf                              0000644 0000000 0000000 00000001466 11524351331 025230  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile14/dbserver/VM_configuration/etc/inittab                                  0000644 0000000 0000000 00000001714 11524351315 024413  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
fmc:2345:respawn:/data-disk/opt/ibm/db2/V9.7/bin/db2fmcd #DB2 Fault Monitor Coordinator
                                                    Virtual_Configuration/tile14/dbserver/VM_configuration/var/                                         0000777 0000000 0000000 00000000000 11524351333 023054  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/var/log/                                     0000777 0000000 0000000 00000000000 11524351333 023635  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/var/log/dmesg                                0000644 0000000 0000000 00000043426 11524351333 024664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0 hugepages=416
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007fffd000 (usable)
 BIOS-e820: 000000007fffd000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x7fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007fffd000
 0000000000 - 007fe00000 page 2M
 007fe00000 - 007fffd000 page 4k
kernel direct mapping tables up to 7fffd000 @ 8000-c000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000007fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000007ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000007fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000007ffffe00 00040
ACPI: SSDT 000000007fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000007fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000007fffd000
Bootmem setup node 0 0000000000000000-000000007fffd000
  NODE_DATA [000000000000a000 - 000000000003dfff]
  bootmap [000000000003e000 -  000000000004dfff] pages 10
(7 early reservations) ==> bootmem [0000000000 - 007fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000a000]          PGTABLE ==> [0000008000 - 000000a000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0001bfffff] PMD -> [ffff880002200000-ffff880003dfffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0007fffd
On node 0 totalpages: 524182
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3831 pages, LIFO batch:0
  DMA32 zone: 7112 pages used for memmap
  DMA32 zone: 513077 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 80000000 (gap: 80000000:7ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 516908
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0 hugepages=416
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2041384k/2097140k available (4935k kernel code, 412k absent, 55344k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 20971520 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116116.316:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 416 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 4012
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:55 UTC (1297116115)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vdb: vdb1
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
b2:5d:0d:4a:f7:ae
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                          Virtual_Configuration/tile14/dbserver/VM_configuration/boot/                                        0000777 0000000 0000000 00000000000 11524351314 023226  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/boot/grub/                                   0000777 0000000 0000000 00000000000 11524351314 024165  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/VM_configuration/boot/grub/grub.conf                          0000644 0000000 0000000 00000001457 11524351314 025776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0 hugepages=416
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                 Virtual_Configuration/tile14/dbserver/VM_configuration/rpmpkgs.txt                                  0000644 0000000 0000000 00000076554 11524351333 024525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
scrub-2.2-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
xvattr-1.3-18.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
python-slip-0.2.11-1.el6.noarch
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
python-meh-0.9-1.el6.noarch
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
libstdc++-4.4.4-13.el6.i686
vte-0.25.1-5.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
glx-utils-7.7-2.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
yelp-2.28.1-8.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
gnome-terminal-2.31.3-4.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
cracklib-python-2.8.16-2.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
system-config-users-docs-1.0.8-1.el6.noarch
report-gtk-0.18-7.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
xorg-x11-xkb-utils-7.4-6.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
report-newt-0.18-7.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
zenity-2.28.0-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
fuse-2.8.3-1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
seabios-0.5.1-3.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                    Virtual_Configuration/tile14/dbserver/VM_configuration/ifconfig.txt                                 0000644 0000000 0000000 00000002326 11524351331 024606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:51  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:264 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:24291 (23.7 KiB)  TX bytes:897 (897.0 b)

eth1      Link encap:Ethernet  HWaddr B2:5D:0D:4A:F7:AE  
          inet addr:10.1.217.81  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::b05d:dff:fe4a:f7ae/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9444202 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9247107 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1939292990 (1.8 GiB)  TX bytes:3727990330 (3.4 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:763 errors:0 dropped:0 overruns:0 frame:0
          TX packets:763 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:74546 (72.7 KiB)  TX bytes:74546 (72.7 KiB)

                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile14/dbserver/VM_configuration/chkconfig.txt                                0000644 0000000 0000000 00000006625 11524351315 024765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
firstboot      	0:off	1:off	2:off	3:on	4:off	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                           Virtual_Configuration/tile14/dbserver/Software_Configuration/                                       0000777 0000000 0000000 00000000000 11524351314 023473  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/dbserver/Software_Configuration/profile.env                            0000644 0000000 0000000 00000000116 11524351314 025637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   DB2_LARGE_PAGE_MEM='DB'
DB2_PINNED_BP='ON'
DB2COMM='TCPIP'
DB2AUTOSTART='YES'
                                                                                                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/dbserver/Software_Configuration/db2nodes.cfg                           0000444 0000000 0000000 00000000016 11524351314 025643  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0 tb3-dbt14 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/webserver/                                                             0000777 0000000 0000000 00000000000 11524351413 017202  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/                                            0000777 0000000 0000000 00000000000 11524351432 022454  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/proc/                                       0000777 0000000 0000000 00000000000 11524351431 023416  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/proc/cpuinfo                                0000644 0000000 0000000 00000002030 11524351431 024773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/webserver/VM_configuration/proc/mounts                                 0000644 0000000 0000000 00000001754 11524351431 024671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=5574592k,nr_inodes=1393648,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1429,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1429,timeout=300,minproto=5,maxproto=5,indirect 0 0
tb3-infrat14:/support-download /var/www/html/support/downloads nfs rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.1.217.83,mountvers=3,mountport=58075,mountproto=udp,addr=10.1.217.83 0 0
                    Virtual_Configuration/tile14/webserver/VM_configuration/proc/swaps                                  0000644 0000000 0000000 00000000144 11524351431 024471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/webserver/VM_configuration/proc/devices                                0000644 0000000 0000000 00000000567 11524351431 024767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile14/webserver/VM_configuration/proc/modules                                0000644 0000000 0000000 00000003214 11524351431 025005  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   nfs 348522 1 - Live 0xffffffffa026d000
lockd 73984 1 nfs, Live 0xffffffffa01a9000
fscache 46761 1 nfs, Live 0xffffffffa013f000
nfs_acl 2677 1 nfs, Live 0xffffffffa001b000
auth_rpcgss 44862 1 nfs, Live 0xffffffffa0132000
bridge 74113 0 - Live 0xffffffffa0258000
stp 2107 1 bridge, Live 0xffffffffa0252000
llc 5608 2 bridge,stp, Live 0xffffffffa024a000
autofs4 27683 3 - Live 0xffffffffa023d000
sunrpc 241630 16 nfs,lockd,nfs_acl,auth_rpcgss, Live 0xffffffffa01ea000
ipv6 321209 161 - Live 0xffffffffa0158000
dm_mirror 14003 0 - Live 0xffffffffa012c000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0127000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0122000
ppdev 8695 0 - Live 0xffffffffa011d000
parport_pc 22944 0 - Live 0xffffffffa00e9000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa0111000
sg 30186 0 - Live 0xffffffffa00df000
virtio_net 15665 0 - Live 0xffffffffa0015000
ixgbevf 47200 0 - Live 0xffffffffa0103000
i2c_piix4 12574 0 - Live 0xffffffffa00fd000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00f3000
ext4 353979 2 - Live 0xffffffffa0086000
mbcache 7918 1 ext4, Live 0xffffffffa0026000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/webserver/VM_configuration/proc/partitions                             0000644 0000000 0000000 00000000260 11524351431 025527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20970496 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile14/webserver/VM_configuration/proc/meminfo                                0000644 0000000 0000000 00000002222 11524351431 024765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:       11163520 kB
MemFree:         1338928 kB
Buffers:            6612 kB
Cached:          9115836 kB
SwapCached:            0 kB
Active:          1567724 kB
Inactive:        7832896 kB
Active(anon):     197536 kB
Inactive(anon):    83728 kB
Active(file):    1370188 kB
Inactive(file):  7749168 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               184 kB
Writeback:             0 kB
AnonPages:        278276 kB
Mapped:            21956 kB
Shmem:              2988 kB
Slab:             316920 kB
SReclaimable:      86908 kB
SUnreclaim:       230012 kB
KernelStack:        2048 kB
PageTables:        55908 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     7629752 kB
Committed_AS:     938876 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       40792 kB
VmallocChunk:   34359693584 kB
HardwareCorrupted:     0 kB
AnonHugePages:     32768 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:    11526144 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/webserver/VM_configuration/root/                                       0000777 0000000 0000000 00000000000 11524351432 023437  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/root/convert_to_vf.sh                       0000755 0000000 0000000 00000001135 11524351432 026647  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/lspci.txt                                   0000644 0000000 0000000 00000001211 11524351431 024315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/webserver/VM_configuration/df.txt                                      0000644 0000000 0000000 00000000570 11524351414 023604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3892836   8888100  31% /
tmpfs                  5581760         0   5581760   0% /dev/shm
/dev/vdb1             20641404    970016  18622864   5% /data-disk
tb3-infrat14:/support-download
                      61923456  33417216  25360768  57% /var/www/html/support/downloads
                                                                                                                                        Virtual_Configuration/tile14/webserver/VM_configuration/mount.txt                                   0000644 0000000 0000000 00000000753 11524351431 024357  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
tb3-infrat14:/support-download on /var/www/html/support/downloads type nfs (rw,addr=10.1.217.83)
                     Virtual_Configuration/tile14/webserver/VM_configuration/etc/                                        0000777 0000000 0000000 00000000000 11524351430 023225  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/                                   0000777 0000000 0000000 00000000000 11524351423 024055  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/                             0000777 0000000 0000000 00000000000 11524351430 024764  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests            0000755 0000000 0000000 00000017172 11524351423 030160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                   0000755 0000000 0000000 00000004325 11524351423 026576  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                0000755 0000000 0000000 00000006014 11524351424 027365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                  0000755 0000000 0000000 00000012327 11524351425 026767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                 0000755 0000000 0000000 00000005222 11524351426 027153  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                      0000755 0000000 0000000 00000010671 11524351430 026151  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                     0000755 0000000 0000000 00000006364 11524351424 026326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                 0000755 0000000 0000000 00000020716 11524351425 027077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                      0000755 0000000 0000000 00000004731 11524351425 026156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon              0000755 0000000 0000000 00000004754 11524351423 027530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                 0000755 0000000 0000000 00000001364 11524351430 027170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                     0000755 0000000 0000000 00000003027 11524351425 026314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                    0000755 0000000 0000000 00000006743 11524351430 026511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                     0000755 0000000 0000000 00000010777 11524351425 026321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                0000755 0000000 0000000 00000004230 11524351427 027340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                     0000755 0000000 0000000 00000006302 11524351425 026270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                       0000755 0000000 0000000 00000004236 11524351430 026004  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                   0000755 0000000 0000000 00000004031 11524351426 026621  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                0000755 0000000 0000000 00000003521 11524351426 027304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                   0000755 0000000 0000000 00000006050 11524351427 026657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                   0000755 0000000 0000000 00000002363 11524351425 026725  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                0000755 0000000 0000000 00000004054 11524351423 027334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                 0000755 0000000 0000000 00000005013 11524351426 027213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                     0000755 0000000 0000000 00000003213 11524351425 026307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                   0000755 0000000 0000000 00000003512 11524351424 026640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                      0000755 0000000 0000000 00000003603 11524351424 026146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                    0000755 0000000 0000000 00000011277 11524351424 026473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S10network                   0000755 0000000 0000000 00000014466 11524351426 026703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                   0000755 0000000 0000000 00000004326 11524351426 026710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                    0000755 0000000 0000000 00000006462 11524351426 026462  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                     0000755 0000000 0000000 00000027662 11524351427 026336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                      0000755 0000000 0000000 00000006445 11524351424 026051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                 0000755 0000000 0000000 00000003245 11524351427 027143  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K60crond                     0000755 0000000 0000000 00000005445 11524351424 026307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                     0000755 0000000 0000000 00000005522 11524351423 026310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl             0000755 0000000 0000000 00000002221 11524351426 030001  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                 0000755 0000000 0000000 00000004010 11524351423 027147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                       0000755 0000000 0000000 00000013536 11524351424 025770  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                      0000755 0000000 0000000 00000004723 11524351427 026137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                    0000755 0000000 0000000 00000003024 11524351423 026440  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                     0000755 0000000 0000000 00000003275 11524351427 026276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                  0000755 0000000 0000000 00000025442 11524351426 027021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                 0000755 0000000 0000000 00000004370 11524351427 027141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S99local                     0000755 0000000 0000000 00000000334 11524351430 026305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                   0000755 0000000 0000000 00000006675 11524351426 026660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                0000755 0000000 0000000 00000005650 11524351424 027350  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor              0000555 0000000 0000000 00000004612 11524351426 027546  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                    0000755 0000000 0000000 00000007234 11524351427 026520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                  0000755 0000000 0000000 00000003433 11524351430 027043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                    0000755 0000000 0000000 00000005672 11524351423 026470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                     0000755 0000000 0000000 00000003254 11524351430 026303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                 0000755 0000000 0000000 00000005063 11524351430 027157  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                     0000755 0000000 0000000 00000012432 11524351427 026327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                   0000755 0000000 0000000 00000007414 11524351424 026671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                  0000755 0000000 0000000 00000020557 11524351425 027014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond               0000755 0000000 0000000 00000003427 11524351425 027541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/rc3.d/K05atd                       0000755 0000000 0000000 00000004112 11524351423 025736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/                            0000777 0000000 0000000 00000000000 11524351422 025241  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/network                     0000755 0000000 0000000 00000014466 11524351420 026665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/gfs2                        0000755 0000000 0000000 00000006445 11524351416 026040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/sysstat                     0000755 0000000 0000000 00000002363 11524351422 026701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/saslauthd                   0000755 0000000 0000000 00000004010 11524351422 027146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/messagebus                  0000755 0000000 0000000 00000004230 11524351420 027316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/autobench                   0000755 0000000 0000000 00000005063 11524351415 027141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/atd                         0000755 0000000 0000000 00000004112 11524351415 025733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/mcelogd                     0000755 0000000 0000000 00000003535 11524351417 026607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/auditd                      0000755 0000000 0000000 00000006462 11524351415 026447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/certmonger                  0000755 0000000 0000000 00000004054 11524351416 027336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/irqbalance                  0000755 0000000 0000000 00000003521 11524351417 027271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/acpid                       0000755 0000000 0000000 00000003275 11524351415 026254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/nscd                        0000755 0000000 0000000 00000004723 11524351420 026116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                   0000755 0000000 0000000 00000005222 11524351421 027126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/nfs                         0000755 0000000 0000000 00000013536 11524351420 025757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/sssd                        0000755 0000000 0000000 00000004731 11524351422 026144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/crond                       0000755 0000000 0000000 00000005445 11524351416 026303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/ip6tables                   0000755 0000000 0000000 00000020716 11524351416 027065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/autofs                      0000755 0000000 0000000 00000007234 11524351415 026474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/sshd                        0000755 0000000 0000000 00000010671 11524351422 026131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/ksm                         0000755 0000000 0000000 00000004236 11524351417 025766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/libvirt-guests              0000755 0000000 0000000 00000017172 11524351417 030162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                0000755 0000000 0000000 00000004754 11524351415 027530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/ypbind                      0000755 0000000 0000000 00000011277 11524351423 026461  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/psacct                      0000755 0000000 0000000 00000003024 11524351421 026436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/xinetd                      0000755 0000000 0000000 00000006743 11524351422 026470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/nfslock                     0000755 0000000 0000000 00000006675 11524351420 026636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/cgred                       0000755 0000000 0000000 00000006302 11524351416 026253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/migrateip                   0000755 0000000 0000000 00000001364 11524351420 027146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/udev-post                   0000755 0000000 0000000 00000004370 11524351422 027115  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/haldaemon                   0000755 0000000 0000000 00000003245 11524351416 027122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/ipsec                       0000755 0000000 0000000 00000010777 11524351417 026306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/rpcbind                     0000755 0000000 0000000 00000004031 11524351421 026601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/rhnsd                       0000755 0000000 0000000 00000005522 11524351421 026304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/functions                   0000644 0000000 0000000 00000042767 11524351416 027213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/kdump                       0000755 0000000 0000000 00000027662 11524351417 026324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/postfix                     0000755 0000000 0000000 00000007414 11524351421 026664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/iptables                    0000755 0000000 0000000 00000020557 11524351417 027003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/rsyslog                     0000755 0000000 0000000 00000004326 11524351422 026672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/netconsole                  0000755 0000000 0000000 00000005650 11524351420 027340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/rpcgssd                     0000755 0000000 0000000 00000006050 11524351421 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/abrtd                       0000755 0000000 0000000 00000003254 11524351415 026265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                0000555 0000000 0000000 00000004612 11524351417 027535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/halt                        0000755 0000000 0000000 00000012723 11524351416 026123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/cgconfig                    0000755 0000000 0000000 00000012327 11524351416 026752  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/single                      0000755 0000000 0000000 00000001207 11524351422 026444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/mdmonitor                   0000755 0000000 0000000 00000005013 11524351420 027170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/restorecond                 0000755 0000000 0000000 00000003427 11524351421 027517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/cpuspeed                    0000755 0000000 0000000 00000025442 11524351416 027005  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/netfs                       0000755 0000000 0000000 00000012432 11524351420 026302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                  0000755 0000000 0000000 00000006014 11524351421 027344  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/oddjobd                     0000755 0000000 0000000 00000004325 11524351421 026573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/ksmtuned                    0000755 0000000 0000000 00000003433 11524351417 027024  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/sandbox                     0000755 0000000 0000000 00000003242 11524351422 026622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/killall                     0000755 0000000 0000000 00000001214 11524351417 026611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/rdisc                       0000755 0000000 0000000 00000003027 11524351421 026270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/httpd                       0000755 0000000 0000000 00000006364 11524351416 026322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/ntpd                        0000755 0000000 0000000 00000003603 11524351420 026130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/smartd                      0000755 0000000 0000000 00000005672 11524351422 026467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/nslcd                       0000755 0000000 0000000 00000003213 11524351420 026263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/ntpdate                     0000755 0000000 0000000 00000003512 11524351421 026622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile14/webserver/VM_configuration/etc/rc.d/init.d/microcode_ctl               0000755 0000000 0000000 00000002221 11524351420 027764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/webserver/VM_configuration/etc/hosts                                   0000644 0000000 0000000 00000000236 11524351414 024307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/webserver/VM_configuration/etc/iproute2/                               0000777 0000000 0000000 00000000000 11524351414 025000  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/etc/iproute2/rt_dsfield                     0000644 0000000 0000000 00000000672 11524351414 027043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile14/webserver/VM_configuration/etc/iproute2/rt_realms                      0000644 0000000 0000000 00000000160 11524351414 026704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile14/webserver/VM_configuration/etc/iproute2/rt_scopes                      0000644 0000000 0000000 00000000134 11524351414 026716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/webserver/VM_configuration/etc/iproute2/ematch_map                     0000644 0000000 0000000 00000000073 11524351414 027015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/webserver/VM_configuration/etc/iproute2/rt_tables                      0000644 0000000 0000000 00000000127 11524351415 026677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/webserver/VM_configuration/etc/iproute2/rt_protos                      0000644 0000000 0000000 00000000475 11524351414 026760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/etc/nsswitch.conf                           0000644 0000000 0000000 00000003230 11524351415 025733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/webserver/VM_configuration/etc/fstab                                   0000644 0000000 0000000 00000001603 11524351414 024245  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile14/webserver/VM_configuration/etc/sysctl.conf                             0000644 0000000 0000000 00000001466 11524351430 025420  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile14/webserver/VM_configuration/etc/inittab                                 0000644 0000000 0000000 00000001564 11524351414 024606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile14/webserver/VM_configuration/var/                                        0000777 0000000 0000000 00000000000 11524351432 023244  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/var/log/                                    0000777 0000000 0000000 00000000000 11524351432 024025  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/var/log/dmesg                               0000644 0000000 0000000 00000046142 11524351432 025052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
 BIOS-e820: 0000000100000000 - 00000002e0000000 (usable)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x2e0000 max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
init_memory_mapping: 0000000100000000-00000002e0000000
 0100000000 - 02e0000000 page 2M
kernel direct mapping tables up to 2e0000000 @ c000-19000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffddc0 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffdf0 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf30 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffd80 00040
ACPI: SSDT 00000000dfffdee0 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffddf0 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000002e0000000
Bootmem setup node 0 0000000000000000-00000002e0000000
  NODE_DATA [0000000000014000 - 0000000000047fff]
  bootmap [0000000000100000 -  000000000015bfff] pages 5c
(8 early reservations) ==> bootmem [0000000000 - 02e0000000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
  #7 [000000c000 - 0000014000]          PGTABLE ==> [000000c000 - 0000014000]
found SMP MP-table at [ffff8800000f8120] f8120
Reserving 129MB of memory at 32MB for crashkernel (System RAM: 11776MB)
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea000a1fffff] PMD -> [ffff880028600000-ffff8800321fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x002e0000
Movable zone start PFN for each node
early_node_map[3] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x000dfffd
    0: 0x00100000 -> 0x002e0000
On node 0 totalpages: 2883478
  DMA zone: 56 pages used for memmap
  DMA zone: 116 pages reserved
  DMA zone: 3821 pages, LIFO batch:0
  DMA32 zone: 14280 pages used for memmap
  DMA32 zone: 899125 pages, LIFO batch:31
  Normal zone: 26880 pages used for memmap
  Normal zone: 1939200 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
PM: Registered nosave memory: 00000000dfffd000 - 00000000e0000000
PM: Registered nosave memory: 00000000e0000000 - 00000000fffbc000
PM: Registered nosave memory: 00000000fffbc000 - 0000000100000000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880028200000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:28216901, primary cpu clock
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 2842146
Policy zone: Normal
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=129M@0M elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing 64MB software IO TLB between ffff880020000000 - ffff880024000000
software IO TLB at phys 0x20000000 - 0x24000000
Memory: 11149184k/12058624k available (4935k kernel code, 524712k absent, 384728k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 115343360 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes)
Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:28316901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (13867.27 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 524288 (order: 10, 4194304 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116141.300:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 21801
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:02:20 UTC (1297116140)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
76:d4:ee:f2:00:8c
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/webserver/VM_configuration/boot/                                       0000777 0000000 0000000 00000000000 11524351413 023416  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/boot/grub/                                  0000777 0000000 0000000 00000000000 11524351413 024355  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/boot/grub/grub.conf                         0000644 0000000 0000000 00000002217 11524351413 026161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/webserver/VM_configuration/rpmpkgs.txt                                 0000644 0000000 0000000 00000067255 11524351432 024713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
php-pecl-apc-3.1.3p1-1.2.el6.1.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
php-pear-1.9.0-2.el6.noarch
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/VM_configuration/ifconfig.txt                                0000644 0000000 0000000 00000002347 11524351431 025002  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:4F  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:307 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:29291 (28.6 KiB)  TX bytes:828 (828.0 b)

eth1      Link encap:Ethernet  HWaddr 76:D4:EE:F2:00:8C  
          inet addr:10.1.217.79  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::74d4:eeff:fef2:8c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:189957763 errors:0 dropped:0 overruns:0 frame:0
          TX packets:285904782 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:173784626325 (161.8 GiB)  TX bytes:325023646222 (302.7 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:16160 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16160 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1677717 (1.5 MiB)  TX bytes:1677717 (1.5 MiB)

                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/webserver/VM_configuration/chkconfig.txt                               0000644 0000000 0000000 00000006535 11524351414 025155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile14/webserver/Software_Configuration/                                      0000777 0000000 0000000 00000000000 11524351412 023662  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/Software_Configuration/httpd/                                0000777 0000000 0000000 00000000000 11524351412 025005  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/Software_Configuration/httpd/conf.d/                         0000777 0000000 0000000 00000000000 11524351412 026154  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/Software_Configuration/httpd/conf.d/manual.conf              0000644 0000000 0000000 00000000447 11524351412 030301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This configuration file allows the manual to be accessed at 
# http://localhost/manual/
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"

<Directory "/var/www/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
                                                                                                                                                                                                                         Virtual_Configuration/tile14/webserver/Software_Configuration/httpd/conf.d/php.conf                 0000644 0000000 0000000 00000001242 11524351412 027605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/webserver/Software_Configuration/httpd/conf.d/welcome.conf             0000644 0000000 0000000 00000000453 11524351412 030454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # 
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

                                                                                                                                                                                                                     Virtual_Configuration/tile14/webserver/Software_Configuration/httpd/conf.d/README                   0000644 0000000 0000000 00000000610 11524351412 027025  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
This directory holds Apache 2.0 module-specific configuration files;
any files in this directory which have the ".conf" extension will be
processed as Apache configuration files.

Files are processed in alphabetical order, so if using configuration
directives which depend on, say, mod_perl being loaded, ensure that
these are placed in a filename later in the sort order than "perl.conf".

                                                                                                                        Virtual_Configuration/tile14/webserver/Software_Configuration/httpd/conf/                           0000777 0000000 0000000 00000000000 11524351411 025731  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/Software_Configuration/httpd/conf/httpd.conf                 0000644 0000000 0000000 00000103142 11524351411 027720  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# Don't give away too much information about all the subcomponents
# we are running.  Comment out this line if you don't mind remote sites
# finding out what major optional modules you are running
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.  Note the PIDFILE variable in
# /etc/sysconfig/httpd must be set appropriately if this location is
# changed.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 60

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 0

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 60

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit 10240
MaxClients 10240
MaxRequestsPerChild  4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         4
MaxClients 10240
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

#
# The following modules are not loaded by default:
#
#LoadModule asis_module modules/mod_asis.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
#

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group #-1 on these systems!
#
User apache
Group apache

### Section 2: 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
#ServerName www.example.com:80

#
# UseCanonicalName: Determines how Apache constructs self-referencing 
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.  This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir disabled

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disabled" line above, and uncomment
    # the following line instead:
    # 
    #UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is 
# used to deliver files (assuming that the OS supports it). 
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
#
#EnableSendfile off

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
# requires the mod_logio module to be loaded.
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access_log common

#
# If you would like to have separate agent and referer logfiles, uncomment
# the following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# WebDAV module configuration section.
# 
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Directives controlling the display of server-generated directory listings.
#

#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes.  These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

#
# DefaultLanguage and AddLanguage allows you to specify the language of 
# a document. You can then use content negotiation to give a browser a 
# file in a language the user can understand.
#
# Specify a default language. This means that all data
# going out without a specific language tag (see below) will 
# be marked with this one. You probably do NOT want to set
# this unless you are sure it is correct for all cases.
#
# * It is generally better to not mark a page as 
# * being a certain language than marking it with the wrong
# * language!
#
# DefaultLanguage nl
#
# Note 1: The suffix does not have to be the same as the language
# keyword --- those with documents in Polish (whose net-standard
# language code is pl) may wish to use "AddLanguage pl .po" to
# avoid the ambiguity with the common suffix for perl scripts.
#
# Note 2: The example entries below illustrate that in some cases 
# the two character 'Language' abbreviation is not identical to 
# the two character 'Country' code for its country,
# E.g. 'Danmark/dk' versus 'Danish/da'.
#
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
# specifier. There is 'work in progress' to fix this and get
# the reference data for rfc1766 cleaned up.
#
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the 
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz

#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
#   MIME-types for downloading Certificates and CRLs
#
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
#  to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#    ErrorDocument 410 /error/HTTP_GONE.html.var
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Proxy>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
#   CacheEnable disk /
#   CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#

#</IfModule>
# End of proxy directives.

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
                                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/webserver/Software_Configuration/httpd/conf/magic                      0000644 0000000 0000000 00000031523 11524351411 026734  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Magic data for mod_mime_magic Apache module (originally for file(1) command)
# The module is described in /manual/mod/mod_mime_magic.html
#
# The format is 4-5 columns:
#    Column #1: byte number to begin checking from, ">" indicates continuation
#    Column #2: type of data to match
#    Column #3: contents of data to match
#    Column #4: MIME type of result
#    Column #5: MIME encoding of result (optional)

#------------------------------------------------------------------------------
# Localstuff:  file(1) magic for locally observed files
# Add any locally observed files here.

#------------------------------------------------------------------------------
# end local stuff
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Java

0	short		0xcafe
>2	short		0xbabe		application/java

#------------------------------------------------------------------------------
# audio:  file(1) magic for sound formats
#
# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
#

# Sun/NeXT audio data
0	string		.snd
>12	belong		1		audio/basic
>12	belong		2		audio/basic
>12	belong		3		audio/basic
>12	belong		4		audio/basic
>12	belong		5		audio/basic
>12	belong		6		audio/basic
>12	belong		7		audio/basic

>12	belong		23		audio/x-adpcm

# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
# (0x0064732E in little-endian encoding).
0	lelong		0x0064732E	
>12	lelong		1		audio/x-dec-basic
>12	lelong		2		audio/x-dec-basic
>12	lelong		3		audio/x-dec-basic
>12	lelong		4		audio/x-dec-basic
>12	lelong		5		audio/x-dec-basic
>12	lelong		6		audio/x-dec-basic
>12	lelong		7		audio/x-dec-basic
#                                       compressed (G.721 ADPCM)
>12	lelong		23		audio/x-dec-adpcm

# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
#					AIFF audio data
8	string		AIFF		audio/x-aiff	
#					AIFF-C audio data
8	string		AIFC		audio/x-aiff	
#					IFF/8SVX audio data
8	string		8SVX		audio/x-aiff	

# Creative Labs AUDIO stuff
#					Standard MIDI data
0	string	MThd			audio/unknown	
#>9 	byte	>0			(format %d)
#>11	byte	>1			using %d channels
#					Creative Music (CMF) data
0	string	CTMF			audio/unknown	
#					SoundBlaster instrument data
0	string	SBI			audio/unknown	
#					Creative Labs voice data
0	string	Creative\ Voice\ File	audio/unknown	
## is this next line right?  it came this way...
#>19	byte	0x1A
#>23	byte	>0			- version %d
#>22	byte	>0			\b.%d

# [GRR 950115:  is this also Creative Labs?  Guessing that first line
#  should be string instead of unknown-endian long...]
#0	long		0x4e54524b	MultiTrack sound data
#0	string		NTRK		MultiTrack sound data
#>4	long		x		- version %ld

# Microsoft WAVE format (*.wav)
# [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
#					Microsoft RIFF
0	string		RIFF		audio/unknown
#					- WAVE format
>8	string		WAVE		audio/x-wav
# MPEG audio.
0   beshort&0xfff0  0xfff0  audio/mpeg
# C64 SID Music files, from Linus Walleij <triad@df.lth.se>
0   string      PSID        audio/prs.sid

#------------------------------------------------------------------------------
# c-lang:  file(1) magic for C programs or various scripts
#

# XPM icons (Greg Roelofs, newt@uchicago.edu)
# ideally should go into "images", but entries below would tag XPM as C source
0	string		/*\ XPM		image/x-xbm	7bit

# this first will upset you if you're a PL/1 shop... (are there any left?)
# in which case rm it; ascmagic will catch real C programs
#					C or REXX program text
0	string		/*		text/plain
#					C++ program text
0	string		//		text/plain

#------------------------------------------------------------------------------
# compress:  file(1) magic for pure-compression formats (no archives)
#
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
#
# Formats for various forms of compressed data
# Formats for "compress" proper have been moved into "compress.c",
# because it tries to uncompress it to figure out what's inside.

# standard unix compress
0	string		\037\235	application/octet-stream	x-compress

# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
0       string          \037\213        application/octet-stream	x-gzip

# According to gzip.h, this is the correct byte order for packed data.
0	string		\037\036	application/octet-stream
#
# This magic number is byte-order-independent.
#
0	short		017437		application/octet-stream

# XXX - why *two* entries for "compacted data", one of which is
# byte-order independent, and one of which is byte-order dependent?
#
# compacted data
0	short		0x1fff		application/octet-stream
0	string		\377\037	application/octet-stream
# huf output
0	short		0145405		application/octet-stream

# Squeeze and Crunch...
# These numbers were gleaned from the Unix versions of the programs to
# handle these formats.  Note that I can only uncrunch, not crunch, and
# I didn't have a crunched file handy, so the crunch number is untested.
#				Keith Waclena <keith@cerberus.uchicago.edu>
#0	leshort		0x76FF		squeezed data (CP/M, DOS)
#0	leshort		0x76FE		crunched data (CP/M, DOS)

# Freeze
#0	string		\037\237	Frozen file 2.1
#0	string		\037\236	Frozen file 1.0 (or gzip 0.5)

# lzh?
#0	string		\037\240	LZH compressed data

#------------------------------------------------------------------------------
# frame:  file(1) magic for FrameMaker files
#
# This stuff came on a FrameMaker demo tape, most of which is
# copyright, but this file is "published" as witness the following:
#
0	string		\<MakerFile	application/x-frame
0	string		\<MIFFile	application/x-frame
0	string		\<MakerDictionary	application/x-frame
0	string		\<MakerScreenFon	application/x-frame
0	string		\<MML		application/x-frame
0	string		\<Book		application/x-frame
0	string		\<Maker		application/x-frame

#------------------------------------------------------------------------------
# html:  file(1) magic for HTML (HyperText Markup Language) docs
#
# from Daniel Quinlan <quinlan@yggdrasil.com>
# and Anna Shergold <anna@inext.co.uk>
#
0   string      \<!DOCTYPE\ HTML    text/html
0   string      \<!doctype\ html    text/html
0   string      \<HEAD      text/html
0   string      \<head      text/html
0   string      \<TITLE     text/html
0   string      \<title     text/html
0   string      \<html      text/html
0   string      \<HTML      text/html
0   string      \<!--       text/html
0   string      \<h1        text/html
0   string      \<H1        text/html

# XML eXtensible Markup Language, from Linus Walleij <triad@df.lth.se>
0   string      \<?xml      text/xml

#------------------------------------------------------------------------------
# images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
#
# originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
# additions by janl@ifi.uio.no as well as others. Jan also suggested
# merging several one- and two-line files into here.
#
# XXX - byte order for GIF and TIFF fields?
# [GRR:  TIFF allows both byte orders; GIF is probably little-endian]
#

# [GRR:  what the hell is this doing in here?]
#0	string		xbtoa		btoa'd file

# PBMPLUS
#					PBM file
0	string		P1		image/x-portable-bitmap	7bit
#					PGM file
0	string		P2		image/x-portable-greymap	7bit
#					PPM file
0	string		P3		image/x-portable-pixmap	7bit
#					PBM "rawbits" file
0	string		P4		image/x-portable-bitmap
#					PGM "rawbits" file
0	string		P5		image/x-portable-greymap
#					PPM "rawbits" file
0	string		P6		image/x-portable-pixmap

# NIFF (Navy Interchange File Format, a modification of TIFF)
# [GRR:  this *must* go before TIFF]
0	string		IIN1		image/x-niff

# TIFF and friends
#					TIFF file, big-endian
0	string		MM		image/tiff
#					TIFF file, little-endian
0	string		II		image/tiff

# possible GIF replacements; none yet released!
# (Greg Roelofs, newt@uchicago.edu)
#
# GRR 950115:  this was mine ("Zip GIF"):
#					ZIF image (GIF+deflate alpha)
0	string		GIF94z		image/unknown
#
# GRR 950115:  this is Jeremy Wohl's Free Graphics Format (better):
#					FGF image (GIF+deflate beta)
0	string		FGF95a		image/unknown
#
# GRR 950115:  this is Thomas Boutell's Portable Bitmap Format proposal
# (best; not yet implemented):
#					PBF image (deflate compression)
0	string		PBF		image/unknown

# GIF
0	string		GIF		image/gif

# JPEG images
0	beshort		0xffd8		image/jpeg

# PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
0	string		BM		image/bmp
#>14	byte		12		(OS/2 1.x format)
#>14	byte		64		(OS/2 2.x format)
#>14	byte		40		(Windows 3.x format)
#0	string		IC		icon
#0	string		PI		pointer
#0	string		CI		color icon
#0	string		CP		color pointer
#0	string		BA		bitmap array


#------------------------------------------------------------------------------
# lisp:  file(1) magic for lisp programs
#
# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
0	string	;;			text/plain	8bit
# Emacs 18 - this is always correct, but not very magical.
0	string	\012(			application/x-elc
# Emacs 19
0	string	;ELC\023\000\000\000	application/x-elc

#------------------------------------------------------------------------------
# mail.news:  file(1) magic for mail and news
#
# There are tests to ascmagic.c to cope with mail and news.
0	string		Relay-Version: 	message/rfc822	7bit
0	string		#!\ rnews	message/rfc822	7bit
0	string		N#!\ rnews	message/rfc822	7bit
0	string		Forward\ to 	message/rfc822	7bit
0	string		Pipe\ to 	message/rfc822	7bit
0	string		Return-Path:	message/rfc822	7bit
0	string		Path:		message/news	8bit
0	string		Xref:		message/news	8bit
0	string		From:		message/rfc822	7bit
0	string		Article 	message/news	8bit
#------------------------------------------------------------------------------
# msword: file(1) magic for MS Word files
#
# Contributor claims:
# Reversed-engineered MS Word magic numbers
#

0	string		\376\067\0\043			application/msword
0	string		\333\245-\0\0\0			application/msword

# disable this one because it applies also to other
# Office/OLE documents for which msword is not correct. See PR#2608.
#0	string		\320\317\021\340\241\261	application/msword



#------------------------------------------------------------------------------
# printer:  file(1) magic for printer-formatted files
#

# PostScript
0	string		%!		application/postscript
0	string		\004%!		application/postscript

# Acrobat
# (due to clamen@cs.cmu.edu)
0	string		%PDF-		application/pdf

#------------------------------------------------------------------------------
# sc:  file(1) magic for "sc" spreadsheet
#
38	string		Spreadsheet	application/x-sc

#------------------------------------------------------------------------------
# tex:  file(1) magic for TeX files
#
# XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
#
# From <conklin@talisman.kaleida.com>

# Although we may know the offset of certain text fields in TeX DVI
# and font files, we can't use them reliably because they are not
# zero terminated. [but we do anyway, christos]
0	string		\367\002	application/x-dvi
#0	string		\367\203	TeX generic font data
#0	string		\367\131	TeX packed font data
#0	string		\367\312	TeX virtual font data
#0	string		This\ is\ TeX,	TeX transcript text	
#0	string		This\ is\ METAFONT,	METAFONT transcript text

# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data.  The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
#2	string		\000\021	TeX font metric data
#2	string		\000\022	TeX font metric data
#>34	string		>\0		(%s)

# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
#0	string		\\input\ texinfo	Texinfo source text
#0	string		This\ is\ Info\ file	GNU Info text

# correct TeX magic for Linux (and maybe more)
# from Peter Tobias (tobias@server.et-inf.fho-emden.de)
#
0	leshort		0x02f7		application/x-dvi

# RTF - Rich Text Format
0	string		{\\rtf		application/rtf

#------------------------------------------------------------------------------
# animation:  file(1) magic for animation/movie formats
#
# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
#						MPEG file
0	string		\000\000\001\263	video/mpeg
#
# The contributor claims:
#   I couldn't find a real magic number for these, however, this
#   -appears- to work.  Note that it might catch other files, too,
#   so BE CAREFUL!
#
# Note that title and author appear in the two 20-byte chunks
# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
# 255 (hex FF)! DL format SUCKS BIG ROCKS.
#
#						DL file version 1 , medium format (160x100, 4 images/screen)
0	byte		1			video/unknown
0	byte		2			video/unknown
# Quicktime video, from Linus Walleij <triad@df.lth.se>
# from Apple quicktime file format documentation.
4   string      moov        video/quicktime
4   string      mdat        video/quicktime

# PNG [Portable Network Graphics, or "PNG's Not GIF"] images
#
# 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
0   string      \211PNG\015      image/png
                                                                                                                                                                             Virtual_Configuration/tile14/webserver/Software_Configuration/php/                                  0000777 0000000 0000000 00000000000 11524351413 024452  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/Software_Configuration/php/php.ini                           0000644 0000000 0000000 00000206751 11524351413 025751  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   [PHP]

;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.

; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
; 1. SAPI module specific location.
; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; 4. Current working directory (except CLI)
; 5. The web server's directory (for SAPI modules), or directory of PHP
; (otherwise in Windows)
; 6. The directory from the --with-config-file-path compile time option, or the
; Windows directory (C:\windows or C:\winnt)
; See the PHP docs for more specific information.
; http://www.php.net/manual/en/configuration.file.php

; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future. 

; Directives following the section heading [PATH=/www/mysite] only
; apply to PHP files in the /www/mysite directory.  Directives
; following the section heading [HOST=www.example.com] only apply to
; PHP files served from www.example.com.  Directives set in these
; special sections cannot be overridden by user-defined INI files or
; at runtime. Currently, [PATH=] and [HOST=] sections only work under
; CGI/FastCGI.
; http://www.php.net/manual/en/ini.sections.php

; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
; Directives are variables used to configure PHP or PHP extensions.
; There is no name validation.  If PHP can't find an expected
; directive because it is not set or is mistyped, a default value will be used.

; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
; previously set variable or directive (e.g. ${foo})

; Expressions in the INI file are limited to bitwise operators and parentheses:
; |  bitwise OR
; ^  bitwise XOR
; &  bitwise AND
; ~  bitwise NOT
; !  boolean NOT

; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.

; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:

;  foo =         ; sets foo to an empty string
;  foo = None    ; sets foo to an empty string
;  foo = "None"  ; sets foo to the string 'None'

; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.

;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; PHP comes packaged with two INI files. One that is recommended to be used
; in production environments and one that is recommended to be used in
; development environments.

; php.ini-production contains settings which hold security, performance and
; best practices at its core. But please be aware, these settings may break
; compatibility with older or less security conscience applications. We
; recommending using the production ini in production and testing environments.

; php.ini-development is very similar to its production variant, except it's
; much more verbose when it comes to errors. We recommending using the
; development version only in development environments as errors shown to
; application users can inadvertently leak otherwise secure information.

; This 2 files are provided, by RPM, in /usr/share/doc/php-common-*/
; File used by RPM (the /etc/php.ini) is mainly the php.ini-production

;;;;;;;;;;;;;;;;;;;
; Quick Reference ;
;;;;;;;;;;;;;;;;;;;
; The following are all the settings which are different in either the production
; or development versions of the INIs with respect to PHP's default behavior.
; Please see the actual settings later in the document for more details as to why
; we recommend these changes in PHP's behavior.

; allow_call_time_pass_reference
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; display_errors
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; display_startup_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; error_reporting
;   Default Value: E_ALL & ~E_NOTICE
;   Development Value: E_ALL | E_STRICT
;   Production Value: E_ALL & ~E_DEPRECATED

; html_errors
;   Default Value: On
;   Development Value: On
;   Production value: Off

; log_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: On

; magic_quotes_gpc
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; max_input_time
;   Default Value: -1 (Unlimited)
;   Development Value: 60 (60 seconds)
;   Production Value: 60 (60 seconds)

; output_buffering
;   Default Value: Off
;   Development Value: 4096
;   Production Value: 4096

; register_argc_argv
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; register_long_arrays
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; request_order
;   Default Value: None
;   Development Value: "GP"
;   Production Value: "GP"

; session.bug_compat_42
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; session.bug_compat_warn
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; session.gc_divisor
;   Default Value: 100
;   Development Value: 1000
;   Production Value: 1000

; session.hash_bits_per_character
;   Default Value: 4
;   Development Value: 5
;   Production Value: 5

; short_open_tag
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; track_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; url_rewriter.tags
;   Default Value: "a=href,area=href,frame=src,form=,fieldset="
;   Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
;   Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"

; variables_order
;   Default Value: "EGPCS"
;   Development Value: "GPCS"
;   Production Value: "GPCS"

;;;;;;;;;;;;;;;;;;;;
; php.ini Options  ;
;;;;;;;;;;;;;;;;;;;;
; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
;user_ini.filename = ".user.ini"

; To disable this feature set this option to empty value
;user_ini.filename =

; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
;user_ini.cache_ttl = 300

;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
; http://www.php.net/manual/en/apache.configuration.php#ini.engine
engine = On

; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.short-open-tag
short_open_tag = Off

; Allow ASP-style <% %> tags.
; http://www.php.net/manual/en/ini.core.php#ini.asp-tags
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
; http://www.php.net/manual/en/ini.core.php#ini.precision
precision = 14

; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
; http://www.php.net/manual/en/ini.core.php#ini.y2k-compliance
y2k_compliance = On

; Output buffering is a mechanism for controlling how much output data
; (excluding headers and cookies) PHP should keep internally before pushing that
; data to the client. If your application's output exceeds this setting, PHP
; will send that data in chunks of roughly the size you specify.
; Turning on this setting and managing its maximum buffer size can yield some
; interesting side-effects depending on your application and web server.
; You may be able to send headers and cookies after you've already sent output
; through print or echo. You also may see performance benefits if your server is
; emitting less packets due to buffered output versus PHP streaming the output
; as it gets it. On production servers, 4096 bytes is a good setting for performance
; reasons.
; Note: Output buffering can also be controlled via Output Buffering Control
;   functions.
; Possible Values:
;   On = Enabled and buffer is unlimited. (Use with caution)
;   Off = Disabled
;   Integer = Enables the buffer and sets its maximum size in bytes.
; Default Value: Off
; Development Value: 4096
; Production Value: 4096
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-buffering
output_buffering = 4096

; You can redirect all of the output of your scripts to a function.  For
; example, if you set output_handler to "mb_output_handler", character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
;   directive. Instead, explicitly set the output handler using ob_start().
;   Using this ini directive may cause problems unless you know what script
;   is doing.
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
;   and you cannot use both "ob_gzhandler" and "zlib.output_compression".
; Note: output_handler must be empty if this is set 'On' !!!!
;   Instead you must use zlib.output_handler.
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-handler
;output_handler =

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
; Note: Resulting chunk size may vary due to nature of compression. PHP
;   outputs chunks that are few hundreds bytes each as a result of
;   compression. If you prefer a larger chunk size for better
;   performance, enable output_buffering in addition.
; Note: You need to use zlib.output_handler instead of the standard
;   output_handler, or otherwise the output will be corrupted.
; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression
zlib.output_compression = Off

; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression-level
;zlib.output_compression_level = -1

; You cannot specify additional output handlers if zlib.output_compression
; is activated here. This setting does the same as output_handler but in
; a different order.
; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-handler
;zlib.output_handler =

; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block.  This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block.  Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.implicit-flush
implicit_flush = Off

; The unserialize callback function will be called (with the undefined class'
; name as parameter), if the unserializer finds an undefined class
; which should be instantiated. A warning appears if the specified function is
; not defined, or if the function doesn't include/implement the missing class.
; So only set this entry, if you really want to implement such a
; callback-function.
unserialize_callback_func =

; When floats & doubles are serialized store serialize_precision significant
; digits after the floating point. The default value ensures that when floats
; are decoded with unserialize, the data will remain the same.
serialize_precision = 100

; This directive allows you to enable and disable warnings which PHP will issue
; if you pass a value by reference at function call time. Passing values by
; reference at function call time is a deprecated feature which will be removed
; from PHP at some point in the near future. The acceptable method for passing a
; value by reference to a function is by declaring the reference in the functions
; definition, not at call time. This directive does not disable this feature, it
; only determines whether PHP will warn you about it or not. These warnings
; should enabled in development environments only.
; Default Value: On (Suppress warnings)
; Development Value: Off (Issue warnings)
; Production Value: Off (Issue warnings)
; http://www.php.net/manual/en/ini.core.php#ini.allow-call-time-pass-reference
allow_call_time_pass_reference = Off

; Safe Mode
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode
safe_mode = Off

; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-gid
safe_mode_gid = Off

; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-include-dir
safe_mode_include_dir =

; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-exec-dir
safe_mode_exec_dir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here.  By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
; Note:  If this directive is empty, PHP will let the user modify ANY
;   environment variable!
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-allowed-env-vars
safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv().  These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-protected-env-vars
safe_mode_protected_env_vars = LD_LIBRARY_PATH

; open_basedir, if set, limits all file operations to the defined directory
; and below.  This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.open-basedir
;open_basedir =

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.disable-functions
disable_functions =

; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.disable-classes
disable_classes =

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; <span style="color: ???????"> would work.
; http://www.php.net/manual/en/misc.configuration.php#ini.syntax-highlighting
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg      = #FFFFFF
;highlight.default = #0000BB
;highlight.html    = #000000

; If enabled, the request will be allowed to complete even if the user aborts
; the request. Consider enabling it if executing long requests, which may end up
; being interrupted by the user or a browser timing out. PHP's default behavior
; is to disable this feature.
; http://www.php.net/manual/en/misc.configuration.php#ini.ignore-user-abort
;ignore_user_abort = On

; Determines the size of the realpath cache to be used by PHP. This value should
; be increased on systems where PHP opens many files to reflect the quantity of
; the file operations performed.
; http://www.php.net/manual/en/ini.core.php#ini.realpath-cache-size
;realpath_cache_size = 16k

; Duration of time, in seconds for which to cache realpath information for a given
; file or directory. For systems with rarely changing files, consider increasing this
; value.
; http://www.php.net/manual/en/ini.core.php#ini.realpath-cache-ttl
;realpath_cache_ttl = 120

;;;;;;;;;;;;;;;;;
; Miscellaneous ;
;;;;;;;;;;;;;;;;;

; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header).  It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
; http://www.php.net/manual/en/ini.core.php#ini.expose-php
expose_php = On

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time
max_execution_time = 30     

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts. 
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://www.php.net/manual/en/info.configuration.php#ini.max-input-time
max_input_time = 60

; Maximum input variable nesting level
; http://www.php.net/manual/en/info.configuration.php#ini.max-input-nesting-level
;max_input_nesting_level = 64

; Maximum amount of memory a script may consume (128MB)
; http://www.php.net/manual/en/ini.core.php#ini.memory-limit
memory_limit = 128M

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; This directive informs PHP of which errors, warnings and notices you would like
; it to take action for. The recommended way of setting values for this
; directive is through the use of the error level constants and bitwise
; operators. The error level constants are below here for convenience as well as
; some common settings and their meanings.
; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
; those related to E_NOTICE and E_STRICT, which together cover best practices and
; recommended coding standards in PHP. For performance reasons, this is the
; recommend error reporting setting. Your production server shouldn't be wasting
; resources complaining about best practices and coding standards. That's what
; development servers and development settings are for.
; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This
; means it pretty much reports everything which is exactly what you want during
; development and early testing.
;
; Error Level Constants:
; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
; E_ERROR           - fatal run-time errors
; E_RECOVERABLE_ERROR  - almost fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_STRICT          - run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
; E_DEPRECATED      - warn about code that will not work in future versions
;                     of PHP
; E_USER_DEPRECATED - user-generated deprecation warnings
;
; Common Values:
;   E_ALL & ~E_NOTICE  (Show all errors, except for notices and coding standards warnings.)
;   E_ALL & ~E_NOTICE | E_STRICT  (Show all errors, except for notices)
;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
;   E_ALL | E_STRICT  (Show all errors, warnings and notices including coding standards.)
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
error_reporting = E_ALL & ~E_DEPRECATED

; This directive controls whether or not and where PHP will output errors,
; notices and warnings too. Error output is very useful during development, but
; it could be very dangerous in production environments. Depending on the code
; which is triggering the error, sensitive information could potentially leak
; out of your application such as database usernames and passwords or worse.
; It's recommended that errors be logged on production servers rather than
; having the errors sent to STDOUT.
; Possible Values:
;   Off = Do not display any errors 
;   stderr = Display errors to STDERR (affects only CGI/CLI binaries!)   
;   On or stdout = Display errors to STDOUT
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors
display_errors = Off

; The display of errors which occur during PHP's startup sequence are handled
; separately from display_errors. PHP's default behavior is to suppress those
; errors from clients. Turning the display of startup errors on can be useful in
; debugging configuration problems. But, it's strongly recommended that you
; leave this setting off on production servers.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-startup-errors
display_startup_errors = Off

; Besides displaying errors, PHP can also log errors to locations such as a
; server-specific log, STDERR, or a location specified by the error_log
; directive found below. While errors should not be displayed on productions
; servers they should still be monitored and logging is a great way to do that.
; Default Value: Off
; Development Value: On
; Production Value: On
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors
log_errors = On

; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors-max-len
log_errors_max_len = 1024

; Do not log repeated messages. Repeated errors must occur in same file on same
; line unless ignore_repeated_source is set true.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.ignore-repeated-errors
ignore_repeated_errors = Off

; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; source lines.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.ignore-repeated-source
ignore_repeated_source = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.report-memleaks
report_memleaks = On

; This setting is on by default.
;report_zend_debug = 0

; Store the last error/warning message in $php_errormsg (boolean). Setting this value
; to On can assist in debugging and is appropriate for development servers. It should
; however be disabled on production servers.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors
track_errors = Off

; Turn off normal error reporting and emit XML-RPC error XML
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.xmlrpc-errors
;xmlrpc_errors = 0

; An XML-RPC faultCode
;xmlrpc_error_number = 0

; When PHP displays or logs an error, it has the capability of inserting html
; links to documentation related to that error. This directive controls whether
; those HTML links appear in error messages or not. For performance and security
; reasons, it's recommended you disable this on production servers.
; Default Value: On
; Development Value: On
; Production value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.html-errors
html_errors = Off

; If html_errors is set On PHP produces clickable error messages that direct
; to a page describing the error or function causing the error in detail.
; You can download a copy of the PHP manual from http://www.php.net/docs.php
; and change docref_root to the base URL of your local copy including the
; leading '/'. You must also specify the file extension being used including
; the dot. PHP's default behavior is to leave these settings empty.
; Note: Never use this feature for production boxes.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.docref-root
; Examples
;docref_root = "/phpmanual/"

; http://www.php.net/manual/en/errorfunc.configuration.php#ini.docref-ext
;docref_ext = .html

; String to output before an error message. PHP's default behavior is to leave
; this setting blank.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-prepend-string
; Example:
;error_prepend_string = "<font color=#ff0000>"

; String to output after an error message. PHP's default behavior is to leave
; this setting blank.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-append-string
; Example:
;error_append_string = "</font>"

; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-log
; Example:
;error_log = php_errors.log
; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog

;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;

; Note - track_vars is ALWAYS enabled as of PHP 4.0.3

; The separator used in PHP generated URLs to separate arguments.
; PHP's default setting is "&".
; http://www.php.net/manual/en/ini.core.php#ini.arg-separator.output
; Example:
;arg_separator.output = "&amp;"

; List of separator(s) used by PHP to parse input URLs into variables.
; PHP's default setting is "&".
; NOTE: Every character in this directive is considered as separator!
; http://www.php.net/manual/en/ini.core.php#ini.arg-separator.input
; Example:
;arg_separator.input = ";&"

; This directive determines which super global arrays are registered when PHP
; starts up. If the register_globals directive is enabled, it also determines
; what order variables are populated into the global space. G,P,C,E & S are
; abbreviations for the following respective super globals: GET, POST, COOKIE,
; ENV and SERVER. There is a performance penalty paid for the registration of
; these arrays and because ENV is not as commonly used as the others, ENV is
; is not recommended on productions servers. You can still get access to
; the environment variables through getenv() should you need to.
; Default Value: "EGPCS"
; Development Value: "GPCS"
; Production Value: "GPCS";
; http://www.php.net/manual/en/ini.core.php#ini.variables-order
variables_order = "GPCS"

; This directive determines which super global data (G,P,C,E & S) should
; be registered into the super global array REQUEST. If so, it also determines
; the order in which that data is registered. The values for this directive are
; specified in the same manner as the variables_order directive, EXCEPT one.
; Leaving this value empty will cause PHP to use the value set in the 
; variables_order directive. It does not mean it will leave the super globals
; array REQUEST empty.
; Default Value: None
; Development Value: "GP"
; Production Value: "GP"
; http://www.php.net/manual/en/ini.core.php#ini.request-order
request_order = "GP"

; Whether or not to register the EGPCS variables as global variables.  You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data.  This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARS[],
; variables.
; You should do your best to write your scripts so that they do not require
; register_globals to be on;  Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
; http://www.php.net/manual/en/ini.core.php#ini.register-globals
register_globals = Off

; Determines whether the deprecated long $HTTP_*_VARS type predefined variables
; are registered by PHP or not. As they are deprecated, we obviously don't
; recommend you use them. They are on by default for compatibility reasons but
; they are not recommended on production servers.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.register-long-arrays
register_long_arrays = Off

; This directive determines whether PHP registers $argv & $argc each time it
; runs. $argv contains an array of all the arguments passed to PHP when a script
; is invoked. $argc contains an integer representing the number of arguments
; that were passed when the script was invoked. These arrays are extremely
; useful when running scripts from the command line. When this directive is
; enabled, registering these variables consumes CPU cycles and memory each time
; a script is executed. For performance reasons, this feature should be disabled
; on production servers.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.register-argc-argv
register_argc_argv = Off

; When enabled, the SERVER and ENV variables are created when they're first
; used (Just In Time) instead of when the script starts. If these variables
; are not used within a script, having this directive on will result in a
; performance gain. The PHP directives register_globals, register_long_arrays,
; and register_argc_argv must be disabled for this directive to have any affect.
; http://www.php.net/manual/en/ini.core.php#ini.auto-globals-jit
auto_globals_jit = On

; Maximum size of POST data that PHP will accept.
; http://www.php.net/manual/en/ini.core.php#ini.post-max-size
post_max_size = 8M

; Magic quotes are a preprocessing feature of PHP where PHP will attempt to
; escape any character sequences in GET, POST, COOKIE and ENV data which might
; otherwise corrupt data being placed in resources such as databases before
; making that data available to you. Because of character encoding issues and
; non-standard SQL implementations across many databases, it's not currently
; possible for this feature to be 100% accurate. PHP's default behavior is to
; enable the feature. We strongly recommend you use the escaping mechanisms
; designed specifically for the database your using instead of relying on this
; feature. Also note, this feature has been deprecated as of PHP 5.3.0 and is
; scheduled for removal in PHP 6.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
; http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-runtime
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
; http://www.php.net/manual/en/sybase.configuration.php#ini.magic-quotes-sybase
magic_quotes_sybase = Off

; Automatically add files before PHP document.
; http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file
auto_prepend_file =

; Automatically add files after PHP document.
; http://www.php.net/manual/en/ini.core.php#ini.auto-append-file
auto_append_file =

; As of 4.0b4, PHP always outputs a character encoding by default in
; the Content-type: header.  To disable sending of the charset, simply
; set it to be empty.
;
; PHP's built-in default is text/html
; http://www.php.net/manual/en/ini.core.php#ini.default-mimetype
default_mimetype = "text/html"

; PHP's default character set is set to empty.
; http://www.php.net/manual/en/ini.core.php#ini.default-charset
;default_charset = "iso-8859-1"

; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
; to disable this feature.
; http://www.php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data
;always_populate_raw_post_data = On

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
;
; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://www.php.net/manual/en/ini.core.php#ini.include-path

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
; http://www.php.net/manual/en/ini.core.php#ini.doc-root
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
; http://www.php.net/manual/en/ini.core.php#ini.user-dir
user_dir =

; Directory in which the loadable extensions (modules) reside.
; http://www.php.net/manual/en/ini.core.php#ini.extension-dir
; extension_dir = "./"

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
; http://www.php.net/manual/en/info.configuration.php#ini.enable-dl
enable_dl = Off

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers.  Left undefined, PHP turns this on by default.  You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; http://www.php.net/manual/en/ini.core.php#ini.cgi.force-redirect
;cgi.force_redirect = 1

; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
; every request. PHP's default behavior is to disable this feature.
;cgi.nph = 1

; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution.  Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.redirect-status-env
;cgi.redirect_status_env = ;

; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
; this to 1 will cause PHP CGI to fix its paths to conform to the spec.  A setting
; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.fix-pathinfo
;cgi.fix_pathinfo=1

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; security tokens of the calling client.  This allows IIS to define the
; security context that the request runs under.  mod_fastcgi under Apache
; does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS.  Default is zero.
; http://www.php.net/manual/en/ini.core.php#ini.fastcgi.impersonate
;fastcgi.impersonate = 1;

; Disable logging through FastCGI connection. PHP's default behavior is to enable
; this feature.
;fastcgi.logging = 0

; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
; is supported by Apache. When this option is set to 1 PHP will send
; RFC2616 compliant header.
; Default is zero.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.rfc2616-headers
;cgi.rfc2616_headers = 0

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
; http://www.php.net/manual/en/ini.core.php#ini.file-uploads
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://www.php.net/manual/en/ini.core.php#ini.upload-tmp-dir
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
; http://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize
upload_max_filesize = 2M

;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen
allow_url_fopen = On

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-include
allow_url_include = Off

; Define the anonymous ftp password (your email address). PHP's default setting
; for this is empty.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.from
;from="john@doe.com"

; Define the User-Agent string. PHP's default setting for this is empty.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.user-agent
;user_agent="PHP"

; Default timeout for socket based streams (seconds)
; http://www.php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout
default_socket_timeout = 60

; If your scripts have to deal with files from Macintosh systems,
; or you are running on a Mac and need to deal with files from
; unix or win32 systems, setting this flag will cause PHP to
; automatically detect the EOL character in those files so that
; fgets() and file() will work regardless of the source of the file.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.auto-detect-line-endings
;auto_detect_line_endings = Off

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example
;
;   extension=msql.so
;
; ... or with a path:
;
;   extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.

;;;;
; Note: packaged extension modules are now loaded via the .ini files
; found in the directory /etc/php.d; these are loaded by default.
;;;;


;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
;date.timezone =

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.default-latitude
;date.default_latitude = 31.7667

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.default-longitude
;date.default_longitude = 35.2333

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.sunrise-zenith
;date.sunrise_zenith = 90.583333

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.sunset-zenith
;date.sunset_zenith = 90.583333

[filter]
; http://www.php.net/manual/en/filter.configuration.php#ini.filter.default
;filter.default = unsafe_raw

; http://www.php.net/manual/en/filter.configuration.php#ini.filter.default-flags
;filter.default_flags =

[iconv]
;iconv.input_encoding = ISO-8859-1
;iconv.internal_encoding = ISO-8859-1
;iconv.output_encoding = ISO-8859-1

[intl]
;intl.default_locale = 

[sqlite]
; http://www.php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case
;sqlite.assoc_case = 0

[sqlite3]
;sqlite3.extension_dir =

[Pcre]
;PCRE library backtracking limit.
; http://www.php.net/manual/en/pcre.configuration.php#ini.pcre.backtrack-limit
;pcre.backtrack_limit=100000

;PCRE library recursion limit. 
;Please note that if you set this value to a high number you may consume all 
;the available process stack and eventually crash PHP (due to reaching the 
;stack size limit imposed by the Operating System).
; http://www.php.net/manual/en/pcre.configuration.php#ini.pcre.recursion-limit
;pcre.recursion_limit=100000

[Pdo]
; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
; http://www.php.net/manual/en/ref.pdo-odbc.php#ini.pdo-odbc.connection-pooling
;pdo_odbc.connection_pooling=strict

[Phar]
; http://www.php.net/manual/en/phar.configuration.php#ini.phar.readonly
;phar.readonly = On

; http://www.php.net/manual/en/phar.configuration.php#ini.phar.require-hash
;phar.require_hash = On

;phar.cache_list =

[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.).  Turning it off is a good idea performance-wise.  In
; runtime, you can define these variables by calling define_syslog_variables().
; http://www.php.net/manual/en/network.configuration.php#ini.define-syslog-variables
define_syslog_variables  = Off

[mail function]
; For Win32 only.
; http://www.php.net/manual/en/mail.configuration.php#ini.smtp
SMTP = localhost
; http://www.php.net/manual/en/mail.configuration.php#ini.smtp-port
smtp_port = 25

; For Win32 only.
; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-from
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-path
sendmail_path = /usr/sbin/sendmail -t -i

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originaiting-Script: that will include uid of the script followed by the filename
mail.add_x_header = On

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log =

[SQL]
; http://www.php.net/manual/en/ini.core.php#ini.sql.safe-mode
sql.safe_mode = Off

[ODBC]
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-db
;odbc.default_db    =  Not yet implemented

; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-user
;odbc.default_user  =  Not yet implemented

; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-pw
;odbc.default_pw    =  Not yet implemented

; Allow or prevent persistent links.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.allow-persistent
odbc.allow_persistent = On

; Check that a connection is still valid before reuse.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.check-persistent
odbc.check_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.max-persistent
odbc.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.max-links
odbc.max_links = -1

; Handling of LONG fields.  Returns number of bytes to variables.  0 means
; passthru.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.defaultlrl
odbc.defaultlrl = 4096

; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of uodbc.defaultlrl and uodbc.defaultbinmode
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.defaultbinmode
odbc.defaultbinmode = 1

;birdstep.max_links = -1

[MySQL]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.allow-persistent
mysql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.max-persistent
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.max-links
mysql.max_links = -1

; Default port number for mysql_connect().  If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-port
mysql.default_port =

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-socket
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-host
mysql.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-user
mysql.default_user =

; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-password
mysql.default_password =

; Maximum time (in seconds) for connect timeout. -1 means no limit
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.connect-timeout
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.trace-mode
mysql.trace_mode = Off

[MySQLi]

; Maximum number of links.  -1 means no limit.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.max-links
mysqli.max_links = -1

; Default port number for mysqli_connect().  If unset, mysqli_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-port
mysqli.default_port = 3306

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-socket
mysqli.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-host
mysqli.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-user
mysqli.default_user =

; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-pw
mysqli.default_pw =

; Allow or prevent reconnect
mysqli.reconnect = Off

[PostgresSQL]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.allow-persistent
pgsql.allow_persistent = On

; Detect broken persistent links always with pg_pconnect().
; Auto reset feature requires a little overheads.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.auto-reset-persistent
pgsql.auto_reset_persistent = Off

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-persistent
pgsql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-links
pgsql.max_links = -1

; Ignore PostgreSQL backends Notice message or not.
; Notice message logging require a little overheads.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.ignore-notice
pgsql.ignore_notice = 0

; Log PostgreSQL backends Noitce message or not.
; Unless pgsql.ignore_notice=0, module cannot log notice message.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.log-notice
pgsql.log_notice = 0

[Sybase-CT]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.allow-persistent
sybct.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.max-persistent
sybct.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.max-links
sybct.max_links = -1

; Minimum server message severity to display.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.min-server-severity
sybct.min_server_severity = 10

; Minimum client message severity to display.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.min-client-severity
sybct.min_client_severity = 10

; Set per-context timeout
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.timeout
;sybct.timeout=

;sybct.packet_size

[bcmath]
; Number of decimal digits for all bcmath functions.
; http://www.php.net/manual/en/bc.configuration.php#ini.bcmath.scale
bcmath.scale = 0

[browscap]
; http://www.php.net/manual/en/misc.configuration.php#ini.browscap
;browscap = extra/browscap.ini

[Session]
; Handler used to store/retrieve data.
; http://www.php.net/manual/en/session.configuration.php#ini.session.save-handler
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
;
; As of PHP 4.0.1, you can define the path as:
;
;     session.save_path = "N;/path"
;
; where N is an integer.  Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories.  This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
;         You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
;         use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
;     session.save_path = "N;MODE;/path"
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
; http://www.php.net/manual/en/session.configuration.php#ini.session.save-path
session.save_path = "/var/lib/php/session"

; Whether to use cookies.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-cookies
session.use_cookies = 1

; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-secure
;session.cookie_secure =

; This option forces PHP to fetch and use a cookie for storing and maintaining
; the session id. We encourage this operation as it's very helpful in combatting
; session hijacking when not specifying and managing your own session id. It is
; not the end all be all of session hijacking defense, but it's a good start.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-only-cookies
session.use_only_cookies = 1

; Name of the session (used as cookie name).
; http://www.php.net/manual/en/session.configuration.php#ini.session.name
session.name = PHPSESSID

; Initialize session on request startup.
; http://www.php.net/manual/en/session.configuration.php#ini.session.auto-start
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime
session.cookie_lifetime = 0

; The path for which the cookie is valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-path
session.cookie_path = /

; The domain for which the cookie is valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-domain
session.cookie_domain =

; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-httponly
session.cookie_httponly = 

; Handler used to serialize data.  php is the standard serializer of PHP.
; http://www.php.net/manual/en/session.configuration.php#ini.session.serialize-handler
session.serialize_handler = php

; Defines the probability that the 'garbage collection' process is started
; on every session initialization. The probability is calculated by using
; gc_probability/gc_divisor. Where session.gc_probability is the numerator
; and gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request.
; Default Value: 1
; Development Value: 1
; Production Value: 1
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-probability
session.gc_probability = 1

; Defines the probability that the 'garbage collection' process is started on every
; session initialization. The probability is calculated by using the following equation: 
; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
; session.gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request. Increasing this value to 1000 will give you
; a 0.1% chance the gc will run on any give request. For high volume production servers,
; this is a more efficient approach.
; Default Value: 100
; Development Value: 1000
; Production Value: 1000
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-divisor
session.gc_divisor = 1000

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime
session.gc_maxlifetime = 1440

; NOTE: If you are using the subdirectory option for storing session files
;       (see session.save_path above), then garbage collection does *not*
;       happen automatically.  You will need to do your own garbage
;       collection through a shell script, cron entry, or some other method.
;       For example, the following script would is the equivalent of
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
;          cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, even when register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled. This feature
; introduces some serious security problems if not handled correctly. It's
; recommended that you do not use this feature on production servers. But you
; should enable this on development servers and enable the warning as well. If you
; do not enable the feature on development servers, you won't be warned when it's
; used and debugging errors caused by this can be difficult to track down.
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/session.configuration.php#ini.session.bug-compat-42
session.bug_compat_42 = Off

; This setting controls whether or not you are warned by PHP when initializing a
; session value into the global space. session.bug_compat_42 must be enabled before
; these warnings can be issued by PHP. See the directive above for more information.
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/session.configuration.php#ini.session.bug-compat-warn
session.bug_compat_warn = Off

; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.referer-check
session.referer_check =

; How many bytes to read from the file.
; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-length
session.entropy_length = 0

; Specified here to create the session id.
; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-file
;session.entropy_file = /dev/urandom
session.entropy_file =

; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-length
;session.entropy_length = 16

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cache-limiter
session.cache_limiter = nocache

; Document expires after n minutes.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cache-expire
session.cache_expire = 180

; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
;   to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
;   in publically accessible computer.
; - User may access your site with the same session ID
;   always using URL stored in browser's history or bookmarks.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-trans-sid
session.use_trans_sid = 0

; Select a hash function for use in generating session ids.
; Possible Values 
;   0  (MD5 128 bits)
;   1  (SHA-1 160 bits)
; http://www.php.net/manual/en/session.configuration.php#ini.session.hash-function
session.hash_function = 0

; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
; Possible values:
;   4  (4 bits: 0-9, a-f)
;   5  (5 bits: 0-9, a-v)
;   6  (6 bits: 0-9, a-z, A-Z, "-", ",")
; Default Value: 4
; Development Value: 5
; Production Value: 5
; http://www.php.net/manual/en/session.configuration.php#ini.session.hash-bits-per-character
session.hash_bits_per_character = 5

; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden <input> field with the info which is otherwise appended
; to URLs.  If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a "=", even if no value follows.
; Default Value: "a=href,area=href,frame=src,form=,fieldset="
; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; http://www.php.net/manual/en/session.configuration.php#ini.url-rewriter.tags
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
mssql.max_links = -1

; Minimum error severity to display.
mssql.min_error_severity = 10

; Minimum message severity to display.
mssql.min_message_severity = 10

; Compatibility mode with old versions of PHP 3.0.
mssql.compatability_mode = Off

; Connect timeout
;mssql.connect_timeout = 5

; Query timeout
;mssql.timeout = 60

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textsize = 4096

; Limits the number of records in each batch.  0 = all records in one batch.
;mssql.batchsize = 0

; Specify how datetime and datetim4 columns are returned
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server
mssql.secure_connection = Off

; Specify max number of processes. -1 = library default
; msdlib defaults to 25
; FreeTDS defaults to 4096
;mssql.max_procs = -1

; Specify client character set. 
; If empty or not set the client charset from freetds.comf is used
; This is only used when compiled with FreeTDS
;mssql.charset = "ISO-8859-1"

[Assertion]
; Assert(expr); active by default.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.active
;assert.active = On

; Issue a PHP warning for each failed assertion.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.warning
;assert.warning = On

; Don't bail out by default.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.bail
;assert.bail = Off

; User-function to be called if an assertion fails.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.callback
;assert.callback = 0

; Eval the expression with current error_reporting().  Set to true if you want
; error_reporting(0) around the eval().
; http://www.php.net/manual/en/info.configuration.php#ini.assert.quiet-eval
;assert.quiet_eval = 0

[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
; http://www.php.net/manual/en/com.configuration.php#ini.com.typelib-file
;com.typelib_file =

; allow Distributed-COM calls
; http://www.php.net/manual/en/com.configuration.php#ini.com.allow-dcom
;com.allow_dcom = true

; autoregister constants of a components typlib on com_load()
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-typelib
;com.autoregister_typelib = true

; register constants casesensitive
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-casesensitive
;com.autoregister_casesensitive = false

; show warnings on duplicate constant registrations
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-verbose
;com.autoregister_verbose = true

[mbstring]
; language for internal character representation.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.language
;mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.internal-encoding
;mbstring.internal_encoding = EUC-JP

; http input encoding.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-input
;mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-output
;mbstring.http_output = SJIS

; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.encoding-translation
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; auto means
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.detect-order
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.substitute-character
;mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.func-overload
;mbstring.func_overload = 0

; enable strict encoding detection.
;mbstring.strict_detection = Off

; This directive specifies the regex pattern of content types for which mb_output_handler()
; is activated.
; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
;mbstring.http_output_conv_mimetype=

[gd]
; Tell the jpeg decode to ignore warnings and try to create
; a gd image. The warning will then be displayed as notices
; disabled by default
; http://www.php.net/manual/en/image.configuration.php#ini.image.jpeg-ignore-warning
;gd.jpeg_ignore_warning = 0

[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-unicode
;exif.encode_unicode = ISO-8859-15

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-motorola
;exif.decode_unicode_motorola = UCS-2BE

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-intel
;exif.decode_unicode_intel    = UCS-2LE

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-jis
;exif.encode_jis =

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-motorola
;exif.decode_jis_motorola = JIS

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-intel
;exif.decode_jis_intel    = JIS

[Tidy]
; The path to a default tidy configuration file to use when using tidy
; http://www.php.net/manual/en/tidy.configuration.php#ini.tidy.default-config
;tidy.default_config = /usr/local/lib/php/default.tcfg

; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
; http://www.php.net/manual/en/tidy.configuration.php#ini.tidy.clean-output
tidy.clean_output = Off

[soap]
; Enables or disables WSDL caching feature.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-enabled
soap.wsdl_cache_enabled=1

; Sets the directory name where SOAP extension will put cache files.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-dir
soap.wsdl_cache_dir="/tmp"

; (time to live) Sets the number of second while cached file will be used 
; instead of original one.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-ttl
soap.wsdl_cache_ttl=86400

[sysvshm]
; A default size of the shared memory segment
;sysvshm.init_mem = 10000


; Local Variables:
; tab-width: 4
; End:
                       Virtual_Configuration/tile14/webserver/Software_Configuration/php/php.d/                            0000777 0000000 0000000 00000000000 11524351413 025463  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/webserver/Software_Configuration/php/php.d/phar.ini                    0000644 0000000 0000000 00000000061 11524351413 027107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable phar extension module
extension=phar.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/webserver/Software_Configuration/php/php.d/zip.ini                     0000644 0000000 0000000 00000000057 11524351413 026764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable zip extension module
extension=zip.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/webserver/Software_Configuration/php/php.d/json.ini                    0000644 0000000 0000000 00000000061 11524351413 027126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable json extension module
extension=json.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/webserver/Software_Configuration/php/php.d/apc.ini                     0000644 0000000 0000000 00000005340 11524351412 026724  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable apc extension module
extension = apc.so

; Options for the APC module version >= 3.1.3

; This can be set to 0 to disable APC. 
apc.enabled=1
; The number of shared memory segments to allocate for the compiler cache. 
apc.shm_segments=1
; The size of each shared memory segment in MB.
apc.shm_size=64
; A "hint" about the number of distinct source files that will be included or 
; requested on your web server. Set to zero or omit if you're not sure;
apc.num_files_hint=1024
; Just like num_files_hint, a "hint" about the number of distinct user cache
; variables to store.  Set to zero or omit if you're not sure;
apc.user_entries_hint=4096
; The number of seconds a cache entry is allowed to idle in a slot in case this
; cache entry slot is needed by another entry.
apc.ttl=7200
; use the SAPI request start time for TTL
apc.use_request_time=1
; The number of seconds a user cache entry is allowed to idle in a slot in case
; this cache entry slot is needed by another entry.
apc.user_ttl=7200
; The number of seconds that a cache entry may remain on the garbage-collection list. 
apc.gc_ttl=3600
; On by default, but can be set to off and used in conjunction with positive
; apc.filters so that files are only cached if matched by a positive filter.
apc.cache_by_default=1
; A comma-separated list of POSIX extended regular expressions.
apc.filters
; The mktemp-style file_mask to pass to the mmap module 
apc.mmap_file_mask=/tmp/apc.XXXXXX
; This file_update_protection setting puts a delay on caching brand new files.
apc.file_update_protection=2
; Setting this enables APC for the CLI version of PHP (Mostly for testing and debugging).
apc.enable_cli=0
; Prevents large files from being cached
apc.max_file_size=1M
; Whether to stat the main script file and the fullpath includes.
apc.stat=1
; Vertification with ctime will avoid problems caused by programs such as svn or rsync by making 
; sure inodes havn't changed since the last stat. APC will normally only check mtime.
apc.stat_ctime=0
; Whether to canonicalize paths in stat=0 mode or fall back to stat behaviour
apc.canonicalize=0
; With write_lock enabled, only one process at a time will try to compile an 
; uncached script while the other processes will run uncached
apc.write_lock=1
; Logs any scripts that were automatically excluded from being cached due to early/late binding issues.
apc.report_autofilter=0
; RFC1867 File Upload Progress hook handler
apc.rfc1867=0
apc.rfc1867_prefix =upload_
apc.rfc1867_name=APC_UPLOAD_PROGRESS
apc.rfc1867_freq=0
apc.rfc1867_ttl=3600
; Optimize include_once and require_once calls and avoid the expensive system calls used.
apc.include_once_override=0
apc.lazy_classes=00
apc.lazy_functions=0
; not documented
apc.coredump_unmap=0
apc.file_md5=0
apc.preload_path
                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile14/webserver/Software_Configuration/php/php.d/curl.ini                    0000644 0000000 0000000 00000000061 11524351412 027121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable curl extension module
extension=curl.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/webserver/Software_Configuration/php/php.d/fileinfo.ini                0000644 0000000 0000000 00000000071 11524351413 027751  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable fileinfo extension module
extension=fileinfo.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/mailserver/                                                            0000777 0000000 0000000 00000000000 11524351372 017353  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/                                           0000777 0000000 0000000 00000000000 11524351411 022616  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/proc/                                      0000777 0000000 0000000 00000000000 11524351410 023560  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/proc/cpuinfo                               0000644 0000000 0000000 00000001017 11524351410 025141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/mailserver/VM_configuration/proc/mounts                                0000644 0000000 0000000 00000001357 11524351410 025032  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1020708k,nr_inodes=255177,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1321,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1321,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/mailserver/VM_configuration/proc/swaps                                 0000644 0000000 0000000 00000000144 11524351410 024633  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/mailserver/VM_configuration/proc/devices                               0000644 0000000 0000000 00000000567 11524351410 025131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile14/mailserver/VM_configuration/proc/modules                               0000644 0000000 0000000 00000002621 11524351410 025150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 38 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile14/mailserver/VM_configuration/proc/partitions                            0000644 0000000 0000000 00000000260 11524351410 025671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   41943040 vdb
 252       17   41943024 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile14/mailserver/VM_configuration/proc/meminfo                               0000644 0000000 0000000 00000002222 11524351410 025127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2055756 kB
MemFree:          352252 kB
Buffers:          372244 kB
Cached:           913028 kB
SwapCached:            0 kB
Active:           907396 kB
Inactive:         448396 kB
Active(anon):      16012 kB
Inactive(anon):    54640 kB
Active(file):     891384 kB
Inactive(file):   393756 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               260 kB
Writeback:             0 kB
AnonPages:         70496 kB
Mapped:             9568 kB
Shmem:               164 kB
Slab:             327068 kB
SReclaimable:     256196 kB
SUnreclaim:        70872 kB
KernelStack:        1064 kB
PageTables:         3820 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3075868 kB
Committed_AS:     176976 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       11532 kB
VmallocChunk:   34359719476 kB
HardwareCorrupted:     0 kB
AnonHugePages:     22528 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2088960 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/mailserver/VM_configuration/root/                                      0000777 0000000 0000000 00000000000 11524351410 023600  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/root/convert_to_vf.sh                      0000755 0000000 0000000 00000001135 11524351410 027010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/lspci.txt                                  0000644 0000000 0000000 00000001211 11524351410 024457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/mailserver/VM_configuration/df.txt                                     0000644 0000000 0000000 00000000401 11524351373 023746  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3828624   8952312  30% /
tmpfs                  1027876         0   1027876   0% /dev/shm
/dev/vdb1             41284912  24790872  14396892  64% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/mailserver/VM_configuration/mount.txt                                  0000644 0000000 0000000 00000000612 11524351410 024513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile14/mailserver/VM_configuration/etc/                                       0000777 0000000 0000000 00000000000 11524351407 023376  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/                                  0000777 0000000 0000000 00000000000 11524351402 024217  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/                            0000777 0000000 0000000 00000000000 11524351407 025135  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests           0000755 0000000 0000000 00000017172 11524351402 030322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                  0000755 0000000 0000000 00000004325 11524351402 026740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd               0000755 0000000 0000000 00000006014 11524351403 027527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                 0000755 0000000 0000000 00000012327 11524351405 027132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                0000755 0000000 0000000 00000005222 11524351406 027316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                     0000755 0000000 0000000 00000010671 11524351407 026322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                    0000755 0000000 0000000 00000006364 11524351403 026470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                0000755 0000000 0000000 00000020716 11524351404 027241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                     0000755 0000000 0000000 00000004731 11524351404 026320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon             0000755 0000000 0000000 00000004754 11524351402 027672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                0000755 0000000 0000000 00000001364 11524351407 027341  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                    0000755 0000000 0000000 00000003027 11524351404 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                   0000755 0000000 0000000 00000006743 11524351407 026662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                    0000755 0000000 0000000 00000010777 11524351404 026463  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus               0000755 0000000 0000000 00000004230 11524351406 027502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                    0000755 0000000 0000000 00000006302 11524351404 026432  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                      0000755 0000000 0000000 00000004236 11524351407 026155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                  0000755 0000000 0000000 00000004031 11524351405 026763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance               0000755 0000000 0000000 00000003521 11524351405 027446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                  0000755 0000000 0000000 00000006050 11524351406 027021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                  0000755 0000000 0000000 00000002363 11524351405 027070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger               0000755 0000000 0000000 00000004054 11524351402 027476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                0000755 0000000 0000000 00000005013 11524351405 027355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                    0000755 0000000 0000000 00000003213 11524351404 026451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                  0000755 0000000 0000000 00000003512 11524351404 027003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                     0000755 0000000 0000000 00000003603 11524351404 026311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                   0000755 0000000 0000000 00000011277 11524351403 026635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S10network                  0000755 0000000 0000000 00000014466 11524351405 027045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                  0000755 0000000 0000000 00000004326 11524351405 027052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                   0000755 0000000 0000000 00000006462 11524351405 026624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                    0000755 0000000 0000000 00000027662 11524351406 026500  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                     0000755 0000000 0000000 00000006445 11524351403 026213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                0000755 0000000 0000000 00000003245 11524351406 027305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K60crond                    0000755 0000000 0000000 00000005445 11524351403 026451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                    0000755 0000000 0000000 00000005522 11524351402 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl            0000755 0000000 0000000 00000002221 11524351405 030143  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                0000755 0000000 0000000 00000004010 11524351403 027312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                      0000755 0000000 0000000 00000013536 11524351403 026132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                     0000755 0000000 0000000 00000004723 11524351406 026301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                   0000755 0000000 0000000 00000003024 11524351403 026603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                    0000755 0000000 0000000 00000003275 11524351406 026440  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                 0000755 0000000 0000000 00000025442 11524351405 027163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                0000755 0000000 0000000 00000004370 11524351406 027303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S99local                    0000755 0000000 0000000 00000000334 11524351407 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                  0000755 0000000 0000000 00000006675 11524351405 027022  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole               0000755 0000000 0000000 00000005650 11524351403 027512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor             0000555 0000000 0000000 00000004612 11524351405 027710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                   0000755 0000000 0000000 00000007234 11524351406 026662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                 0000755 0000000 0000000 00000003433 11524351407 027214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                   0000755 0000000 0000000 00000005672 11524351402 026632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                    0000755 0000000 0000000 00000003254 11524351407 026454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                0000755 0000000 0000000 00000005063 11524351406 027327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                    0000755 0000000 0000000 00000012432 11524351406 026471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                  0000755 0000000 0000000 00000007414 11524351403 027033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                 0000755 0000000 0000000 00000020557 11524351404 027156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond              0000755 0000000 0000000 00000003427 11524351404 027703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/rc3.d/K05atd                      0000755 0000000 0000000 00000004112 11524351403 026101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/                           0000777 0000000 0000000 00000000000 11524351402 025404  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/network                    0000755 0000000 0000000 00000014466 11524351377 027045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/gfs2                       0000755 0000000 0000000 00000006445 11524351375 026211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/sysstat                    0000755 0000000 0000000 00000002363 11524351402 027044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/saslauthd                  0000755 0000000 0000000 00000004010 11524351401 027310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/messagebus                 0000755 0000000 0000000 00000004230 11524351377 027476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/autobench                  0000755 0000000 0000000 00000005063 11524351375 027313  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/atd                        0000755 0000000 0000000 00000004112 11524351374 026104  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/mcelogd                    0000755 0000000 0000000 00000003535 11524351377 026761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/auditd                     0000755 0000000 0000000 00000006462 11524351374 026620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/certmonger                 0000755 0000000 0000000 00000004054 11524351375 027507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/irqbalance                 0000755 0000000 0000000 00000003521 11524351376 027442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/acpid                      0000755 0000000 0000000 00000003275 11524351374 026425  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/nscd                       0000755 0000000 0000000 00000004723 11524351400 026261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                  0000755 0000000 0000000 00000005222 11524351401 027271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/nfs                        0000755 0000000 0000000 00000013536 11524351400 026122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/sssd                       0000755 0000000 0000000 00000004731 11524351401 026306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/crond                      0000755 0000000 0000000 00000005445 11524351375 026454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/ip6tables                  0000755 0000000 0000000 00000020716 11524351376 027237  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/autofs                     0000755 0000000 0000000 00000007234 11524351375 026646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/sshd                       0000755 0000000 0000000 00000010671 11524351401 026273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/ksm                        0000755 0000000 0000000 00000004236 11524351376 026137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/libvirt-guests             0000755 0000000 0000000 00000017172 11524351377 030334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/avahi-daemon               0000755 0000000 0000000 00000004754 11524351375 027702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/ypbind                     0000755 0000000 0000000 00000011277 11524351402 026623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/psacct                     0000755 0000000 0000000 00000003024 11524351400 026600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/xinetd                     0000755 0000000 0000000 00000006743 11524351402 026633  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/nfslock                    0000755 0000000 0000000 00000006675 11524351400 027001  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/cgred                      0000755 0000000 0000000 00000006302 11524351375 026424  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/migrateip                  0000755 0000000 0000000 00000001364 11524351377 027326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/udev-post                  0000755 0000000 0000000 00000004370 11524351402 027260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/haldaemon                  0000755 0000000 0000000 00000003245 11524351375 027273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/ipsec                      0000755 0000000 0000000 00000010777 11524351376 026457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/rpcbind                    0000755 0000000 0000000 00000004031 11524351401 026744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/rhnsd                      0000755 0000000 0000000 00000005522 11524351400 026446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/functions                  0000644 0000000 0000000 00000042767 11524351375 027364  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/kdump                      0000755 0000000 0000000 00000027662 11524351376 026475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/postfix                    0000755 0000000 0000000 00000007414 11524351400 027026  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/iptables                   0000755 0000000 0000000 00000020557 11524351376 027154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/rsyslog                    0000755 0000000 0000000 00000004326 11524351401 027034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/netconsole                 0000755 0000000 0000000 00000005650 11524351377 027520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/rpcgssd                    0000755 0000000 0000000 00000006050 11524351401 026773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/abrtd                      0000755 0000000 0000000 00000003254 11524351374 026436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor               0000555 0000000 0000000 00000004612 11524351377 027707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/halt                       0000755 0000000 0000000 00000012723 11524351376 026275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/cgconfig                   0000755 0000000 0000000 00000012327 11524351375 027123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/single                     0000755 0000000 0000000 00000001207 11524351401 026606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/mdmonitor                  0000755 0000000 0000000 00000005013 11524351377 027350  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/restorecond                0000755 0000000 0000000 00000003427 11524351400 027661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/cpuspeed                   0000755 0000000 0000000 00000025442 11524351375 027156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/netfs                      0000755 0000000 0000000 00000012432 11524351377 026462  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524351401 027507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/oddjobd                    0000755 0000000 0000000 00000004325 11524351400 026735  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/ksmtuned                   0000755 0000000 0000000 00000003433 11524351377 027176  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/sandbox                    0000755 0000000 0000000 00000003242 11524351401 026764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/killall                    0000755 0000000 0000000 00000001214 11524351376 026762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/rdisc                      0000755 0000000 0000000 00000003027 11524351400 026432  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/httpd                      0000755 0000000 0000000 00000006364 11524351376 026474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/ntpd                       0000755 0000000 0000000 00000003603 11524351400 026273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/smartd                     0000755 0000000 0000000 00000005672 11524351401 026631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/nslcd                      0000755 0000000 0000000 00000003213 11524351400 026426  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/ntpdate                    0000755 0000000 0000000 00000003512 11524351400 026764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile14/mailserver/VM_configuration/etc/rc.d/init.d/microcode_ctl              0000755 0000000 0000000 00000002221 11524351377 030144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/mailserver/VM_configuration/etc/hosts                                  0000644 0000000 0000000 00000000267 11524351373 024464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/mailserver/VM_configuration/etc/iproute2/                              0000777 0000000 0000000 00000000000 11524351374 025152  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/etc/iproute2/rt_dsfield                    0000644 0000000 0000000 00000000672 11524351373 027214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile14/mailserver/VM_configuration/etc/iproute2/rt_realms                     0000644 0000000 0000000 00000000160 11524351374 027056  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile14/mailserver/VM_configuration/etc/iproute2/rt_scopes                     0000644 0000000 0000000 00000000134 11524351374 027070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/mailserver/VM_configuration/etc/iproute2/ematch_map                    0000644 0000000 0000000 00000000073 11524351373 027166  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/mailserver/VM_configuration/etc/iproute2/rt_tables                     0000644 0000000 0000000 00000000127 11524351374 027050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/mailserver/VM_configuration/etc/iproute2/rt_protos                     0000644 0000000 0000000 00000000475 11524351374 027132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/etc/nsswitch.conf                          0000644 0000000 0000000 00000003230 11524351374 026104  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/mailserver/VM_configuration/etc/fstab                                  0000644 0000000 0000000 00000001603 11524351373 024416  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile14/mailserver/VM_configuration/etc/sysctl.conf                            0000644 0000000 0000000 00000001466 11524351407 025571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile14/mailserver/VM_configuration/etc/inittab                                0000644 0000000 0000000 00000001564 11524351373 024757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile14/mailserver/VM_configuration/var/                                       0000777 0000000 0000000 00000000000 11524351411 023406  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/var/log/                                   0000777 0000000 0000000 00000000000 11524351411 024167  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/var/log/dmesg                              0000644 0000000 0000000 00000043370 11524351411 025214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007fffd000 (usable)
 BIOS-e820: 000000007fffd000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x7fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007fffd000
 0000000000 - 007fe00000 page 2M
 007fe00000 - 007fffd000 page 4k
kernel direct mapping tables up to 7fffd000 @ 8000-c000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000007fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000007ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000007fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000007ffffe00 00040
ACPI: SSDT 000000007fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000007fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000007fffd000
Bootmem setup node 0 0000000000000000-000000007fffd000
  NODE_DATA [000000000000a000 - 000000000003dfff]
  bootmap [000000000003e000 -  000000000004dfff] pages 10
(7 early reservations) ==> bootmem [0000000000 - 007fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000a000]          PGTABLE ==> [0000008000 - 000000a000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0001bfffff] PMD -> [ffff880002200000-ffff880003dfffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0007fffd
On node 0 totalpages: 524182
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3831 pages, LIFO batch:0
  DMA32 zone: 7112 pages used for memmap
  DMA32 zone: 513077 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 80000000 (gap: 80000000:7ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 516908
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2041384k/2097140k available (4935k kernel code, 412k absent, 55344k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 20971520 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116087.291:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 4012
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:27 UTC (1297116087)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
ce:21:75:83:62:4a
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/mailserver/VM_configuration/boot/                                      0000777 0000000 0000000 00000000000 11524351373 023570  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/boot/grub/                                 0000777 0000000 0000000 00000000000 11524351373 024527  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/VM_configuration/boot/grub/grub.conf                        0000644 0000000 0000000 00000002217 11524351373 026333  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/mailserver/VM_configuration/rpmpkgs.txt                                0000644 0000000 0000000 00000067153 11524351411 025052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/mailserver/VM_configuration/ifconfig.txt                               0000644 0000000 0000000 00000002325 11524351407 025146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:54  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:67 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5412 (5.2 KiB)  TX bytes:848 (848.0 b)

eth1      Link encap:Ethernet  HWaddr CE:21:75:83:62:4A  
          inet addr:10.1.217.84  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::cc21:75ff:fe83:624a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3998711 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4167415 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:676585803 (645.2 MiB)  TX bytes:4606932885 (4.2 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:754 errors:0 dropped:0 overruns:0 frame:0
          TX packets:754 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:73827 (72.0 KiB)  TX bytes:73827 (72.0 KiB)

                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/mailserver/VM_configuration/chkconfig.txt                              0000644 0000000 0000000 00000006535 11524351373 025326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/Software_Configuration/                                     0000777 0000000 0000000 00000000000 11524351372 024034  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/mailserver/Software_Configuration/dovecot.conf                         0000644 0000000 0000000 00000000654 11524351372 026347  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   base_dir = /var/run/dovecot/
ssl = no
disable_plaintext_auth = no
listen = *
log_path = /var/log/dovecot
mail_debug = yes
mail_location = dbox:/mailstore/dovecot/maildir/%u
mdbox_rotate_size = 2048
passdb {
  args = /etc/passwd.dovecot
  driver = passwd-file
}
protocols = imap
service auth {
  user = root
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  process_min_avail = 10
}
userdb {
  driver = passwd
}
                                                                                    Virtual_Configuration/tile14/infraserver/                                                           0000777 0000000 0000000 00000000000 11524351353 017527  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/                                          0000777 0000000 0000000 00000000000 11524351372 023001  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/proc/                                     0000777 0000000 0000000 00000000000 11524351371 023743  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/proc/cpuinfo                              0000644 0000000 0000000 00000001017 11524351371 025324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/infraserver/VM_configuration/proc/mounts                               0000644 0000000 0000000 00000001426 11524351371 025212  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=503592k,nr_inodes=125898,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1212,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1212,timeout=300,minproto=5,maxproto=5,indirect 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
                                                                                                                                                                                                                                          Virtual_Configuration/tile14/infraserver/VM_configuration/proc/swaps                                0000644 0000000 0000000 00000000144 11524351371 025016  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/infraserver/VM_configuration/proc/devices                              0000644 0000000 0000000 00000000567 11524351371 025314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile14/infraserver/VM_configuration/proc/modules                              0000644 0000000 0000000 00000003222 11524351371 025331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa034e000
stp 2107 1 bridge, Live 0xffffffffa0348000
llc 5608 2 bridge,stp, Live 0xffffffffa0340000
nfsd 302737 13 - Live 0xffffffffa02e7000
lockd 73984 1 nfsd, Live 0xffffffffa02cb000
nfs_acl 2677 1 nfsd, Live 0xffffffffa02c5000
auth_rpcgss 44862 1 nfsd, Live 0xffffffffa02b2000
exportfs 4202 1 nfsd, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 16 nfsd,lockd,nfs_acl,auth_rpcgss, Live 0xffffffffa024b000
ipv6 321209 58 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
sr_mod 16162 0 - Live 0xffffffffa0064000
cdrom 39769 1 sr_mod, Live 0xffffffffa0053000
virtio_blk 5087 5 - Live 0xffffffffa004c000
pata_acpi 3667 0 - Live 0xffffffffa0046000
ata_generic 3611 0 - Live 0xffffffffa0040000
ata_piix 22588 0 - Live 0xffffffffa0034000
virtio_pci 6733 0 - Live 0xffffffffa002c000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0025000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/infraserver/VM_configuration/proc/partitions                           0000644 0000000 0000000 00000000260 11524351371 026054  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   62914560 vdb
 252       17   62910508 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile14/infraserver/VM_configuration/proc/meminfo                              0000644 0000000 0000000 00000002222 11524351371 025312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        1021520 kB
MemFree:           67844 kB
Buffers:            7720 kB
Cached:           773176 kB
SwapCached:            0 kB
Active:           175324 kB
Inactive:         687788 kB
Active(anon):      42300 kB
Inactive(anon):    42904 kB
Active(file):     133024 kB
Inactive(file):   644884 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               228 kB
Writeback:             0 kB
AnonPages:         82212 kB
Mapped:            20624 kB
Shmem:              2988 kB
Slab:              61772 kB
SReclaimable:      20104 kB
SUnreclaim:        41668 kB
KernelStack:        1560 kB
PageTables:        12528 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2558752 kB
Committed_AS:     280976 kB
VmallocTotal:   34359738367 kB
VmallocUsed:        7680 kB
VmallocChunk:   34359722660 kB
HardwareCorrupted:     0 kB
AnonHugePages:     22528 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     1040384 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/infraserver/VM_configuration/root/                                     0000777 0000000 0000000 00000000000 11524351372 023764  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/root/convert_to_vf.sh                     0000755 0000000 0000000 00000001135 11524351372 027174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/lspci.txt                                 0000644 0000000 0000000 00000001211 11524351371 024642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/infraserver/VM_configuration/df.txt                                    0000644 0000000 0000000 00000000401 11524351354 024122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3483812   9297124  28% /
tmpfs                   510760         0    510760   0% /dev/shm
/dev/vdb1             61923368  33417152  25360692  57% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/infraserver/VM_configuration/mount.txt                                 0000644 0000000 0000000 00000000657 11524351371 024707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
                                                                                 Virtual_Configuration/tile14/infraserver/VM_configuration/etc/                                      0000777 0000000 0000000 00000000000 11524351370 023552  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/                                 0000777 0000000 0000000 00000000000 11524351363 024402  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/                           0000777 0000000 0000000 00000000000 11524351370 025311  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests          0000755 0000000 0000000 00000017172 11524351363 030505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                 0000755 0000000 0000000 00000004325 11524351363 027123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd              0000755 0000000 0000000 00000006014 11524351364 027712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                0000755 0000000 0000000 00000012327 11524351365 027314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd               0000755 0000000 0000000 00000005222 11524351366 027500  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                    0000755 0000000 0000000 00000010671 11524351370 026476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                   0000755 0000000 0000000 00000006364 11524351364 026653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables               0000755 0000000 0000000 00000020716 11524351365 027424  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                    0000755 0000000 0000000 00000004731 11524351365 026503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S30nfs                     0000755 0000000 0000000 00000013536 11524351367 026325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon            0000755 0000000 0000000 00000004754 11524351363 030055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip               0000755 0000000 0000000 00000001364 11524351367 027523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                   0000755 0000000 0000000 00000003027 11524351365 026641  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                  0000755 0000000 0000000 00000006743 11524351370 027036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                   0000755 0000000 0000000 00000010777 11524351364 026645  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus              0000755 0000000 0000000 00000004230 11524351367 027665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                   0000755 0000000 0000000 00000006302 11524351365 026615  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                     0000755 0000000 0000000 00000004236 11524351370 026331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                 0000755 0000000 0000000 00000004031 11524351366 027146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance              0000755 0000000 0000000 00000003521 11524351366 027631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                 0000755 0000000 0000000 00000006050 11524351366 027203  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                 0000755 0000000 0000000 00000002363 11524351365 027252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger              0000755 0000000 0000000 00000004054 11524351363 027661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor               0000755 0000000 0000000 00000005013 11524351366 027540  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                   0000755 0000000 0000000 00000003213 11524351365 026634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                 0000755 0000000 0000000 00000003512 11524351364 027165  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                    0000755 0000000 0000000 00000003603 11524351364 026473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                  0000755 0000000 0000000 00000011277 11524351364 027020  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S10network                 0000755 0000000 0000000 00000014466 11524351366 027230  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                 0000755 0000000 0000000 00000004326 11524351366 027235  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                  0000755 0000000 0000000 00000006462 11524351366 027007  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                   0000755 0000000 0000000 00000027662 11524351366 026662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                    0000755 0000000 0000000 00000006445 11524351364 026376  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon               0000755 0000000 0000000 00000003245 11524351367 027470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K60crond                   0000755 0000000 0000000 00000005445 11524351364 026634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                   0000755 0000000 0000000 00000005522 11524351363 026635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl           0000755 0000000 0000000 00000002221 11524351365 030325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd               0000755 0000000 0000000 00000004010 11524351364 027475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                    0000755 0000000 0000000 00000004723 11524351367 026464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                  0000755 0000000 0000000 00000003024 11524351363 026765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                   0000755 0000000 0000000 00000003275 11524351367 026623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                0000755 0000000 0000000 00000025442 11524351366 027346  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post               0000755 0000000 0000000 00000004370 11524351367 027466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S99local                   0000755 0000000 0000000 00000000334 11524351370 026632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                 0000755 0000000 0000000 00000006675 11524351366 027205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole              0000755 0000000 0000000 00000005650 11524351364 027675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor            0000555 0000000 0000000 00000004612 11524351365 030072  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                  0000755 0000000 0000000 00000007234 11524351367 027045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                0000755 0000000 0000000 00000003433 11524351370 027370  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                  0000755 0000000 0000000 00000005672 11524351363 027015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                   0000755 0000000 0000000 00000003254 11524351370 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S55autobench               0000755 0000000 0000000 00000005063 11524351367 027512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                   0000755 0000000 0000000 00000012432 11524351367 026654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                 0000755 0000000 0000000 00000007414 11524351364 027216  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                0000755 0000000 0000000 00000020557 11524351365 027341  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond             0000755 0000000 0000000 00000003427 11524351365 030066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/rc3.d/K05atd                     0000755 0000000 0000000 00000004112 11524351363 026263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/                          0000777 0000000 0000000 00000000000 11524351363 025567  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/network                   0000755 0000000 0000000 00000014466 11524351360 027212  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/gfs2                      0000755 0000000 0000000 00000006445 11524351356 026365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/sysstat                   0000755 0000000 0000000 00000002363 11524351362 027226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/saslauthd                 0000755 0000000 0000000 00000004010 11524351362 027473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/messagebus                0000755 0000000 0000000 00000004230 11524351360 027643  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/autobench                 0000755 0000000 0000000 00000005063 11524351355 027466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/atd                       0000755 0000000 0000000 00000004112 11524351355 026260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/mcelogd                   0000755 0000000 0000000 00000003535 11524351360 027126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/auditd                    0000755 0000000 0000000 00000006462 11524351355 026774  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/certmonger                0000755 0000000 0000000 00000004054 11524351356 027663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/irqbalance                0000755 0000000 0000000 00000003521 11524351357 027616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/acpid                     0000755 0000000 0000000 00000003275 11524351355 026601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/nscd                      0000755 0000000 0000000 00000004723 11524351360 026443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                 0000755 0000000 0000000 00000005222 11524351362 027454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/nfs                       0000755 0000000 0000000 00000013536 11524351360 026304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/sssd                      0000755 0000000 0000000 00000004731 11524351362 026471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/crond                     0000755 0000000 0000000 00000005445 11524351356 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/ip6tables                 0000755 0000000 0000000 00000020716 11524351357 027413  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/autofs                    0000755 0000000 0000000 00000007234 11524351356 027022  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/sshd                      0000755 0000000 0000000 00000010671 11524351362 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/ksm                       0000755 0000000 0000000 00000004236 11524351357 026313  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/libvirt-guests            0000755 0000000 0000000 00000017172 11524351357 030507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/avahi-daemon              0000755 0000000 0000000 00000004754 11524351356 030056  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/ypbind                    0000755 0000000 0000000 00000011277 11524351363 027006  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/psacct                    0000755 0000000 0000000 00000003024 11524351361 026763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/xinetd                    0000755 0000000 0000000 00000006743 11524351363 027016  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/nfslock                   0000755 0000000 0000000 00000006675 11524351360 027163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/cgred                     0000755 0000000 0000000 00000006302 11524351356 026600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/migrateip                 0000755 0000000 0000000 00000001364 11524351360 027473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/udev-post                 0000755 0000000 0000000 00000004370 11524351363 027443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/haldaemon                 0000755 0000000 0000000 00000003245 11524351356 027447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/ipsec                     0000755 0000000 0000000 00000010777 11524351357 026633  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/rpcbind                   0000755 0000000 0000000 00000004031 11524351361 027126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/rhnsd                     0000755 0000000 0000000 00000005522 11524351361 026631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/functions                 0000644 0000000 0000000 00000042767 11524351356 027540  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/kdump                     0000755 0000000 0000000 00000027662 11524351357 026651  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/postfix                   0000755 0000000 0000000 00000007414 11524351361 027211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/iptables                  0000755 0000000 0000000 00000020557 11524351357 027330  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/rsyslog                   0000755 0000000 0000000 00000004326 11524351362 027217  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/netconsole                0000755 0000000 0000000 00000005650 11524351360 027665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/rpcgssd                   0000755 0000000 0000000 00000006050 11524351361 027155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/abrtd                     0000755 0000000 0000000 00000003254 11524351355 026612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor              0000555 0000000 0000000 00000004612 11524351360 030054  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/halt                      0000755 0000000 0000000 00000012723 11524351356 026450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/cgconfig                  0000755 0000000 0000000 00000012327 11524351356 027277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/single                    0000755 0000000 0000000 00000001207 11524351362 026771  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/mdmonitor                 0000755 0000000 0000000 00000005013 11524351360 027515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/restorecond               0000755 0000000 0000000 00000003427 11524351361 030044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/cpuspeed                  0000755 0000000 0000000 00000025442 11524351356 027332  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/netfs                     0000755 0000000 0000000 00000012432 11524351360 026627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                0000755 0000000 0000000 00000006014 11524351362 027672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/oddjobd                   0000755 0000000 0000000 00000004325 11524351361 027120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/ksmtuned                  0000755 0000000 0000000 00000003433 11524351357 027351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/sandbox                   0000755 0000000 0000000 00000003242 11524351362 027147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/killall                   0000755 0000000 0000000 00000001214 11524351357 027136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/rdisc                     0000755 0000000 0000000 00000003027 11524351361 026615  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/httpd                     0000755 0000000 0000000 00000006364 11524351357 026650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/ntpd                      0000755 0000000 0000000 00000003603 11524351361 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/smartd                    0000755 0000000 0000000 00000005672 11524351362 027014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/nslcd                     0000755 0000000 0000000 00000003213 11524351361 026611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/ntpdate                   0000755 0000000 0000000 00000003512 11524351361 027147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile14/infraserver/VM_configuration/etc/rc.d/init.d/microcode_ctl             0000755 0000000 0000000 00000002221 11524351360 030311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/infraserver/VM_configuration/etc/hosts                                 0000644 0000000 0000000 00000000236 11524351354 024634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile14/infraserver/VM_configuration/etc/iproute2/                             0000777 0000000 0000000 00000000000 11524351355 025326  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/etc/iproute2/rt_dsfield                   0000644 0000000 0000000 00000000672 11524351354 027370  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile14/infraserver/VM_configuration/etc/iproute2/rt_realms                    0000644 0000000 0000000 00000000160 11524351355 027232  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile14/infraserver/VM_configuration/etc/iproute2/rt_scopes                    0000644 0000000 0000000 00000000134 11524351355 027244  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile14/infraserver/VM_configuration/etc/iproute2/ematch_map                   0000644 0000000 0000000 00000000073 11524351354 027342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile14/infraserver/VM_configuration/etc/iproute2/rt_tables                    0000644 0000000 0000000 00000000127 11524351355 027224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile14/infraserver/VM_configuration/etc/iproute2/rt_protos                    0000644 0000000 0000000 00000000475 11524351355 027306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/etc/nsswitch.conf                         0000644 0000000 0000000 00000003230 11524351355 026260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile14/infraserver/VM_configuration/etc/fstab                                 0000644 0000000 0000000 00000001603 11524351354 024572  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile14/infraserver/VM_configuration/etc/sysctl.conf                           0000644 0000000 0000000 00000001466 11524351370 025745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile14/infraserver/VM_configuration/etc/inittab                               0000644 0000000 0000000 00000001564 11524351354 025133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile14/infraserver/VM_configuration/var/                                      0000777 0000000 0000000 00000000000 11524351372 023571  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/var/log/                                  0000777 0000000 0000000 00000000000 11524351372 024352  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/var/log/dmesg                             0000644 0000000 0000000 00000043364 11524351372 025402  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003fffd000 (usable)
 BIOS-e820: 000000003fffd000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x3fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000003fffd000
 0000000000 - 003fe00000 page 2M
 003fe00000 - 003fffd000 page 4k
kernel direct mapping tables up to 3fffd000 @ 8000-b000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000003fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000003ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000003fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000003ffffe00 00040
ACPI: SSDT 000000003fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000003fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000003fffd000
Bootmem setup node 0 0000000000000000-000000003fffd000
  NODE_DATA [0000000000009000 - 000000000003cfff]
  bootmap [000000000003d000 -  0000000000044fff] pages 8
(7 early reservations) ==> bootmem [0000000000 - 003fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0000dfffff] PMD -> [ffff880002200000-ffff880002ffffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0003fffd
On node 0 totalpages: 262038
  DMA zone: 56 pages used for memmap
  DMA zone: 105 pages reserved
  DMA zone: 3832 pages, LIFO batch:0
  DMA32 zone: 3528 pages used for memmap
  DMA32 zone: 254517 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 40000000 (gap: 40000000:bffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 258349
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 1007148k/1048564k available (4935k kernel code, 412k absent, 41004k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 10485760 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116129.355:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 1992
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:02:08 UTC (1297116128)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
ba:6e:f3:81:95:3b
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile14/infraserver/VM_configuration/boot/                                     0000777 0000000 0000000 00000000000 11524351354 023744  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/boot/grub/                                0000777 0000000 0000000 00000000000 11524351354 024703  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/VM_configuration/boot/grub/grub.conf                       0000644 0000000 0000000 00000002217 11524351354 026507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile14/infraserver/VM_configuration/rpmpkgs.txt                               0000644 0000000 0000000 00000067243 11524351372 025235  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
hivex-1.2.2-1.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
fcgi-2.4.0-14.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
scrub-2.2-1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
fcgi-devel-2.4.0-14.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
libguestfs-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile14/infraserver/VM_configuration/ifconfig.txt                              0000644 0000000 0000000 00000002342 11524351371 025322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:53  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:252 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:24419 (23.8 KiB)  TX bytes:830 (830.0 b)

eth1      Link encap:Ethernet  HWaddr BA:6E:F3:81:95:3B  
          inet addr:10.1.217.83  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::b86e:f3ff:fe81:953b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:62435297 errors:0 dropped:0 overruns:0 frame:0
          TX packets:116150383 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4395189895 (4.0 GiB)  TX bytes:167488631942 (155.9 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1010 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1010 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:100796 (98.4 KiB)  TX bytes:100796 (98.4 KiB)

                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/infraserver/VM_configuration/chkconfig.txt                             0000644 0000000 0000000 00000006531 11524351354 025476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                       Virtual_Configuration/tile14/infraserver/Software_Configuration/                                    0000777 0000000 0000000 00000000000 11524351352 024207  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/Software_Configuration/exports                             0000644 0000000 0000000 00000000101 11524351352 025622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /support-download *(rw,no_subtree_check,crossmnt,no_root_squash)
                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile14/infraserver/Software_Configuration/httpd/                              0000777 0000000 0000000 00000000000 11524351353 025333  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/Software_Configuration/httpd/conf.d/                       0000777 0000000 0000000 00000000000 11524351353 026502  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/Software_Configuration/httpd/conf.d/manual.conf            0000644 0000000 0000000 00000000447 11524351353 030627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This configuration file allows the manual to be accessed at 
# http://localhost/manual/
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"

<Directory "/var/www/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
                                                                                                                                                                                                                         Virtual_Configuration/tile14/infraserver/Software_Configuration/httpd/conf.d/php.conf               0000644 0000000 0000000 00000001242 11524351353 030133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile14/infraserver/Software_Configuration/httpd/conf.d/welcome.conf           0000644 0000000 0000000 00000000453 11524351353 031002  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # 
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

                                                                                                                                                                                                                     Virtual_Configuration/tile14/infraserver/Software_Configuration/httpd/conf.d/README                 0000644 0000000 0000000 00000000610 11524351353 027353  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
This directory holds Apache 2.0 module-specific configuration files;
any files in this directory which have the ".conf" extension will be
processed as Apache configuration files.

Files are processed in alphabetical order, so if using configuration
directives which depend on, say, mod_perl being loaded, ensure that
these are placed in a filename later in the sort order than "perl.conf".

                                                                                                                        Virtual_Configuration/tile14/infraserver/Software_Configuration/httpd/conf/                         0000777 0000000 0000000 00000000000 11524351353 026260  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile14/infraserver/Software_Configuration/httpd/conf/httpd.conf               0000644 0000000 0000000 00000103211 11524351353 030244  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# Don't give away too much information about all the subcomponents
# we are running.  Comment out this line if you don't mind remote sites
# finding out what major optional modules you are running
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.  Note the PIDFILE variable in
# /etc/sysconfig/httpd must be set appropriately if this location is
# changed.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 60

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive Off

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit 10240
MaxClients 10240
MaxRequestsPerChild  4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         4
MaxClients 10240
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 81

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

#
# The following modules are not loaded by default:
#
#LoadModule asis_module modules/mod_asis.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
#

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group #-1 on these systems!
#
User apache
Group apache

### Section 2: 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
#ServerName www.example.com:80

#
# UseCanonicalName: Determines how Apache constructs self-referencing 
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.  This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir disabled

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disabled" line above, and uncomment
    # the following line instead:
    # 
    #UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is 
# used to deliver files (assuming that the OS supports it). 
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
#
#EnableSendfile off

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
# requires the mod_logio module to be loaded.
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access_log common

#
# If you would like to have separate agent and referer logfiles, uncomment
# the following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# WebDAV module configuration section.
# 
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Directives controlling the display of server-generated directory listings.
#

#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes.  These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

#
# DefaultLanguage and AddLanguage allows you to specify the language of 
# a document. You can then use content negotiation to give a browser a 
# file in a language the user can understand.
#
# Specify a default language. This means that all data
# going out without a specific language tag (see below) will 
# be marked with this one. You probably do NOT want to set
# this unless you are sure it is correct for all cases.
#
# * It is generally better to not mark a page as 
# * being a certain language than marking it with the wrong
# * language!
#
# DefaultLanguage nl
#
# Note 1: The suffix does not have to be the same as the language
# keyword --- those with documents in Polish (whose net-standard
# language code is pl) may wish to use "AddLanguage pl .po" to
# avoid the ambiguity with the common suffix for perl scripts.
#
# Note 2: The example entries below illustrate that in some cases 
# the two character 'Language' abbreviation is not identical to 
# the two character 'Country' code for its country,
# E.g. 'Danmark/dk' versus 'Danish/da'.
#
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
# specifier. There is 'work in progress' to fix this and get
# the reference data for rfc1766 cleaned up.
#
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the 
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz

#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
#   MIME-types for downloading Certificates and CRLs
#
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
#  to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#    ErrorDocument 410 /error/HTTP_GONE.html.var
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Proxy>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
#   CacheEnable disk /
#   CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#

#</IfModule>
# End of proxy directives.

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>













Include conf/fcgi.conf
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile14/infraserver/Software_Configuration/httpd/conf/fcgi.conf                0000644 0000000 0000000 00000000607 11524351352 030035  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   LoadModule fastcgi_module modules/mod_fastcgi.so
ScriptAlias /fcgi-bin/ "/var/www/fcgi-bin/"
FastCgiIpcDir /etc/httpd/fastcgi
<Directory "/var/www/fcgi-bin">
    AllowOverride None
    Options +ExecCGI -Includes
    SetHandler fastcgi-script
    Order allow,deny
    Allow from all
 </Directory>
 AddHandler fastcgi-script fcgi
 FastCgiServer /var/www/fcgi-bin/besim_fcgi.fcgi -processes 50
                                                                                                                         Virtual_Configuration/tile14/infraserver/Software_Configuration/httpd/conf/magic                    0000644 0000000 0000000 00000031523 11524351353 027263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Magic data for mod_mime_magic Apache module (originally for file(1) command)
# The module is described in /manual/mod/mod_mime_magic.html
#
# The format is 4-5 columns:
#    Column #1: byte number to begin checking from, ">" indicates continuation
#    Column #2: type of data to match
#    Column #3: contents of data to match
#    Column #4: MIME type of result
#    Column #5: MIME encoding of result (optional)

#------------------------------------------------------------------------------
# Localstuff:  file(1) magic for locally observed files
# Add any locally observed files here.

#------------------------------------------------------------------------------
# end local stuff
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Java

0	short		0xcafe
>2	short		0xbabe		application/java

#------------------------------------------------------------------------------
# audio:  file(1) magic for sound formats
#
# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
#

# Sun/NeXT audio data
0	string		.snd
>12	belong		1		audio/basic
>12	belong		2		audio/basic
>12	belong		3		audio/basic
>12	belong		4		audio/basic
>12	belong		5		audio/basic
>12	belong		6		audio/basic
>12	belong		7		audio/basic

>12	belong		23		audio/x-adpcm

# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
# (0x0064732E in little-endian encoding).
0	lelong		0x0064732E	
>12	lelong		1		audio/x-dec-basic
>12	lelong		2		audio/x-dec-basic
>12	lelong		3		audio/x-dec-basic
>12	lelong		4		audio/x-dec-basic
>12	lelong		5		audio/x-dec-basic
>12	lelong		6		audio/x-dec-basic
>12	lelong		7		audio/x-dec-basic
#                                       compressed (G.721 ADPCM)
>12	lelong		23		audio/x-dec-adpcm

# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
#					AIFF audio data
8	string		AIFF		audio/x-aiff	
#					AIFF-C audio data
8	string		AIFC		audio/x-aiff	
#					IFF/8SVX audio data
8	string		8SVX		audio/x-aiff	

# Creative Labs AUDIO stuff
#					Standard MIDI data
0	string	MThd			audio/unknown	
#>9 	byte	>0			(format %d)
#>11	byte	>1			using %d channels
#					Creative Music (CMF) data
0	string	CTMF			audio/unknown	
#					SoundBlaster instrument data
0	string	SBI			audio/unknown	
#					Creative Labs voice data
0	string	Creative\ Voice\ File	audio/unknown	
## is this next line right?  it came this way...
#>19	byte	0x1A
#>23	byte	>0			- version %d
#>22	byte	>0			\b.%d

# [GRR 950115:  is this also Creative Labs?  Guessing that first line
#  should be string instead of unknown-endian long...]
#0	long		0x4e54524b	MultiTrack sound data
#0	string		NTRK		MultiTrack sound data
#>4	long		x		- version %ld

# Microsoft WAVE format (*.wav)
# [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
#					Microsoft RIFF
0	string		RIFF		audio/unknown
#					- WAVE format
>8	string		WAVE		audio/x-wav
# MPEG audio.
0   beshort&0xfff0  0xfff0  audio/mpeg
# C64 SID Music files, from Linus Walleij <triad@df.lth.se>
0   string      PSID        audio/prs.sid

#------------------------------------------------------------------------------
# c-lang:  file(1) magic for C programs or various scripts
#

# XPM icons (Greg Roelofs, newt@uchicago.edu)
# ideally should go into "images", but entries below would tag XPM as C source
0	string		/*\ XPM		image/x-xbm	7bit

# this first will upset you if you're a PL/1 shop... (are there any left?)
# in which case rm it; ascmagic will catch real C programs
#					C or REXX program text
0	string		/*		text/plain
#					C++ program text
0	string		//		text/plain

#------------------------------------------------------------------------------
# compress:  file(1) magic for pure-compression formats (no archives)
#
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
#
# Formats for various forms of compressed data
# Formats for "compress" proper have been moved into "compress.c",
# because it tries to uncompress it to figure out what's inside.

# standard unix compress
0	string		\037\235	application/octet-stream	x-compress

# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
0       string          \037\213        application/octet-stream	x-gzip

# According to gzip.h, this is the correct byte order for packed data.
0	string		\037\036	application/octet-stream
#
# This magic number is byte-order-independent.
#
0	short		017437		application/octet-stream

# XXX - why *two* entries for "compacted data", one of which is
# byte-order independent, and one of which is byte-order dependent?
#
# compacted data
0	short		0x1fff		application/octet-stream
0	string		\377\037	application/octet-stream
# huf output
0	short		0145405		application/octet-stream

# Squeeze and Crunch...
# These numbers were gleaned from the Unix versions of the programs to
# handle these formats.  Note that I can only uncrunch, not crunch, and
# I didn't have a crunched file handy, so the crunch number is untested.
#				Keith Waclena <keith@cerberus.uchicago.edu>
#0	leshort		0x76FF		squeezed data (CP/M, DOS)
#0	leshort		0x76FE		crunched data (CP/M, DOS)

# Freeze
#0	string		\037\237	Frozen file 2.1
#0	string		\037\236	Frozen file 1.0 (or gzip 0.5)

# lzh?
#0	string		\037\240	LZH compressed data

#------------------------------------------------------------------------------
# frame:  file(1) magic for FrameMaker files
#
# This stuff came on a FrameMaker demo tape, most of which is
# copyright, but this file is "published" as witness the following:
#
0	string		\<MakerFile	application/x-frame
0	string		\<MIFFile	application/x-frame
0	string		\<MakerDictionary	application/x-frame
0	string		\<MakerScreenFon	application/x-frame
0	string		\<MML		application/x-frame
0	string		\<Book		application/x-frame
0	string		\<Maker		application/x-frame

#------------------------------------------------------------------------------
# html:  file(1) magic for HTML (HyperText Markup Language) docs
#
# from Daniel Quinlan <quinlan@yggdrasil.com>
# and Anna Shergold <anna@inext.co.uk>
#
0   string      \<!DOCTYPE\ HTML    text/html
0   string      \<!doctype\ html    text/html
0   string      \<HEAD      text/html
0   string      \<head      text/html
0   string      \<TITLE     text/html
0   string      \<title     text/html
0   string      \<html      text/html
0   string      \<HTML      text/html
0   string      \<!--       text/html
0   string      \<h1        text/html
0   string      \<H1        text/html

# XML eXtensible Markup Language, from Linus Walleij <triad@df.lth.se>
0   string      \<?xml      text/xml

#------------------------------------------------------------------------------
# images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
#
# originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
# additions by janl@ifi.uio.no as well as others. Jan also suggested
# merging several one- and two-line files into here.
#
# XXX - byte order for GIF and TIFF fields?
# [GRR:  TIFF allows both byte orders; GIF is probably little-endian]
#

# [GRR:  what the hell is this doing in here?]
#0	string		xbtoa		btoa'd file

# PBMPLUS
#					PBM file
0	string		P1		image/x-portable-bitmap	7bit
#					PGM file
0	string		P2		image/x-portable-greymap	7bit
#					PPM file
0	string		P3		image/x-portable-pixmap	7bit
#					PBM "rawbits" file
0	string		P4		image/x-portable-bitmap
#					PGM "rawbits" file
0	string		P5		image/x-portable-greymap
#					PPM "rawbits" file
0	string		P6		image/x-portable-pixmap

# NIFF (Navy Interchange File Format, a modification of TIFF)
# [GRR:  this *must* go before TIFF]
0	string		IIN1		image/x-niff

# TIFF and friends
#					TIFF file, big-endian
0	string		MM		image/tiff
#					TIFF file, little-endian
0	string		II		image/tiff

# possible GIF replacements; none yet released!
# (Greg Roelofs, newt@uchicago.edu)
#
# GRR 950115:  this was mine ("Zip GIF"):
#					ZIF image (GIF+deflate alpha)
0	string		GIF94z		image/unknown
#
# GRR 950115:  this is Jeremy Wohl's Free Graphics Format (better):
#					FGF image (GIF+deflate beta)
0	string		FGF95a		image/unknown
#
# GRR 950115:  this is Thomas Boutell's Portable Bitmap Format proposal
# (best; not yet implemented):
#					PBF image (deflate compression)
0	string		PBF		image/unknown

# GIF
0	string		GIF		image/gif

# JPEG images
0	beshort		0xffd8		image/jpeg

# PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
0	string		BM		image/bmp
#>14	byte		12		(OS/2 1.x format)
#>14	byte		64		(OS/2 2.x format)
#>14	byte		40		(Windows 3.x format)
#0	string		IC		icon
#0	string		PI		pointer
#0	string		CI		color icon
#0	string		CP		color pointer
#0	string		BA		bitmap array


#------------------------------------------------------------------------------
# lisp:  file(1) magic for lisp programs
#
# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
0	string	;;			text/plain	8bit
# Emacs 18 - this is always correct, but not very magical.
0	string	\012(			application/x-elc
# Emacs 19
0	string	;ELC\023\000\000\000	application/x-elc

#------------------------------------------------------------------------------
# mail.news:  file(1) magic for mail and news
#
# There are tests to ascmagic.c to cope with mail and news.
0	string		Relay-Version: 	message/rfc822	7bit
0	string		#!\ rnews	message/rfc822	7bit
0	string		N#!\ rnews	message/rfc822	7bit
0	string		Forward\ to 	message/rfc822	7bit
0	string		Pipe\ to 	message/rfc822	7bit
0	string		Return-Path:	message/rfc822	7bit
0	string		Path:		message/news	8bit
0	string		Xref:		message/news	8bit
0	string		From:		message/rfc822	7bit
0	string		Article 	message/news	8bit
#------------------------------------------------------------------------------
# msword: file(1) magic for MS Word files
#
# Contributor claims:
# Reversed-engineered MS Word magic numbers
#

0	string		\376\067\0\043			application/msword
0	string		\333\245-\0\0\0			application/msword

# disable this one because it applies also to other
# Office/OLE documents for which msword is not correct. See PR#2608.
#0	string		\320\317\021\340\241\261	application/msword



#------------------------------------------------------------------------------
# printer:  file(1) magic for printer-formatted files
#

# PostScript
0	string		%!		application/postscript
0	string		\004%!		application/postscript

# Acrobat
# (due to clamen@cs.cmu.edu)
0	string		%PDF-		application/pdf

#------------------------------------------------------------------------------
# sc:  file(1) magic for "sc" spreadsheet
#
38	string		Spreadsheet	application/x-sc

#------------------------------------------------------------------------------
# tex:  file(1) magic for TeX files
#
# XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
#
# From <conklin@talisman.kaleida.com>

# Although we may know the offset of certain text fields in TeX DVI
# and font files, we can't use them reliably because they are not
# zero terminated. [but we do anyway, christos]
0	string		\367\002	application/x-dvi
#0	string		\367\203	TeX generic font data
#0	string		\367\131	TeX packed font data
#0	string		\367\312	TeX virtual font data
#0	string		This\ is\ TeX,	TeX transcript text	
#0	string		This\ is\ METAFONT,	METAFONT transcript text

# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data.  The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
#2	string		\000\021	TeX font metric data
#2	string		\000\022	TeX font metric data
#>34	string		>\0		(%s)

# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
#0	string		\\input\ texinfo	Texinfo source text
#0	string		This\ is\ Info\ file	GNU Info text

# correct TeX magic for Linux (and maybe more)
# from Peter Tobias (tobias@server.et-inf.fho-emden.de)
#
0	leshort		0x02f7		application/x-dvi

# RTF - Rich Text Format
0	string		{\\rtf		application/rtf

#------------------------------------------------------------------------------
# animation:  file(1) magic for animation/movie formats
#
# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
#						MPEG file
0	string		\000\000\001\263	video/mpeg
#
# The contributor claims:
#   I couldn't find a real magic number for these, however, this
#   -appears- to work.  Note that it might catch other files, too,
#   so BE CAREFUL!
#
# Note that title and author appear in the two 20-byte chunks
# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
# 255 (hex FF)! DL format SUCKS BIG ROCKS.
#
#						DL file version 1 , medium format (160x100, 4 images/screen)
0	byte		1			video/unknown
0	byte		2			video/unknown
# Quicktime video, from Linus Walleij <triad@df.lth.se>
# from Apple quicktime file format documentation.
4   string      moov        video/quicktime
4   string      mdat        video/quicktime

# PNG [Portable Network Graphics, or "PNG's Not GIF"] images
#
# 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
0   string      \211PNG\015      image/png
                                                                                                                                                                             Virtual_Configuration/tile1/                                                                        0000777 0000000 0000000 00000000000 11524350443 015114  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/                                                             0000777 0000000 0000000 00000000000 11524350362 017260  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/                                            0000777 0000000 0000000 00000000000 11524350403 022525  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/proc/                                       0000777 0000000 0000000 00000000000 11524350402 023467  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/proc/cpuinfo                                0000644 0000000 0000000 00000001017 11524350402 025050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/idleserver/VM_configuration/proc/mounts                                 0000644 0000000 0000000 00000001356 11524350402 024740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=503592k,nr_inodes=125898,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1279,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1279,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/idleserver/VM_configuration/proc/swaps                                  0000644 0000000 0000000 00000000144 11524350402 024542  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/idleserver/VM_configuration/proc/devices                                0000644 0000000 0000000 00000000567 11524350402 025040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile1/idleserver/VM_configuration/proc/modules                                0000644 0000000 0000000 00000002547 11524350402 025066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02a5000
stp 2107 1 bridge, Live 0xffffffffa029f000
llc 5608 2 bridge,stp, Live 0xffffffffa0297000
autofs4 27683 3 - Live 0xffffffffa028a000
sunrpc 241630 1 - Live 0xffffffffa0237000
ipv6 321209 38 - Live 0xffffffffa01a2000
dm_mirror 14003 0 - Live 0xffffffffa0176000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa016d000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0164000
ppdev 8695 0 - Live 0xffffffffa0156000
parport_pc 22944 0 - Live 0xffffffffa0149000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa0137000
sg 30186 0 - Live 0xffffffffa0128000
virtio_net 15665 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Virtual_Configuration/tile1/idleserver/VM_configuration/proc/partitions                             0000644 0000000 0000000 00000000260 11524350402 025600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile1/idleserver/VM_configuration/proc/meminfo                                0000644 0000000 0000000 00000002222 11524350402 025036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        1021520 kB
MemFree:          781680 kB
Buffers:           16540 kB
Cached:            97624 kB
SwapCached:            0 kB
Active:            88128 kB
Inactive:          75248 kB
Active(anon):      49344 kB
Inactive(anon):        0 kB
Active(file):      38784 kB
Inactive(file):    75248 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               208 kB
Writeback:             0 kB
AnonPages:         49240 kB
Mapped:            18520 kB
Shmem:               160 kB
Slab:              61188 kB
SReclaimable:      24728 kB
SUnreclaim:        36460 kB
KernelStack:         984 kB
PageTables:         3056 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2558752 kB
Committed_AS:     151208 kB
VmallocTotal:   34359738367 kB
VmallocUsed:        7592 kB
VmallocChunk:   34359726760 kB
HardwareCorrupted:     0 kB
AnonHugePages:     10240 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     1040384 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/idleserver/VM_configuration/root/                                       0000777 0000000 0000000 00000000000 11524350402 023507  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/root/convert_to_vf.sh                       0000755 0000000 0000000 00000001135 11524350402 026717  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/lspci.txt                                   0000644 0000000 0000000 00000001046 11524350401 024373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile1/idleserver/VM_configuration/df.txt                                      0000644 0000000 0000000 00000000401 11524350363 023653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3618628   9162308  29% /
tmpfs                   510760         0    510760   0% /dev/shm
/dev/vdb1             20642412    176072  19417768   1% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/idleserver/VM_configuration/mount.txt                                   0000644 0000000 0000000 00000000612 11524350401 024421  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile1/idleserver/VM_configuration/etc/                                        0000777 0000000 0000000 00000000000 11524350401 023276  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/                                   0000777 0000000 0000000 00000000000 11524350373 024134  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/                             0000777 0000000 0000000 00000000000 11524350401 025035  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests            0000755 0000000 0000000 00000017172 11524350373 030237  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                   0000755 0000000 0000000 00000004325 11524350373 026655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                0000755 0000000 0000000 00000006014 11524350374 027444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                  0000755 0000000 0000000 00000012327 11524350376 027047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                 0000755 0000000 0000000 00000005222 11524350377 027233  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                      0000755 0000000 0000000 00000010671 11524350400 026221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                     0000755 0000000 0000000 00000006364 11524350374 026405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                 0000755 0000000 0000000 00000020716 11524350375 027156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                      0000755 0000000 0000000 00000004731 11524350375 026235  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon              0000755 0000000 0000000 00000004754 11524350373 027607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                 0000755 0000000 0000000 00000001364 11524350400 027240  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                     0000755 0000000 0000000 00000003027 11524350375 026373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                    0000755 0000000 0000000 00000006743 11524350400 026561  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                     0000755 0000000 0000000 00000010777 11524350375 026400  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                0000755 0000000 0000000 00000004230 11524350377 027417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                     0000755 0000000 0000000 00000006302 11524350375 026347  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                       0000755 0000000 0000000 00000004236 11524350401 026055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                   0000755 0000000 0000000 00000004031 11524350377 026701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                0000755 0000000 0000000 00000003521 11524350377 027364  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                   0000755 0000000 0000000 00000006050 11524350377 026736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                   0000755 0000000 0000000 00000002363 11524350376 027005  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                0000755 0000000 0000000 00000004054 11524350373 027413  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                 0000755 0000000 0000000 00000005013 11524350377 027273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                     0000755 0000000 0000000 00000003213 11524350375 026366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                   0000755 0000000 0000000 00000003512 11524350375 026720  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                      0000755 0000000 0000000 00000003603 11524350374 026225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                    0000755 0000000 0000000 00000011277 11524350374 026552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S10network                   0000755 0000000 0000000 00000014466 11524350376 026762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                   0000755 0000000 0000000 00000004326 11524350376 026767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                    0000755 0000000 0000000 00000006462 11524350376 026541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                     0000755 0000000 0000000 00000027662 11524350377 026415  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                      0000755 0000000 0000000 00000006445 11524350374 026130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                 0000755 0000000 0000000 00000003245 11524350400 027205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K60crond                     0000755 0000000 0000000 00000005445 11524350374 026366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                     0000755 0000000 0000000 00000005522 11524350373 026367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl             0000755 0000000 0000000 00000002221 11524350376 030060  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                 0000755 0000000 0000000 00000004010 11524350374 027227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                       0000755 0000000 0000000 00000013536 11524350374 026047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                      0000755 0000000 0000000 00000004723 11524350400 026201  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                    0000755 0000000 0000000 00000003024 11524350373 026517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                     0000755 0000000 0000000 00000003275 11524350400 026340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                  0000755 0000000 0000000 00000025442 11524350377 027101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                 0000755 0000000 0000000 00000004370 11524350400 027203  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S99local                     0000755 0000000 0000000 00000000334 11524350401 026356  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                   0000755 0000000 0000000 00000006675 11524350377 026740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                0000755 0000000 0000000 00000005650 11524350374 027427  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor              0000555 0000000 0000000 00000004612 11524350376 027625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                    0000755 0000000 0000000 00000007234 11524350400 026562  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                  0000755 0000000 0000000 00000003433 11524350401 027114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                    0000755 0000000 0000000 00000005672 11524350373 026547  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                     0000755 0000000 0000000 00000003254 11524350400 026353  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                 0000755 0000000 0000000 00000005063 11524350400 027227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                     0000755 0000000 0000000 00000012432 11524350400 026371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                   0000755 0000000 0000000 00000007414 11524350374 026750  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                  0000755 0000000 0000000 00000020557 11524350376 027074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond               0000755 0000000 0000000 00000003427 11524350375 027620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/rc3.d/K05atd                       0000755 0000000 0000000 00000004112 11524350373 026015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/                            0000777 0000000 0000000 00000000000 11524350373 025321  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/network                     0000755 0000000 0000000 00000014466 11524350370 026744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/gfs2                        0000755 0000000 0000000 00000006445 11524350366 026117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/sysstat                     0000755 0000000 0000000 00000002363 11524350372 026760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/saslauthd                   0000755 0000000 0000000 00000004010 11524350372 027225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/messagebus                  0000755 0000000 0000000 00000004230 11524350367 027403  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/autobench                   0000755 0000000 0000000 00000005063 11524350365 027220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/atd                         0000755 0000000 0000000 00000004112 11524350365 026012  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/mcelogd                     0000755 0000000 0000000 00000003535 11524350367 026666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/auditd                      0000755 0000000 0000000 00000006462 11524350365 026526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/certmonger                  0000755 0000000 0000000 00000004054 11524350365 027414  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/irqbalance                  0000755 0000000 0000000 00000003521 11524350367 027350  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/acpid                       0000755 0000000 0000000 00000003275 11524350364 026332  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/nscd                        0000755 0000000 0000000 00000004723 11524350370 026175  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                   0000755 0000000 0000000 00000005222 11524350371 027205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/nfs                         0000755 0000000 0000000 00000013536 11524350370 026036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/sssd                        0000755 0000000 0000000 00000004731 11524350372 026223  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/crond                       0000755 0000000 0000000 00000005445 11524350366 026362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/ip6tables                   0000755 0000000 0000000 00000020716 11524350366 027144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/autofs                      0000755 0000000 0000000 00000007234 11524350365 026553  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/sshd                        0000755 0000000 0000000 00000010671 11524350372 026210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/ksm                         0000755 0000000 0000000 00000004236 11524350367 026045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/libvirt-guests              0000755 0000000 0000000 00000017172 11524350367 030241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                0000755 0000000 0000000 00000004754 11524350365 027607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/ypbind                      0000755 0000000 0000000 00000011277 11524350373 026540  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/psacct                      0000755 0000000 0000000 00000003024 11524350371 026515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/xinetd                      0000755 0000000 0000000 00000006743 11524350373 026550  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/nfslock                     0000755 0000000 0000000 00000006675 11524350370 026715  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/cgred                       0000755 0000000 0000000 00000006302 11524350365 026331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/migrateip                   0000755 0000000 0000000 00000001364 11524350370 027225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/udev-post                   0000755 0000000 0000000 00000004370 11524350372 027174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/haldaemon                   0000755 0000000 0000000 00000003245 11524350366 027201  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/ipsec                       0000755 0000000 0000000 00000010777 11524350366 026364  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/rpcbind                     0000755 0000000 0000000 00000004031 11524350371 026660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/rhnsd                       0000755 0000000 0000000 00000005522 11524350371 026363  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/functions                   0000644 0000000 0000000 00000042767 11524350366 027272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/kdump                       0000755 0000000 0000000 00000027662 11524350367 026403  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/postfix                     0000755 0000000 0000000 00000007414 11524350371 026743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/iptables                    0000755 0000000 0000000 00000020557 11524350367 027062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/rsyslog                     0000755 0000000 0000000 00000004326 11524350372 026751  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/netconsole                  0000755 0000000 0000000 00000005650 11524350370 027417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/rpcgssd                     0000755 0000000 0000000 00000006050 11524350371 026707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/abrtd                       0000755 0000000 0000000 00000003254 11524350364 026343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                0000555 0000000 0000000 00000004612 11524350367 027614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/halt                        0000755 0000000 0000000 00000012723 11524350366 026202  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/cgconfig                    0000755 0000000 0000000 00000012327 11524350365 027030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/single                      0000755 0000000 0000000 00000001207 11524350372 026523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/mdmonitor                   0000755 0000000 0000000 00000005013 11524350367 027255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/restorecond                 0000755 0000000 0000000 00000003427 11524350371 027576  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/cpuspeed                    0000755 0000000 0000000 00000025442 11524350366 027064  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/netfs                       0000755 0000000 0000000 00000012432 11524350370 026361  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                  0000755 0000000 0000000 00000006014 11524350371 027423  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/oddjobd                     0000755 0000000 0000000 00000004325 11524350371 026652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/ksmtuned                    0000755 0000000 0000000 00000003433 11524350367 027103  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/sandbox                     0000755 0000000 0000000 00000003242 11524350372 026701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/killall                     0000755 0000000 0000000 00000001214 11524350367 026670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/rdisc                       0000755 0000000 0000000 00000003027 11524350371 026347  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/httpd                       0000755 0000000 0000000 00000006364 11524350366 026401  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/ntpd                        0000755 0000000 0000000 00000003603 11524350370 026207  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/smartd                      0000755 0000000 0000000 00000005672 11524350372 026546  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/nslcd                       0000755 0000000 0000000 00000003213 11524350370 026342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/ntpdate                     0000755 0000000 0000000 00000003512 11524350370 026700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile1/idleserver/VM_configuration/etc/rc.d/init.d/microcode_ctl               0000755 0000000 0000000 00000002221 11524350370 030043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/idleserver/VM_configuration/etc/hosts                                   0000644 0000000 0000000 00000000267 11524350363 024371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/idleserver/VM_configuration/etc/iproute2/                               0000777 0000000 0000000 00000000000 11524350364 025057  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/etc/iproute2/rt_dsfield                     0000644 0000000 0000000 00000000672 11524350364 027122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile1/idleserver/VM_configuration/etc/iproute2/rt_realms                      0000644 0000000 0000000 00000000160 11524350364 026763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile1/idleserver/VM_configuration/etc/iproute2/rt_scopes                      0000644 0000000 0000000 00000000134 11524350364 026775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/idleserver/VM_configuration/etc/iproute2/ematch_map                     0000644 0000000 0000000 00000000073 11524350364 027074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/idleserver/VM_configuration/etc/iproute2/rt_tables                      0000644 0000000 0000000 00000000127 11524350364 026755  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/idleserver/VM_configuration/etc/iproute2/rt_protos                      0000644 0000000 0000000 00000000475 11524350364 027037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/etc/nsswitch.conf                           0000644 0000000 0000000 00000003230 11524350364 026011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/idleserver/VM_configuration/etc/fstab                                   0000644 0000000 0000000 00000001603 11524350363 024323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile1/idleserver/VM_configuration/etc/sysctl.conf                             0000644 0000000 0000000 00000001466 11524350401 025471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile1/idleserver/VM_configuration/etc/inittab                                 0000644 0000000 0000000 00000001564 11524350363 024664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile1/idleserver/VM_configuration/var/                                        0000777 0000000 0000000 00000000000 11524350403 023315  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/var/log/                                    0000777 0000000 0000000 00000000000 11524350403 024076  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/var/log/dmesg                               0000644 0000000 0000000 00000041447 11524350403 025126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003fffd000 (usable)
 BIOS-e820: 000000003fffd000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x3fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000003fffd000
 0000000000 - 003fe00000 page 2M
 003fe00000 - 003fffd000 page 4k
kernel direct mapping tables up to 3fffd000 @ 8000-b000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000003fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000003ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000003fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000003ffffe00 00040
ACPI: SSDT 000000003fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000003fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000003fffd000
Bootmem setup node 0 0000000000000000-000000003fffd000
  NODE_DATA [0000000000009000 - 000000000003cfff]
  bootmap [000000000003d000 -  0000000000044fff] pages 8
(7 early reservations) ==> bootmem [0000000000 - 003fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0000dfffff] PMD -> [ffff880002200000-ffff880002ffffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0003fffd
On node 0 totalpages: 262038
  DMA zone: 56 pages used for memmap
  DMA zone: 105 pages reserved
  DMA zone: 3832 pages, LIFO batch:0
  DMA32 zone: 3528 pages used for memmap
  DMA32 zone: 254517 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 40000000 (gap: 40000000:bffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 258349
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 1007148k/1048564k available (4935k kernel code, 412k absent, 41004k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 10485760 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116197.308:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 1992
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:03:16 UTC (1297116196)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 30 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                         Virtual_Configuration/tile1/idleserver/VM_configuration/boot/                                       0000777 0000000 0000000 00000000000 11524350363 023475  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/boot/grub/                                  0000777 0000000 0000000 00000000000 11524350363 024434  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/VM_configuration/boot/grub/grub.conf                         0000644 0000000 0000000 00000002217 11524350363 026240  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/idleserver/VM_configuration/rpmpkgs.txt                                 0000644 0000000 0000000 00000067153 11524350403 024761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/idleserver/VM_configuration/ifconfig.txt                                0000644 0000000 0000000 00000001571 11524350401 025050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:04  
          inet addr:10.1.217.4  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe91:4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22509 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2561 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1903614 (1.8 MiB)  TX bytes:792358 (773.7 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:736 errors:0 dropped:0 overruns:0 frame:0
          TX packets:736 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:72087 (70.3 KiB)  TX bytes:72087 (70.3 KiB)

                                                                                                                                       Virtual_Configuration/tile1/idleserver/VM_configuration/chkconfig.txt                               0000644 0000000 0000000 00000006535 11524350363 025233  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile1/idleserver/Software_Configuration/                                      0000777 0000000 0000000 00000000000 11524350362 023741  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/                                                              0000777 0000000 0000000 00000000000 11524350314 017120  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/                                             0000777 0000000 0000000 00000000000 11524350342 022372  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/proc/                                        0000777 0000000 0000000 00000000000 11524350341 023334  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/proc/cpuinfo                                 0000644 0000000 0000000 00000002030 11524350341 024711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/appserver/VM_configuration/proc/mounts                                  0000644 0000000 0000000 00000001357 11524350341 024606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1278676k,nr_inodes=319669,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1358,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1358,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/appserver/VM_configuration/proc/swaps                                   0000644 0000000 0000000 00000000144 11524350341 024407  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/appserver/VM_configuration/proc/devices                                 0000644 0000000 0000000 00000000567 11524350341 024705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile1/appserver/VM_configuration/proc/modules                                 0000644 0000000 0000000 00000002621 11524350341 024724  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 61 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
i2c_piix4 12574 0 - Live 0xffffffffa0129000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0119000
ixgbevf 47200 0 - Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
sr_mod 16162 0 - Live 0xffffffffa0064000
cdrom 39769 1 sr_mod, Live 0xffffffffa0053000
virtio_blk 5087 5 - Live 0xffffffffa004c000
pata_acpi 3667 0 - Live 0xffffffffa0046000
ata_generic 3611 0 - Live 0xffffffffa0040000
ata_piix 22588 0 - Live 0xffffffffa0034000
virtio_pci 6733 0 - Live 0xffffffffa002c000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0025000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile1/appserver/VM_configuration/proc/partitions                              0000644 0000000 0000000 00000000260 11524350341 025445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile1/appserver/VM_configuration/proc/meminfo                                 0000644 0000000 0000000 00000002222 11524350341 024703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2571688 kB
MemFree:          467076 kB
Buffers:           37960 kB
Cached:           244804 kB
SwapCached:            0 kB
Active:          1778820 kB
Inactive:         189396 kB
Active(anon):    1685600 kB
Inactive(anon):        4 kB
Active(file):      93220 kB
Inactive(file):   189392 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               168 kB
Writeback:             0 kB
AnonPages:       1685396 kB
Mapped:            76128 kB
Shmem:               164 kB
Slab:             102600 kB
SReclaimable:      35488 kB
SUnreclaim:        67112 kB
KernelStack:        2712 kB
PageTables:         7112 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3333836 kB
Committed_AS:     359260 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19244 kB
VmallocChunk:   34359711684 kB
HardwareCorrupted:     0 kB
AnonHugePages:   1437696 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2613248 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/appserver/VM_configuration/root/                                        0000777 0000000 0000000 00000000000 11524350341 023354  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/root/convert_to_vf.sh                        0000755 0000000 0000000 00000001135 11524350341 026564  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/lspci.txt                                    0000644 0000000 0000000 00000001211 11524350340 024232  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/appserver/VM_configuration/df.txt                                       0000644 0000000 0000000 00000000401 11524350315 023513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8774260   4006676  69% /
tmpfs                  1285844         0   1285844   0% /dev/shm
/dev/vdb1             20642412   2027572  17566268  11% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/appserver/VM_configuration/mount.txt                                    0000644 0000000 0000000 00000000612 11524350341 024267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile1/appserver/VM_configuration/etc/                                         0000777 0000000 0000000 00000000000 11524350340 023143  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/                                    0000777 0000000 0000000 00000000000 11524350331 023771  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/                              0000777 0000000 0000000 00000000000 11524350340 024702  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests             0000755 0000000 0000000 00000017172 11524350332 030075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                    0000755 0000000 0000000 00000004325 11524350332 026513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524350333 027302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                   0000755 0000000 0000000 00000012327 11524350335 026705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                  0000755 0000000 0000000 00000005222 11524350336 027071  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                       0000755 0000000 0000000 00000010671 11524350340 026067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                      0000755 0000000 0000000 00000006364 11524350333 026243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                  0000755 0000000 0000000 00000020716 11524350334 027014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                       0000755 0000000 0000000 00000004731 11524350334 026073  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon               0000755 0000000 0000000 00000004754 11524350332 027445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                  0000755 0000000 0000000 00000001364 11524350340 027106  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                      0000755 0000000 0000000 00000003027 11524350334 026231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                     0000755 0000000 0000000 00000006743 11524350340 026427  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                      0000755 0000000 0000000 00000010777 11524350334 026236  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                 0000755 0000000 0000000 00000004230 11524350337 027256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                      0000755 0000000 0000000 00000006302 11524350334 026205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                        0000755 0000000 0000000 00000004236 11524350340 025722  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                    0000755 0000000 0000000 00000004031 11524350336 026537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                 0000755 0000000 0000000 00000003521 11524350336 027222  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                    0000755 0000000 0000000 00000006050 11524350336 026574  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                    0000755 0000000 0000000 00000002363 11524350335 026643  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                 0000755 0000000 0000000 00000004054 11524350331 027250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                  0000755 0000000 0000000 00000005013 11524350336 027131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                      0000755 0000000 0000000 00000003213 11524350334 026224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                    0000755 0000000 0000000 00000003512 11524350334 026556  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                       0000755 0000000 0000000 00000003603 11524350334 026064  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                     0000755 0000000 0000000 00000011277 11524350334 026411  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S10network                    0000755 0000000 0000000 00000014466 11524350335 026620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                    0000755 0000000 0000000 00000004326 11524350335 026625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                     0000755 0000000 0000000 00000006462 11524350335 026377  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                      0000755 0000000 0000000 00000027662 11524350336 026253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                       0000755 0000000 0000000 00000006445 11524350334 025767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                  0000755 0000000 0000000 00000003245 11524350337 027061  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K60crond                      0000755 0000000 0000000 00000005445 11524350333 026224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                      0000755 0000000 0000000 00000005522 11524350332 026225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl              0000755 0000000 0000000 00000002221 11524350335 027716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                  0000755 0000000 0000000 00000004010 11524350333 027065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                        0000755 0000000 0000000 00000013536 11524350333 025705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                       0000755 0000000 0000000 00000004723 11524350337 026055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                     0000755 0000000 0000000 00000003024 11524350332 026355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                      0000755 0000000 0000000 00000003275 11524350337 026214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                   0000755 0000000 0000000 00000025442 11524350335 026736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                  0000755 0000000 0000000 00000004370 11524350337 027057  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S99local                      0000755 0000000 0000000 00000000334 11524350340 026223  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                    0000755 0000000 0000000 00000006675 11524350336 026576  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                 0000755 0000000 0000000 00000005650 11524350333 027265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor               0000555 0000000 0000000 00000004612 11524350335 027463  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                     0000755 0000000 0000000 00000007234 11524350337 026436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                   0000755 0000000 0000000 00000003433 11524350340 026761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                     0000755 0000000 0000000 00000005672 11524350331 026404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                      0000755 0000000 0000000 00000003254 11524350340 026221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                  0000755 0000000 0000000 00000005063 11524350337 027103  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                      0000755 0000000 0000000 00000012432 11524350337 026245  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                    0000755 0000000 0000000 00000007414 11524350333 026606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                   0000755 0000000 0000000 00000020557 11524350335 026732  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond                0000755 0000000 0000000 00000003427 11524350334 027456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/rc3.d/K05atd                        0000755 0000000 0000000 00000004112 11524350332 025653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/                             0000777 0000000 0000000 00000000000 11524350331 025156  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/network                      0000755 0000000 0000000 00000014466 11524350325 026607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/gfs2                         0000755 0000000 0000000 00000006445 11524350321 025751  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/sysstat                      0000755 0000000 0000000 00000002363 11524350331 026616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/saslauthd                    0000755 0000000 0000000 00000004010 11524350330 027062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/messagebus                   0000755 0000000 0000000 00000004230 11524350324 027237  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/autobench                    0000755 0000000 0000000 00000005063 11524350317 027060  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/atd                          0000755 0000000 0000000 00000004112 11524350317 025652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/mcelogd                      0000755 0000000 0000000 00000003535 11524350324 026522  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/auditd                       0000755 0000000 0000000 00000006462 11524350317 026366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/certmonger                   0000755 0000000 0000000 00000004054 11524350320 027246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/irqbalance                   0000755 0000000 0000000 00000003521 11524350322 027202  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/acpid                        0000755 0000000 0000000 00000003275 11524350317 026173  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/nscd                         0000755 0000000 0000000 00000004723 11524350325 026040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                    0000755 0000000 0000000 00000005222 11524350327 027051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/nfs                          0000755 0000000 0000000 00000013536 11524350325 025701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/sssd                         0000755 0000000 0000000 00000004731 11524350330 026060  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/crond                        0000755 0000000 0000000 00000005445 11524350321 026214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/ip6tables                    0000755 0000000 0000000 00000020716 11524350322 026777  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/autofs                       0000755 0000000 0000000 00000007234 11524350320 026405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/sshd                         0000755 0000000 0000000 00000010671 11524350330 026045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/ksm                          0000755 0000000 0000000 00000004236 11524350323 025700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/libvirt-guests               0000755 0000000 0000000 00000017172 11524350323 030074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                 0000755 0000000 0000000 00000004754 11524350320 027441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/ypbind                       0000755 0000000 0000000 00000011277 11524350331 026375  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/psacct                       0000755 0000000 0000000 00000003024 11524350326 026360  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/xinetd                       0000755 0000000 0000000 00000006743 11524350331 026405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/nfslock                      0000755 0000000 0000000 00000006675 11524350325 026560  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/cgred                        0000755 0000000 0000000 00000006302 11524350320 026163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/migrateip                    0000755 0000000 0000000 00000001364 11524350324 027067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/udev-post                    0000755 0000000 0000000 00000004370 11524350331 027032  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/haldaemon                    0000755 0000000 0000000 00000003245 11524350321 027033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/ipsec                        0000755 0000000 0000000 00000010777 11524350322 026217  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/rpcbind                      0000755 0000000 0000000 00000004031 11524350327 026524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/rhnsd                        0000755 0000000 0000000 00000005522 11524350327 026227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/functions                    0000644 0000000 0000000 00000042767 11524350321 027124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/kdump                        0000755 0000000 0000000 00000027662 11524350323 026236  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/postfix                      0000755 0000000 0000000 00000007414 11524350326 026606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/iptables                     0000755 0000000 0000000 00000020557 11524350322 026714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/rsyslog                      0000755 0000000 0000000 00000004326 11524350327 026614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/netconsole                   0000755 0000000 0000000 00000005650 11524350324 027261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/rpcgssd                      0000755 0000000 0000000 00000006050 11524350327 026553  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/abrtd                        0000755 0000000 0000000 00000003254 11524350317 026204  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                 0000555 0000000 0000000 00000004612 11524350323 027447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/halt                         0000755 0000000 0000000 00000012723 11524350321 026034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/cgconfig                     0000755 0000000 0000000 00000012327 11524350320 026662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/single                       0000755 0000000 0000000 00000001207 11524350330 026360  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/mdmonitor                    0000755 0000000 0000000 00000005013 11524350324 027111  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/restorecond                  0000755 0000000 0000000 00000003427 11524350326 027441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/cpuspeed                     0000755 0000000 0000000 00000025442 11524350320 026715  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/netfs                        0000755 0000000 0000000 00000012432 11524350325 026224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                   0000755 0000000 0000000 00000006014 11524350327 027267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/oddjobd                      0000755 0000000 0000000 00000004325 11524350326 026515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/ksmtuned                     0000755 0000000 0000000 00000003433 11524350323 026736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/sandbox                      0000755 0000000 0000000 00000003242 11524350330 026536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/killall                      0000755 0000000 0000000 00000001214 11524350323 026523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/rdisc                        0000755 0000000 0000000 00000003027 11524350326 026212  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/httpd                        0000755 0000000 0000000 00000006364 11524350322 026234  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/ntpd                         0000755 0000000 0000000 00000003603 11524350326 026053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/smartd                       0000755 0000000 0000000 00000005672 11524350330 026403  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/nslcd                        0000755 0000000 0000000 00000003213 11524350325 026205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/ntpdate                      0000755 0000000 0000000 00000003512 11524350326 026544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile1/appserver/VM_configuration/etc/rc.d/init.d/microcode_ctl                0000755 0000000 0000000 00000002221 11524350324 027705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/appserver/VM_configuration/etc/hosts                                    0000644 0000000 0000000 00000000267 11524350315 024231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/appserver/VM_configuration/etc/iproute2/                                0000777 0000000 0000000 00000000000 11524350316 024717  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/etc/iproute2/rt_dsfield                      0000644 0000000 0000000 00000000672 11524350316 026762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile1/appserver/VM_configuration/etc/iproute2/rt_realms                       0000644 0000000 0000000 00000000160 11524350316 026623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile1/appserver/VM_configuration/etc/iproute2/rt_scopes                       0000644 0000000 0000000 00000000134 11524350316 026635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/appserver/VM_configuration/etc/iproute2/ematch_map                      0000644 0000000 0000000 00000000073 11524350315 026733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/appserver/VM_configuration/etc/iproute2/rt_tables                       0000644 0000000 0000000 00000000127 11524350316 026615  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/appserver/VM_configuration/etc/iproute2/rt_protos                       0000644 0000000 0000000 00000000475 11524350316 026677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/etc/nsswitch.conf                            0000644 0000000 0000000 00000003230 11524350317 025652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/appserver/VM_configuration/etc/fstab                                    0000644 0000000 0000000 00000001603 11524350315 024163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile1/appserver/VM_configuration/etc/sysctl.conf                              0000644 0000000 0000000 00000001466 11524350340 025336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile1/appserver/VM_configuration/etc/inittab                                  0000644 0000000 0000000 00000001564 11524350315 024524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile1/appserver/VM_configuration/var/                                         0000777 0000000 0000000 00000000000 11524350342 023162  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/var/log/                                     0000777 0000000 0000000 00000000000 11524350342 023743  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/var/log/dmesg                                0000644 0000000 0000000 00000044274 11524350342 024774  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000009fffd000 (usable)
 BIOS-e820: 000000009fffd000 - 00000000a0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x9fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000009fffd000
 0000000000 - 009fe00000 page 2M
 009fe00000 - 009fffd000 page 4k
kernel direct mapping tables up to 9fffd000 @ 8000-d000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 000000009fffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000009ffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000009fffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000009ffffdc0 00040
ACPI: SSDT 000000009fffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000009fffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000009fffd000
Bootmem setup node 0 0000000000000000-000000009fffd000
  NODE_DATA [000000000000b000 - 000000000003efff]
  bootmap [000000000003f000 -  0000000000052fff] pages 14
(7 early reservations) ==> bootmem [0000000000 - 009fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000b000]          PGTABLE ==> [0000008000 - 000000b000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00023fffff] PMD -> [ffff880002200000-ffff8800045fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0009fffd
On node 0 totalpages: 655254
  DMA zone: 56 pages used for memmap
  DMA zone: 107 pages reserved
  DMA zone: 3830 pages, LIFO batch:0
  DMA32 zone: 8904 pages used for memmap
  DMA32 zone: 642357 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at a0000000 (gap: a0000000:5ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 646187
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2557352k/2621428k available (4935k kernel code, 412k absent, 63664k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 26214400 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (13867.27 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116115.308:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 5020
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:54 UTC (1297116114)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
c2:89:d3:5f:ca:ea
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/appserver/VM_configuration/boot/                                        0000777 0000000 0000000 00000000000 11524350314 023334  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/boot/grub/                                   0000777 0000000 0000000 00000000000 11524350314 024273  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/VM_configuration/boot/grub/grub.conf                          0000644 0000000 0000000 00000001352 11524350314 026076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/appserver/VM_configuration/rpmpkgs.txt                                  0000644 0000000 0000000 00000067153 11524350342 024626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/appserver/VM_configuration/ifconfig.txt                                 0000644 0000000 0000000 00000002352 11524350340 024713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:02  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:268 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:24900 (24.3 KiB)  TX bytes:898 (898.0 b)

eth1      Link encap:Ethernet  HWaddr C2:89:D3:5F:CA:EA  
          inet addr:10.1.217.2  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::c089:d3ff:fe5f:caea/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17507753 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38660002 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5054921351 (4.7 GiB)  TX bytes:42291827496 (39.3 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:653721 errors:0 dropped:0 overruns:0 frame:0
          TX packets:653721 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:106240981 (101.3 MiB)  TX bytes:106240981 (101.3 MiB)

                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/appserver/VM_configuration/chkconfig.txt                                0000644 0000000 0000000 00000006535 11524350315 025073  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile1/appserver/Software_Configuration/                                       0000777 0000000 0000000 00000000000 11524350313 023600  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/Software_Configuration/AppSrv01/                              0000777 0000000 0000000 00000000000 11524350313 025154  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/Software_Configuration/AppSrv01/server.xml                    0000644 0000000 0000000 00000103647 11524350313 027213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   <?xml version="1.0" encoding="UTF-8"?>
<process:Server xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:adminservice="http://www.ibm.com/websphere/appserver/schemas/5.0/adminservice.xmi" xmlns:applicationserver="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.xmi" xmlns:applicationserver.ejbcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.xmi" xmlns:applicationserver.ejbcontainer.messagelistener="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.messagelistener.xmi" xmlns:applicationserver.sipcontainer="www.ibm.com/websphere/appserver/schemas/7.0/applicationserver.sipcontainer.xmi" xmlns:applicationserver.webcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.webcontainer.xmi" xmlns:channelservice="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.xmi" xmlns:channelservice.channels="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.channels.xmi" xmlns:coregroupbridgeservice="http://www.ibm.com/websphere/appserver/schemas/6.0/coregroupbridgeservice.xmi" xmlns:diagnosticproviderservice="http://www.ibm.com/websphere/appserver/schemas/5.0/diagnosticproviderservice.xmi" xmlns:loggingservice.http="http://www.ibm.com/websphere/appserver/schemas/6.0/loggingservice.http.xmi" xmlns:loggingservice.ras="http://www.ibm.com/websphere/appserver/schemas/5.0/loggingservice.ras.xmi" xmlns:namingserver="http://www.ibm.com/websphere/appserver/schemas/5.0/namingserver.xmi" xmlns:orb="http://www.ibm.com/websphere/appserver/schemas/5.0/orb.xmi" xmlns:pmiservice="http://www.ibm.com/websphere/appserver/schemas/5.0/pmiservice.xmi" xmlns:portletcontainer="http://www.ibm.com/websphere/appserver/schemas/6.0/portletcontainer.xmi" xmlns:process="http://www.ibm.com/websphere/appserver/schemas/5.0/process.xmi" xmlns:processexec="http://www.ibm.com/websphere/appserver/schemas/5.0/processexec.xmi" xmlns:sibresources="http://www.ibm.com/websphere/appserver/schemas/6.0/sibresources.xmi" xmlns:threadpoolmanager="http://www.ibm.com/websphere/appserver/schemas/6.0/threadpoolmanager.xmi" xmlns:tperfviewer="http://www.ibm.com/websphere/appserver/schemas/6.0/tperfviewer.xmi" xmlns:traceservice="http://www.ibm.com/websphere/appserver/schemas/5.0/traceservice.xmi" xmi:id="Server_1183122130078" name="server1" parallelStartEnabled="true">
  <stateManagement xmi:id="StateManageable_1183122130078" initialState="START"/>
  <statisticsProvider xmi:id="StatisticsProvider_1183122130078" specification="com.ibm.orb=enabled"/>
  <services xmi:type="pmiservice:PMIService" xmi:id="PMIService_1183122130078" enable="false" initialSpecLevel="" statisticSet="basic" synchronizedUpdate="false"/>
  <services xmi:type="adminservice:AdminService" xmi:id="AdminService_1183122130078" enable="true" standalone="true" localAdminProtocol="IPCConnector_1" remoteAdminProtocol="SOAPConnector_1">
    <connectors xmi:type="adminservice:SOAPConnector" xmi:id="SOAPConnector_1" enable="true">
      <properties xmi:id="Property_3" name="requestTimeout" value="600"/>
    </connectors>
    <connectors xmi:type="adminservice:RMIConnector" xmi:id="RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:JSR160RMIConnector" xmi:id="JSR160RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:IPCConnector" xmi:id="IPCConnector_1" enable="true">
      <properties xmi:id="Property_4" name="requestTimeout" value="600"/>
    </connectors>
    <configRepository xmi:id="RepositoryService_1183122130078"/>
    <pluginConfigService xmi:id="PluginConfigService_1183122130078" enable="true"/>
  </services>
  <services xmi:type="traceservice:TraceService" xmi:id="TraceService_1183122130078" enable="false" startupTraceSpecification="*=all=disabled" traceOutputType="SPECIFIED_FILE" traceFormat="BASIC" memoryBufferSize="8">
    <traceLog xmi:id="TraceLog_1183122130078" fileName="${SERVER_LOG_ROOT}/trace.log" rolloverSize="100" maxNumberOfBackupFiles="10"/>
  </services>
  <services xmi:type="diagnosticproviderservice:DiagnosticProviderService" xmi:id="DiagnosticProviderService_1183122130078" enable="true" startupStateCollectionSpec=".*:.*=0"/>
  <services xmi:type="loggingservice.ras:RASLoggingService" xmi:id="RASLoggingService_1183122130078" enable="true" messageFilterLevel="NONE" enableCorrelationId="true">
    <serviceLog xmi:id="ServiceLog_1183122130078" name="${LOG_ROOT}/activity.log" size="2" enabled="true"/>
  </services>
  <services xmi:type="coregroupbridgeservice:CoreGroupBridgeService" xmi:id="CoreGroupBridgeService_1183122130078" enable="true"/>
  <services xmi:type="tperfviewer:TPVService" xmi:id="TPVService_1183122130078" enable="true"/>
  <services xmi:type="orb:ObjectRequestBroker" xmi:id="ObjectRequestBroker_1183122130078" enable="true" requestTimeout="180" requestRetriesCount="1" requestRetriesDelay="0" connectionCacheMaximum="240" connectionCacheMinimum="100" commTraceEnabled="false" locateRequestTimeout="180" forceTunnel="never" noLocalCopies="false" useServerThreadPool="true">
    <properties xmi:id="Property_1183122130079" name="com.ibm.CORBA.enableLocateRequest" value="true"/>
    <properties xmi:id="Property_1183122130080" name="com.ibm.ws.orb.transport.WSSSLServerSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLServerSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130081" name="com.ibm.ws.orb.transport.WSSSLClientSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130082" name="com.ibm.CORBA.ConnectionInterceptorName" value="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor"/>
    <properties xmi:id="Property_1183122130083" name="com.ibm.CORBA.RasManager" value="com.ibm.websphere.ras.WsOrbRasManager"/>
    <properties xmi:id="Property_1183122130084" name="com.ibm.ws.orb.transport.useMultiHome" value="true"/>
    <properties xmi:id="Property_1183122130085" name="com.ibm.websphere.management.registerServerIORWithLSD" value="true"/>
    <interceptors xmi:id="Interceptor_1183122130078" name="com.ibm.ejs.ras.RasContextSupport"/>
    <interceptors xmi:id="Interceptor_1183122130079" name="com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRequestInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130080" name="com.ibm.ws.Transaction.JTS.TxInterceptorInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130081" name="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityComponentFactory"/>
    <interceptors xmi:id="Interceptor_1183122130082" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ServerRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130083" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ClientRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130084" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIClientRI"/>
    <interceptors xmi:id="Interceptor_1183122130085" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRI"/>
    <interceptors xmi:id="Interceptor_1183122130086" name="com.ibm.ws.wlm.client.WLMClientInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130087" name="com.ibm.ws.wlm.server.WLMServerInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130088" name="com.ibm.ws.activity.remote.cos.ActivityServiceServerInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130089" name="com.ibm.debug.DebugPortableInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130090" name="com.ibm.debug.olt.ivbtrjrt.OLT_RI"/>
    <plugins xmi:id="ORBPlugin_1183122130078" name="com.ibm.ws.orbimpl.transport.WSTransport"/>
    <plugins xmi:id="ORBPlugin_1183122130079" name="com.ibm.ISecurityUtilityImpl.SecurityPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130080" name="com.ibm.ws.orbimpl.WSORBPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130081" name="com.ibm.ws.wlm.client.WLMClient"/>
    <plugins xmi:id="ORBPlugin_1183122130082" name="com.ibm.ws.pmi.server.modules.OrbPerfModule"/>
    <plugins xmi:id="ORBPlugin_1183122130083" name="com.ibm.ws.csi.CORBAORBMethodAccessControl"/>
    <threadPool xmi:id="ThreadPool_1183122130078" minimumSize="13" maximumSize="13" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
  </services>
  <services xmi:type="channelservice:TransportChannelService" xmi:id="TransportChannelService_1183122130078" enable="true">
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130078" name="TCP_1" endPointName="WC_adminhost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130079" name="TCP_2" endPointName="WC_defaulthost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130080" name="TCP_3" endPointName="WC_adminhost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130081" name="TCP_4" endPointName="WC_defaulthost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130082" name="TCP_5" endPointName="DCS_UNICAST_ADDRESS" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130080"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130083" name="TCP_8" discriminationWeight="0" endPointName="SIP_DEFAULTHOST" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130084" name="TCP_9" discriminationWeight="0" endPointName="SIP_DEFAULTHOST_SECURE" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130078" name="SSL_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130079" name="SSL_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130080" name="SSL_3" discriminationWeight="2"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130081" name="SSL_5" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130078" name="HTTP_1" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130079" name="HTTP_2" discriminationWeight="1" maximumPersistentRequests="-1" keepAlive="true" readTimeout="6000" writeTimeout="6000" persistentTimeout="3000" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130080" name="HTTP_3" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130081" name="HTTP_4" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130078" name="HTTPQ_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130079" name="HTTPQ_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130078" name="WCC_1" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130079" name="WCC_2" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130080" name="WCC_3" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130081" name="WCC_4" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130082" name="WCC_5" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130083" name="WCC_6" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130078" name="DCS_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130079" name="DCS_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130078" name="SIP_1" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130079" name="SIP_2" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130080" name="SIP_3" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130078" name="SIPCC_1" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130079" name="SIPCC_2" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130080" name="SIPCC_3" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:UDPInboundChannel" xmi:id="UDPInboundChannel_1183122130078" name="UDP_1" discriminationWeight="0" endPointName="SIP_DEFAULTHOST"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130085" name="SIB_TCP_JFAP" endPointName="SIB_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130086" name="SIB_TCP_JFAP_SSL" endPointName="SIB_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130087" name="SIB_TCP_MQFAP" endPointName="SIB_MQ_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130088" name="SIB_TCP_MQFAP_SSL" endPointName="SIB_MQ_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130082" name="SIB_SSL_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130083" name="SIB_SSL_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130078" name="SIB_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130079" name="SIB_JFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130078" name="SIB_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130079" name="SIB_MQFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130078" name="SIB_TCP_JFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130079" name="SIB_TCP_JFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130080" name="SIB_TCP_JFAP_TUN_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130081" name="SIB_TCP_JFAP_TUN_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130082" name="SIB_TCP_MQFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130083" name="SIB_TCP_MQFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130078" name="SIB_SSL_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130079" name="SIB_SSL_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130080" name="SIB_SSL_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130078" name="SIB_HTTP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130079" name="SIB_HTTP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130078" name="SIB_HTC_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130079" name="SIB_HTC_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130078" name="SIB_JFAP_JFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130079" name="SIB_JFAP_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130080" name="SIB_JFAP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130081" name="SIB_JFAP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130078" name="SIB_MQFAP_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130079" name="SIB_MQFAP_MQFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130084" name="SIB_TCP_RMQ_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130085" name="SIB_TCP_RMQ_SSL_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130081" name="SIB_SSL_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130078" name="SIB_RMQ_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130079" name="SIB_RMQ_RMQ_OUT"/>
    <chains xmi:id="Chain_1183122130078" name="WCInboundAdmin" enable="true" transportChannels="TCPInboundChannel_1183122130078 HTTPInboundChannel_1183122130078 WebContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130079" name="WCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 WebContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130080" name="HttpQueueInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 HTTPQueueInboundChannel_1183122130078 WebContainerInboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130081" name="HttpQueueInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 HTTPQueueInboundChannel_1183122130079 WebContainerInboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130082" name="WCInboundAdminSecure" enable="true" transportChannels="TCPInboundChannel_1183122130080 SSLInboundChannel_1183122130078 HTTPInboundChannel_1183122130080 WebContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130083" name="WCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 WebContainerInboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130084" name="DCS" enable="true" transportChannels="TCPInboundChannel_1183122130082 DCSInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130085" name="DCS-Secure" enable="true" transportChannels="TCPInboundChannel_1183122130082 SSLInboundChannel_1183122130080 DCSInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130086" name="SIPCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130083 SIPInboundChannel_1183122130078 SIPContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130087" name="SIPCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130084 SSLInboundChannel_1183122130081 SIPInboundChannel_1183122130079 SIPContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130088" name="SIPCInboundDefaultUDP" enable="true" transportChannels="UDPInboundChannel_1183122130078 SIPInboundChannel_1183122130080 SIPContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130089" name="InboundBasicMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130085 JFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130090" name="InboundSecureMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130086 SSLInboundChannel_1183122130082 JFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130091" name="InboundBasicMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130087 MQFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130092" name="InboundSecureMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130088 SSLInboundChannel_1183122130083 MQFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130093" name="BootstrapBasicMessaging" transportChannels="JFAPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130094" name="BootstrapSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130079 TCPOutboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130095" name="BootstrapTunneledMessaging" transportChannels="JFAPOutboundChannel_1183122130080 HTTPTunnelOutboundChannel_1183122130078 HTTPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130096" name="BootstrapTunneledSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130081 HTTPTunnelOutboundChannel_1183122130079 HTTPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130080 TCPOutboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130097" name="OutboundBasicMQLink" transportChannels="MQFAPOutboundChannel_1183122130079 TCPOutboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130098" name="OutboundSecureMQLink" transportChannels="MQFAPOutboundChannel_1183122130078 SSLOutboundChannel_1183122130078 TCPOutboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130099" name="OutboundBasicWMQClient" transportChannels="RMQOutboundChannel_1183122130079 TCPOutboundChannel_1183122130084"/>
    <chains xmi:id="Chain_1183122130100" name="OutboundSecureWMQClient" transportChannels="RMQOutboundChannel_1183122130078 SSLOutboundChannel_1183122130081 TCPOutboundChannel_1183122130085"/>
  </services>
  <services xmi:type="threadpoolmanager:ThreadPoolManager" xmi:id="ThreadPoolManager_1183122130078" enable="true">
    <threadPools xmi:id="ThreadPool_1183122130083" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
    <threadPools xmi:id="ThreadPool_1183122130084" minimumSize="1" maximumSize="3" inactivityTimeout="30000" isGrowable="false" name="server.startup" description="This pool is used by WebSphere during server startup."/>
    <threadPools xmi:id="ThreadPool_1183122130085" minimumSize="15" maximumSize="15" inactivityTimeout="3500" name="Default"/>
    <threadPools xmi:id="ThreadPool_1183122130079" minimumSize="38" maximumSize="38" inactivityTimeout="3500" isGrowable="false" name="WebContainer"/>
    <threadPools xmi:id="ThreadPool_1183122130080" minimumSize="5" maximumSize="20" name="TCPChannel.DCS"/>
    <threadPools xmi:id="ThreadPool_1183122130081" minimumSize="4" maximumSize="50" name="SIBFAPInboundThreadPool" description="Service integration bus FAP inbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1183122130082" minimumSize="4" maximumSize="50" name="SIBFAPThreadPool" description="Service integration bus FAP outbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1265156361721" minimumSize="35" maximumSize="41" inactivityTimeout="3500" name="SIBJMSRAThreadPool" description="Service Integration Bus JMS Resource Adapter thread pool"/>
    <threadPools xmi:id="ThreadPool_1265156361827" minimumSize="1" maximumSize="40" name="WMQCommonServices" description="WebSphere MQ common services thread pool">
      <customProperties xmi:id="Property_1265156361829" name="com.ibm.websphere.threadpool.disableHungThreadDetection" value="true" required="false"/>
    </threadPools>
    <threadPools xmi:id="ThreadPool_1265156361831" minimumSize="5" maximumSize="25" name="WMQJCAResourceAdapter" description="wmqJcaRaThreadPoolDescription"/>
  </services>
  <services xmi:type="loggingservice.http:HTTPAccessLoggingService" xmi:id="HTTPAccessLoggingService_1183122130078" enable="false" enableErrorLogging="true" enableAccessLogging="true">
    <errorLog xmi:id="LogFile_1183122130078" filePath="${SERVER_LOG_ROOT}/http_error.log" maximumSize="500"/>
    <accessLog xmi:id="LogFile_1183122130079" filePath="${SERVER_LOG_ROOT}/http_access.log" maximumSize="500"/>
  </services>
  <errorStreamRedirect xmi:id="StreamRedirect_1183122130078" fileName="${SERVER_LOG_ROOT}/SystemErr.log" rolloverType="NONE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <outputStreamRedirect xmi:id="StreamRedirect_1183122130079" fileName="${SERVER_LOG_ROOT}/SystemOut.log" rolloverType="NONE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <components xmi:type="namingserver:NameServer" xmi:id="NameServer_1183122130078">
    <stateManagement xmi:id="StateManageable_1183122130079" initialState="START"/>
  </components>
  <components xmi:type="applicationserver:ApplicationServer" xmi:id="ApplicationServer_1183122130078" applicationClassLoaderPolicy="MULTIPLE">
    <stateManagement xmi:id="StateManageable_1183122130080" initialState="START"/>
    <services xmi:type="applicationserver:TransactionService" xmi:id="TransactionService_1183122130078" enable="true" totalTranLifetimeTimeout="0" clientInactivityTimeout="0" propogatedOrBMTTranLifetimeTimeout="300" httpProxyPrefix="" httpsProxyPrefix=""/>
    <services xmi:type="applicationserver:DynamicCache" xmi:id="DynamicCache_1183122130078" enable="true">
      <cacheGroups xmi:id="ExternalCacheGroup_1183122130078" name="EsiInvalidator">
        <members xmi:id="ExternalCacheGroupMember_1183122130078" address="localhost" adapterBeanName="com.ibm.websphere.servlet.cache.ESIInvalidatorServlet"/>
      </cacheGroups>
    </services>
    <components xmi:type="applicationserver.webcontainer:WebContainer" xmi:id="WebContainer_1183122130078" enableServletCaching="false" disablePooling="false">
      <stateManagement xmi:id="StateManageable_1183122130081" initialState="START"/>
      <services xmi:type="applicationserver.webcontainer:SessionManager" xmi:id="SessionManager_1183122130078" enable="true" enableUrlRewriting="false" enableCookies="true" enableSSLTracking="false" enableProtocolSwitchRewriting="false" sessionPersistenceMode="NONE" enableSecurityIntegration="false" allowSerializedSessionAccess="false" maxWaitTime="5" accessSessionOnTimeout="true">
        <defaultCookieSettings xmi:id="Cookie_1183122130078" domain="" maximumAge="-1" secure="false"/>
        <sessionDatabasePersistence xmi:id="SessionDatabasePersistence_1183122130078" datasourceJNDIName="jdbc/Sessions" userId="db2admin" password="{xor}Oz1tPjsyNjE=" db2RowSize="ROW_SIZE_4KB" tableSpaceName=""/>
        <tuningParams xmi:id="TuningParams_1183122130078" usingMultiRowSchema="false" maxInMemorySessionCount="1000" allowOverflow="true" scheduleInvalidation="false" writeFrequency="TIME_BASED_WRITE" writeInterval="10" writeContents="ONLY_UPDATED_ATTRIBUTES" invalidationTimeout="30">
          <invalidationSchedule xmi:id="InvalidationSchedule_1183122130078" firstHour="14" secondHour="2"/>
        </tuningParams>
      </services>
    </components>
    <components xmi:type="applicationserver.ejbcontainer:EJBContainer" xmi:id="EJBContainer_1183122130078" passivationDirectory="${USER_INSTALL_ROOT}/temp" inactivePoolCleanupInterval="30000">
      <stateManagement xmi:id="StateManageable_1183122130082" initialState="START"/>
      <services xmi:type="applicationserver.ejbcontainer.messagelistener:MessageListenerService" xmi:id="MessageListenerService_1183122130078">
        <threadPool xmi:id="ThreadPool_1183122130086" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="Message.Listener.Pool"/>
      </services>
      <cacheSettings xmi:id="EJBCache_1183122130078" cleanupInterval="3000" cacheSize="60000"/>
      <timerSettings xmi:id="EJBTimer_1183122130078" datasourceJNDIName="jdbc/DefaultEJBTimerDataSource" tablePrefix="EJBTIMER_" pollInterval="300" numAlarmThreads="1"/>
    </components>
    <components xmi:type="portletcontainer:PortletContainer" xmi:id="PortletContainer_1183122130078"/>
    <components xmi:type="applicationserver.sipcontainer:SIPContainer" xmi:id="SIPContainer_1183122130078" name="" maxAppSessions="120000" maxMessageRate="5000" maxDispatchQueueSize="3200" maxResponseTime="0" statAveragePeriod="1000" statUpdateRange="10000">
      <stack xmi:id="Stack_1183122130078">
        <timers xmi:id="Timers_1183122130078"/>
      </stack>
    </components>
    <webserverPluginSettings xmi:id="WebserverPluginSettings_1183122130078" WaitForContinue="false" ConnectTimeout="0" MaxConnections="-1" ExtendedHandshake="false" ServerIOTimeout="0"/>
  </components>
  <processDefinitions xmi:type="processexec:JavaProcessDef" xmi:id="JavaProcessDef_1183122130078" workingDirectory="${USER_INSTALL_ROOT}" executableTargetKind="JAVA_CLASS" executableTarget="com.ibm.ws.runtime.WsServer">
    <execution xmi:id="ProcessExecution_1183122130078" processPriority="20" runAsUser="" runAsGroup=""/>
    <ioRedirect xmi:id="OutputRedirect_1183122130078" stdoutFilename="${SERVER_LOG_ROOT}/native_stdout.log" stderrFilename="${SERVER_LOG_ROOT}/native_stderr.log"/>
    <monitoringPolicy xmi:id="MonitoringPolicy_1183122130078" maximumStartupAttempts="3" pingInterval="60" pingTimeout="300" autoRestart="true" nodeRestartState="STOPPED"/>
    <jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="true" verboseModeJNI="false" initialHeapSize="1280" maximumHeapSize="1280" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777" genericJvmArguments="-Dcom.ibm.CORBA.TransportMode=Pluggable -Dcom.ibm.ws.pm.batch=true -Dcom.ibm.ws.pm.deferredcreate=true -Dcom.ibm.CORBA.FragmentSize=3000 -Dcom.ibm.ws.pm.useLegacyCache=false -Dcom.ibm.ws.pm.grouppartialupdate=true -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XML11Configuration -noclassgc -Xss128k  -Xgcpolicy:gencon -Xmo320m -Xcodecache16m -Xgcthreads4 -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=0">
      <systemProperties xmi:id="Property_1" name="com.ibm.security.jgss.debug" value="off" required="false"/>
      <systemProperties xmi:id="Property_2" name="com.ibm.security.krb5.Krb5Debug" value="off" required="false"/>
    </jvmEntries>
  </processDefinitions>
</process:Server>
                                                                                         Virtual_Configuration/tile1/appserver/Software_Configuration/AppSrv02/                              0000777 0000000 0000000 00000000000 11524350314 025156  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/appserver/Software_Configuration/AppSrv02/server.xml                    0000644 0000000 0000000 00000102162 11524350314 027204  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   <?xml version="1.0" encoding="UTF-8"?>
<process:Server xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:adminservice="http://www.ibm.com/websphere/appserver/schemas/5.0/adminservice.xmi" xmlns:applicationserver="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.xmi" xmlns:applicationserver.ejbcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.xmi" xmlns:applicationserver.ejbcontainer.messagelistener="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.messagelistener.xmi" xmlns:applicationserver.sipcontainer="www.ibm.com/websphere/appserver/schemas/7.0/applicationserver.sipcontainer.xmi" xmlns:applicationserver.webcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.webcontainer.xmi" xmlns:channelservice="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.xmi" xmlns:channelservice.channels="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.channels.xmi" xmlns:coregroupbridgeservice="http://www.ibm.com/websphere/appserver/schemas/6.0/coregroupbridgeservice.xmi" xmlns:diagnosticproviderservice="http://www.ibm.com/websphere/appserver/schemas/5.0/diagnosticproviderservice.xmi" xmlns:loggingservice.http="http://www.ibm.com/websphere/appserver/schemas/6.0/loggingservice.http.xmi" xmlns:loggingservice.ras="http://www.ibm.com/websphere/appserver/schemas/5.0/loggingservice.ras.xmi" xmlns:namingserver="http://www.ibm.com/websphere/appserver/schemas/5.0/namingserver.xmi" xmlns:orb="http://www.ibm.com/websphere/appserver/schemas/5.0/orb.xmi" xmlns:pmiservice="http://www.ibm.com/websphere/appserver/schemas/5.0/pmiservice.xmi" xmlns:portletcontainer="http://www.ibm.com/websphere/appserver/schemas/6.0/portletcontainer.xmi" xmlns:process="http://www.ibm.com/websphere/appserver/schemas/5.0/process.xmi" xmlns:processexec="http://www.ibm.com/websphere/appserver/schemas/5.0/processexec.xmi" xmlns:sibresources="http://www.ibm.com/websphere/appserver/schemas/6.0/sibresources.xmi" xmlns:threadpoolmanager="http://www.ibm.com/websphere/appserver/schemas/6.0/threadpoolmanager.xmi" xmlns:tperfviewer="http://www.ibm.com/websphere/appserver/schemas/6.0/tperfviewer.xmi" xmlns:traceservice="http://www.ibm.com/websphere/appserver/schemas/5.0/traceservice.xmi" xmi:id="Server_1183122130078" name="server1">
  <stateManagement xmi:id="StateManageable_1183122130078" initialState="START"/>
  <statisticsProvider xmi:id="StatisticsProvider_1183122130078" specification="com.ibm.orb=enabled"/>
  <services xmi:type="pmiservice:PMIService" xmi:id="PMIService_1183122130078" enable="true" initialSpecLevel="" statisticSet="basic" synchronizedUpdate="false"/>
  <services xmi:type="adminservice:AdminService" xmi:id="AdminService_1183122130078" enable="true" standalone="true" localAdminProtocol="IPCConnector_1" remoteAdminProtocol="SOAPConnector_1">
    <connectors xmi:type="adminservice:SOAPConnector" xmi:id="SOAPConnector_1" enable="true">
      <properties xmi:id="Property_3" name="requestTimeout" value="600"/>
    </connectors>
    <connectors xmi:type="adminservice:RMIConnector" xmi:id="RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:JSR160RMIConnector" xmi:id="JSR160RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:IPCConnector" xmi:id="IPCConnector_1" enable="true">
      <properties xmi:id="Property_4" name="requestTimeout" value="600"/>
    </connectors>
    <configRepository xmi:id="RepositoryService_1183122130078"/>
    <pluginConfigService xmi:id="PluginConfigService_1183122130078" enable="true"/>
  </services>
  <services xmi:type="traceservice:TraceService" xmi:id="TraceService_1183122130078" enable="true" startupTraceSpecification="*=info" traceOutputType="SPECIFIED_FILE" traceFormat="BASIC" memoryBufferSize="8">
    <traceLog xmi:id="TraceLog_1183122130078" fileName="${SERVER_LOG_ROOT}/trace.log" rolloverSize="20" maxNumberOfBackupFiles="1"/>
  </services>
  <services xmi:type="diagnosticproviderservice:DiagnosticProviderService" xmi:id="DiagnosticProviderService_1183122130078" enable="true" startupStateCollectionSpec=".*:.*=0"/>
  <services xmi:type="loggingservice.ras:RASLoggingService" xmi:id="RASLoggingService_1183122130078" enable="true" messageFilterLevel="NONE" enableCorrelationId="true">
    <serviceLog xmi:id="ServiceLog_1183122130078" name="${LOG_ROOT}/activity.log" size="2" enabled="true"/>
  </services>
  <services xmi:type="coregroupbridgeservice:CoreGroupBridgeService" xmi:id="CoreGroupBridgeService_1183122130078" enable="true"/>
  <services xmi:type="tperfviewer:TPVService" xmi:id="TPVService_1183122130078" enable="true"/>
  <services xmi:type="orb:ObjectRequestBroker" xmi:id="ObjectRequestBroker_1183122130078" enable="true" requestTimeout="180" requestRetriesCount="1" requestRetriesDelay="0" connectionCacheMaximum="240" connectionCacheMinimum="100" commTraceEnabled="false" locateRequestTimeout="180" forceTunnel="never" noLocalCopies="false" useServerThreadPool="false">
    <properties xmi:id="Property_1183122130079" name="com.ibm.CORBA.enableLocateRequest" value="true"/>
    <properties xmi:id="Property_1183122130080" name="com.ibm.ws.orb.transport.WSSSLServerSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLServerSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130081" name="com.ibm.ws.orb.transport.WSSSLClientSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130082" name="com.ibm.CORBA.ConnectionInterceptorName" value="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor"/>
    <properties xmi:id="Property_1183122130083" name="com.ibm.CORBA.RasManager" value="com.ibm.websphere.ras.WsOrbRasManager"/>
    <properties xmi:id="Property_1183122130084" name="com.ibm.ws.orb.transport.useMultiHome" value="true"/>
    <properties xmi:id="Property_1183122130085" name="com.ibm.websphere.management.registerServerIORWithLSD" value="true"/>
    <interceptors xmi:id="Interceptor_1183122130078" name="com.ibm.ejs.ras.RasContextSupport"/>
    <interceptors xmi:id="Interceptor_1183122130079" name="com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRequestInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130080" name="com.ibm.ws.Transaction.JTS.TxInterceptorInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130081" name="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityComponentFactory"/>
    <interceptors xmi:id="Interceptor_1183122130082" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ServerRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130083" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ClientRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130084" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIClientRI"/>
    <interceptors xmi:id="Interceptor_1183122130085" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRI"/>
    <interceptors xmi:id="Interceptor_1183122130086" name="com.ibm.ws.wlm.client.WLMClientInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130087" name="com.ibm.ws.wlm.server.WLMServerInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130088" name="com.ibm.ws.activity.remote.cos.ActivityServiceServerInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130089" name="com.ibm.debug.DebugPortableInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130090" name="com.ibm.debug.olt.ivbtrjrt.OLT_RI"/>
    <plugins xmi:id="ORBPlugin_1183122130078" name="com.ibm.ws.orbimpl.transport.WSTransport"/>
    <plugins xmi:id="ORBPlugin_1183122130079" name="com.ibm.ISecurityUtilityImpl.SecurityPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130080" name="com.ibm.ws.orbimpl.WSORBPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130081" name="com.ibm.ws.wlm.client.WLMClient"/>
    <plugins xmi:id="ORBPlugin_1183122130082" name="com.ibm.ws.pmi.server.modules.OrbPerfModule"/>
    <plugins xmi:id="ORBPlugin_1183122130083" name="com.ibm.ws.csi.CORBAORBMethodAccessControl"/>
    <threadPool xmi:id="ThreadPool_1183122130078" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
  </services>
  <services xmi:type="channelservice:TransportChannelService" xmi:id="TransportChannelService_1183122130078" enable="true">
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130078" name="TCP_1" endPointName="WC_adminhost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130079" name="TCP_2" endPointName="WC_defaulthost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130080" name="TCP_3" endPointName="WC_adminhost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130081" name="TCP_4" endPointName="WC_defaulthost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130082" name="TCP_5" endPointName="DCS_UNICAST_ADDRESS" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130080"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130083" name="TCP_8" discriminationWeight="0" endPointName="SIP_DEFAULTHOST" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130084" name="TCP_9" discriminationWeight="0" endPointName="SIP_DEFAULTHOST_SECURE" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130078" name="SSL_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130079" name="SSL_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130080" name="SSL_3" discriminationWeight="2"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130081" name="SSL_5" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130078" name="HTTP_1" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130079" name="HTTP_2" discriminationWeight="1" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130080" name="HTTP_3" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130081" name="HTTP_4" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130078" name="HTTPQ_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130079" name="HTTPQ_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130078" name="WCC_1" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130079" name="WCC_2" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130080" name="WCC_3" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130081" name="WCC_4" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130082" name="WCC_5" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130083" name="WCC_6" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130078" name="DCS_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130079" name="DCS_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130078" name="SIP_1" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130079" name="SIP_2" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130080" name="SIP_3" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130078" name="SIPCC_1" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130079" name="SIPCC_2" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130080" name="SIPCC_3" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:UDPInboundChannel" xmi:id="UDPInboundChannel_1183122130078" name="UDP_1" discriminationWeight="0" endPointName="SIP_DEFAULTHOST"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130085" name="SIB_TCP_JFAP" endPointName="SIB_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130086" name="SIB_TCP_JFAP_SSL" endPointName="SIB_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130087" name="SIB_TCP_MQFAP" endPointName="SIB_MQ_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130088" name="SIB_TCP_MQFAP_SSL" endPointName="SIB_MQ_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130082" name="SIB_SSL_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130083" name="SIB_SSL_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130078" name="SIB_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130079" name="SIB_JFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130078" name="SIB_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130079" name="SIB_MQFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130078" name="SIB_TCP_JFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130079" name="SIB_TCP_JFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130080" name="SIB_TCP_JFAP_TUN_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130081" name="SIB_TCP_JFAP_TUN_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130082" name="SIB_TCP_MQFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130083" name="SIB_TCP_MQFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130078" name="SIB_SSL_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130079" name="SIB_SSL_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130080" name="SIB_SSL_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130078" name="SIB_HTTP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130079" name="SIB_HTTP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130078" name="SIB_HTC_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130079" name="SIB_HTC_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130078" name="SIB_JFAP_JFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130079" name="SIB_JFAP_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130080" name="SIB_JFAP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130081" name="SIB_JFAP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130078" name="SIB_MQFAP_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130079" name="SIB_MQFAP_MQFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130084" name="SIB_TCP_RMQ_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130085" name="SIB_TCP_RMQ_SSL_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130081" name="SIB_SSL_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130078" name="SIB_RMQ_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130079" name="SIB_RMQ_RMQ_OUT"/>
    <chains xmi:id="Chain_1183122130078" name="WCInboundAdmin" enable="true" transportChannels="TCPInboundChannel_1183122130078 HTTPInboundChannel_1183122130078 WebContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130079" name="WCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 WebContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130080" name="HttpQueueInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 HTTPQueueInboundChannel_1183122130078 WebContainerInboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130081" name="HttpQueueInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 HTTPQueueInboundChannel_1183122130079 WebContainerInboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130082" name="WCInboundAdminSecure" enable="true" transportChannels="TCPInboundChannel_1183122130080 SSLInboundChannel_1183122130078 HTTPInboundChannel_1183122130080 WebContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130083" name="WCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 WebContainerInboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130084" name="DCS" enable="true" transportChannels="TCPInboundChannel_1183122130082 DCSInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130085" name="DCS-Secure" enable="true" transportChannels="TCPInboundChannel_1183122130082 SSLInboundChannel_1183122130080 DCSInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130086" name="SIPCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130083 SIPInboundChannel_1183122130078 SIPContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130087" name="SIPCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130084 SSLInboundChannel_1183122130081 SIPInboundChannel_1183122130079 SIPContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130088" name="SIPCInboundDefaultUDP" enable="true" transportChannels="UDPInboundChannel_1183122130078 SIPInboundChannel_1183122130080 SIPContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130089" name="InboundBasicMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130085 JFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130090" name="InboundSecureMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130086 SSLInboundChannel_1183122130082 JFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130091" name="InboundBasicMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130087 MQFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130092" name="InboundSecureMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130088 SSLInboundChannel_1183122130083 MQFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130093" name="BootstrapBasicMessaging" transportChannels="JFAPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130094" name="BootstrapSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130079 TCPOutboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130095" name="BootstrapTunneledMessaging" transportChannels="JFAPOutboundChannel_1183122130080 HTTPTunnelOutboundChannel_1183122130078 HTTPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130096" name="BootstrapTunneledSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130081 HTTPTunnelOutboundChannel_1183122130079 HTTPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130080 TCPOutboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130097" name="OutboundBasicMQLink" transportChannels="MQFAPOutboundChannel_1183122130079 TCPOutboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130098" name="OutboundSecureMQLink" transportChannels="MQFAPOutboundChannel_1183122130078 SSLOutboundChannel_1183122130078 TCPOutboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130099" name="OutboundBasicWMQClient" transportChannels="RMQOutboundChannel_1183122130079 TCPOutboundChannel_1183122130084"/>
    <chains xmi:id="Chain_1183122130100" name="OutboundSecureWMQClient" transportChannels="RMQOutboundChannel_1183122130078 SSLOutboundChannel_1183122130081 TCPOutboundChannel_1183122130085"/>
  </services>
  <services xmi:type="threadpoolmanager:ThreadPoolManager" xmi:id="ThreadPoolManager_1183122130078" enable="true">
    <threadPools xmi:id="ThreadPool_1183122130083" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
    <threadPools xmi:id="ThreadPool_1183122130084" minimumSize="1" maximumSize="3" inactivityTimeout="30000" isGrowable="false" name="server.startup" description="This pool is used by WebSphere during server startup."/>
    <threadPools xmi:id="ThreadPool_1183122130085" minimumSize="20" maximumSize="20" name="Default"/>
    <threadPools xmi:id="ThreadPool_1183122130079" minimumSize="50" maximumSize="50" inactivityTimeout="60000" isGrowable="false" name="WebContainer"/>
    <threadPools xmi:id="ThreadPool_1183122130080" minimumSize="5" maximumSize="20" name="TCPChannel.DCS"/>
    <threadPools xmi:id="ThreadPool_1183122130081" minimumSize="4" maximumSize="50" name="SIBFAPInboundThreadPool" description="Service integration bus FAP inbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1183122130082" minimumSize="4" maximumSize="50" name="SIBFAPThreadPool" description="Service integration bus FAP outbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1268079912035" minimumSize="35" maximumSize="41" inactivityTimeout="3500" name="SIBJMSRAThreadPool" description="Service Integration Bus JMS Resource Adapter thread pool"/>
    <threadPools xmi:id="ThreadPool_1268079912120" minimumSize="1" maximumSize="40" name="WMQCommonServices" description="WebSphere MQ common services thread pool">
      <customProperties xmi:id="Property_1268079912122" name="com.ibm.websphere.threadpool.disableHungThreadDetection" value="true" required="false"/>
    </threadPools>
    <threadPools xmi:id="ThreadPool_1268079912124" minimumSize="5" maximumSize="25" name="WMQJCAResourceAdapter" description="wmqJcaRaThreadPoolDescription"/>
  </services>
  <services xmi:type="loggingservice.http:HTTPAccessLoggingService" xmi:id="HTTPAccessLoggingService_1183122130078" enable="false" enableErrorLogging="true" enableAccessLogging="true">
    <errorLog xmi:id="LogFile_1183122130078" filePath="${SERVER_LOG_ROOT}/http_error.log" maximumSize="500"/>
    <accessLog xmi:id="LogFile_1183122130079" filePath="${SERVER_LOG_ROOT}/http_access.log" maximumSize="500"/>
  </services>
  <errorStreamRedirect xmi:id="StreamRedirect_1183122130078" fileName="${SERVER_LOG_ROOT}/SystemErr.log" rolloverType="SIZE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <outputStreamRedirect xmi:id="StreamRedirect_1183122130079" fileName="${SERVER_LOG_ROOT}/SystemOut.log" rolloverType="SIZE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <components xmi:type="namingserver:NameServer" xmi:id="NameServer_1183122130078">
    <stateManagement xmi:id="StateManageable_1183122130079" initialState="START"/>
  </components>
  <components xmi:type="applicationserver:ApplicationServer" xmi:id="ApplicationServer_1183122130078" applicationClassLoaderPolicy="MULTIPLE">
    <stateManagement xmi:id="StateManageable_1183122130080" initialState="START"/>
    <services xmi:type="applicationserver:TransactionService" xmi:id="TransactionService_1183122130078" enable="true" totalTranLifetimeTimeout="120" clientInactivityTimeout="60" propogatedOrBMTTranLifetimeTimeout="300" httpProxyPrefix="" httpsProxyPrefix=""/>
    <services xmi:type="applicationserver:DynamicCache" xmi:id="DynamicCache_1183122130078" enable="true">
      <cacheGroups xmi:id="ExternalCacheGroup_1183122130078" name="EsiInvalidator">
        <members xmi:id="ExternalCacheGroupMember_1183122130078" address="localhost" adapterBeanName="com.ibm.websphere.servlet.cache.ESIInvalidatorServlet"/>
      </cacheGroups>
    </services>
    <components xmi:type="applicationserver.webcontainer:WebContainer" xmi:id="WebContainer_1183122130078" enableServletCaching="false" disablePooling="false">
      <stateManagement xmi:id="StateManageable_1183122130081" initialState="START"/>
      <services xmi:type="applicationserver.webcontainer:SessionManager" xmi:id="SessionManager_1183122130078" enable="true" enableUrlRewriting="false" enableCookies="true" enableSSLTracking="false" enableProtocolSwitchRewriting="false" sessionPersistenceMode="NONE" enableSecurityIntegration="false" allowSerializedSessionAccess="false" maxWaitTime="5" accessSessionOnTimeout="true">
        <defaultCookieSettings xmi:id="Cookie_1183122130078" domain="" maximumAge="-1" secure="false"/>
        <sessionDatabasePersistence xmi:id="SessionDatabasePersistence_1183122130078" datasourceJNDIName="jdbc/Sessions" userId="db2admin" password="{xor}Oz1tPjsyNjE=" db2RowSize="ROW_SIZE_4KB" tableSpaceName=""/>
        <tuningParams xmi:id="TuningParams_1183122130078" usingMultiRowSchema="false" maxInMemorySessionCount="1000" allowOverflow="true" scheduleInvalidation="false" writeFrequency="TIME_BASED_WRITE" writeInterval="10" writeContents="ONLY_UPDATED_ATTRIBUTES" invalidationTimeout="30">
          <invalidationSchedule xmi:id="InvalidationSchedule_1183122130078" firstHour="14" secondHour="2"/>
        </tuningParams>
      </services>
    </components>
    <components xmi:type="applicationserver.ejbcontainer:EJBContainer" xmi:id="EJBContainer_1183122130078" passivationDirectory="${USER_INSTALL_ROOT}/temp" inactivePoolCleanupInterval="30000">
      <stateManagement xmi:id="StateManageable_1183122130082" initialState="START"/>
      <services xmi:type="applicationserver.ejbcontainer.messagelistener:MessageListenerService" xmi:id="MessageListenerService_1183122130078">
        <threadPool xmi:id="ThreadPool_1183122130086" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="Message.Listener.Pool"/>
      </services>
      <cacheSettings xmi:id="EJBCache_1183122130078" cleanupInterval="3000" cacheSize="2053"/>
      <timerSettings xmi:id="EJBTimer_1183122130078" datasourceJNDIName="jdbc/DefaultEJBTimerDataSource" tablePrefix="EJBTIMER_" pollInterval="300" numAlarmThreads="1"/>
    </components>
    <components xmi:type="portletcontainer:PortletContainer" xmi:id="PortletContainer_1183122130078"/>
    <components xmi:type="applicationserver.sipcontainer:SIPContainer" xmi:id="SIPContainer_1183122130078" name="" maxAppSessions="120000" maxMessageRate="5000" maxDispatchQueueSize="3200" maxResponseTime="0" statAveragePeriod="1000" statUpdateRange="10000">
      <stack xmi:id="Stack_1183122130078">
        <timers xmi:id="Timers_1183122130078"/>
      </stack>
    </components>
    <webserverPluginSettings xmi:id="WebserverPluginSettings_1183122130078" WaitForContinue="false" ConnectTimeout="0" MaxConnections="-1" ExtendedHandshake="false" ServerIOTimeout="0"/>
  </components>
  <processDefinitions xmi:type="processexec:JavaProcessDef" xmi:id="JavaProcessDef_1183122130078" workingDirectory="${USER_INSTALL_ROOT}" executableTargetKind="JAVA_CLASS" executableTarget="com.ibm.ws.runtime.WsServer">
    <execution xmi:id="ProcessExecution_1183122130078" processPriority="20" runAsUser="" runAsGroup=""/>
    <ioRedirect xmi:id="OutputRedirect_1183122130078" stdoutFilename="${SERVER_LOG_ROOT}/native_stdout.log" stderrFilename="${SERVER_LOG_ROOT}/native_stderr.log"/>
    <monitoringPolicy xmi:id="MonitoringPolicy_1183122130078" maximumStartupAttempts="3" pingInterval="60" pingTimeout="300" autoRestart="true" nodeRestartState="STOPPED"/>
    <jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7778" genericJvmArguments="">
      <systemProperties xmi:id="Property_1" name="com.ibm.security.jgss.debug" value="off" required="false"/>
      <systemProperties xmi:id="Property_2" name="com.ibm.security.krb5.Krb5Debug" value="off" required="false"/>
    </jvmEntries>
  </processDefinitions>
</process:Server>
                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/dbserver/                                                               0000777 0000000 0000000 00000000000 11524350342 016726  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/                                              0000777 0000000 0000000 00000000000 11524350362 022201  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/proc/                                         0000777 0000000 0000000 00000000000 11524350361 023143  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/proc/cpuinfo                                  0000644 0000000 0000000 00000001017 11524350361 024524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/dbserver/VM_configuration/proc/mounts                                   0000644 0000000 0000000 00000001357 11524350361 024415  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1020708k,nr_inodes=255177,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1288,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1288,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/dbserver/VM_configuration/proc/swaps                                    0000644 0000000 0000000 00000000150 11524350361 024213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	36308	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/dbserver/VM_configuration/proc/devices                                  0000644 0000000 0000000 00000000567 11524350361 024514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile1/dbserver/VM_configuration/proc/modules                                  0000644 0000000 0000000 00000002621 11524350361 024533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 38 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile1/dbserver/VM_configuration/proc/partitions                               0000644 0000000 0000000 00000000260 11524350361 025254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile1/dbserver/VM_configuration/proc/meminfo                                  0000644 0000000 0000000 00000002222 11524350361 024512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2055756 kB
MemFree:           69548 kB
Buffers:           24816 kB
Cached:           151824 kB
SwapCached:         2400 kB
Active:           744960 kB
Inactive:         288448 kB
Active(anon):     682164 kB
Inactive(anon):   232620 kB
Active(file):      62796 kB
Inactive(file):    55828 kB
Unevictable:        3228 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2011684 kB
Dirty:               224 kB
Writeback:             0 kB
AnonPages:        859060 kB
Mapped:           107212 kB
Shmem:             53400 kB
Slab:              70532 kB
SReclaimable:      15476 kB
SUnreclaim:        55056 kB
KernelStack:        2144 kB
PageTables:         8844 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2649884 kB
Committed_AS:    3487864 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       11532 kB
VmallocChunk:   34359719476 kB
HardwareCorrupted:     0 kB
AnonHugePages:    577536 kB
HugePages_Total:     416
HugePages_Free:       74
HugePages_Rsvd:       49
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2088960 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/dbserver/VM_configuration/root/                                         0000777 0000000 0000000 00000000000 11524350362 023164  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/root/convert_to_vf.sh                         0000755 0000000 0000000 00000001135 11524350362 026374  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/lspci.txt                                     0000644 0000000 0000000 00000001211 11524350361 024042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/dbserver/VM_configuration/df.txt                                        0000644 0000000 0000000 00000000401 11524350343 023321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916  10360368   2420568  82% /
tmpfs                  1027876         0   1027876   0% /dev/shm
/dev/vdb1             20642412  11290044   8303796  58% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/dbserver/VM_configuration/mount.txt                                     0000644 0000000 0000000 00000000612 11524350361 024076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile1/dbserver/VM_configuration/etc/                                          0000777 0000000 0000000 00000000000 11524350360 022752  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/                                     0000777 0000000 0000000 00000000000 11524350353 023602  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/                               0000777 0000000 0000000 00000000000 11524350360 024511  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests              0000755 0000000 0000000 00000017172 11524350353 027705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                     0000755 0000000 0000000 00000004325 11524350353 026323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                  0000755 0000000 0000000 00000006014 11524350354 027112  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                    0000755 0000000 0000000 00000012327 11524350355 026514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                   0000755 0000000 0000000 00000005222 11524350357 026701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S99firstboot                   0000755 0000000 0000000 00000005341 11524350360 026756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                        0000755 0000000 0000000 00000010671 11524350360 025676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                       0000755 0000000 0000000 00000006364 11524350353 026052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                   0000755 0000000 0000000 00000020716 11524350355 026624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                        0000755 0000000 0000000 00000004731 11524350355 025703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon                0000755 0000000 0000000 00000004754 11524350353 027255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                   0000755 0000000 0000000 00000001364 11524350360 026715  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                       0000755 0000000 0000000 00000003027 11524350355 026041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                      0000755 0000000 0000000 00000006743 11524350360 026236  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                       0000755 0000000 0000000 00000010777 11524350354 026045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                  0000755 0000000 0000000 00000004230 11524350357 027065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                       0000755 0000000 0000000 00000006302 11524350355 026015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                         0000755 0000000 0000000 00000004236 11524350360 025531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                     0000755 0000000 0000000 00000004031 11524350356 026346  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                  0000755 0000000 0000000 00000003521 11524350356 027031  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                     0000755 0000000 0000000 00000006050 11524350357 026404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                     0000755 0000000 0000000 00000002363 11524350356 026453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                  0000755 0000000 0000000 00000004054 11524350353 027061  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                   0000755 0000000 0000000 00000005013 11524350356 026740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                       0000755 0000000 0000000 00000003213 11524350355 026034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                     0000755 0000000 0000000 00000003512 11524350354 026365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                        0000755 0000000 0000000 00000003603 11524350354 025673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                      0000755 0000000 0000000 00000011277 11524350354 026220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S10network                     0000755 0000000 0000000 00000014466 11524350356 026430  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                     0000755 0000000 0000000 00000004326 11524350356 026435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                      0000755 0000000 0000000 00000006462 11524350356 026207  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                       0000755 0000000 0000000 00000027662 11524350357 026063  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                        0000755 0000000 0000000 00000006445 11524350354 025576  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                   0000755 0000000 0000000 00000003245 11524350357 026670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K60crond                       0000755 0000000 0000000 00000005445 11524350354 026034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                       0000755 0000000 0000000 00000005522 11524350353 026035  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl               0000755 0000000 0000000 00000002221 11524350356 027526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                   0000755 0000000 0000000 00000004010 11524350353 026674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                         0000755 0000000 0000000 00000013536 11524350354 025515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                        0000755 0000000 0000000 00000004723 11524350357 025664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                      0000755 0000000 0000000 00000003024 11524350353 026165  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                       0000755 0000000 0000000 00000003275 11524350357 026023  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                    0000755 0000000 0000000 00000025442 11524350356 026546  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                   0000755 0000000 0000000 00000004370 11524350357 026666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S99local                       0000755 0000000 0000000 00000000334 11524350360 026032  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                     0000755 0000000 0000000 00000006675 11524350356 026405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                  0000755 0000000 0000000 00000005650 11524350354 027075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor                0000555 0000000 0000000 00000004612 11524350356 027273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                      0000755 0000000 0000000 00000007234 11524350357 026245  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                    0000755 0000000 0000000 00000003433 11524350360 026570  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                      0000755 0000000 0000000 00000005672 11524350353 026215  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                       0000755 0000000 0000000 00000003254 11524350360 026030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                   0000755 0000000 0000000 00000005063 11524350360 026704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                       0000755 0000000 0000000 00000012432 11524350357 026054  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                     0000755 0000000 0000000 00000007414 11524350354 026416  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                    0000755 0000000 0000000 00000020557 11524350355 026541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond                 0000755 0000000 0000000 00000003427 11524350355 027266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/rc3.d/K05atd                         0000755 0000000 0000000 00000004112 11524350353 025463  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/                              0000777 0000000 0000000 00000000000 11524350352 024766  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/network                       0000755 0000000 0000000 00000014466 11524350350 026412  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/gfs2                          0000755 0000000 0000000 00000006445 11524350346 025565  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/sysstat                       0000755 0000000 0000000 00000002363 11524350352 026426  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/saslauthd                     0000755 0000000 0000000 00000004010 11524350352 026673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/messagebus                    0000755 0000000 0000000 00000004230 11524350347 027051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/autobench                     0000755 0000000 0000000 00000005063 11524350345 026666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/atd                           0000755 0000000 0000000 00000004112 11524350344 025457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/mcelogd                       0000755 0000000 0000000 00000003535 11524350347 026334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/auditd                        0000755 0000000 0000000 00000006462 11524350345 026174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/certmonger                    0000755 0000000 0000000 00000004054 11524350345 027062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/irqbalance                    0000755 0000000 0000000 00000003521 11524350346 027015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/acpid                         0000755 0000000 0000000 00000003275 11524350344 026000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/nscd                          0000755 0000000 0000000 00000004723 11524350350 025643  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                     0000755 0000000 0000000 00000005222 11524350351 026653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/nfs                           0000755 0000000 0000000 00000013536 11524350350 025504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/sssd                          0000755 0000000 0000000 00000004731 11524350352 025671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/crond                         0000755 0000000 0000000 00000005445 11524350345 026027  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/ip6tables                     0000755 0000000 0000000 00000020716 11524350346 026612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/firstboot                     0000755 0000000 0000000 00000005341 11524350345 026730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/autofs                        0000755 0000000 0000000 00000007234 11524350345 026221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/sshd                          0000755 0000000 0000000 00000010671 11524350352 025656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/ksm                           0000755 0000000 0000000 00000004236 11524350347 025513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/libvirt-guests                0000755 0000000 0000000 00000017172 11524350347 027707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                  0000755 0000000 0000000 00000004754 11524350345 027255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/ypbind                        0000755 0000000 0000000 00000011277 11524350352 026205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/psacct                        0000755 0000000 0000000 00000003024 11524350351 026163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/xinetd                        0000755 0000000 0000000 00000006743 11524350352 026215  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/nfslock                       0000755 0000000 0000000 00000006675 11524350350 026363  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/cgred                         0000755 0000000 0000000 00000006302 11524350345 025777  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/migrateip                     0000755 0000000 0000000 00000001364 11524350347 026701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/udev-post                     0000755 0000000 0000000 00000004370 11524350352 026642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/haldaemon                     0000755 0000000 0000000 00000003245 11524350346 026647  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/ipsec                         0000755 0000000 0000000 00000010777 11524350346 026032  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/rpcbind                       0000755 0000000 0000000 00000004031 11524350351 026326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/rhnsd                         0000755 0000000 0000000 00000005522 11524350351 026031  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/functions                     0000644 0000000 0000000 00000042767 11524350346 026740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/kdump                         0000755 0000000 0000000 00000027662 11524350347 026051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/postfix                       0000755 0000000 0000000 00000007414 11524350351 026411  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/iptables                      0000755 0000000 0000000 00000020557 11524350346 026527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/rsyslog                       0000755 0000000 0000000 00000004326 11524350352 026417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/netconsole                    0000755 0000000 0000000 00000005650 11524350350 027065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/rpcgssd                       0000755 0000000 0000000 00000006050 11524350351 026355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/abrtd                         0000755 0000000 0000000 00000003254 11524350344 026011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                  0000555 0000000 0000000 00000004612 11524350347 027262  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/halt                          0000755 0000000 0000000 00000012723 11524350346 025650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/cgconfig                      0000755 0000000 0000000 00000012327 11524350345 026476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/single                        0000755 0000000 0000000 00000001207 11524350352 026171  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/mdmonitor                     0000755 0000000 0000000 00000005013 11524350347 026723  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/restorecond                   0000755 0000000 0000000 00000003427 11524350351 027244  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/cpuspeed                      0000755 0000000 0000000 00000025442 11524350345 026531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/netfs                         0000755 0000000 0000000 00000012432 11524350350 026027  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                    0000755 0000000 0000000 00000006014 11524350351 027071  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/oddjobd                       0000755 0000000 0000000 00000004325 11524350351 026320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/ksmtuned                      0000755 0000000 0000000 00000003433 11524350347 026551  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/sandbox                       0000755 0000000 0000000 00000003242 11524350352 026347  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/killall                       0000755 0000000 0000000 00000001214 11524350347 026336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/rdisc                         0000755 0000000 0000000 00000003027 11524350351 026015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/httpd                         0000755 0000000 0000000 00000006364 11524350346 026047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/ntpd                          0000755 0000000 0000000 00000003603 11524350351 025656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/smartd                        0000755 0000000 0000000 00000005672 11524350352 026214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/nslcd                         0000755 0000000 0000000 00000003213 11524350350 026010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/ntpdate                       0000755 0000000 0000000 00000003512 11524350351 026347  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile1/dbserver/VM_configuration/etc/rc.d/init.d/microcode_ctl                 0000755 0000000 0000000 00000002221 11524350347 027517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/dbserver/VM_configuration/etc/hosts                                     0000644 0000000 0000000 00000000267 11524350343 024037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/dbserver/VM_configuration/etc/iproute2/                                 0000777 0000000 0000000 00000000000 11524350344 024525  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/etc/iproute2/rt_dsfield                       0000644 0000000 0000000 00000000672 11524350344 026570  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile1/dbserver/VM_configuration/etc/iproute2/rt_realms                        0000644 0000000 0000000 00000000160 11524350344 026431  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile1/dbserver/VM_configuration/etc/iproute2/rt_scopes                        0000644 0000000 0000000 00000000134 11524350344 026443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/dbserver/VM_configuration/etc/iproute2/ematch_map                       0000644 0000000 0000000 00000000073 11524350343 026541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/dbserver/VM_configuration/etc/iproute2/rt_tables                        0000644 0000000 0000000 00000000127 11524350344 026423  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/dbserver/VM_configuration/etc/iproute2/rt_protos                        0000644 0000000 0000000 00000000475 11524350344 026505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/etc/nsswitch.conf                             0000644 0000000 0000000 00000003230 11524350344 025457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/dbserver/VM_configuration/etc/fstab                                     0000644 0000000 0000000 00000001603 11524350343 023771  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile1/dbserver/VM_configuration/etc/sysctl.conf                               0000644 0000000 0000000 00000001466 11524350360 025145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile1/dbserver/VM_configuration/etc/inittab                                   0000644 0000000 0000000 00000001714 11524350343 024327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
fmc:2345:respawn:/data-disk/opt/ibm/db2/V9.7/bin/db2fmcd #DB2 Fault Monitor Coordinator
                                                    Virtual_Configuration/tile1/dbserver/VM_configuration/var/                                          0000777 0000000 0000000 00000000000 11524350362 022771  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/var/log/                                      0000777 0000000 0000000 00000000000 11524350362 023552  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/var/log/dmesg                                 0000644 0000000 0000000 00000043426 11524350362 024601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0 hugepages=416
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007fffd000 (usable)
 BIOS-e820: 000000007fffd000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x7fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007fffd000
 0000000000 - 007fe00000 page 2M
 007fe00000 - 007fffd000 page 4k
kernel direct mapping tables up to 7fffd000 @ 8000-c000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000007fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000007ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000007fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000007ffffe00 00040
ACPI: SSDT 000000007fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000007fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000007fffd000
Bootmem setup node 0 0000000000000000-000000007fffd000
  NODE_DATA [000000000000a000 - 000000000003dfff]
  bootmap [000000000003e000 -  000000000004dfff] pages 10
(7 early reservations) ==> bootmem [0000000000 - 007fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000a000]          PGTABLE ==> [0000008000 - 000000a000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0001bfffff] PMD -> [ffff880002200000-ffff880003dfffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0007fffd
On node 0 totalpages: 524182
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3831 pages, LIFO batch:0
  DMA32 zone: 7112 pages used for memmap
  DMA32 zone: 513077 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 80000000 (gap: 80000000:7ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 516908
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0 hugepages=416
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2041384k/2097140k available (4935k kernel code, 412k absent, 55344k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 20971520 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116129.313:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 416 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 4012
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:02:08 UTC (1297116128)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
6a:6a:32:85:19:ba
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                          Virtual_Configuration/tile1/dbserver/VM_configuration/boot/                                         0000777 0000000 0000000 00000000000 11524350343 023143  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/boot/grub/                                    0000777 0000000 0000000 00000000000 11524350343 024102  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/VM_configuration/boot/grub/grub.conf                           0000644 0000000 0000000 00000001457 11524350343 025713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0 hugepages=416
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                 Virtual_Configuration/tile1/dbserver/VM_configuration/rpmpkgs.txt                                   0000644 0000000 0000000 00000076554 11524350362 024442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
scrub-2.2-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
xvattr-1.3-18.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
python-slip-0.2.11-1.el6.noarch
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
python-meh-0.9-1.el6.noarch
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
libstdc++-4.4.4-13.el6.i686
vte-0.25.1-5.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
glx-utils-7.7-2.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
yelp-2.28.1-8.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
gnome-terminal-2.31.3-4.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
cracklib-python-2.8.16-2.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
system-config-users-docs-1.0.8-1.el6.noarch
report-gtk-0.18-7.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
xorg-x11-xkb-utils-7.4-6.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
report-newt-0.18-7.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
zenity-2.28.0-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
fuse-2.8.3-1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
seabios-0.5.1-3.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                    Virtual_Configuration/tile1/dbserver/VM_configuration/ifconfig.txt                                  0000644 0000000 0000000 00000002326 11524350361 024524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:03  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:273 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:26612 (25.9 KiB)  TX bytes:984 (984.0 b)

eth1      Link encap:Ethernet  HWaddr 6A:6A:32:85:19:BA  
          inet addr:10.1.217.3  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::686a:32ff:fe85:19ba/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9427816 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9346715 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1935827054 (1.8 GiB)  TX bytes:3734292293 (3.4 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:749 errors:0 dropped:0 overruns:0 frame:0
          TX packets:749 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:73014 (71.3 KiB)  TX bytes:73014 (71.3 KiB)

                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile1/dbserver/VM_configuration/chkconfig.txt                                 0000644 0000000 0000000 00000006625 11524350343 024701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
firstboot      	0:off	1:off	2:off	3:on	4:off	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                           Virtual_Configuration/tile1/dbserver/Software_Configuration/                                        0000777 0000000 0000000 00000000000 11524350342 023407  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/dbserver/Software_Configuration/profile.env                             0000644 0000000 0000000 00000000116 11524350342 025553  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   DB2_LARGE_PAGE_MEM='DB'
DB2_PINNED_BP='ON'
DB2COMM='TCPIP'
DB2AUTOSTART='YES'
                                                                                                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/dbserver/Software_Configuration/db2nodes.cfg                            0000444 0000000 0000000 00000000016 11524350342 025557  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0 tb3-dbt01 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/webserver/                                                              0000777 0000000 0000000 00000000000 11524350446 017123  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/                                             0000777 0000000 0000000 00000000000 11524350465 022375  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/proc/                                        0000777 0000000 0000000 00000000000 11524350464 023337  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/proc/cpuinfo                                 0000644 0000000 0000000 00000002030 11524350464 024714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/webserver/VM_configuration/proc/mounts                                  0000644 0000000 0000000 00000001752 11524350464 024610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=5574592k,nr_inodes=1393648,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1386,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1386,timeout=300,minproto=5,maxproto=5,indirect 0 0
tb3-infrat01:/support-download /var/www/html/support/downloads nfs rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.1.217.5,mountvers=3,mountport=44060,mountproto=udp,addr=10.1.217.5 0 0
                      Virtual_Configuration/tile1/webserver/VM_configuration/proc/swaps                                   0000644 0000000 0000000 00000000144 11524350464 024412  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/webserver/VM_configuration/proc/devices                                 0000644 0000000 0000000 00000000567 11524350464 024710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile1/webserver/VM_configuration/proc/modules                                 0000644 0000000 0000000 00000003214 11524350464 024726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   nfs 348522 1 - Live 0xffffffffa026d000
lockd 73984 1 nfs, Live 0xffffffffa01a9000
fscache 46761 1 nfs, Live 0xffffffffa013f000
nfs_acl 2677 1 nfs, Live 0xffffffffa001b000
auth_rpcgss 44862 1 nfs, Live 0xffffffffa0132000
bridge 74113 0 - Live 0xffffffffa0258000
stp 2107 1 bridge, Live 0xffffffffa0252000
llc 5608 2 bridge,stp, Live 0xffffffffa024a000
autofs4 27683 3 - Live 0xffffffffa023d000
sunrpc 241630 16 nfs,lockd,nfs_acl,auth_rpcgss, Live 0xffffffffa01ea000
ipv6 321209 437 - Live 0xffffffffa0158000
dm_mirror 14003 0 - Live 0xffffffffa012c000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0127000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0122000
ppdev 8695 0 - Live 0xffffffffa011d000
parport_pc 22944 0 - Live 0xffffffffa00e9000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa0111000
sg 30186 0 - Live 0xffffffffa00df000
virtio_net 15665 0 - Live 0xffffffffa0015000
ixgbevf 47200 0 - Live 0xffffffffa0103000
i2c_piix4 12574 0 - Live 0xffffffffa00fd000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00f3000
ext4 353979 2 - Live 0xffffffffa0086000
mbcache 7918 1 ext4, Live 0xffffffffa0026000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/webserver/VM_configuration/proc/partitions                              0000644 0000000 0000000 00000000260 11524350464 025450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20970496 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile1/webserver/VM_configuration/proc/meminfo                                 0000644 0000000 0000000 00000002222 11524350464 024706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:       11163520 kB
MemFree:          635912 kB
Buffers:            6292 kB
Cached:          9156376 kB
SwapCached:            0 kB
Active:          2000716 kB
Inactive:        7928640 kB
Active(anon):     640940 kB
Inactive(anon):   128788 kB
Active(file):    1359776 kB
Inactive(file):  7799852 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               200 kB
Writeback:             0 kB
AnonPages:        766652 kB
Mapped:            21972 kB
Shmem:              2988 kB
Slab:             357252 kB
SReclaimable:      87492 kB
SUnreclaim:       269760 kB
KernelStack:        4264 kB
PageTables:       181800 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     7629752 kB
Committed_AS:    2761372 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       40792 kB
VmallocChunk:   34359693584 kB
HardwareCorrupted:     0 kB
AnonHugePages:     24576 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:    11526144 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/webserver/VM_configuration/root/                                        0000777 0000000 0000000 00000000000 11524350464 023357  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/root/convert_to_vf.sh                        0000755 0000000 0000000 00000001135 11524350464 026567  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/lspci.txt                                    0000644 0000000 0000000 00000001211 11524350464 024236  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/webserver/VM_configuration/df.txt                                       0000644 0000000 0000000 00000000570 11524350446 023524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3881248   8899688  31% /
tmpfs                  5581760         0   5581760   0% /dev/shm
/dev/vdb1             20641404    970060  18622820   5% /data-disk
tb3-infrat01:/support-download
                      61923456  33417216  25360768  57% /var/www/html/support/downloads
                                                                                                                                        Virtual_Configuration/tile1/webserver/VM_configuration/mount.txt                                    0000644 0000000 0000000 00000000752 11524350464 024277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
tb3-infrat01:/support-download on /var/www/html/support/downloads type nfs (rw,addr=10.1.217.5)
                      Virtual_Configuration/tile1/webserver/VM_configuration/etc/                                         0000777 0000000 0000000 00000000000 11524350463 023146  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/                                    0000777 0000000 0000000 00000000000 11524350456 023776  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/                              0000777 0000000 0000000 00000000000 11524350463 024705  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests             0000755 0000000 0000000 00000017172 11524350456 030101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                    0000755 0000000 0000000 00000004325 11524350456 026517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524350457 027306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                   0000755 0000000 0000000 00000012327 11524350460 026701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                  0000755 0000000 0000000 00000005222 11524350461 027065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                       0000755 0000000 0000000 00000010671 11524350463 026072  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                      0000755 0000000 0000000 00000006364 11524350457 026247  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                  0000755 0000000 0000000 00000020716 11524350460 027011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                       0000755 0000000 0000000 00000004731 11524350460 026070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon               0000755 0000000 0000000 00000004754 11524350456 027451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                  0000755 0000000 0000000 00000001364 11524350463 027111  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                      0000755 0000000 0000000 00000003027 11524350460 026226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                     0000755 0000000 0000000 00000006743 11524350463 026432  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                      0000755 0000000 0000000 00000010777 11524350457 026241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                 0000755 0000000 0000000 00000004230 11524350462 027252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                      0000755 0000000 0000000 00000006302 11524350460 026202  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                        0000755 0000000 0000000 00000004236 11524350463 025725  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                    0000755 0000000 0000000 00000004031 11524350461 026533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                 0000755 0000000 0000000 00000003521 11524350461 027216  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                    0000755 0000000 0000000 00000006050 11524350462 026571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                    0000755 0000000 0000000 00000002363 11524350460 026637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                 0000755 0000000 0000000 00000004054 11524350456 027255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                  0000755 0000000 0000000 00000005013 11524350461 027125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                      0000755 0000000 0000000 00000003213 11524350460 026221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                    0000755 0000000 0000000 00000003512 11524350457 026561  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                       0000755 0000000 0000000 00000003603 11524350457 026067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                     0000755 0000000 0000000 00000011277 11524350457 026414  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S10network                    0000755 0000000 0000000 00000014466 11524350461 026615  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                    0000755 0000000 0000000 00000004326 11524350461 026622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                     0000755 0000000 0000000 00000006462 11524350461 026374  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                      0000755 0000000 0000000 00000027662 11524350462 026250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                       0000755 0000000 0000000 00000006445 11524350457 025772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                  0000755 0000000 0000000 00000003245 11524350462 027055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K60crond                      0000755 0000000 0000000 00000005445 11524350457 026230  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                      0000755 0000000 0000000 00000005522 11524350456 026231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl              0000755 0000000 0000000 00000002221 11524350460 027712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                  0000755 0000000 0000000 00000004010 11524350456 027070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                        0000755 0000000 0000000 00000013536 11524350457 025711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                       0000755 0000000 0000000 00000004723 11524350462 026051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                     0000755 0000000 0000000 00000003024 11524350456 026361  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                      0000755 0000000 0000000 00000003275 11524350462 026210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                   0000755 0000000 0000000 00000025442 11524350461 026733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                  0000755 0000000 0000000 00000004370 11524350462 027053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S99local                      0000755 0000000 0000000 00000000334 11524350463 026226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                    0000755 0000000 0000000 00000006675 11524350461 026572  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                 0000755 0000000 0000000 00000005650 11524350457 027271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor               0000555 0000000 0000000 00000004612 11524350461 027460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                     0000755 0000000 0000000 00000007234 11524350462 026432  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                   0000755 0000000 0000000 00000003433 11524350463 026764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                     0000755 0000000 0000000 00000005672 11524350456 026411  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                      0000755 0000000 0000000 00000003254 11524350463 026224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                  0000755 0000000 0000000 00000005063 11524350463 027100  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                      0000755 0000000 0000000 00000012432 11524350462 026241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                    0000755 0000000 0000000 00000007414 11524350457 026612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                   0000755 0000000 0000000 00000020557 11524350460 026726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond                0000755 0000000 0000000 00000003427 11524350460 027453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/rc3.d/K05atd                        0000755 0000000 0000000 00000004112 11524350456 025657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/                             0000777 0000000 0000000 00000000000 11524350456 025163  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/network                      0000755 0000000 0000000 00000014466 11524350453 026606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/gfs2                         0000755 0000000 0000000 00000006445 11524350451 025752  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/sysstat                      0000755 0000000 0000000 00000002363 11524350455 026622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/saslauthd                    0000755 0000000 0000000 00000004010 11524350455 027067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/messagebus                   0000755 0000000 0000000 00000004230 11524350453 027237  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/autobench                    0000755 0000000 0000000 00000005063 11524350450 027053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/atd                          0000755 0000000 0000000 00000004112 11524350450 025645  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/mcelogd                      0000755 0000000 0000000 00000003535 11524350452 026521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/auditd                       0000755 0000000 0000000 00000006462 11524350450 026361  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/certmonger                   0000755 0000000 0000000 00000004054 11524350450 027247  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/irqbalance                   0000755 0000000 0000000 00000003521 11524350452 027203  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/acpid                        0000755 0000000 0000000 00000003275 11524350450 026166  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/nscd                         0000755 0000000 0000000 00000004723 11524350453 026037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                    0000755 0000000 0000000 00000005222 11524350454 027047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/nfs                          0000755 0000000 0000000 00000013536 11524350453 025700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/sssd                         0000755 0000000 0000000 00000004731 11524350455 026065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/crond                        0000755 0000000 0000000 00000005445 11524350451 026215  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/ip6tables                    0000755 0000000 0000000 00000020716 11524350451 026777  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/autofs                       0000755 0000000 0000000 00000007234 11524350450 026406  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/sshd                         0000755 0000000 0000000 00000010671 11524350455 026052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/ksm                          0000755 0000000 0000000 00000004236 11524350452 025700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/libvirt-guests               0000755 0000000 0000000 00000017172 11524350452 030074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                 0000755 0000000 0000000 00000004754 11524350450 027442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/ypbind                       0000755 0000000 0000000 00000011277 11524350456 026402  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/psacct                       0000755 0000000 0000000 00000003024 11524350454 026357  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/xinetd                       0000755 0000000 0000000 00000006743 11524350455 026411  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/nfslock                      0000755 0000000 0000000 00000006675 11524350453 026557  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/cgred                        0000755 0000000 0000000 00000006302 11524350450 026164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/migrateip                    0000755 0000000 0000000 00000001364 11524350453 027067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/udev-post                    0000755 0000000 0000000 00000004370 11524350455 027036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/haldaemon                    0000755 0000000 0000000 00000003245 11524350451 027034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/ipsec                        0000755 0000000 0000000 00000010777 11524350452 026220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/rpcbind                      0000755 0000000 0000000 00000004031 11524350454 026522  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/rhnsd                        0000755 0000000 0000000 00000005522 11524350454 026225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/functions                    0000644 0000000 0000000 00000042767 11524350451 027125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/kdump                        0000755 0000000 0000000 00000027662 11524350452 026236  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/postfix                      0000755 0000000 0000000 00000007414 11524350454 026605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/iptables                     0000755 0000000 0000000 00000020557 11524350452 026715  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/rsyslog                      0000755 0000000 0000000 00000004326 11524350455 026613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/netconsole                   0000755 0000000 0000000 00000005650 11524350453 027261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/rpcgssd                      0000755 0000000 0000000 00000006050 11524350454 026551  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/abrtd                        0000755 0000000 0000000 00000003254 11524350450 026177  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                 0000555 0000000 0000000 00000004612 11524350452 027447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/halt                         0000755 0000000 0000000 00000012723 11524350451 026035  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/cgconfig                     0000755 0000000 0000000 00000012327 11524350450 026663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/single                       0000755 0000000 0000000 00000001207 11524350455 026365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/mdmonitor                    0000755 0000000 0000000 00000005013 11524350453 027111  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/restorecond                  0000755 0000000 0000000 00000003427 11524350454 027440  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/cpuspeed                     0000755 0000000 0000000 00000025442 11524350451 026717  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/netfs                        0000755 0000000 0000000 00000012432 11524350453 026223  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                   0000755 0000000 0000000 00000006014 11524350455 027266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/oddjobd                      0000755 0000000 0000000 00000004325 11524350454 026514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/ksmtuned                     0000755 0000000 0000000 00000003433 11524350452 026736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/sandbox                      0000755 0000000 0000000 00000003242 11524350455 026543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/killall                      0000755 0000000 0000000 00000001214 11524350452 026523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/rdisc                        0000755 0000000 0000000 00000003027 11524350454 026211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/httpd                        0000755 0000000 0000000 00000006364 11524350451 026234  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/ntpd                         0000755 0000000 0000000 00000003603 11524350454 026052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/smartd                       0000755 0000000 0000000 00000005672 11524350455 026410  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/nslcd                        0000755 0000000 0000000 00000003213 11524350453 026204  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/ntpdate                      0000755 0000000 0000000 00000003512 11524350454 026543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile1/webserver/VM_configuration/etc/rc.d/init.d/microcode_ctl                0000755 0000000 0000000 00000002221 11524350453 027705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/webserver/VM_configuration/etc/hosts                                    0000644 0000000 0000000 00000000236 11524350446 024227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/webserver/VM_configuration/etc/iproute2/                                0000777 0000000 0000000 00000000000 11524350447 024721  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/etc/iproute2/rt_dsfield                      0000644 0000000 0000000 00000000672 11524350447 026764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile1/webserver/VM_configuration/etc/iproute2/rt_realms                       0000644 0000000 0000000 00000000160 11524350447 026625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile1/webserver/VM_configuration/etc/iproute2/rt_scopes                       0000644 0000000 0000000 00000000134 11524350447 026637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/webserver/VM_configuration/etc/iproute2/ematch_map                      0000644 0000000 0000000 00000000073 11524350447 026736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/webserver/VM_configuration/etc/iproute2/rt_tables                       0000644 0000000 0000000 00000000127 11524350447 026617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/webserver/VM_configuration/etc/iproute2/rt_protos                       0000644 0000000 0000000 00000000475 11524350447 026701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/etc/nsswitch.conf                            0000644 0000000 0000000 00000003230 11524350447 025653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/webserver/VM_configuration/etc/fstab                                    0000644 0000000 0000000 00000001603 11524350446 024165  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile1/webserver/VM_configuration/etc/sysctl.conf                              0000644 0000000 0000000 00000001466 11524350463 025341  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile1/webserver/VM_configuration/etc/inittab                                  0000644 0000000 0000000 00000001564 11524350447 024527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile1/webserver/VM_configuration/var/                                         0000777 0000000 0000000 00000000000 11524350465 023165  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/var/log/                                     0000777 0000000 0000000 00000000000 11524350465 023746  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/var/log/dmesg                                0000644 0000000 0000000 00000046142 11524350465 024773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
 BIOS-e820: 0000000100000000 - 00000002e0000000 (usable)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x2e0000 max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
init_memory_mapping: 0000000100000000-00000002e0000000
 0100000000 - 02e0000000 page 2M
kernel direct mapping tables up to 2e0000000 @ c000-19000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffddc0 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffdf0 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf30 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffd80 00040
ACPI: SSDT 00000000dfffdee0 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffddf0 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000002e0000000
Bootmem setup node 0 0000000000000000-00000002e0000000
  NODE_DATA [0000000000014000 - 0000000000047fff]
  bootmap [0000000000100000 -  000000000015bfff] pages 5c
(8 early reservations) ==> bootmem [0000000000 - 02e0000000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
  #7 [000000c000 - 0000014000]          PGTABLE ==> [000000c000 - 0000014000]
found SMP MP-table at [ffff8800000f8120] f8120
Reserving 129MB of memory at 32MB for crashkernel (System RAM: 11776MB)
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea000a1fffff] PMD -> [ffff880028600000-ffff8800321fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x002e0000
Movable zone start PFN for each node
early_node_map[3] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x000dfffd
    0: 0x00100000 -> 0x002e0000
On node 0 totalpages: 2883478
  DMA zone: 56 pages used for memmap
  DMA zone: 116 pages reserved
  DMA zone: 3821 pages, LIFO batch:0
  DMA32 zone: 14280 pages used for memmap
  DMA32 zone: 899125 pages, LIFO batch:31
  Normal zone: 26880 pages used for memmap
  Normal zone: 1939200 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
PM: Registered nosave memory: 00000000dfffd000 - 00000000e0000000
PM: Registered nosave memory: 00000000e0000000 - 00000000fffbc000
PM: Registered nosave memory: 00000000fffbc000 - 0000000100000000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880028200000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:28216901, primary cpu clock
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 2842146
Policy zone: Normal
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=129M@0M elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing 64MB software IO TLB between ffff880020000000 - ffff880024000000
software IO TLB at phys 0x20000000 - 0x24000000
Memory: 11149184k/12058624k available (4935k kernel code, 524712k absent, 384728k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 115343360 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes)
Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:28316901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (13867.27 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 524288 (order: 10, 4194304 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116196.317:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 21801
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:03:15 UTC (1297116195)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
5a:eb:73:b5:a4:b2
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/webserver/VM_configuration/boot/                                        0000777 0000000 0000000 00000000000 11524350446 023337  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/boot/grub/                                   0000777 0000000 0000000 00000000000 11524350446 024276  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/boot/grub/grub.conf                          0000644 0000000 0000000 00000002217 11524350446 026102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/webserver/VM_configuration/rpmpkgs.txt                                  0000644 0000000 0000000 00000067255 11524350465 024634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
php-pecl-apc-3.1.3p1-1.2.el6.1.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
php-pear-1.9.0-2.el6.noarch
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/VM_configuration/ifconfig.txt                                 0000644 0000000 0000000 00000002350 11524350463 024714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:01  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:187 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:18923 (18.4 KiB)  TX bytes:898 (898.0 b)

eth1      Link encap:Ethernet  HWaddr 5A:EB:73:B5:A4:B2  
          inet addr:10.1.217.1  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::58eb:73ff:feb5:a4b2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:185835741 errors:0 dropped:0 overruns:0 frame:0
          TX packets:287081198 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:175579654615 (163.5 GiB)  TX bytes:325259371191 (302.9 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12948 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12948 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1344084 (1.2 MiB)  TX bytes:1344084 (1.2 MiB)

                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/webserver/VM_configuration/chkconfig.txt                                0000644 0000000 0000000 00000006535 11524350446 025075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile1/webserver/Software_Configuration/                                       0000777 0000000 0000000 00000000000 11524350444 023602  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/Software_Configuration/httpd/                                 0000777 0000000 0000000 00000000000 11524350444 024725  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/Software_Configuration/httpd/conf.d/                          0000777 0000000 0000000 00000000000 11524350444 026074  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/Software_Configuration/httpd/conf.d/manual.conf               0000644 0000000 0000000 00000000447 11524350444 030221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This configuration file allows the manual to be accessed at 
# http://localhost/manual/
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"

<Directory "/var/www/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
                                                                                                                                                                                                                         Virtual_Configuration/tile1/webserver/Software_Configuration/httpd/conf.d/php.conf                  0000644 0000000 0000000 00000001242 11524350444 027525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/webserver/Software_Configuration/httpd/conf.d/welcome.conf              0000644 0000000 0000000 00000000453 11524350444 030374  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # 
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

                                                                                                                                                                                                                     Virtual_Configuration/tile1/webserver/Software_Configuration/httpd/conf.d/README                    0000644 0000000 0000000 00000000610 11524350444 026745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
This directory holds Apache 2.0 module-specific configuration files;
any files in this directory which have the ".conf" extension will be
processed as Apache configuration files.

Files are processed in alphabetical order, so if using configuration
directives which depend on, say, mod_perl being loaded, ensure that
these are placed in a filename later in the sort order than "perl.conf".

                                                                                                                        Virtual_Configuration/tile1/webserver/Software_Configuration/httpd/conf/                            0000777 0000000 0000000 00000000000 11524350444 025652  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/Software_Configuration/httpd/conf/httpd.conf                  0000644 0000000 0000000 00000103142 11524350444 027641  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# Don't give away too much information about all the subcomponents
# we are running.  Comment out this line if you don't mind remote sites
# finding out what major optional modules you are running
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.  Note the PIDFILE variable in
# /etc/sysconfig/httpd must be set appropriately if this location is
# changed.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 60

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 0

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 60

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit 10240
MaxClients 10240
MaxRequestsPerChild  4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         4
MaxClients 10240
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

#
# The following modules are not loaded by default:
#
#LoadModule asis_module modules/mod_asis.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
#

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group #-1 on these systems!
#
User apache
Group apache

### Section 2: 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
#ServerName www.example.com:80

#
# UseCanonicalName: Determines how Apache constructs self-referencing 
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.  This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir disabled

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disabled" line above, and uncomment
    # the following line instead:
    # 
    #UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is 
# used to deliver files (assuming that the OS supports it). 
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
#
#EnableSendfile off

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
# requires the mod_logio module to be loaded.
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access_log common

#
# If you would like to have separate agent and referer logfiles, uncomment
# the following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# WebDAV module configuration section.
# 
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Directives controlling the display of server-generated directory listings.
#

#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes.  These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

#
# DefaultLanguage and AddLanguage allows you to specify the language of 
# a document. You can then use content negotiation to give a browser a 
# file in a language the user can understand.
#
# Specify a default language. This means that all data
# going out without a specific language tag (see below) will 
# be marked with this one. You probably do NOT want to set
# this unless you are sure it is correct for all cases.
#
# * It is generally better to not mark a page as 
# * being a certain language than marking it with the wrong
# * language!
#
# DefaultLanguage nl
#
# Note 1: The suffix does not have to be the same as the language
# keyword --- those with documents in Polish (whose net-standard
# language code is pl) may wish to use "AddLanguage pl .po" to
# avoid the ambiguity with the common suffix for perl scripts.
#
# Note 2: The example entries below illustrate that in some cases 
# the two character 'Language' abbreviation is not identical to 
# the two character 'Country' code for its country,
# E.g. 'Danmark/dk' versus 'Danish/da'.
#
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
# specifier. There is 'work in progress' to fix this and get
# the reference data for rfc1766 cleaned up.
#
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the 
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz

#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
#   MIME-types for downloading Certificates and CRLs
#
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
#  to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#    ErrorDocument 410 /error/HTTP_GONE.html.var
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Proxy>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
#   CacheEnable disk /
#   CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#

#</IfModule>
# End of proxy directives.

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
                                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/webserver/Software_Configuration/httpd/conf/magic                       0000644 0000000 0000000 00000031523 11524350444 026655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Magic data for mod_mime_magic Apache module (originally for file(1) command)
# The module is described in /manual/mod/mod_mime_magic.html
#
# The format is 4-5 columns:
#    Column #1: byte number to begin checking from, ">" indicates continuation
#    Column #2: type of data to match
#    Column #3: contents of data to match
#    Column #4: MIME type of result
#    Column #5: MIME encoding of result (optional)

#------------------------------------------------------------------------------
# Localstuff:  file(1) magic for locally observed files
# Add any locally observed files here.

#------------------------------------------------------------------------------
# end local stuff
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Java

0	short		0xcafe
>2	short		0xbabe		application/java

#------------------------------------------------------------------------------
# audio:  file(1) magic for sound formats
#
# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
#

# Sun/NeXT audio data
0	string		.snd
>12	belong		1		audio/basic
>12	belong		2		audio/basic
>12	belong		3		audio/basic
>12	belong		4		audio/basic
>12	belong		5		audio/basic
>12	belong		6		audio/basic
>12	belong		7		audio/basic

>12	belong		23		audio/x-adpcm

# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
# (0x0064732E in little-endian encoding).
0	lelong		0x0064732E	
>12	lelong		1		audio/x-dec-basic
>12	lelong		2		audio/x-dec-basic
>12	lelong		3		audio/x-dec-basic
>12	lelong		4		audio/x-dec-basic
>12	lelong		5		audio/x-dec-basic
>12	lelong		6		audio/x-dec-basic
>12	lelong		7		audio/x-dec-basic
#                                       compressed (G.721 ADPCM)
>12	lelong		23		audio/x-dec-adpcm

# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
#					AIFF audio data
8	string		AIFF		audio/x-aiff	
#					AIFF-C audio data
8	string		AIFC		audio/x-aiff	
#					IFF/8SVX audio data
8	string		8SVX		audio/x-aiff	

# Creative Labs AUDIO stuff
#					Standard MIDI data
0	string	MThd			audio/unknown	
#>9 	byte	>0			(format %d)
#>11	byte	>1			using %d channels
#					Creative Music (CMF) data
0	string	CTMF			audio/unknown	
#					SoundBlaster instrument data
0	string	SBI			audio/unknown	
#					Creative Labs voice data
0	string	Creative\ Voice\ File	audio/unknown	
## is this next line right?  it came this way...
#>19	byte	0x1A
#>23	byte	>0			- version %d
#>22	byte	>0			\b.%d

# [GRR 950115:  is this also Creative Labs?  Guessing that first line
#  should be string instead of unknown-endian long...]
#0	long		0x4e54524b	MultiTrack sound data
#0	string		NTRK		MultiTrack sound data
#>4	long		x		- version %ld

# Microsoft WAVE format (*.wav)
# [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
#					Microsoft RIFF
0	string		RIFF		audio/unknown
#					- WAVE format
>8	string		WAVE		audio/x-wav
# MPEG audio.
0   beshort&0xfff0  0xfff0  audio/mpeg
# C64 SID Music files, from Linus Walleij <triad@df.lth.se>
0   string      PSID        audio/prs.sid

#------------------------------------------------------------------------------
# c-lang:  file(1) magic for C programs or various scripts
#

# XPM icons (Greg Roelofs, newt@uchicago.edu)
# ideally should go into "images", but entries below would tag XPM as C source
0	string		/*\ XPM		image/x-xbm	7bit

# this first will upset you if you're a PL/1 shop... (are there any left?)
# in which case rm it; ascmagic will catch real C programs
#					C or REXX program text
0	string		/*		text/plain
#					C++ program text
0	string		//		text/plain

#------------------------------------------------------------------------------
# compress:  file(1) magic for pure-compression formats (no archives)
#
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
#
# Formats for various forms of compressed data
# Formats for "compress" proper have been moved into "compress.c",
# because it tries to uncompress it to figure out what's inside.

# standard unix compress
0	string		\037\235	application/octet-stream	x-compress

# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
0       string          \037\213        application/octet-stream	x-gzip

# According to gzip.h, this is the correct byte order for packed data.
0	string		\037\036	application/octet-stream
#
# This magic number is byte-order-independent.
#
0	short		017437		application/octet-stream

# XXX - why *two* entries for "compacted data", one of which is
# byte-order independent, and one of which is byte-order dependent?
#
# compacted data
0	short		0x1fff		application/octet-stream
0	string		\377\037	application/octet-stream
# huf output
0	short		0145405		application/octet-stream

# Squeeze and Crunch...
# These numbers were gleaned from the Unix versions of the programs to
# handle these formats.  Note that I can only uncrunch, not crunch, and
# I didn't have a crunched file handy, so the crunch number is untested.
#				Keith Waclena <keith@cerberus.uchicago.edu>
#0	leshort		0x76FF		squeezed data (CP/M, DOS)
#0	leshort		0x76FE		crunched data (CP/M, DOS)

# Freeze
#0	string		\037\237	Frozen file 2.1
#0	string		\037\236	Frozen file 1.0 (or gzip 0.5)

# lzh?
#0	string		\037\240	LZH compressed data

#------------------------------------------------------------------------------
# frame:  file(1) magic for FrameMaker files
#
# This stuff came on a FrameMaker demo tape, most of which is
# copyright, but this file is "published" as witness the following:
#
0	string		\<MakerFile	application/x-frame
0	string		\<MIFFile	application/x-frame
0	string		\<MakerDictionary	application/x-frame
0	string		\<MakerScreenFon	application/x-frame
0	string		\<MML		application/x-frame
0	string		\<Book		application/x-frame
0	string		\<Maker		application/x-frame

#------------------------------------------------------------------------------
# html:  file(1) magic for HTML (HyperText Markup Language) docs
#
# from Daniel Quinlan <quinlan@yggdrasil.com>
# and Anna Shergold <anna@inext.co.uk>
#
0   string      \<!DOCTYPE\ HTML    text/html
0   string      \<!doctype\ html    text/html
0   string      \<HEAD      text/html
0   string      \<head      text/html
0   string      \<TITLE     text/html
0   string      \<title     text/html
0   string      \<html      text/html
0   string      \<HTML      text/html
0   string      \<!--       text/html
0   string      \<h1        text/html
0   string      \<H1        text/html

# XML eXtensible Markup Language, from Linus Walleij <triad@df.lth.se>
0   string      \<?xml      text/xml

#------------------------------------------------------------------------------
# images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
#
# originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
# additions by janl@ifi.uio.no as well as others. Jan also suggested
# merging several one- and two-line files into here.
#
# XXX - byte order for GIF and TIFF fields?
# [GRR:  TIFF allows both byte orders; GIF is probably little-endian]
#

# [GRR:  what the hell is this doing in here?]
#0	string		xbtoa		btoa'd file

# PBMPLUS
#					PBM file
0	string		P1		image/x-portable-bitmap	7bit
#					PGM file
0	string		P2		image/x-portable-greymap	7bit
#					PPM file
0	string		P3		image/x-portable-pixmap	7bit
#					PBM "rawbits" file
0	string		P4		image/x-portable-bitmap
#					PGM "rawbits" file
0	string		P5		image/x-portable-greymap
#					PPM "rawbits" file
0	string		P6		image/x-portable-pixmap

# NIFF (Navy Interchange File Format, a modification of TIFF)
# [GRR:  this *must* go before TIFF]
0	string		IIN1		image/x-niff

# TIFF and friends
#					TIFF file, big-endian
0	string		MM		image/tiff
#					TIFF file, little-endian
0	string		II		image/tiff

# possible GIF replacements; none yet released!
# (Greg Roelofs, newt@uchicago.edu)
#
# GRR 950115:  this was mine ("Zip GIF"):
#					ZIF image (GIF+deflate alpha)
0	string		GIF94z		image/unknown
#
# GRR 950115:  this is Jeremy Wohl's Free Graphics Format (better):
#					FGF image (GIF+deflate beta)
0	string		FGF95a		image/unknown
#
# GRR 950115:  this is Thomas Boutell's Portable Bitmap Format proposal
# (best; not yet implemented):
#					PBF image (deflate compression)
0	string		PBF		image/unknown

# GIF
0	string		GIF		image/gif

# JPEG images
0	beshort		0xffd8		image/jpeg

# PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
0	string		BM		image/bmp
#>14	byte		12		(OS/2 1.x format)
#>14	byte		64		(OS/2 2.x format)
#>14	byte		40		(Windows 3.x format)
#0	string		IC		icon
#0	string		PI		pointer
#0	string		CI		color icon
#0	string		CP		color pointer
#0	string		BA		bitmap array


#------------------------------------------------------------------------------
# lisp:  file(1) magic for lisp programs
#
# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
0	string	;;			text/plain	8bit
# Emacs 18 - this is always correct, but not very magical.
0	string	\012(			application/x-elc
# Emacs 19
0	string	;ELC\023\000\000\000	application/x-elc

#------------------------------------------------------------------------------
# mail.news:  file(1) magic for mail and news
#
# There are tests to ascmagic.c to cope with mail and news.
0	string		Relay-Version: 	message/rfc822	7bit
0	string		#!\ rnews	message/rfc822	7bit
0	string		N#!\ rnews	message/rfc822	7bit
0	string		Forward\ to 	message/rfc822	7bit
0	string		Pipe\ to 	message/rfc822	7bit
0	string		Return-Path:	message/rfc822	7bit
0	string		Path:		message/news	8bit
0	string		Xref:		message/news	8bit
0	string		From:		message/rfc822	7bit
0	string		Article 	message/news	8bit
#------------------------------------------------------------------------------
# msword: file(1) magic for MS Word files
#
# Contributor claims:
# Reversed-engineered MS Word magic numbers
#

0	string		\376\067\0\043			application/msword
0	string		\333\245-\0\0\0			application/msword

# disable this one because it applies also to other
# Office/OLE documents for which msword is not correct. See PR#2608.
#0	string		\320\317\021\340\241\261	application/msword



#------------------------------------------------------------------------------
# printer:  file(1) magic for printer-formatted files
#

# PostScript
0	string		%!		application/postscript
0	string		\004%!		application/postscript

# Acrobat
# (due to clamen@cs.cmu.edu)
0	string		%PDF-		application/pdf

#------------------------------------------------------------------------------
# sc:  file(1) magic for "sc" spreadsheet
#
38	string		Spreadsheet	application/x-sc

#------------------------------------------------------------------------------
# tex:  file(1) magic for TeX files
#
# XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
#
# From <conklin@talisman.kaleida.com>

# Although we may know the offset of certain text fields in TeX DVI
# and font files, we can't use them reliably because they are not
# zero terminated. [but we do anyway, christos]
0	string		\367\002	application/x-dvi
#0	string		\367\203	TeX generic font data
#0	string		\367\131	TeX packed font data
#0	string		\367\312	TeX virtual font data
#0	string		This\ is\ TeX,	TeX transcript text	
#0	string		This\ is\ METAFONT,	METAFONT transcript text

# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data.  The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
#2	string		\000\021	TeX font metric data
#2	string		\000\022	TeX font metric data
#>34	string		>\0		(%s)

# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
#0	string		\\input\ texinfo	Texinfo source text
#0	string		This\ is\ Info\ file	GNU Info text

# correct TeX magic for Linux (and maybe more)
# from Peter Tobias (tobias@server.et-inf.fho-emden.de)
#
0	leshort		0x02f7		application/x-dvi

# RTF - Rich Text Format
0	string		{\\rtf		application/rtf

#------------------------------------------------------------------------------
# animation:  file(1) magic for animation/movie formats
#
# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
#						MPEG file
0	string		\000\000\001\263	video/mpeg
#
# The contributor claims:
#   I couldn't find a real magic number for these, however, this
#   -appears- to work.  Note that it might catch other files, too,
#   so BE CAREFUL!
#
# Note that title and author appear in the two 20-byte chunks
# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
# 255 (hex FF)! DL format SUCKS BIG ROCKS.
#
#						DL file version 1 , medium format (160x100, 4 images/screen)
0	byte		1			video/unknown
0	byte		2			video/unknown
# Quicktime video, from Linus Walleij <triad@df.lth.se>
# from Apple quicktime file format documentation.
4   string      moov        video/quicktime
4   string      mdat        video/quicktime

# PNG [Portable Network Graphics, or "PNG's Not GIF"] images
#
# 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
0   string      \211PNG\015      image/png
                                                                                                                                                                             Virtual_Configuration/tile1/webserver/Software_Configuration/php/                                   0000777 0000000 0000000 00000000000 11524350445 024372  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/Software_Configuration/php/php.ini                            0000644 0000000 0000000 00000206751 11524350445 025671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   [PHP]

;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.

; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
; 1. SAPI module specific location.
; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; 4. Current working directory (except CLI)
; 5. The web server's directory (for SAPI modules), or directory of PHP
; (otherwise in Windows)
; 6. The directory from the --with-config-file-path compile time option, or the
; Windows directory (C:\windows or C:\winnt)
; See the PHP docs for more specific information.
; http://www.php.net/manual/en/configuration.file.php

; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future. 

; Directives following the section heading [PATH=/www/mysite] only
; apply to PHP files in the /www/mysite directory.  Directives
; following the section heading [HOST=www.example.com] only apply to
; PHP files served from www.example.com.  Directives set in these
; special sections cannot be overridden by user-defined INI files or
; at runtime. Currently, [PATH=] and [HOST=] sections only work under
; CGI/FastCGI.
; http://www.php.net/manual/en/ini.sections.php

; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
; Directives are variables used to configure PHP or PHP extensions.
; There is no name validation.  If PHP can't find an expected
; directive because it is not set or is mistyped, a default value will be used.

; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
; previously set variable or directive (e.g. ${foo})

; Expressions in the INI file are limited to bitwise operators and parentheses:
; |  bitwise OR
; ^  bitwise XOR
; &  bitwise AND
; ~  bitwise NOT
; !  boolean NOT

; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.

; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:

;  foo =         ; sets foo to an empty string
;  foo = None    ; sets foo to an empty string
;  foo = "None"  ; sets foo to the string 'None'

; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.

;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; PHP comes packaged with two INI files. One that is recommended to be used
; in production environments and one that is recommended to be used in
; development environments.

; php.ini-production contains settings which hold security, performance and
; best practices at its core. But please be aware, these settings may break
; compatibility with older or less security conscience applications. We
; recommending using the production ini in production and testing environments.

; php.ini-development is very similar to its production variant, except it's
; much more verbose when it comes to errors. We recommending using the
; development version only in development environments as errors shown to
; application users can inadvertently leak otherwise secure information.

; This 2 files are provided, by RPM, in /usr/share/doc/php-common-*/
; File used by RPM (the /etc/php.ini) is mainly the php.ini-production

;;;;;;;;;;;;;;;;;;;
; Quick Reference ;
;;;;;;;;;;;;;;;;;;;
; The following are all the settings which are different in either the production
; or development versions of the INIs with respect to PHP's default behavior.
; Please see the actual settings later in the document for more details as to why
; we recommend these changes in PHP's behavior.

; allow_call_time_pass_reference
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; display_errors
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; display_startup_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; error_reporting
;   Default Value: E_ALL & ~E_NOTICE
;   Development Value: E_ALL | E_STRICT
;   Production Value: E_ALL & ~E_DEPRECATED

; html_errors
;   Default Value: On
;   Development Value: On
;   Production value: Off

; log_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: On

; magic_quotes_gpc
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; max_input_time
;   Default Value: -1 (Unlimited)
;   Development Value: 60 (60 seconds)
;   Production Value: 60 (60 seconds)

; output_buffering
;   Default Value: Off
;   Development Value: 4096
;   Production Value: 4096

; register_argc_argv
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; register_long_arrays
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; request_order
;   Default Value: None
;   Development Value: "GP"
;   Production Value: "GP"

; session.bug_compat_42
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; session.bug_compat_warn
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; session.gc_divisor
;   Default Value: 100
;   Development Value: 1000
;   Production Value: 1000

; session.hash_bits_per_character
;   Default Value: 4
;   Development Value: 5
;   Production Value: 5

; short_open_tag
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; track_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; url_rewriter.tags
;   Default Value: "a=href,area=href,frame=src,form=,fieldset="
;   Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
;   Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"

; variables_order
;   Default Value: "EGPCS"
;   Development Value: "GPCS"
;   Production Value: "GPCS"

;;;;;;;;;;;;;;;;;;;;
; php.ini Options  ;
;;;;;;;;;;;;;;;;;;;;
; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
;user_ini.filename = ".user.ini"

; To disable this feature set this option to empty value
;user_ini.filename =

; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
;user_ini.cache_ttl = 300

;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
; http://www.php.net/manual/en/apache.configuration.php#ini.engine
engine = On

; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.short-open-tag
short_open_tag = Off

; Allow ASP-style <% %> tags.
; http://www.php.net/manual/en/ini.core.php#ini.asp-tags
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
; http://www.php.net/manual/en/ini.core.php#ini.precision
precision = 14

; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
; http://www.php.net/manual/en/ini.core.php#ini.y2k-compliance
y2k_compliance = On

; Output buffering is a mechanism for controlling how much output data
; (excluding headers and cookies) PHP should keep internally before pushing that
; data to the client. If your application's output exceeds this setting, PHP
; will send that data in chunks of roughly the size you specify.
; Turning on this setting and managing its maximum buffer size can yield some
; interesting side-effects depending on your application and web server.
; You may be able to send headers and cookies after you've already sent output
; through print or echo. You also may see performance benefits if your server is
; emitting less packets due to buffered output versus PHP streaming the output
; as it gets it. On production servers, 4096 bytes is a good setting for performance
; reasons.
; Note: Output buffering can also be controlled via Output Buffering Control
;   functions.
; Possible Values:
;   On = Enabled and buffer is unlimited. (Use with caution)
;   Off = Disabled
;   Integer = Enables the buffer and sets its maximum size in bytes.
; Default Value: Off
; Development Value: 4096
; Production Value: 4096
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-buffering
output_buffering = 4096

; You can redirect all of the output of your scripts to a function.  For
; example, if you set output_handler to "mb_output_handler", character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
;   directive. Instead, explicitly set the output handler using ob_start().
;   Using this ini directive may cause problems unless you know what script
;   is doing.
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
;   and you cannot use both "ob_gzhandler" and "zlib.output_compression".
; Note: output_handler must be empty if this is set 'On' !!!!
;   Instead you must use zlib.output_handler.
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-handler
;output_handler =

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
; Note: Resulting chunk size may vary due to nature of compression. PHP
;   outputs chunks that are few hundreds bytes each as a result of
;   compression. If you prefer a larger chunk size for better
;   performance, enable output_buffering in addition.
; Note: You need to use zlib.output_handler instead of the standard
;   output_handler, or otherwise the output will be corrupted.
; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression
zlib.output_compression = Off

; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression-level
;zlib.output_compression_level = -1

; You cannot specify additional output handlers if zlib.output_compression
; is activated here. This setting does the same as output_handler but in
; a different order.
; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-handler
;zlib.output_handler =

; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block.  This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block.  Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.implicit-flush
implicit_flush = Off

; The unserialize callback function will be called (with the undefined class'
; name as parameter), if the unserializer finds an undefined class
; which should be instantiated. A warning appears if the specified function is
; not defined, or if the function doesn't include/implement the missing class.
; So only set this entry, if you really want to implement such a
; callback-function.
unserialize_callback_func =

; When floats & doubles are serialized store serialize_precision significant
; digits after the floating point. The default value ensures that when floats
; are decoded with unserialize, the data will remain the same.
serialize_precision = 100

; This directive allows you to enable and disable warnings which PHP will issue
; if you pass a value by reference at function call time. Passing values by
; reference at function call time is a deprecated feature which will be removed
; from PHP at some point in the near future. The acceptable method for passing a
; value by reference to a function is by declaring the reference in the functions
; definition, not at call time. This directive does not disable this feature, it
; only determines whether PHP will warn you about it or not. These warnings
; should enabled in development environments only.
; Default Value: On (Suppress warnings)
; Development Value: Off (Issue warnings)
; Production Value: Off (Issue warnings)
; http://www.php.net/manual/en/ini.core.php#ini.allow-call-time-pass-reference
allow_call_time_pass_reference = Off

; Safe Mode
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode
safe_mode = Off

; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-gid
safe_mode_gid = Off

; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-include-dir
safe_mode_include_dir =

; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-exec-dir
safe_mode_exec_dir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here.  By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
; Note:  If this directive is empty, PHP will let the user modify ANY
;   environment variable!
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-allowed-env-vars
safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv().  These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-protected-env-vars
safe_mode_protected_env_vars = LD_LIBRARY_PATH

; open_basedir, if set, limits all file operations to the defined directory
; and below.  This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.open-basedir
;open_basedir =

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.disable-functions
disable_functions =

; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.disable-classes
disable_classes =

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; <span style="color: ???????"> would work.
; http://www.php.net/manual/en/misc.configuration.php#ini.syntax-highlighting
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg      = #FFFFFF
;highlight.default = #0000BB
;highlight.html    = #000000

; If enabled, the request will be allowed to complete even if the user aborts
; the request. Consider enabling it if executing long requests, which may end up
; being interrupted by the user or a browser timing out. PHP's default behavior
; is to disable this feature.
; http://www.php.net/manual/en/misc.configuration.php#ini.ignore-user-abort
;ignore_user_abort = On

; Determines the size of the realpath cache to be used by PHP. This value should
; be increased on systems where PHP opens many files to reflect the quantity of
; the file operations performed.
; http://www.php.net/manual/en/ini.core.php#ini.realpath-cache-size
;realpath_cache_size = 16k

; Duration of time, in seconds for which to cache realpath information for a given
; file or directory. For systems with rarely changing files, consider increasing this
; value.
; http://www.php.net/manual/en/ini.core.php#ini.realpath-cache-ttl
;realpath_cache_ttl = 120

;;;;;;;;;;;;;;;;;
; Miscellaneous ;
;;;;;;;;;;;;;;;;;

; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header).  It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
; http://www.php.net/manual/en/ini.core.php#ini.expose-php
expose_php = On

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time
max_execution_time = 30     

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts. 
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://www.php.net/manual/en/info.configuration.php#ini.max-input-time
max_input_time = 60

; Maximum input variable nesting level
; http://www.php.net/manual/en/info.configuration.php#ini.max-input-nesting-level
;max_input_nesting_level = 64

; Maximum amount of memory a script may consume (128MB)
; http://www.php.net/manual/en/ini.core.php#ini.memory-limit
memory_limit = 128M

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; This directive informs PHP of which errors, warnings and notices you would like
; it to take action for. The recommended way of setting values for this
; directive is through the use of the error level constants and bitwise
; operators. The error level constants are below here for convenience as well as
; some common settings and their meanings.
; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
; those related to E_NOTICE and E_STRICT, which together cover best practices and
; recommended coding standards in PHP. For performance reasons, this is the
; recommend error reporting setting. Your production server shouldn't be wasting
; resources complaining about best practices and coding standards. That's what
; development servers and development settings are for.
; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This
; means it pretty much reports everything which is exactly what you want during
; development and early testing.
;
; Error Level Constants:
; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
; E_ERROR           - fatal run-time errors
; E_RECOVERABLE_ERROR  - almost fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_STRICT          - run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
; E_DEPRECATED      - warn about code that will not work in future versions
;                     of PHP
; E_USER_DEPRECATED - user-generated deprecation warnings
;
; Common Values:
;   E_ALL & ~E_NOTICE  (Show all errors, except for notices and coding standards warnings.)
;   E_ALL & ~E_NOTICE | E_STRICT  (Show all errors, except for notices)
;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
;   E_ALL | E_STRICT  (Show all errors, warnings and notices including coding standards.)
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
error_reporting = E_ALL & ~E_DEPRECATED

; This directive controls whether or not and where PHP will output errors,
; notices and warnings too. Error output is very useful during development, but
; it could be very dangerous in production environments. Depending on the code
; which is triggering the error, sensitive information could potentially leak
; out of your application such as database usernames and passwords or worse.
; It's recommended that errors be logged on production servers rather than
; having the errors sent to STDOUT.
; Possible Values:
;   Off = Do not display any errors 
;   stderr = Display errors to STDERR (affects only CGI/CLI binaries!)   
;   On or stdout = Display errors to STDOUT
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors
display_errors = Off

; The display of errors which occur during PHP's startup sequence are handled
; separately from display_errors. PHP's default behavior is to suppress those
; errors from clients. Turning the display of startup errors on can be useful in
; debugging configuration problems. But, it's strongly recommended that you
; leave this setting off on production servers.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-startup-errors
display_startup_errors = Off

; Besides displaying errors, PHP can also log errors to locations such as a
; server-specific log, STDERR, or a location specified by the error_log
; directive found below. While errors should not be displayed on productions
; servers they should still be monitored and logging is a great way to do that.
; Default Value: Off
; Development Value: On
; Production Value: On
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors
log_errors = On

; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors-max-len
log_errors_max_len = 1024

; Do not log repeated messages. Repeated errors must occur in same file on same
; line unless ignore_repeated_source is set true.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.ignore-repeated-errors
ignore_repeated_errors = Off

; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; source lines.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.ignore-repeated-source
ignore_repeated_source = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.report-memleaks
report_memleaks = On

; This setting is on by default.
;report_zend_debug = 0

; Store the last error/warning message in $php_errormsg (boolean). Setting this value
; to On can assist in debugging and is appropriate for development servers. It should
; however be disabled on production servers.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors
track_errors = Off

; Turn off normal error reporting and emit XML-RPC error XML
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.xmlrpc-errors
;xmlrpc_errors = 0

; An XML-RPC faultCode
;xmlrpc_error_number = 0

; When PHP displays or logs an error, it has the capability of inserting html
; links to documentation related to that error. This directive controls whether
; those HTML links appear in error messages or not. For performance and security
; reasons, it's recommended you disable this on production servers.
; Default Value: On
; Development Value: On
; Production value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.html-errors
html_errors = Off

; If html_errors is set On PHP produces clickable error messages that direct
; to a page describing the error or function causing the error in detail.
; You can download a copy of the PHP manual from http://www.php.net/docs.php
; and change docref_root to the base URL of your local copy including the
; leading '/'. You must also specify the file extension being used including
; the dot. PHP's default behavior is to leave these settings empty.
; Note: Never use this feature for production boxes.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.docref-root
; Examples
;docref_root = "/phpmanual/"

; http://www.php.net/manual/en/errorfunc.configuration.php#ini.docref-ext
;docref_ext = .html

; String to output before an error message. PHP's default behavior is to leave
; this setting blank.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-prepend-string
; Example:
;error_prepend_string = "<font color=#ff0000>"

; String to output after an error message. PHP's default behavior is to leave
; this setting blank.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-append-string
; Example:
;error_append_string = "</font>"

; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-log
; Example:
;error_log = php_errors.log
; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog

;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;

; Note - track_vars is ALWAYS enabled as of PHP 4.0.3

; The separator used in PHP generated URLs to separate arguments.
; PHP's default setting is "&".
; http://www.php.net/manual/en/ini.core.php#ini.arg-separator.output
; Example:
;arg_separator.output = "&amp;"

; List of separator(s) used by PHP to parse input URLs into variables.
; PHP's default setting is "&".
; NOTE: Every character in this directive is considered as separator!
; http://www.php.net/manual/en/ini.core.php#ini.arg-separator.input
; Example:
;arg_separator.input = ";&"

; This directive determines which super global arrays are registered when PHP
; starts up. If the register_globals directive is enabled, it also determines
; what order variables are populated into the global space. G,P,C,E & S are
; abbreviations for the following respective super globals: GET, POST, COOKIE,
; ENV and SERVER. There is a performance penalty paid for the registration of
; these arrays and because ENV is not as commonly used as the others, ENV is
; is not recommended on productions servers. You can still get access to
; the environment variables through getenv() should you need to.
; Default Value: "EGPCS"
; Development Value: "GPCS"
; Production Value: "GPCS";
; http://www.php.net/manual/en/ini.core.php#ini.variables-order
variables_order = "GPCS"

; This directive determines which super global data (G,P,C,E & S) should
; be registered into the super global array REQUEST. If so, it also determines
; the order in which that data is registered. The values for this directive are
; specified in the same manner as the variables_order directive, EXCEPT one.
; Leaving this value empty will cause PHP to use the value set in the 
; variables_order directive. It does not mean it will leave the super globals
; array REQUEST empty.
; Default Value: None
; Development Value: "GP"
; Production Value: "GP"
; http://www.php.net/manual/en/ini.core.php#ini.request-order
request_order = "GP"

; Whether or not to register the EGPCS variables as global variables.  You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data.  This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARS[],
; variables.
; You should do your best to write your scripts so that they do not require
; register_globals to be on;  Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
; http://www.php.net/manual/en/ini.core.php#ini.register-globals
register_globals = Off

; Determines whether the deprecated long $HTTP_*_VARS type predefined variables
; are registered by PHP or not. As they are deprecated, we obviously don't
; recommend you use them. They are on by default for compatibility reasons but
; they are not recommended on production servers.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.register-long-arrays
register_long_arrays = Off

; This directive determines whether PHP registers $argv & $argc each time it
; runs. $argv contains an array of all the arguments passed to PHP when a script
; is invoked. $argc contains an integer representing the number of arguments
; that were passed when the script was invoked. These arrays are extremely
; useful when running scripts from the command line. When this directive is
; enabled, registering these variables consumes CPU cycles and memory each time
; a script is executed. For performance reasons, this feature should be disabled
; on production servers.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.register-argc-argv
register_argc_argv = Off

; When enabled, the SERVER and ENV variables are created when they're first
; used (Just In Time) instead of when the script starts. If these variables
; are not used within a script, having this directive on will result in a
; performance gain. The PHP directives register_globals, register_long_arrays,
; and register_argc_argv must be disabled for this directive to have any affect.
; http://www.php.net/manual/en/ini.core.php#ini.auto-globals-jit
auto_globals_jit = On

; Maximum size of POST data that PHP will accept.
; http://www.php.net/manual/en/ini.core.php#ini.post-max-size
post_max_size = 8M

; Magic quotes are a preprocessing feature of PHP where PHP will attempt to
; escape any character sequences in GET, POST, COOKIE and ENV data which might
; otherwise corrupt data being placed in resources such as databases before
; making that data available to you. Because of character encoding issues and
; non-standard SQL implementations across many databases, it's not currently
; possible for this feature to be 100% accurate. PHP's default behavior is to
; enable the feature. We strongly recommend you use the escaping mechanisms
; designed specifically for the database your using instead of relying on this
; feature. Also note, this feature has been deprecated as of PHP 5.3.0 and is
; scheduled for removal in PHP 6.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
; http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-runtime
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
; http://www.php.net/manual/en/sybase.configuration.php#ini.magic-quotes-sybase
magic_quotes_sybase = Off

; Automatically add files before PHP document.
; http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file
auto_prepend_file =

; Automatically add files after PHP document.
; http://www.php.net/manual/en/ini.core.php#ini.auto-append-file
auto_append_file =

; As of 4.0b4, PHP always outputs a character encoding by default in
; the Content-type: header.  To disable sending of the charset, simply
; set it to be empty.
;
; PHP's built-in default is text/html
; http://www.php.net/manual/en/ini.core.php#ini.default-mimetype
default_mimetype = "text/html"

; PHP's default character set is set to empty.
; http://www.php.net/manual/en/ini.core.php#ini.default-charset
;default_charset = "iso-8859-1"

; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
; to disable this feature.
; http://www.php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data
;always_populate_raw_post_data = On

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
;
; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://www.php.net/manual/en/ini.core.php#ini.include-path

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
; http://www.php.net/manual/en/ini.core.php#ini.doc-root
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
; http://www.php.net/manual/en/ini.core.php#ini.user-dir
user_dir =

; Directory in which the loadable extensions (modules) reside.
; http://www.php.net/manual/en/ini.core.php#ini.extension-dir
; extension_dir = "./"

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
; http://www.php.net/manual/en/info.configuration.php#ini.enable-dl
enable_dl = Off

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers.  Left undefined, PHP turns this on by default.  You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; http://www.php.net/manual/en/ini.core.php#ini.cgi.force-redirect
;cgi.force_redirect = 1

; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
; every request. PHP's default behavior is to disable this feature.
;cgi.nph = 1

; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution.  Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.redirect-status-env
;cgi.redirect_status_env = ;

; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
; this to 1 will cause PHP CGI to fix its paths to conform to the spec.  A setting
; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.fix-pathinfo
;cgi.fix_pathinfo=1

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; security tokens of the calling client.  This allows IIS to define the
; security context that the request runs under.  mod_fastcgi under Apache
; does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS.  Default is zero.
; http://www.php.net/manual/en/ini.core.php#ini.fastcgi.impersonate
;fastcgi.impersonate = 1;

; Disable logging through FastCGI connection. PHP's default behavior is to enable
; this feature.
;fastcgi.logging = 0

; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
; is supported by Apache. When this option is set to 1 PHP will send
; RFC2616 compliant header.
; Default is zero.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.rfc2616-headers
;cgi.rfc2616_headers = 0

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
; http://www.php.net/manual/en/ini.core.php#ini.file-uploads
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://www.php.net/manual/en/ini.core.php#ini.upload-tmp-dir
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
; http://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize
upload_max_filesize = 2M

;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen
allow_url_fopen = On

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-include
allow_url_include = Off

; Define the anonymous ftp password (your email address). PHP's default setting
; for this is empty.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.from
;from="john@doe.com"

; Define the User-Agent string. PHP's default setting for this is empty.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.user-agent
;user_agent="PHP"

; Default timeout for socket based streams (seconds)
; http://www.php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout
default_socket_timeout = 60

; If your scripts have to deal with files from Macintosh systems,
; or you are running on a Mac and need to deal with files from
; unix or win32 systems, setting this flag will cause PHP to
; automatically detect the EOL character in those files so that
; fgets() and file() will work regardless of the source of the file.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.auto-detect-line-endings
;auto_detect_line_endings = Off

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example
;
;   extension=msql.so
;
; ... or with a path:
;
;   extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.

;;;;
; Note: packaged extension modules are now loaded via the .ini files
; found in the directory /etc/php.d; these are loaded by default.
;;;;


;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
;date.timezone =

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.default-latitude
;date.default_latitude = 31.7667

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.default-longitude
;date.default_longitude = 35.2333

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.sunrise-zenith
;date.sunrise_zenith = 90.583333

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.sunset-zenith
;date.sunset_zenith = 90.583333

[filter]
; http://www.php.net/manual/en/filter.configuration.php#ini.filter.default
;filter.default = unsafe_raw

; http://www.php.net/manual/en/filter.configuration.php#ini.filter.default-flags
;filter.default_flags =

[iconv]
;iconv.input_encoding = ISO-8859-1
;iconv.internal_encoding = ISO-8859-1
;iconv.output_encoding = ISO-8859-1

[intl]
;intl.default_locale = 

[sqlite]
; http://www.php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case
;sqlite.assoc_case = 0

[sqlite3]
;sqlite3.extension_dir =

[Pcre]
;PCRE library backtracking limit.
; http://www.php.net/manual/en/pcre.configuration.php#ini.pcre.backtrack-limit
;pcre.backtrack_limit=100000

;PCRE library recursion limit. 
;Please note that if you set this value to a high number you may consume all 
;the available process stack and eventually crash PHP (due to reaching the 
;stack size limit imposed by the Operating System).
; http://www.php.net/manual/en/pcre.configuration.php#ini.pcre.recursion-limit
;pcre.recursion_limit=100000

[Pdo]
; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
; http://www.php.net/manual/en/ref.pdo-odbc.php#ini.pdo-odbc.connection-pooling
;pdo_odbc.connection_pooling=strict

[Phar]
; http://www.php.net/manual/en/phar.configuration.php#ini.phar.readonly
;phar.readonly = On

; http://www.php.net/manual/en/phar.configuration.php#ini.phar.require-hash
;phar.require_hash = On

;phar.cache_list =

[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.).  Turning it off is a good idea performance-wise.  In
; runtime, you can define these variables by calling define_syslog_variables().
; http://www.php.net/manual/en/network.configuration.php#ini.define-syslog-variables
define_syslog_variables  = Off

[mail function]
; For Win32 only.
; http://www.php.net/manual/en/mail.configuration.php#ini.smtp
SMTP = localhost
; http://www.php.net/manual/en/mail.configuration.php#ini.smtp-port
smtp_port = 25

; For Win32 only.
; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-from
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-path
sendmail_path = /usr/sbin/sendmail -t -i

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originaiting-Script: that will include uid of the script followed by the filename
mail.add_x_header = On

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log =

[SQL]
; http://www.php.net/manual/en/ini.core.php#ini.sql.safe-mode
sql.safe_mode = Off

[ODBC]
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-db
;odbc.default_db    =  Not yet implemented

; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-user
;odbc.default_user  =  Not yet implemented

; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-pw
;odbc.default_pw    =  Not yet implemented

; Allow or prevent persistent links.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.allow-persistent
odbc.allow_persistent = On

; Check that a connection is still valid before reuse.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.check-persistent
odbc.check_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.max-persistent
odbc.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.max-links
odbc.max_links = -1

; Handling of LONG fields.  Returns number of bytes to variables.  0 means
; passthru.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.defaultlrl
odbc.defaultlrl = 4096

; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of uodbc.defaultlrl and uodbc.defaultbinmode
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.defaultbinmode
odbc.defaultbinmode = 1

;birdstep.max_links = -1

[MySQL]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.allow-persistent
mysql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.max-persistent
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.max-links
mysql.max_links = -1

; Default port number for mysql_connect().  If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-port
mysql.default_port =

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-socket
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-host
mysql.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-user
mysql.default_user =

; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-password
mysql.default_password =

; Maximum time (in seconds) for connect timeout. -1 means no limit
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.connect-timeout
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.trace-mode
mysql.trace_mode = Off

[MySQLi]

; Maximum number of links.  -1 means no limit.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.max-links
mysqli.max_links = -1

; Default port number for mysqli_connect().  If unset, mysqli_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-port
mysqli.default_port = 3306

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-socket
mysqli.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-host
mysqli.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-user
mysqli.default_user =

; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-pw
mysqli.default_pw =

; Allow or prevent reconnect
mysqli.reconnect = Off

[PostgresSQL]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.allow-persistent
pgsql.allow_persistent = On

; Detect broken persistent links always with pg_pconnect().
; Auto reset feature requires a little overheads.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.auto-reset-persistent
pgsql.auto_reset_persistent = Off

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-persistent
pgsql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-links
pgsql.max_links = -1

; Ignore PostgreSQL backends Notice message or not.
; Notice message logging require a little overheads.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.ignore-notice
pgsql.ignore_notice = 0

; Log PostgreSQL backends Noitce message or not.
; Unless pgsql.ignore_notice=0, module cannot log notice message.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.log-notice
pgsql.log_notice = 0

[Sybase-CT]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.allow-persistent
sybct.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.max-persistent
sybct.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.max-links
sybct.max_links = -1

; Minimum server message severity to display.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.min-server-severity
sybct.min_server_severity = 10

; Minimum client message severity to display.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.min-client-severity
sybct.min_client_severity = 10

; Set per-context timeout
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.timeout
;sybct.timeout=

;sybct.packet_size

[bcmath]
; Number of decimal digits for all bcmath functions.
; http://www.php.net/manual/en/bc.configuration.php#ini.bcmath.scale
bcmath.scale = 0

[browscap]
; http://www.php.net/manual/en/misc.configuration.php#ini.browscap
;browscap = extra/browscap.ini

[Session]
; Handler used to store/retrieve data.
; http://www.php.net/manual/en/session.configuration.php#ini.session.save-handler
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
;
; As of PHP 4.0.1, you can define the path as:
;
;     session.save_path = "N;/path"
;
; where N is an integer.  Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories.  This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
;         You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
;         use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
;     session.save_path = "N;MODE;/path"
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
; http://www.php.net/manual/en/session.configuration.php#ini.session.save-path
session.save_path = "/var/lib/php/session"

; Whether to use cookies.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-cookies
session.use_cookies = 1

; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-secure
;session.cookie_secure =

; This option forces PHP to fetch and use a cookie for storing and maintaining
; the session id. We encourage this operation as it's very helpful in combatting
; session hijacking when not specifying and managing your own session id. It is
; not the end all be all of session hijacking defense, but it's a good start.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-only-cookies
session.use_only_cookies = 1

; Name of the session (used as cookie name).
; http://www.php.net/manual/en/session.configuration.php#ini.session.name
session.name = PHPSESSID

; Initialize session on request startup.
; http://www.php.net/manual/en/session.configuration.php#ini.session.auto-start
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime
session.cookie_lifetime = 0

; The path for which the cookie is valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-path
session.cookie_path = /

; The domain for which the cookie is valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-domain
session.cookie_domain =

; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-httponly
session.cookie_httponly = 

; Handler used to serialize data.  php is the standard serializer of PHP.
; http://www.php.net/manual/en/session.configuration.php#ini.session.serialize-handler
session.serialize_handler = php

; Defines the probability that the 'garbage collection' process is started
; on every session initialization. The probability is calculated by using
; gc_probability/gc_divisor. Where session.gc_probability is the numerator
; and gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request.
; Default Value: 1
; Development Value: 1
; Production Value: 1
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-probability
session.gc_probability = 1

; Defines the probability that the 'garbage collection' process is started on every
; session initialization. The probability is calculated by using the following equation: 
; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
; session.gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request. Increasing this value to 1000 will give you
; a 0.1% chance the gc will run on any give request. For high volume production servers,
; this is a more efficient approach.
; Default Value: 100
; Development Value: 1000
; Production Value: 1000
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-divisor
session.gc_divisor = 1000

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime
session.gc_maxlifetime = 1440

; NOTE: If you are using the subdirectory option for storing session files
;       (see session.save_path above), then garbage collection does *not*
;       happen automatically.  You will need to do your own garbage
;       collection through a shell script, cron entry, or some other method.
;       For example, the following script would is the equivalent of
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
;          cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, even when register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled. This feature
; introduces some serious security problems if not handled correctly. It's
; recommended that you do not use this feature on production servers. But you
; should enable this on development servers and enable the warning as well. If you
; do not enable the feature on development servers, you won't be warned when it's
; used and debugging errors caused by this can be difficult to track down.
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/session.configuration.php#ini.session.bug-compat-42
session.bug_compat_42 = Off

; This setting controls whether or not you are warned by PHP when initializing a
; session value into the global space. session.bug_compat_42 must be enabled before
; these warnings can be issued by PHP. See the directive above for more information.
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/session.configuration.php#ini.session.bug-compat-warn
session.bug_compat_warn = Off

; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.referer-check
session.referer_check =

; How many bytes to read from the file.
; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-length
session.entropy_length = 0

; Specified here to create the session id.
; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-file
;session.entropy_file = /dev/urandom
session.entropy_file =

; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-length
;session.entropy_length = 16

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cache-limiter
session.cache_limiter = nocache

; Document expires after n minutes.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cache-expire
session.cache_expire = 180

; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
;   to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
;   in publically accessible computer.
; - User may access your site with the same session ID
;   always using URL stored in browser's history or bookmarks.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-trans-sid
session.use_trans_sid = 0

; Select a hash function for use in generating session ids.
; Possible Values 
;   0  (MD5 128 bits)
;   1  (SHA-1 160 bits)
; http://www.php.net/manual/en/session.configuration.php#ini.session.hash-function
session.hash_function = 0

; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
; Possible values:
;   4  (4 bits: 0-9, a-f)
;   5  (5 bits: 0-9, a-v)
;   6  (6 bits: 0-9, a-z, A-Z, "-", ",")
; Default Value: 4
; Development Value: 5
; Production Value: 5
; http://www.php.net/manual/en/session.configuration.php#ini.session.hash-bits-per-character
session.hash_bits_per_character = 5

; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden <input> field with the info which is otherwise appended
; to URLs.  If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a "=", even if no value follows.
; Default Value: "a=href,area=href,frame=src,form=,fieldset="
; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; http://www.php.net/manual/en/session.configuration.php#ini.url-rewriter.tags
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
mssql.max_links = -1

; Minimum error severity to display.
mssql.min_error_severity = 10

; Minimum message severity to display.
mssql.min_message_severity = 10

; Compatibility mode with old versions of PHP 3.0.
mssql.compatability_mode = Off

; Connect timeout
;mssql.connect_timeout = 5

; Query timeout
;mssql.timeout = 60

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textsize = 4096

; Limits the number of records in each batch.  0 = all records in one batch.
;mssql.batchsize = 0

; Specify how datetime and datetim4 columns are returned
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server
mssql.secure_connection = Off

; Specify max number of processes. -1 = library default
; msdlib defaults to 25
; FreeTDS defaults to 4096
;mssql.max_procs = -1

; Specify client character set. 
; If empty or not set the client charset from freetds.comf is used
; This is only used when compiled with FreeTDS
;mssql.charset = "ISO-8859-1"

[Assertion]
; Assert(expr); active by default.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.active
;assert.active = On

; Issue a PHP warning for each failed assertion.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.warning
;assert.warning = On

; Don't bail out by default.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.bail
;assert.bail = Off

; User-function to be called if an assertion fails.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.callback
;assert.callback = 0

; Eval the expression with current error_reporting().  Set to true if you want
; error_reporting(0) around the eval().
; http://www.php.net/manual/en/info.configuration.php#ini.assert.quiet-eval
;assert.quiet_eval = 0

[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
; http://www.php.net/manual/en/com.configuration.php#ini.com.typelib-file
;com.typelib_file =

; allow Distributed-COM calls
; http://www.php.net/manual/en/com.configuration.php#ini.com.allow-dcom
;com.allow_dcom = true

; autoregister constants of a components typlib on com_load()
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-typelib
;com.autoregister_typelib = true

; register constants casesensitive
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-casesensitive
;com.autoregister_casesensitive = false

; show warnings on duplicate constant registrations
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-verbose
;com.autoregister_verbose = true

[mbstring]
; language for internal character representation.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.language
;mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.internal-encoding
;mbstring.internal_encoding = EUC-JP

; http input encoding.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-input
;mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-output
;mbstring.http_output = SJIS

; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.encoding-translation
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; auto means
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.detect-order
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.substitute-character
;mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.func-overload
;mbstring.func_overload = 0

; enable strict encoding detection.
;mbstring.strict_detection = Off

; This directive specifies the regex pattern of content types for which mb_output_handler()
; is activated.
; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
;mbstring.http_output_conv_mimetype=

[gd]
; Tell the jpeg decode to ignore warnings and try to create
; a gd image. The warning will then be displayed as notices
; disabled by default
; http://www.php.net/manual/en/image.configuration.php#ini.image.jpeg-ignore-warning
;gd.jpeg_ignore_warning = 0

[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-unicode
;exif.encode_unicode = ISO-8859-15

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-motorola
;exif.decode_unicode_motorola = UCS-2BE

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-intel
;exif.decode_unicode_intel    = UCS-2LE

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-jis
;exif.encode_jis =

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-motorola
;exif.decode_jis_motorola = JIS

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-intel
;exif.decode_jis_intel    = JIS

[Tidy]
; The path to a default tidy configuration file to use when using tidy
; http://www.php.net/manual/en/tidy.configuration.php#ini.tidy.default-config
;tidy.default_config = /usr/local/lib/php/default.tcfg

; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
; http://www.php.net/manual/en/tidy.configuration.php#ini.tidy.clean-output
tidy.clean_output = Off

[soap]
; Enables or disables WSDL caching feature.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-enabled
soap.wsdl_cache_enabled=1

; Sets the directory name where SOAP extension will put cache files.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-dir
soap.wsdl_cache_dir="/tmp"

; (time to live) Sets the number of second while cached file will be used 
; instead of original one.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-ttl
soap.wsdl_cache_ttl=86400

[sysvshm]
; A default size of the shared memory segment
;sysvshm.init_mem = 10000


; Local Variables:
; tab-width: 4
; End:
                       Virtual_Configuration/tile1/webserver/Software_Configuration/php/php.d/                             0000777 0000000 0000000 00000000000 11524350445 025403  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/webserver/Software_Configuration/php/php.d/phar.ini                     0000644 0000000 0000000 00000000061 11524350445 027027  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable phar extension module
extension=phar.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/webserver/Software_Configuration/php/php.d/zip.ini                      0000644 0000000 0000000 00000000057 11524350445 026704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable zip extension module
extension=zip.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/webserver/Software_Configuration/php/php.d/json.ini                     0000644 0000000 0000000 00000000061 11524350445 027046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable json extension module
extension=json.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/webserver/Software_Configuration/php/php.d/apc.ini                      0000644 0000000 0000000 00000005340 11524350444 026644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable apc extension module
extension = apc.so

; Options for the APC module version >= 3.1.3

; This can be set to 0 to disable APC. 
apc.enabled=1
; The number of shared memory segments to allocate for the compiler cache. 
apc.shm_segments=1
; The size of each shared memory segment in MB.
apc.shm_size=64
; A "hint" about the number of distinct source files that will be included or 
; requested on your web server. Set to zero or omit if you're not sure;
apc.num_files_hint=1024
; Just like num_files_hint, a "hint" about the number of distinct user cache
; variables to store.  Set to zero or omit if you're not sure;
apc.user_entries_hint=4096
; The number of seconds a cache entry is allowed to idle in a slot in case this
; cache entry slot is needed by another entry.
apc.ttl=7200
; use the SAPI request start time for TTL
apc.use_request_time=1
; The number of seconds a user cache entry is allowed to idle in a slot in case
; this cache entry slot is needed by another entry.
apc.user_ttl=7200
; The number of seconds that a cache entry may remain on the garbage-collection list. 
apc.gc_ttl=3600
; On by default, but can be set to off and used in conjunction with positive
; apc.filters so that files are only cached if matched by a positive filter.
apc.cache_by_default=1
; A comma-separated list of POSIX extended regular expressions.
apc.filters
; The mktemp-style file_mask to pass to the mmap module 
apc.mmap_file_mask=/tmp/apc.XXXXXX
; This file_update_protection setting puts a delay on caching brand new files.
apc.file_update_protection=2
; Setting this enables APC for the CLI version of PHP (Mostly for testing and debugging).
apc.enable_cli=0
; Prevents large files from being cached
apc.max_file_size=1M
; Whether to stat the main script file and the fullpath includes.
apc.stat=1
; Vertification with ctime will avoid problems caused by programs such as svn or rsync by making 
; sure inodes havn't changed since the last stat. APC will normally only check mtime.
apc.stat_ctime=0
; Whether to canonicalize paths in stat=0 mode or fall back to stat behaviour
apc.canonicalize=0
; With write_lock enabled, only one process at a time will try to compile an 
; uncached script while the other processes will run uncached
apc.write_lock=1
; Logs any scripts that were automatically excluded from being cached due to early/late binding issues.
apc.report_autofilter=0
; RFC1867 File Upload Progress hook handler
apc.rfc1867=0
apc.rfc1867_prefix =upload_
apc.rfc1867_name=APC_UPLOAD_PROGRESS
apc.rfc1867_freq=0
apc.rfc1867_ttl=3600
; Optimize include_once and require_once calls and avoid the expensive system calls used.
apc.include_once_override=0
apc.lazy_classes=00
apc.lazy_functions=0
; not documented
apc.coredump_unmap=0
apc.file_md5=0
apc.preload_path
                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile1/webserver/Software_Configuration/php/php.d/curl.ini                     0000644 0000000 0000000 00000000061 11524350445 027042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable curl extension module
extension=curl.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/webserver/Software_Configuration/php/php.d/fileinfo.ini                 0000644 0000000 0000000 00000000071 11524350445 027671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable fileinfo extension module
extension=fileinfo.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/mailserver/                                                             0000777 0000000 0000000 00000000000 11524350424 017264  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/                                            0000777 0000000 0000000 00000000000 11524350443 022536  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/proc/                                       0000777 0000000 0000000 00000000000 11524350442 023500  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/proc/cpuinfo                                0000644 0000000 0000000 00000001017 11524350442 025061  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/mailserver/VM_configuration/proc/mounts                                 0000644 0000000 0000000 00000001357 11524350442 024752  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1020708k,nr_inodes=255177,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1243,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1243,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/mailserver/VM_configuration/proc/swaps                                  0000644 0000000 0000000 00000000146 11524350442 024555  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	128	-1
                                                                                                                                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile1/mailserver/VM_configuration/proc/devices                                0000644 0000000 0000000 00000000567 11524350442 025051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile1/mailserver/VM_configuration/proc/modules                                0000644 0000000 0000000 00000002621 11524350442 025070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 38 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
sr_mod 16162 0 - Live 0xffffffffa0064000
cdrom 39769 1 sr_mod, Live 0xffffffffa0053000
virtio_blk 5087 5 - Live 0xffffffffa004c000
pata_acpi 3667 0 - Live 0xffffffffa0046000
ata_generic 3611 0 - Live 0xffffffffa0040000
ata_piix 22588 0 - Live 0xffffffffa0034000
virtio_pci 6733 0 - Live 0xffffffffa002c000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0025000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile1/mailserver/VM_configuration/proc/partitions                             0000644 0000000 0000000 00000000260 11524350442 025611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   41943040 vdb
 252       17   41943024 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile1/mailserver/VM_configuration/proc/meminfo                                0000644 0000000 0000000 00000002222 11524350442 025047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2055756 kB
MemFree:          362228 kB
Buffers:          377460 kB
Cached:           896564 kB
SwapCached:          128 kB
Active:           890716 kB
Inactive:         454004 kB
Active(anon):      15544 kB
Inactive(anon):    55324 kB
Active(file):     875172 kB
Inactive(file):   398680 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047864 kB
Dirty:               200 kB
Writeback:             0 kB
AnonPages:         70604 kB
Mapped:             9600 kB
Shmem:               160 kB
Slab:             328068 kB
SReclaimable:     257212 kB
SUnreclaim:        70856 kB
KernelStack:        1048 kB
PageTables:         3924 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3075868 kB
Committed_AS:     176792 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       11532 kB
VmallocChunk:   34359719476 kB
HardwareCorrupted:     0 kB
AnonHugePages:     22528 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2088960 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/mailserver/VM_configuration/root/                                       0000777 0000000 0000000 00000000000 11524350442 023520  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/root/convert_to_vf.sh                       0000755 0000000 0000000 00000001135 11524350443 026731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/lspci.txt                                   0000644 0000000 0000000 00000001211 11524350442 024377  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/mailserver/VM_configuration/df.txt                                      0000644 0000000 0000000 00000000401 11524350424 023656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3828792   8952144  30% /
tmpfs                  1027876         0   1027876   0% /dev/shm
/dev/vdb1             41284912  24788100  14399664  64% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/mailserver/VM_configuration/mount.txt                                   0000644 0000000 0000000 00000000612 11524350442 024433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile1/mailserver/VM_configuration/etc/                                        0000777 0000000 0000000 00000000000 11524350441 023307  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/                                   0000777 0000000 0000000 00000000000 11524350433 024136  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/                             0000777 0000000 0000000 00000000000 11524350441 025046  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests            0000755 0000000 0000000 00000017172 11524350434 030242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                   0000755 0000000 0000000 00000004325 11524350434 026660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                0000755 0000000 0000000 00000006014 11524350435 027447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                  0000755 0000000 0000000 00000012327 11524350436 027051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                 0000755 0000000 0000000 00000005222 11524350437 027235  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                      0000755 0000000 0000000 00000010671 11524350441 026233  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                     0000755 0000000 0000000 00000006364 11524350434 026407  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                 0000755 0000000 0000000 00000020716 11524350436 027161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                      0000755 0000000 0000000 00000004731 11524350436 026240  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon              0000755 0000000 0000000 00000004754 11524350434 027612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                 0000755 0000000 0000000 00000001364 11524350440 027251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                     0000755 0000000 0000000 00000003027 11524350436 026376  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                    0000755 0000000 0000000 00000006743 11524350441 026573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                     0000755 0000000 0000000 00000010777 11524350435 026402  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                0000755 0000000 0000000 00000004230 11524350440 027413  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                     0000755 0000000 0000000 00000006302 11524350436 026352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                       0000755 0000000 0000000 00000004236 11524350441 026066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                   0000755 0000000 0000000 00000004031 11524350437 026703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                0000755 0000000 0000000 00000003521 11524350437 027366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                   0000755 0000000 0000000 00000006050 11524350437 026740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                   0000755 0000000 0000000 00000002363 11524350436 027007  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                0000755 0000000 0000000 00000004054 11524350434 027416  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                 0000755 0000000 0000000 00000005013 11524350437 027275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                     0000755 0000000 0000000 00000003213 11524350436 026371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                   0000755 0000000 0000000 00000003512 11524350435 026722  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                      0000755 0000000 0000000 00000003603 11524350435 026230  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                    0000755 0000000 0000000 00000011277 11524350435 026555  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S10network                   0000755 0000000 0000000 00000014466 11524350437 026765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                   0000755 0000000 0000000 00000004326 11524350437 026772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                    0000755 0000000 0000000 00000006462 11524350437 026544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                     0000755 0000000 0000000 00000027662 11524350440 026411  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                      0000755 0000000 0000000 00000006445 11524350435 026133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                 0000755 0000000 0000000 00000003245 11524350440 027216  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K60crond                     0000755 0000000 0000000 00000005445 11524350435 026371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                     0000755 0000000 0000000 00000005522 11524350434 026372  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl             0000755 0000000 0000000 00000002221 11524350436 030062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                 0000755 0000000 0000000 00000004010 11524350434 027231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                       0000755 0000000 0000000 00000013536 11524350435 026052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                      0000755 0000000 0000000 00000004723 11524350440 026212  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                    0000755 0000000 0000000 00000003024 11524350434 026522  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                     0000755 0000000 0000000 00000003275 11524350440 026351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                  0000755 0000000 0000000 00000025442 11524350437 027103  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                 0000755 0000000 0000000 00000004370 11524350440 027214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S99local                     0000755 0000000 0000000 00000000334 11524350441 026367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                   0000755 0000000 0000000 00000006675 11524350437 026742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                0000755 0000000 0000000 00000005650 11524350435 027432  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor              0000555 0000000 0000000 00000004612 11524350436 027627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                    0000755 0000000 0000000 00000007234 11524350440 026573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                  0000755 0000000 0000000 00000003433 11524350441 027125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                    0000755 0000000 0000000 00000005672 11524350434 026552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                     0000755 0000000 0000000 00000003254 11524350441 026365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                 0000755 0000000 0000000 00000005063 11524350440 027240  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                     0000755 0000000 0000000 00000012432 11524350440 026402  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                   0000755 0000000 0000000 00000007414 11524350435 026753  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                  0000755 0000000 0000000 00000020557 11524350436 027076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond               0000755 0000000 0000000 00000003427 11524350436 027623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/rc3.d/K05atd                       0000755 0000000 0000000 00000004112 11524350434 026020  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/                            0000777 0000000 0000000 00000000000 11524350433 025323  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/network                     0000755 0000000 0000000 00000014466 11524350431 026747  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/gfs2                        0000755 0000000 0000000 00000006445 11524350427 026122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/sysstat                     0000755 0000000 0000000 00000002363 11524350433 026763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/saslauthd                   0000755 0000000 0000000 00000004010 11524350433 027230  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/messagebus                  0000755 0000000 0000000 00000004230 11524350430 027377  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/autobench                   0000755 0000000 0000000 00000005063 11524350426 027223  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/atd                         0000755 0000000 0000000 00000004112 11524350426 026015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/mcelogd                     0000755 0000000 0000000 00000003535 11524350430 026662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/auditd                      0000755 0000000 0000000 00000006462 11524350426 026531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/certmonger                  0000755 0000000 0000000 00000004054 11524350426 027417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/irqbalance                  0000755 0000000 0000000 00000003521 11524350427 027352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/acpid                       0000755 0000000 0000000 00000003275 11524350425 026335  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/nscd                        0000755 0000000 0000000 00000004723 11524350431 026200  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                   0000755 0000000 0000000 00000005222 11524350432 027210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/nfs                         0000755 0000000 0000000 00000013536 11524350431 026041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/sssd                        0000755 0000000 0000000 00000004731 11524350433 026226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/crond                       0000755 0000000 0000000 00000005445 11524350426 026364  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/ip6tables                   0000755 0000000 0000000 00000020716 11524350427 027147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/autofs                      0000755 0000000 0000000 00000007234 11524350426 026556  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/sshd                        0000755 0000000 0000000 00000010671 11524350433 026213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/ksm                         0000755 0000000 0000000 00000004236 11524350430 026041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/libvirt-guests              0000755 0000000 0000000 00000017172 11524350430 030235  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                0000755 0000000 0000000 00000004754 11524350426 027612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/ypbind                      0000755 0000000 0000000 00000011277 11524350433 026542  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/psacct                      0000755 0000000 0000000 00000003024 11524350432 026520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/xinetd                      0000755 0000000 0000000 00000006743 11524350433 026552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/nfslock                     0000755 0000000 0000000 00000006675 11524350431 026720  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/cgred                       0000755 0000000 0000000 00000006302 11524350426 026334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/migrateip                   0000755 0000000 0000000 00000001364 11524350430 027227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/udev-post                   0000755 0000000 0000000 00000004370 11524350433 027177  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/haldaemon                   0000755 0000000 0000000 00000003245 11524350427 027204  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/ipsec                       0000755 0000000 0000000 00000010777 11524350427 026367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/rpcbind                     0000755 0000000 0000000 00000004031 11524350432 026663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/rhnsd                       0000755 0000000 0000000 00000005522 11524350432 026366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/functions                   0000644 0000000 0000000 00000042767 11524350426 027274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/kdump                       0000755 0000000 0000000 00000027662 11524350427 026405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/postfix                     0000755 0000000 0000000 00000007414 11524350432 026746  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/iptables                    0000755 0000000 0000000 00000020557 11524350427 027064  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/rsyslog                     0000755 0000000 0000000 00000004326 11524350432 026753  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/netconsole                  0000755 0000000 0000000 00000005650 11524350430 027421  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/rpcgssd                     0000755 0000000 0000000 00000006050 11524350432 026712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/abrtd                       0000755 0000000 0000000 00000003254 11524350425 026346  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                0000555 0000000 0000000 00000004612 11524350430 027610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/halt                        0000755 0000000 0000000 00000012723 11524350427 026205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/cgconfig                    0000755 0000000 0000000 00000012327 11524350426 027033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/single                      0000755 0000000 0000000 00000001207 11524350433 026526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/mdmonitor                   0000755 0000000 0000000 00000005013 11524350430 027251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/restorecond                 0000755 0000000 0000000 00000003427 11524350432 027601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/cpuspeed                    0000755 0000000 0000000 00000025442 11524350426 027066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/netfs                       0000755 0000000 0000000 00000012432 11524350431 026364  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                  0000755 0000000 0000000 00000006014 11524350432 027426  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/oddjobd                     0000755 0000000 0000000 00000004325 11524350431 026654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/ksmtuned                    0000755 0000000 0000000 00000003433 11524350430 027077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/sandbox                     0000755 0000000 0000000 00000003242 11524350433 026704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/killall                     0000755 0000000 0000000 00000001214 11524350430 026664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/rdisc                       0000755 0000000 0000000 00000003027 11524350432 026352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/httpd                       0000755 0000000 0000000 00000006364 11524350427 026404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/ntpd                        0000755 0000000 0000000 00000003603 11524350431 026212  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/smartd                      0000755 0000000 0000000 00000005672 11524350433 026551  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/nslcd                       0000755 0000000 0000000 00000003213 11524350431 026345  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/ntpdate                     0000755 0000000 0000000 00000003512 11524350431 026703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile1/mailserver/VM_configuration/etc/rc.d/init.d/microcode_ctl               0000755 0000000 0000000 00000002221 11524350430 030045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/mailserver/VM_configuration/etc/hosts                                   0000644 0000000 0000000 00000000267 11524350424 024374  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/mailserver/VM_configuration/etc/iproute2/                               0000777 0000000 0000000 00000000000 11524350425 025062  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/etc/iproute2/rt_dsfield                     0000644 0000000 0000000 00000000672 11524350425 027125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile1/mailserver/VM_configuration/etc/iproute2/rt_realms                      0000644 0000000 0000000 00000000160 11524350425 026766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile1/mailserver/VM_configuration/etc/iproute2/rt_scopes                      0000644 0000000 0000000 00000000134 11524350425 027000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/mailserver/VM_configuration/etc/iproute2/ematch_map                     0000644 0000000 0000000 00000000073 11524350425 027077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/mailserver/VM_configuration/etc/iproute2/rt_tables                      0000644 0000000 0000000 00000000127 11524350425 026760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/mailserver/VM_configuration/etc/iproute2/rt_protos                      0000644 0000000 0000000 00000000475 11524350425 027042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/etc/nsswitch.conf                           0000644 0000000 0000000 00000003230 11524350425 026014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/mailserver/VM_configuration/etc/fstab                                   0000644 0000000 0000000 00000001603 11524350424 024326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile1/mailserver/VM_configuration/etc/sysctl.conf                             0000644 0000000 0000000 00000001466 11524350441 025502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile1/mailserver/VM_configuration/etc/inittab                                 0000644 0000000 0000000 00000001564 11524350424 024667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile1/mailserver/VM_configuration/var/                                        0000777 0000000 0000000 00000000000 11524350443 023326  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/var/log/                                    0000777 0000000 0000000 00000000000 11524350443 024107  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/var/log/dmesg                               0000644 0000000 0000000 00000043370 11524350443 025134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007fffd000 (usable)
 BIOS-e820: 000000007fffd000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x7fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007fffd000
 0000000000 - 007fe00000 page 2M
 007fe00000 - 007fffd000 page 4k
kernel direct mapping tables up to 7fffd000 @ 8000-c000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000007fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000007ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000007fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000007ffffe00 00040
ACPI: SSDT 000000007fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000007fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000007fffd000
Bootmem setup node 0 0000000000000000-000000007fffd000
  NODE_DATA [000000000000a000 - 000000000003dfff]
  bootmap [000000000003e000 -  000000000004dfff] pages 10
(7 early reservations) ==> bootmem [0000000000 - 007fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000a000]          PGTABLE ==> [0000008000 - 000000a000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0001bfffff] PMD -> [ffff880002200000-ffff880003dfffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0007fffd
On node 0 totalpages: 524182
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3831 pages, LIFO batch:0
  DMA32 zone: 7112 pages used for memmap
  DMA32 zone: 513077 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 80000000 (gap: 80000000:7ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 516908
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2041384k/2097140k available (4935k kernel code, 412k absent, 55344k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 20971520 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116099.295:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 4012
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:38 UTC (1297116098)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
be:6f:14:e9:2b:31
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/mailserver/VM_configuration/boot/                                       0000777 0000000 0000000 00000000000 11524350424 023500  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/boot/grub/                                  0000777 0000000 0000000 00000000000 11524350424 024437  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/VM_configuration/boot/grub/grub.conf                         0000644 0000000 0000000 00000002217 11524350424 026243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/mailserver/VM_configuration/rpmpkgs.txt                                 0000644 0000000 0000000 00000067153 11524350443 024772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/mailserver/VM_configuration/ifconfig.txt                                0000644 0000000 0000000 00000002327 11524350442 025062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:06  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:191 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:18632 (18.1 KiB)  TX bytes:829 (829.0 b)

eth1      Link encap:Ethernet  HWaddr BE:6F:14:E9:2B:31  
          inet addr:10.1.217.6  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::bc6f:14ff:fee9:2b31/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3933018 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4093466 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:668120643 (637.1 MiB)  TX bytes:4586575846 (4.2 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:737 errors:0 dropped:0 overruns:0 frame:0
          TX packets:737 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:72139 (70.4 KiB)  TX bytes:72139 (70.4 KiB)

                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/mailserver/VM_configuration/chkconfig.txt                               0000644 0000000 0000000 00000006535 11524350424 025236  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/Software_Configuration/                                      0000777 0000000 0000000 00000000000 11524350424 023745  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/mailserver/Software_Configuration/dovecot.conf                          0000644 0000000 0000000 00000000654 11524350424 026260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   base_dir = /var/run/dovecot/
ssl = no
disable_plaintext_auth = no
listen = *
log_path = /var/log/dovecot
mail_debug = yes
mail_location = dbox:/mailstore/dovecot/maildir/%u
mdbox_rotate_size = 2048
passdb {
  args = /etc/passwd.dovecot
  driver = passwd-file
}
protocols = imap
service auth {
  user = root
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  process_min_avail = 10
}
userdb {
  driver = passwd
}
                                                                                    Virtual_Configuration/tile1/infraserver/                                                            0000777 0000000 0000000 00000000000 11524350404 017437  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/                                           0000777 0000000 0000000 00000000000 11524350423 022711  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/proc/                                      0000777 0000000 0000000 00000000000 11524350422 023653  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/proc/cpuinfo                               0000644 0000000 0000000 00000001017 11524350422 025234  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/infraserver/VM_configuration/proc/mounts                                0000644 0000000 0000000 00000001426 11524350422 025122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=503592k,nr_inodes=125898,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1287,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1287,timeout=300,minproto=5,maxproto=5,indirect 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
                                                                                                                                                                                                                                          Virtual_Configuration/tile1/infraserver/VM_configuration/proc/swaps                                 0000644 0000000 0000000 00000000144 11524350422 024726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/infraserver/VM_configuration/proc/devices                               0000644 0000000 0000000 00000000567 11524350422 025224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile1/infraserver/VM_configuration/proc/modules                               0000644 0000000 0000000 00000003222 11524350422 025241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa034e000
stp 2107 1 bridge, Live 0xffffffffa0348000
llc 5608 2 bridge,stp, Live 0xffffffffa0340000
nfsd 302737 13 - Live 0xffffffffa02e7000
lockd 73984 1 nfsd, Live 0xffffffffa02cb000
nfs_acl 2677 1 nfsd, Live 0xffffffffa02c5000
auth_rpcgss 44862 1 nfsd, Live 0xffffffffa02b2000
exportfs 4202 1 nfsd, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 16 nfsd,lockd,nfs_acl,auth_rpcgss, Live 0xffffffffa024b000
ipv6 321209 62 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/infraserver/VM_configuration/proc/partitions                            0000644 0000000 0000000 00000000260 11524350422 025764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   62914560 vdb
 252       17   62910508 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile1/infraserver/VM_configuration/proc/meminfo                               0000644 0000000 0000000 00000002222 11524350422 025222  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        1021520 kB
MemFree:           68480 kB
Buffers:            7700 kB
Cached:           768480 kB
SwapCached:            0 kB
Active:           179660 kB
Inactive:         680160 kB
Active(anon):      43564 kB
Inactive(anon):    43068 kB
Active(file):     136096 kB
Inactive(file):   637092 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               156 kB
Writeback:             0 kB
AnonPages:         83656 kB
Mapped:            20304 kB
Shmem:              2984 kB
Slab:              62444 kB
SReclaimable:      20196 kB
SUnreclaim:        42248 kB
KernelStack:        1584 kB
PageTables:        14480 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2558752 kB
Committed_AS:     303028 kB
VmallocTotal:   34359738367 kB
VmallocUsed:        7680 kB
VmallocChunk:   34359722652 kB
HardwareCorrupted:     0 kB
AnonHugePages:     22528 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     1040384 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/infraserver/VM_configuration/root/                                      0000777 0000000 0000000 00000000000 11524350422 023673  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/root/convert_to_vf.sh                      0000755 0000000 0000000 00000001135 11524350422 027103  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/lspci.txt                                  0000644 0000000 0000000 00000001211 11524350422 024552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/infraserver/VM_configuration/df.txt                                     0000644 0000000 0000000 00000000401 11524350405 024032  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3483208   9297728  28% /
tmpfs                   510760         0    510760   0% /dev/shm
/dev/vdb1             61923368  33417152  25360692  57% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/infraserver/VM_configuration/mount.txt                                  0000644 0000000 0000000 00000000657 11524350422 024617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
                                                                                 Virtual_Configuration/tile1/infraserver/VM_configuration/etc/                                       0000777 0000000 0000000 00000000000 11524350421 023462  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/                                  0000777 0000000 0000000 00000000000 11524350414 024312  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/                            0000777 0000000 0000000 00000000000 11524350421 025221  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests           0000755 0000000 0000000 00000017172 11524350414 030415  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                  0000755 0000000 0000000 00000004325 11524350414 027033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd               0000755 0000000 0000000 00000006014 11524350415 027622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                 0000755 0000000 0000000 00000012327 11524350416 027224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                0000755 0000000 0000000 00000005222 11524350417 027410  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                     0000755 0000000 0000000 00000010671 11524350421 026406  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                    0000755 0000000 0000000 00000006364 11524350415 026563  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                0000755 0000000 0000000 00000020716 11524350416 027334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                     0000755 0000000 0000000 00000004731 11524350416 026413  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S30nfs                      0000755 0000000 0000000 00000013536 11524350420 026226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon             0000755 0000000 0000000 00000004754 11524350414 027765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                0000755 0000000 0000000 00000001364 11524350421 027425  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                    0000755 0000000 0000000 00000003027 11524350416 026551  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                   0000755 0000000 0000000 00000006743 11524350421 026746  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                    0000755 0000000 0000000 00000010777 11524350416 026556  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus               0000755 0000000 0000000 00000004230 11524350420 027566  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                    0000755 0000000 0000000 00000006302 11524350416 026525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                      0000755 0000000 0000000 00000004236 11524350421 026241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                  0000755 0000000 0000000 00000004031 11524350417 027056  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance               0000755 0000000 0000000 00000003521 11524350417 027541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                  0000755 0000000 0000000 00000006050 11524350420 027105  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                  0000755 0000000 0000000 00000002363 11524350416 027162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger               0000755 0000000 0000000 00000004054 11524350414 027571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                0000755 0000000 0000000 00000005013 11524350417 027450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                    0000755 0000000 0000000 00000003213 11524350416 026544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                  0000755 0000000 0000000 00000003512 11524350416 027076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                     0000755 0000000 0000000 00000003603 11524350415 026403  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                   0000755 0000000 0000000 00000011277 11524350415 026730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S10network                  0000755 0000000 0000000 00000014466 11524350417 027140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                  0000755 0000000 0000000 00000004326 11524350417 027145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                   0000755 0000000 0000000 00000006462 11524350417 026717  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                    0000755 0000000 0000000 00000027662 11524350420 026564  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                     0000755 0000000 0000000 00000006445 11524350415 026306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                0000755 0000000 0000000 00000003245 11524350420 027371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K60crond                    0000755 0000000 0000000 00000005445 11524350415 026544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                    0000755 0000000 0000000 00000005522 11524350414 026545  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl            0000755 0000000 0000000 00000002221 11524350417 030236  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                0000755 0000000 0000000 00000004010 11524350415 027405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                     0000755 0000000 0000000 00000004723 11524350420 026365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                   0000755 0000000 0000000 00000003024 11524350415 026676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                    0000755 0000000 0000000 00000003275 11524350420 026524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                 0000755 0000000 0000000 00000025442 11524350417 027256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                0000755 0000000 0000000 00000004370 11524350420 027367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S99local                    0000755 0000000 0000000 00000000334 11524350421 026542  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                  0000755 0000000 0000000 00000006675 11524350417 027115  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole               0000755 0000000 0000000 00000005650 11524350415 027605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor             0000555 0000000 0000000 00000004612 11524350417 030003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                   0000755 0000000 0000000 00000007234 11524350420 026746  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                 0000755 0000000 0000000 00000003433 11524350421 027300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                   0000755 0000000 0000000 00000005672 11524350414 026725  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                    0000755 0000000 0000000 00000003254 11524350421 026540  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                0000755 0000000 0000000 00000005063 11524350421 027414  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                    0000755 0000000 0000000 00000012432 11524350420 026555  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                  0000755 0000000 0000000 00000007414 11524350415 027126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                 0000755 0000000 0000000 00000020557 11524350416 027251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond              0000755 0000000 0000000 00000003427 11524350416 027776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/rc3.d/K05atd                      0000755 0000000 0000000 00000004112 11524350414 026173  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/                           0000777 0000000 0000000 00000000000 11524350414 025477  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/network                    0000755 0000000 0000000 00000014466 11524350411 027122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/gfs2                       0000755 0000000 0000000 00000006445 11524350407 026275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/sysstat                    0000755 0000000 0000000 00000002363 11524350413 027136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/saslauthd                  0000755 0000000 0000000 00000004010 11524350413 027403  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/messagebus                 0000755 0000000 0000000 00000004230 11524350411 027553  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/autobench                  0000755 0000000 0000000 00000005063 11524350406 027376  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/atd                        0000755 0000000 0000000 00000004112 11524350406 026170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/mcelogd                    0000755 0000000 0000000 00000003535 11524350411 027036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/auditd                     0000755 0000000 0000000 00000006462 11524350406 026704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/certmonger                 0000755 0000000 0000000 00000004054 11524350407 027573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/irqbalance                 0000755 0000000 0000000 00000003521 11524350410 027517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/acpid                      0000755 0000000 0000000 00000003275 11524350406 026511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/nscd                       0000755 0000000 0000000 00000004723 11524350412 026354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                  0000755 0000000 0000000 00000005222 11524350413 027364  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/nfs                        0000755 0000000 0000000 00000013536 11524350411 026214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/sssd                       0000755 0000000 0000000 00000004731 11524350413 026401  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/crond                      0000755 0000000 0000000 00000005445 11524350407 026540  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/ip6tables                  0000755 0000000 0000000 00000020716 11524350410 027314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/autofs                     0000755 0000000 0000000 00000007234 11524350406 026731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/sshd                       0000755 0000000 0000000 00000010671 11524350413 026366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/ksm                        0000755 0000000 0000000 00000004236 11524350410 026214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/libvirt-guests             0000755 0000000 0000000 00000017172 11524350410 030410  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/avahi-daemon               0000755 0000000 0000000 00000004754 11524350406 027765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/ypbind                     0000755 0000000 0000000 00000011277 11524350414 026716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/psacct                     0000755 0000000 0000000 00000003024 11524350412 026673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/xinetd                     0000755 0000000 0000000 00000006743 11524350414 026726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/nfslock                    0000755 0000000 0000000 00000006675 11524350411 027073  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/cgred                      0000755 0000000 0000000 00000006302 11524350407 026510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/migrateip                  0000755 0000000 0000000 00000001364 11524350411 027403  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/udev-post                  0000755 0000000 0000000 00000004370 11524350414 027353  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/haldaemon                  0000755 0000000 0000000 00000003245 11524350407 027357  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/ipsec                      0000755 0000000 0000000 00000010777 11524350410 026534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/rpcbind                    0000755 0000000 0000000 00000004031 11524350412 027036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/rhnsd                      0000755 0000000 0000000 00000005522 11524350412 026541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/functions                  0000644 0000000 0000000 00000042767 11524350407 027450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/kdump                      0000755 0000000 0000000 00000027662 11524350410 026552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/postfix                    0000755 0000000 0000000 00000007414 11524350412 027121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/iptables                   0000755 0000000 0000000 00000020557 11524350410 027231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/rsyslog                    0000755 0000000 0000000 00000004326 11524350413 027127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/netconsole                 0000755 0000000 0000000 00000005650 11524350411 027575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/rpcgssd                    0000755 0000000 0000000 00000006050 11524350413 027066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/abrtd                      0000755 0000000 0000000 00000003254 11524350406 026522  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor               0000555 0000000 0000000 00000004612 11524350410 027763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/halt                       0000755 0000000 0000000 00000012723 11524350407 026360  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/cgconfig                   0000755 0000000 0000000 00000012327 11524350407 027207  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/single                     0000755 0000000 0000000 00000001207 11524350413 026701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/mdmonitor                  0000755 0000000 0000000 00000005013 11524350411 027425  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/restorecond                0000755 0000000 0000000 00000003427 11524350412 027754  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/cpuspeed                   0000755 0000000 0000000 00000025442 11524350407 027242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/netfs                      0000755 0000000 0000000 00000012432 11524350411 026537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524350413 027602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/oddjobd                    0000755 0000000 0000000 00000004325 11524350412 027030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/ksmtuned                   0000755 0000000 0000000 00000003433 11524350410 027252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/sandbox                    0000755 0000000 0000000 00000003242 11524350413 027057  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/killall                    0000755 0000000 0000000 00000001214 11524350410 027037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/rdisc                      0000755 0000000 0000000 00000003027 11524350412 026525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/httpd                      0000755 0000000 0000000 00000006364 11524350410 026551  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/ntpd                       0000755 0000000 0000000 00000003603 11524350412 026366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/smartd                     0000755 0000000 0000000 00000005672 11524350413 026724  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/nslcd                      0000755 0000000 0000000 00000003213 11524350412 026521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/ntpdate                    0000755 0000000 0000000 00000003512 11524350412 027057  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile1/infraserver/VM_configuration/etc/rc.d/init.d/microcode_ctl              0000755 0000000 0000000 00000002221 11524350411 030221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/infraserver/VM_configuration/etc/hosts                                  0000644 0000000 0000000 00000000236 11524350405 024544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile1/infraserver/VM_configuration/etc/iproute2/                              0000777 0000000 0000000 00000000000 11524350406 025236  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/etc/iproute2/rt_dsfield                    0000644 0000000 0000000 00000000672 11524350405 027300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile1/infraserver/VM_configuration/etc/iproute2/rt_realms                     0000644 0000000 0000000 00000000160 11524350405 027141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile1/infraserver/VM_configuration/etc/iproute2/rt_scopes                     0000644 0000000 0000000 00000000134 11524350406 027154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile1/infraserver/VM_configuration/etc/iproute2/ematch_map                    0000644 0000000 0000000 00000000073 11524350405 027252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile1/infraserver/VM_configuration/etc/iproute2/rt_tables                     0000644 0000000 0000000 00000000127 11524350406 027134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile1/infraserver/VM_configuration/etc/iproute2/rt_protos                     0000644 0000000 0000000 00000000475 11524350405 027215  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/etc/nsswitch.conf                          0000644 0000000 0000000 00000003230 11524350406 026170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile1/infraserver/VM_configuration/etc/fstab                                  0000644 0000000 0000000 00000001603 11524350405 024502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile1/infraserver/VM_configuration/etc/sysctl.conf                            0000644 0000000 0000000 00000001466 11524350421 025655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile1/infraserver/VM_configuration/etc/inittab                                0000644 0000000 0000000 00000001564 11524350405 025043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile1/infraserver/VM_configuration/var/                                       0000777 0000000 0000000 00000000000 11524350423 023501  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/var/log/                                   0000777 0000000 0000000 00000000000 11524350423 024262  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/var/log/dmesg                              0000644 0000000 0000000 00000043364 11524350423 025312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003fffd000 (usable)
 BIOS-e820: 000000003fffd000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x3fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000003fffd000
 0000000000 - 003fe00000 page 2M
 003fe00000 - 003fffd000 page 4k
kernel direct mapping tables up to 3fffd000 @ 8000-b000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000003fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000003ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000003fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000003ffffe00 00040
ACPI: SSDT 000000003fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000003fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000003fffd000
Bootmem setup node 0 0000000000000000-000000003fffd000
  NODE_DATA [0000000000009000 - 000000000003cfff]
  bootmap [000000000003d000 -  0000000000044fff] pages 8
(7 early reservations) ==> bootmem [0000000000 - 003fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0000dfffff] PMD -> [ffff880002200000-ffff880002ffffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0003fffd
On node 0 totalpages: 262038
  DMA zone: 56 pages used for memmap
  DMA zone: 105 pages reserved
  DMA zone: 3832 pages, LIFO batch:0
  DMA32 zone: 3528 pages used for memmap
  DMA32 zone: 254517 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 40000000 (gap: 40000000:bffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 258349
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 1007148k/1048564k available (4935k kernel code, 412k absent, 41004k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 10485760 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116137.295:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 1992
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:02:16 UTC (1297116136)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
f6:c7:eb:5a:97:86
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile1/infraserver/VM_configuration/boot/                                      0000777 0000000 0000000 00000000000 11524350404 023653  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/boot/grub/                                 0000777 0000000 0000000 00000000000 11524350404 024612  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/VM_configuration/boot/grub/grub.conf                        0000644 0000000 0000000 00000002217 11524350405 026417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile1/infraserver/VM_configuration/rpmpkgs.txt                                0000644 0000000 0000000 00000067243 11524350423 025145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
hivex-1.2.2-1.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
fcgi-2.4.0-14.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
scrub-2.2-1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
fcgi-devel-2.4.0-14.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
libguestfs-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/infraserver/VM_configuration/ifconfig.txt                               0000644 0000000 0000000 00000002343 11524350421 025232  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:05  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:296 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:28427 (27.7 KiB)  TX bytes:920 (920.0 b)

eth1      Link encap:Ethernet  HWaddr F6:C7:EB:5A:97:86  
          inet addr:10.1.217.5  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::f4c7:ebff:fe5a:9786/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:63201747 errors:0 dropped:0 overruns:0 frame:0
          TX packets:117591480 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4448063833 (4.1 GiB)  TX bytes:169659761513 (158.0 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3461 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3461 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:355642 (347.3 KiB)  TX bytes:355642 (347.3 KiB)

                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile1/infraserver/VM_configuration/chkconfig.txt                              0000644 0000000 0000000 00000006531 11524350405 025406  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                       Virtual_Configuration/tile1/infraserver/Software_Configuration/                                     0000777 0000000 0000000 00000000000 11524350403 024117  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/Software_Configuration/exports                              0000644 0000000 0000000 00000000101 11524350403 025532  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /support-download *(rw,no_subtree_check,crossmnt,no_root_squash)
                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile1/infraserver/Software_Configuration/httpd/                               0000777 0000000 0000000 00000000000 11524350404 025243  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/Software_Configuration/httpd/conf.d/                        0000777 0000000 0000000 00000000000 11524350404 026412  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/Software_Configuration/httpd/conf.d/manual.conf             0000644 0000000 0000000 00000000447 11524350404 030537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This configuration file allows the manual to be accessed at 
# http://localhost/manual/
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"

<Directory "/var/www/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
                                                                                                                                                                                                                         Virtual_Configuration/tile1/infraserver/Software_Configuration/httpd/conf.d/php.conf                0000644 0000000 0000000 00000001242 11524350404 030043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile1/infraserver/Software_Configuration/httpd/conf.d/welcome.conf            0000644 0000000 0000000 00000000453 11524350404 030712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # 
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

                                                                                                                                                                                                                     Virtual_Configuration/tile1/infraserver/Software_Configuration/httpd/conf.d/README                  0000644 0000000 0000000 00000000610 11524350404 027263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
This directory holds Apache 2.0 module-specific configuration files;
any files in this directory which have the ".conf" extension will be
processed as Apache configuration files.

Files are processed in alphabetical order, so if using configuration
directives which depend on, say, mod_perl being loaded, ensure that
these are placed in a filename later in the sort order than "perl.conf".

                                                                                                                        Virtual_Configuration/tile1/infraserver/Software_Configuration/httpd/conf/                          0000777 0000000 0000000 00000000000 11524350404 026170  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile1/infraserver/Software_Configuration/httpd/conf/httpd.conf                0000644 0000000 0000000 00000103212 11524350404 030155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# Don't give away too much information about all the subcomponents
# we are running.  Comment out this line if you don't mind remote sites
# finding out what major optional modules you are running
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.  Note the PIDFILE variable in
# /etc/sysconfig/httpd must be set appropriately if this location is
# changed.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 60

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive Off

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit 10240
MaxClients 10240
MaxRequestsPerChild  4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         4
MaxClients 10240
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 81

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

#
# The following modules are not loaded by default:
#
#LoadModule asis_module modules/mod_asis.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
#

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group #-1 on these systems!
#
User apache
Group apache

### Section 2: 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
#ServerName www.example.com:80

#
# UseCanonicalName: Determines how Apache constructs self-referencing 
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.  This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir disabled

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disabled" line above, and uncomment
    # the following line instead:
    # 
    #UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is 
# used to deliver files (assuming that the OS supports it). 
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
#
#EnableSendfile off

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
# requires the mod_logio module to be loaded.
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access_log common

#
# If you would like to have separate agent and referer logfiles, uncomment
# the following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# WebDAV module configuration section.
# 
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Directives controlling the display of server-generated directory listings.
#

#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes.  These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

#
# DefaultLanguage and AddLanguage allows you to specify the language of 
# a document. You can then use content negotiation to give a browser a 
# file in a language the user can understand.
#
# Specify a default language. This means that all data
# going out without a specific language tag (see below) will 
# be marked with this one. You probably do NOT want to set
# this unless you are sure it is correct for all cases.
#
# * It is generally better to not mark a page as 
# * being a certain language than marking it with the wrong
# * language!
#
# DefaultLanguage nl
#
# Note 1: The suffix does not have to be the same as the language
# keyword --- those with documents in Polish (whose net-standard
# language code is pl) may wish to use "AddLanguage pl .po" to
# avoid the ambiguity with the common suffix for perl scripts.
#
# Note 2: The example entries below illustrate that in some cases 
# the two character 'Language' abbreviation is not identical to 
# the two character 'Country' code for its country,
# E.g. 'Danmark/dk' versus 'Danish/da'.
#
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
# specifier. There is 'work in progress' to fix this and get
# the reference data for rfc1766 cleaned up.
#
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the 
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz

#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
#   MIME-types for downloading Certificates and CRLs
#
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
#  to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#    ErrorDocument 410 /error/HTTP_GONE.html.var
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Proxy>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
#   CacheEnable disk /
#   CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#

#</IfModule>
# End of proxy directives.

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>














Include conf/fcgi.conf
                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile1/infraserver/Software_Configuration/httpd/conf/fcgi.conf                 0000644 0000000 0000000 00000000607 11524350403 027745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   LoadModule fastcgi_module modules/mod_fastcgi.so
ScriptAlias /fcgi-bin/ "/var/www/fcgi-bin/"
FastCgiIpcDir /etc/httpd/fastcgi
<Directory "/var/www/fcgi-bin">
    AllowOverride None
    Options +ExecCGI -Includes
    SetHandler fastcgi-script
    Order allow,deny
    Allow from all
 </Directory>
 AddHandler fastcgi-script fcgi
 FastCgiServer /var/www/fcgi-bin/besim_fcgi.fcgi -processes 50
                                                                                                                         Virtual_Configuration/tile1/infraserver/Software_Configuration/httpd/conf/magic                     0000644 0000000 0000000 00000031523 11524350404 027173  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Magic data for mod_mime_magic Apache module (originally for file(1) command)
# The module is described in /manual/mod/mod_mime_magic.html
#
# The format is 4-5 columns:
#    Column #1: byte number to begin checking from, ">" indicates continuation
#    Column #2: type of data to match
#    Column #3: contents of data to match
#    Column #4: MIME type of result
#    Column #5: MIME encoding of result (optional)

#------------------------------------------------------------------------------
# Localstuff:  file(1) magic for locally observed files
# Add any locally observed files here.

#------------------------------------------------------------------------------
# end local stuff
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Java

0	short		0xcafe
>2	short		0xbabe		application/java

#------------------------------------------------------------------------------
# audio:  file(1) magic for sound formats
#
# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
#

# Sun/NeXT audio data
0	string		.snd
>12	belong		1		audio/basic
>12	belong		2		audio/basic
>12	belong		3		audio/basic
>12	belong		4		audio/basic
>12	belong		5		audio/basic
>12	belong		6		audio/basic
>12	belong		7		audio/basic

>12	belong		23		audio/x-adpcm

# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
# (0x0064732E in little-endian encoding).
0	lelong		0x0064732E	
>12	lelong		1		audio/x-dec-basic
>12	lelong		2		audio/x-dec-basic
>12	lelong		3		audio/x-dec-basic
>12	lelong		4		audio/x-dec-basic
>12	lelong		5		audio/x-dec-basic
>12	lelong		6		audio/x-dec-basic
>12	lelong		7		audio/x-dec-basic
#                                       compressed (G.721 ADPCM)
>12	lelong		23		audio/x-dec-adpcm

# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
#					AIFF audio data
8	string		AIFF		audio/x-aiff	
#					AIFF-C audio data
8	string		AIFC		audio/x-aiff	
#					IFF/8SVX audio data
8	string		8SVX		audio/x-aiff	

# Creative Labs AUDIO stuff
#					Standard MIDI data
0	string	MThd			audio/unknown	
#>9 	byte	>0			(format %d)
#>11	byte	>1			using %d channels
#					Creative Music (CMF) data
0	string	CTMF			audio/unknown	
#					SoundBlaster instrument data
0	string	SBI			audio/unknown	
#					Creative Labs voice data
0	string	Creative\ Voice\ File	audio/unknown	
## is this next line right?  it came this way...
#>19	byte	0x1A
#>23	byte	>0			- version %d
#>22	byte	>0			\b.%d

# [GRR 950115:  is this also Creative Labs?  Guessing that first line
#  should be string instead of unknown-endian long...]
#0	long		0x4e54524b	MultiTrack sound data
#0	string		NTRK		MultiTrack sound data
#>4	long		x		- version %ld

# Microsoft WAVE format (*.wav)
# [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
#					Microsoft RIFF
0	string		RIFF		audio/unknown
#					- WAVE format
>8	string		WAVE		audio/x-wav
# MPEG audio.
0   beshort&0xfff0  0xfff0  audio/mpeg
# C64 SID Music files, from Linus Walleij <triad@df.lth.se>
0   string      PSID        audio/prs.sid

#------------------------------------------------------------------------------
# c-lang:  file(1) magic for C programs or various scripts
#

# XPM icons (Greg Roelofs, newt@uchicago.edu)
# ideally should go into "images", but entries below would tag XPM as C source
0	string		/*\ XPM		image/x-xbm	7bit

# this first will upset you if you're a PL/1 shop... (are there any left?)
# in which case rm it; ascmagic will catch real C programs
#					C or REXX program text
0	string		/*		text/plain
#					C++ program text
0	string		//		text/plain

#------------------------------------------------------------------------------
# compress:  file(1) magic for pure-compression formats (no archives)
#
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
#
# Formats for various forms of compressed data
# Formats for "compress" proper have been moved into "compress.c",
# because it tries to uncompress it to figure out what's inside.

# standard unix compress
0	string		\037\235	application/octet-stream	x-compress

# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
0       string          \037\213        application/octet-stream	x-gzip

# According to gzip.h, this is the correct byte order for packed data.
0	string		\037\036	application/octet-stream
#
# This magic number is byte-order-independent.
#
0	short		017437		application/octet-stream

# XXX - why *two* entries for "compacted data", one of which is
# byte-order independent, and one of which is byte-order dependent?
#
# compacted data
0	short		0x1fff		application/octet-stream
0	string		\377\037	application/octet-stream
# huf output
0	short		0145405		application/octet-stream

# Squeeze and Crunch...
# These numbers were gleaned from the Unix versions of the programs to
# handle these formats.  Note that I can only uncrunch, not crunch, and
# I didn't have a crunched file handy, so the crunch number is untested.
#				Keith Waclena <keith@cerberus.uchicago.edu>
#0	leshort		0x76FF		squeezed data (CP/M, DOS)
#0	leshort		0x76FE		crunched data (CP/M, DOS)

# Freeze
#0	string		\037\237	Frozen file 2.1
#0	string		\037\236	Frozen file 1.0 (or gzip 0.5)

# lzh?
#0	string		\037\240	LZH compressed data

#------------------------------------------------------------------------------
# frame:  file(1) magic for FrameMaker files
#
# This stuff came on a FrameMaker demo tape, most of which is
# copyright, but this file is "published" as witness the following:
#
0	string		\<MakerFile	application/x-frame
0	string		\<MIFFile	application/x-frame
0	string		\<MakerDictionary	application/x-frame
0	string		\<MakerScreenFon	application/x-frame
0	string		\<MML		application/x-frame
0	string		\<Book		application/x-frame
0	string		\<Maker		application/x-frame

#------------------------------------------------------------------------------
# html:  file(1) magic for HTML (HyperText Markup Language) docs
#
# from Daniel Quinlan <quinlan@yggdrasil.com>
# and Anna Shergold <anna@inext.co.uk>
#
0   string      \<!DOCTYPE\ HTML    text/html
0   string      \<!doctype\ html    text/html
0   string      \<HEAD      text/html
0   string      \<head      text/html
0   string      \<TITLE     text/html
0   string      \<title     text/html
0   string      \<html      text/html
0   string      \<HTML      text/html
0   string      \<!--       text/html
0   string      \<h1        text/html
0   string      \<H1        text/html

# XML eXtensible Markup Language, from Linus Walleij <triad@df.lth.se>
0   string      \<?xml      text/xml

#------------------------------------------------------------------------------
# images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
#
# originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
# additions by janl@ifi.uio.no as well as others. Jan also suggested
# merging several one- and two-line files into here.
#
# XXX - byte order for GIF and TIFF fields?
# [GRR:  TIFF allows both byte orders; GIF is probably little-endian]
#

# [GRR:  what the hell is this doing in here?]
#0	string		xbtoa		btoa'd file

# PBMPLUS
#					PBM file
0	string		P1		image/x-portable-bitmap	7bit
#					PGM file
0	string		P2		image/x-portable-greymap	7bit
#					PPM file
0	string		P3		image/x-portable-pixmap	7bit
#					PBM "rawbits" file
0	string		P4		image/x-portable-bitmap
#					PGM "rawbits" file
0	string		P5		image/x-portable-greymap
#					PPM "rawbits" file
0	string		P6		image/x-portable-pixmap

# NIFF (Navy Interchange File Format, a modification of TIFF)
# [GRR:  this *must* go before TIFF]
0	string		IIN1		image/x-niff

# TIFF and friends
#					TIFF file, big-endian
0	string		MM		image/tiff
#					TIFF file, little-endian
0	string		II		image/tiff

# possible GIF replacements; none yet released!
# (Greg Roelofs, newt@uchicago.edu)
#
# GRR 950115:  this was mine ("Zip GIF"):
#					ZIF image (GIF+deflate alpha)
0	string		GIF94z		image/unknown
#
# GRR 950115:  this is Jeremy Wohl's Free Graphics Format (better):
#					FGF image (GIF+deflate beta)
0	string		FGF95a		image/unknown
#
# GRR 950115:  this is Thomas Boutell's Portable Bitmap Format proposal
# (best; not yet implemented):
#					PBF image (deflate compression)
0	string		PBF		image/unknown

# GIF
0	string		GIF		image/gif

# JPEG images
0	beshort		0xffd8		image/jpeg

# PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
0	string		BM		image/bmp
#>14	byte		12		(OS/2 1.x format)
#>14	byte		64		(OS/2 2.x format)
#>14	byte		40		(Windows 3.x format)
#0	string		IC		icon
#0	string		PI		pointer
#0	string		CI		color icon
#0	string		CP		color pointer
#0	string		BA		bitmap array


#------------------------------------------------------------------------------
# lisp:  file(1) magic for lisp programs
#
# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
0	string	;;			text/plain	8bit
# Emacs 18 - this is always correct, but not very magical.
0	string	\012(			application/x-elc
# Emacs 19
0	string	;ELC\023\000\000\000	application/x-elc

#------------------------------------------------------------------------------
# mail.news:  file(1) magic for mail and news
#
# There are tests to ascmagic.c to cope with mail and news.
0	string		Relay-Version: 	message/rfc822	7bit
0	string		#!\ rnews	message/rfc822	7bit
0	string		N#!\ rnews	message/rfc822	7bit
0	string		Forward\ to 	message/rfc822	7bit
0	string		Pipe\ to 	message/rfc822	7bit
0	string		Return-Path:	message/rfc822	7bit
0	string		Path:		message/news	8bit
0	string		Xref:		message/news	8bit
0	string		From:		message/rfc822	7bit
0	string		Article 	message/news	8bit
#------------------------------------------------------------------------------
# msword: file(1) magic for MS Word files
#
# Contributor claims:
# Reversed-engineered MS Word magic numbers
#

0	string		\376\067\0\043			application/msword
0	string		\333\245-\0\0\0			application/msword

# disable this one because it applies also to other
# Office/OLE documents for which msword is not correct. See PR#2608.
#0	string		\320\317\021\340\241\261	application/msword



#------------------------------------------------------------------------------
# printer:  file(1) magic for printer-formatted files
#

# PostScript
0	string		%!		application/postscript
0	string		\004%!		application/postscript

# Acrobat
# (due to clamen@cs.cmu.edu)
0	string		%PDF-		application/pdf

#------------------------------------------------------------------------------
# sc:  file(1) magic for "sc" spreadsheet
#
38	string		Spreadsheet	application/x-sc

#------------------------------------------------------------------------------
# tex:  file(1) magic for TeX files
#
# XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
#
# From <conklin@talisman.kaleida.com>

# Although we may know the offset of certain text fields in TeX DVI
# and font files, we can't use them reliably because they are not
# zero terminated. [but we do anyway, christos]
0	string		\367\002	application/x-dvi
#0	string		\367\203	TeX generic font data
#0	string		\367\131	TeX packed font data
#0	string		\367\312	TeX virtual font data
#0	string		This\ is\ TeX,	TeX transcript text	
#0	string		This\ is\ METAFONT,	METAFONT transcript text

# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data.  The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
#2	string		\000\021	TeX font metric data
#2	string		\000\022	TeX font metric data
#>34	string		>\0		(%s)

# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
#0	string		\\input\ texinfo	Texinfo source text
#0	string		This\ is\ Info\ file	GNU Info text

# correct TeX magic for Linux (and maybe more)
# from Peter Tobias (tobias@server.et-inf.fho-emden.de)
#
0	leshort		0x02f7		application/x-dvi

# RTF - Rich Text Format
0	string		{\\rtf		application/rtf

#------------------------------------------------------------------------------
# animation:  file(1) magic for animation/movie formats
#
# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
#						MPEG file
0	string		\000\000\001\263	video/mpeg
#
# The contributor claims:
#   I couldn't find a real magic number for these, however, this
#   -appears- to work.  Note that it might catch other files, too,
#   so BE CAREFUL!
#
# Note that title and author appear in the two 20-byte chunks
# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
# 255 (hex FF)! DL format SUCKS BIG ROCKS.
#
#						DL file version 1 , medium format (160x100, 4 images/screen)
0	byte		1			video/unknown
0	byte		2			video/unknown
# Quicktime video, from Linus Walleij <triad@df.lth.se>
# from Apple quicktime file format documentation.
4   string      moov        video/quicktime
4   string      mdat        video/quicktime

# PNG [Portable Network Graphics, or "PNG's Not GIF"] images
#
# 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
0   string      \211PNG\015      image/png
                                                                                                                                                                             Virtual_Configuration/tile10/                                                                       0000777 0000000 0000000 00000000000 11524350603 015172  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/                                                            0000777 0000000 0000000 00000000000 11524350525 017341  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/                                           0000777 0000000 0000000 00000000000 11524350544 022613  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/proc/                                      0000777 0000000 0000000 00000000000 11524350543 023555  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/proc/cpuinfo                               0000644 0000000 0000000 00000001017 11524350543 025136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/idleserver/VM_configuration/proc/mounts                                0000644 0000000 0000000 00000001356 11524350543 025026  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=503592k,nr_inodes=125898,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1213,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1213,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/idleserver/VM_configuration/proc/swaps                                 0000644 0000000 0000000 00000000144 11524350543 024630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/idleserver/VM_configuration/proc/devices                               0000644 0000000 0000000 00000000567 11524350543 025126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile10/idleserver/VM_configuration/proc/modules                               0000644 0000000 0000000 00000002547 11524350543 025154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02a5000
stp 2107 1 bridge, Live 0xffffffffa029f000
llc 5608 2 bridge,stp, Live 0xffffffffa0297000
autofs4 27683 3 - Live 0xffffffffa028a000
sunrpc 241630 1 - Live 0xffffffffa0237000
ipv6 321209 38 - Live 0xffffffffa01a2000
dm_mirror 14003 0 - Live 0xffffffffa0176000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa016d000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0164000
ppdev 8695 0 - Live 0xffffffffa0156000
parport_pc 22944 0 - Live 0xffffffffa0149000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa0137000
sg 30186 0 - Live 0xffffffffa0128000
virtio_net 15665 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
sr_mod 16162 0 - Live 0xffffffffa0064000
cdrom 39769 1 sr_mod, Live 0xffffffffa0053000
virtio_blk 5087 5 - Live 0xffffffffa004c000
pata_acpi 3667 0 - Live 0xffffffffa0046000
ata_generic 3611 0 - Live 0xffffffffa0040000
ata_piix 22588 0 - Live 0xffffffffa0034000
virtio_pci 6733 0 - Live 0xffffffffa002c000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0025000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Virtual_Configuration/tile10/idleserver/VM_configuration/proc/partitions                            0000644 0000000 0000000 00000000260 11524350543 025666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile10/idleserver/VM_configuration/proc/meminfo                               0000644 0000000 0000000 00000002222 11524350543 025124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        1021520 kB
MemFree:          782372 kB
Buffers:           16644 kB
Cached:            97720 kB
SwapCached:            0 kB
Active:            93272 kB
Inactive:          69408 kB
Active(anon):      48448 kB
Inactive(anon):        4 kB
Active(file):      44824 kB
Inactive(file):    69404 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               168 kB
Writeback:             0 kB
AnonPages:         48348 kB
Mapped:            18528 kB
Shmem:               164 kB
Slab:              61264 kB
SReclaimable:      24764 kB
SUnreclaim:        36500 kB
KernelStack:         944 kB
PageTables:         3000 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2558752 kB
Committed_AS:     152204 kB
VmallocTotal:   34359738367 kB
VmallocUsed:        7592 kB
VmallocChunk:   34359726760 kB
HardwareCorrupted:     0 kB
AnonHugePages:      8192 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     1040384 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/idleserver/VM_configuration/root/                                      0000777 0000000 0000000 00000000000 11524350543 023575  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/root/convert_to_vf.sh                      0000755 0000000 0000000 00000001135 11524350543 027005  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/lspci.txt                                  0000644 0000000 0000000 00000001046 11524350542 024461  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile10/idleserver/VM_configuration/df.txt                                     0000644 0000000 0000000 00000000401 11524350526 023734  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3617772   9163164  29% /
tmpfs                   510760         0    510760   0% /dev/shm
/dev/vdb1             20642412    176072  19417768   1% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/idleserver/VM_configuration/mount.txt                                  0000644 0000000 0000000 00000000612 11524350542 024507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile10/idleserver/VM_configuration/etc/                                       0000777 0000000 0000000 00000000000 11524350542 023364  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/                                  0000777 0000000 0000000 00000000000 11524350535 024214  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/                            0000777 0000000 0000000 00000000000 11524350542 025123  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests           0000755 0000000 0000000 00000017172 11524350535 030317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                  0000755 0000000 0000000 00000004325 11524350535 026735  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd               0000755 0000000 0000000 00000006014 11524350536 027524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                 0000755 0000000 0000000 00000012327 11524350537 027126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                0000755 0000000 0000000 00000005222 11524350540 027303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                     0000755 0000000 0000000 00000010671 11524350542 026310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                    0000755 0000000 0000000 00000006364 11524350536 026465  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                0000755 0000000 0000000 00000020716 11524350537 027236  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                     0000755 0000000 0000000 00000004731 11524350537 026315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon             0000755 0000000 0000000 00000004754 11524350535 027667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                0000755 0000000 0000000 00000001364 11524350541 027326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                    0000755 0000000 0000000 00000003027 11524350537 026453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                   0000755 0000000 0000000 00000006743 11524350542 026650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                    0000755 0000000 0000000 00000010777 11524350536 026457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus               0000755 0000000 0000000 00000004230 11524350541 027470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                    0000755 0000000 0000000 00000006302 11524350537 026427  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                      0000755 0000000 0000000 00000004236 11524350542 026143  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                  0000755 0000000 0000000 00000004031 11524350540 026751  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance               0000755 0000000 0000000 00000003521 11524350540 027434  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                  0000755 0000000 0000000 00000006050 11524350540 027006  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                  0000755 0000000 0000000 00000002363 11524350537 027064  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger               0000755 0000000 0000000 00000004054 11524350535 027473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                0000755 0000000 0000000 00000005013 11524350540 027343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                    0000755 0000000 0000000 00000003213 11524350537 026446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                  0000755 0000000 0000000 00000003512 11524350536 026777  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                     0000755 0000000 0000000 00000003603 11524350536 026305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                   0000755 0000000 0000000 00000011277 11524350536 026632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S10network                  0000755 0000000 0000000 00000014466 11524350540 027033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                  0000755 0000000 0000000 00000004326 11524350540 027040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                   0000755 0000000 0000000 00000006462 11524350540 026612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                    0000755 0000000 0000000 00000027662 11524350541 026466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                     0000755 0000000 0000000 00000006445 11524350536 026210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                0000755 0000000 0000000 00000003245 11524350541 027273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K60crond                    0000755 0000000 0000000 00000005445 11524350536 026446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                    0000755 0000000 0000000 00000005522 11524350535 026447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl            0000755 0000000 0000000 00000002221 11524350537 030137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                0000755 0000000 0000000 00000004010 11524350535 027306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                      0000755 0000000 0000000 00000013536 11524350536 026127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                     0000755 0000000 0000000 00000004723 11524350541 026267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                   0000755 0000000 0000000 00000003024 11524350535 026577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                    0000755 0000000 0000000 00000003275 11524350541 026426  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                 0000755 0000000 0000000 00000025442 11524350540 027151  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                0000755 0000000 0000000 00000004370 11524350541 027271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S99local                    0000755 0000000 0000000 00000000334 11524350542 026444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                  0000755 0000000 0000000 00000006675 11524350540 027010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole               0000755 0000000 0000000 00000005650 11524350536 027507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor             0000555 0000000 0000000 00000004612 11524350540 027676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                   0000755 0000000 0000000 00000007234 11524350541 026650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                 0000755 0000000 0000000 00000003433 11524350542 027202  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                   0000755 0000000 0000000 00000005672 11524350535 026627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                    0000755 0000000 0000000 00000003254 11524350542 026442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                0000755 0000000 0000000 00000005063 11524350541 027315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                    0000755 0000000 0000000 00000012432 11524350541 026457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                  0000755 0000000 0000000 00000007414 11524350536 027030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                 0000755 0000000 0000000 00000020557 11524350537 027153  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond              0000755 0000000 0000000 00000003427 11524350537 027700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/rc3.d/K05atd                      0000755 0000000 0000000 00000004112 11524350535 026075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/                           0000777 0000000 0000000 00000000000 11524350534 025400  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/network                    0000755 0000000 0000000 00000014466 11524350532 027024  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/gfs2                       0000755 0000000 0000000 00000006445 11524350530 026170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/sysstat                    0000755 0000000 0000000 00000002363 11524350534 027040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/saslauthd                  0000755 0000000 0000000 00000004010 11524350534 027305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/messagebus                 0000755 0000000 0000000 00000004230 11524350532 027455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/autobench                  0000755 0000000 0000000 00000005063 11524350527 027300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/atd                        0000755 0000000 0000000 00000004112 11524350527 026072  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/mcelogd                    0000755 0000000 0000000 00000003535 11524350531 026737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/auditd                     0000755 0000000 0000000 00000006462 11524350527 026606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/certmonger                 0000755 0000000 0000000 00000004054 11524350530 027466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/irqbalance                 0000755 0000000 0000000 00000003521 11524350531 027421  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/acpid                      0000755 0000000 0000000 00000003275 11524350527 026413  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/nscd                       0000755 0000000 0000000 00000004723 11524350532 026255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                  0000755 0000000 0000000 00000005222 11524350533 027265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/nfs                        0000755 0000000 0000000 00000013536 11524350532 026116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/sssd                       0000755 0000000 0000000 00000004731 11524350534 026303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/crond                      0000755 0000000 0000000 00000005445 11524350530 026433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/ip6tables                  0000755 0000000 0000000 00000020716 11524350530 027215  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/autofs                     0000755 0000000 0000000 00000007234 11524350527 026633  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/sshd                       0000755 0000000 0000000 00000010671 11524350534 026270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/ksm                        0000755 0000000 0000000 00000004236 11524350531 026116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/libvirt-guests             0000755 0000000 0000000 00000017172 11524350531 030312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/avahi-daemon               0000755 0000000 0000000 00000004754 11524350527 027667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/ypbind                     0000755 0000000 0000000 00000011277 11524350535 026620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/psacct                     0000755 0000000 0000000 00000003024 11524350533 026575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/xinetd                     0000755 0000000 0000000 00000006743 11524350534 026627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/nfslock                    0000755 0000000 0000000 00000006675 11524350532 026775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/cgred                      0000755 0000000 0000000 00000006302 11524350530 026403  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/migrateip                  0000755 0000000 0000000 00000001364 11524350532 027305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/udev-post                  0000755 0000000 0000000 00000004370 11524350534 027254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/haldaemon                  0000755 0000000 0000000 00000003245 11524350530 027252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/ipsec                      0000755 0000000 0000000 00000010777 11524350531 026436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/rpcbind                    0000755 0000000 0000000 00000004031 11524350533 026740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/rhnsd                      0000755 0000000 0000000 00000005522 11524350533 026443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/functions                  0000644 0000000 0000000 00000042767 11524350530 027343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/kdump                      0000755 0000000 0000000 00000027662 11524350531 026454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/postfix                    0000755 0000000 0000000 00000007414 11524350533 027023  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/iptables                   0000755 0000000 0000000 00000020557 11524350531 027133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/rsyslog                    0000755 0000000 0000000 00000004326 11524350534 027031  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/netconsole                 0000755 0000000 0000000 00000005650 11524350532 027477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/rpcgssd                    0000755 0000000 0000000 00000006050 11524350533 026767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/abrtd                      0000755 0000000 0000000 00000003254 11524350527 026424  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor               0000555 0000000 0000000 00000004612 11524350531 027665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/halt                       0000755 0000000 0000000 00000012723 11524350530 026253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/cgconfig                   0000755 0000000 0000000 00000012327 11524350530 027102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/single                     0000755 0000000 0000000 00000001207 11524350534 026603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/mdmonitor                  0000755 0000000 0000000 00000005013 11524350532 027327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/restorecond                0000755 0000000 0000000 00000003427 11524350533 027656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/cpuspeed                   0000755 0000000 0000000 00000025442 11524350530 027135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/netfs                      0000755 0000000 0000000 00000012432 11524350532 026441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524350533 027503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/oddjobd                    0000755 0000000 0000000 00000004325 11524350533 026732  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/ksmtuned                   0000755 0000000 0000000 00000003433 11524350531 027154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/sandbox                    0000755 0000000 0000000 00000003242 11524350534 026761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/killall                    0000755 0000000 0000000 00000001214 11524350531 026741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/rdisc                      0000755 0000000 0000000 00000003027 11524350533 026427  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/httpd                      0000755 0000000 0000000 00000006364 11524350530 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/ntpd                       0000755 0000000 0000000 00000003603 11524350532 026267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/smartd                     0000755 0000000 0000000 00000005672 11524350534 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/nslcd                      0000755 0000000 0000000 00000003213 11524350532 026422  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/ntpdate                    0000755 0000000 0000000 00000003512 11524350533 026761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile10/idleserver/VM_configuration/etc/rc.d/init.d/microcode_ctl              0000755 0000000 0000000 00000002221 11524350532 030123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/idleserver/VM_configuration/etc/hosts                                  0000644 0000000 0000000 00000000267 11524350526 024452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/idleserver/VM_configuration/etc/iproute2/                              0000777 0000000 0000000 00000000000 11524350527 025140  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/etc/iproute2/rt_dsfield                    0000644 0000000 0000000 00000000672 11524350526 027202  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile10/idleserver/VM_configuration/etc/iproute2/rt_realms                     0000644 0000000 0000000 00000000160 11524350526 027043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile10/idleserver/VM_configuration/etc/iproute2/rt_scopes                     0000644 0000000 0000000 00000000134 11524350527 027056  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/idleserver/VM_configuration/etc/iproute2/ematch_map                    0000644 0000000 0000000 00000000073 11524350526 027154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/idleserver/VM_configuration/etc/iproute2/rt_tables                     0000644 0000000 0000000 00000000127 11524350527 027036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/idleserver/VM_configuration/etc/iproute2/rt_protos                     0000644 0000000 0000000 00000000475 11524350526 027117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/etc/nsswitch.conf                          0000644 0000000 0000000 00000003230 11524350527 026072  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/idleserver/VM_configuration/etc/fstab                                  0000644 0000000 0000000 00000001603 11524350526 024404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile10/idleserver/VM_configuration/etc/sysctl.conf                            0000644 0000000 0000000 00000001466 11524350542 025557  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile10/idleserver/VM_configuration/etc/inittab                                0000644 0000000 0000000 00000001564 11524350526 024745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile10/idleserver/VM_configuration/var/                                       0000777 0000000 0000000 00000000000 11524350544 023403  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/var/log/                                   0000777 0000000 0000000 00000000000 11524350544 024164  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/var/log/dmesg                              0000644 0000000 0000000 00000041447 11524350544 025214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003fffd000 (usable)
 BIOS-e820: 000000003fffd000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x3fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000003fffd000
 0000000000 - 003fe00000 page 2M
 003fe00000 - 003fffd000 page 4k
kernel direct mapping tables up to 3fffd000 @ 8000-b000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000003fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000003ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000003fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000003ffffe00 00040
ACPI: SSDT 000000003fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000003fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000003fffd000
Bootmem setup node 0 0000000000000000-000000003fffd000
  NODE_DATA [0000000000009000 - 000000000003cfff]
  bootmap [000000000003d000 -  0000000000044fff] pages 8
(7 early reservations) ==> bootmem [0000000000 - 003fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0000dfffff] PMD -> [ffff880002200000-ffff880002ffffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0003fffd
On node 0 totalpages: 262038
  DMA zone: 56 pages used for memmap
  DMA zone: 105 pages reserved
  DMA zone: 3832 pages, LIFO batch:0
  DMA32 zone: 3528 pages used for memmap
  DMA32 zone: 254517 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 40000000 (gap: 40000000:bffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 258349
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 1007148k/1048564k available (4935k kernel code, 412k absent, 41004k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 10485760 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116196.312:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 1992
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:03:15 UTC (1297116195)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 30 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                         Virtual_Configuration/tile10/idleserver/VM_configuration/boot/                                      0000777 0000000 0000000 00000000000 11524350525 023555  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/boot/grub/                                 0000777 0000000 0000000 00000000000 11524350525 024514  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/VM_configuration/boot/grub/grub.conf                        0000644 0000000 0000000 00000002217 11524350525 026320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/idleserver/VM_configuration/rpmpkgs.txt                                0000644 0000000 0000000 00000067153 11524350544 025047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/idleserver/VM_configuration/ifconfig.txt                               0000644 0000000 0000000 00000001573 11524350542 025140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:3A  
          inet addr:10.1.217.58  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe91:3a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22844 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2704 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1931154 (1.8 MiB)  TX bytes:804828 (785.9 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:741 errors:0 dropped:0 overruns:0 frame:0
          TX packets:741 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:72600 (70.8 KiB)  TX bytes:72600 (70.8 KiB)

                                                                                                                                     Virtual_Configuration/tile10/idleserver/VM_configuration/chkconfig.txt                              0000644 0000000 0000000 00000006535 11524350526 025314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile10/idleserver/Software_Configuration/                                     0000777 0000000 0000000 00000000000 11524350525 024022  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/                                                             0000777 0000000 0000000 00000000000 11524350466 017210  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/                                            0000777 0000000 0000000 00000000000 11524350505 022453  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/proc/                                       0000777 0000000 0000000 00000000000 11524350504 023415  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/proc/cpuinfo                                0000644 0000000 0000000 00000002030 11524350504 024772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/appserver/VM_configuration/proc/mounts                                 0000644 0000000 0000000 00000001357 11524350504 024667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1278676k,nr_inodes=319669,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1315,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1315,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/appserver/VM_configuration/proc/swaps                                  0000644 0000000 0000000 00000000144 11524350504 024470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/appserver/VM_configuration/proc/devices                                0000644 0000000 0000000 00000000567 11524350504 024766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile10/appserver/VM_configuration/proc/modules                                0000644 0000000 0000000 00000002621 11524350504 025005  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 65 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile10/appserver/VM_configuration/proc/partitions                             0000644 0000000 0000000 00000000260 11524350504 025526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile10/appserver/VM_configuration/proc/meminfo                                0000644 0000000 0000000 00000002222 11524350504 024764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2571688 kB
MemFree:          460748 kB
Buffers:           38088 kB
Cached:           245016 kB
SwapCached:            0 kB
Active:          1785072 kB
Inactive:         189720 kB
Active(anon):    1691880 kB
Inactive(anon):        0 kB
Active(file):      93192 kB
Inactive(file):   189720 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               148 kB
Writeback:             0 kB
AnonPages:       1691560 kB
Mapped:            76324 kB
Shmem:               160 kB
Slab:             102408 kB
SReclaimable:      35368 kB
SUnreclaim:        67040 kB
KernelStack:        2696 kB
PageTables:         7048 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3333836 kB
Committed_AS:     387544 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19244 kB
VmallocChunk:   34359711668 kB
HardwareCorrupted:     0 kB
AnonHugePages:   1478656 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2613248 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/appserver/VM_configuration/root/                                       0000777 0000000 0000000 00000000000 11524350505 023436  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/root/convert_to_vf.sh                       0000755 0000000 0000000 00000001135 11524350505 026646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/lspci.txt                                   0000644 0000000 0000000 00000001211 11524350504 024314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/appserver/VM_configuration/df.txt                                      0000644 0000000 0000000 00000000401 11524350466 023602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8772068   4008868  69% /
tmpfs                  1285844         0   1285844   0% /dev/shm
/dev/vdb1             20642412   2027204  17566636  11% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/appserver/VM_configuration/mount.txt                                   0000644 0000000 0000000 00000000612 11524350504 024350  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile10/appserver/VM_configuration/etc/                                        0000777 0000000 0000000 00000000000 11524350503 023224  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/                                   0000777 0000000 0000000 00000000000 11524350476 024063  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/                             0000777 0000000 0000000 00000000000 11524350503 024763  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests            0000755 0000000 0000000 00000017172 11524350476 030166  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                   0000755 0000000 0000000 00000004325 11524350476 026604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                0000755 0000000 0000000 00000006014 11524350477 027373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                  0000755 0000000 0000000 00000012327 11524350500 026757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                 0000755 0000000 0000000 00000005222 11524350502 027144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                      0000755 0000000 0000000 00000010671 11524350503 026150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                     0000755 0000000 0000000 00000006364 11524350477 026334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                 0000755 0000000 0000000 00000020716 11524350500 027067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                      0000755 0000000 0000000 00000004731 11524350500 026146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon              0000755 0000000 0000000 00000004754 11524350476 027536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                 0000755 0000000 0000000 00000001364 11524350503 027167  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                     0000755 0000000 0000000 00000003027 11524350500 026304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                    0000755 0000000 0000000 00000006743 11524350503 026510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                     0000755 0000000 0000000 00000010777 11524350500 026311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                0000755 0000000 0000000 00000004230 11524350502 027330  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                     0000755 0000000 0000000 00000006302 11524350500 026260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                       0000755 0000000 0000000 00000004236 11524350503 026003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                   0000755 0000000 0000000 00000004031 11524350501 026611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                0000755 0000000 0000000 00000003521 11524350501 027274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                   0000755 0000000 0000000 00000006050 11524350502 026647  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                   0000755 0000000 0000000 00000002363 11524350500 026715  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                0000755 0000000 0000000 00000004054 11524350476 027342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                 0000755 0000000 0000000 00000005013 11524350502 027204  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                     0000755 0000000 0000000 00000003213 11524350500 026277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                   0000755 0000000 0000000 00000003512 11524350477 026646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                      0000755 0000000 0000000 00000003603 11524350477 026154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                    0000755 0000000 0000000 00000011277 11524350477 026501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S10network                   0000755 0000000 0000000 00000014466 11524350501 026673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                   0000755 0000000 0000000 00000004326 11524350501 026700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                    0000755 0000000 0000000 00000006462 11524350501 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                     0000755 0000000 0000000 00000027662 11524350502 026326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                      0000755 0000000 0000000 00000006445 11524350477 026057  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                 0000755 0000000 0000000 00000003245 11524350502 027133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K60crond                     0000755 0000000 0000000 00000005445 11524350477 026315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                     0000755 0000000 0000000 00000005522 11524350476 026316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl             0000755 0000000 0000000 00000002221 11524350500 027770  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                 0000755 0000000 0000000 00000004010 11524350477 027156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                       0000755 0000000 0000000 00000013536 11524350477 025776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                      0000755 0000000 0000000 00000004723 11524350503 026130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                    0000755 0000000 0000000 00000003024 11524350476 026446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                     0000755 0000000 0000000 00000003275 11524350502 026266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                  0000755 0000000 0000000 00000025442 11524350501 027011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                 0000755 0000000 0000000 00000004370 11524350502 027131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S99local                     0000755 0000000 0000000 00000000334 11524350503 026304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                   0000755 0000000 0000000 00000006675 11524350501 026650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                0000755 0000000 0000000 00000005650 11524350477 027356  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor              0000555 0000000 0000000 00000004612 11524350501 027536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                    0000755 0000000 0000000 00000007234 11524350503 026511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                  0000755 0000000 0000000 00000003433 11524350503 027042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                    0000755 0000000 0000000 00000005672 11524350476 026476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                     0000755 0000000 0000000 00000003254 11524350503 026302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                 0000755 0000000 0000000 00000005063 11524350503 027156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                     0000755 0000000 0000000 00000012432 11524350502 026317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                   0000755 0000000 0000000 00000007414 11524350477 026677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                  0000755 0000000 0000000 00000020557 11524350500 027004  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond               0000755 0000000 0000000 00000003427 11524350500 027531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/rc3.d/K05atd                       0000755 0000000 0000000 00000004112 11524350476 025744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/                            0000777 0000000 0000000 00000000000 11524350475 025247  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/network                     0000755 0000000 0000000 00000014466 11524350473 026673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/gfs2                        0000755 0000000 0000000 00000006445 11524350471 026037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/sysstat                     0000755 0000000 0000000 00000002363 11524350475 026707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/saslauthd                   0000755 0000000 0000000 00000004010 11524350475 027154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/messagebus                  0000755 0000000 0000000 00000004230 11524350472 027323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/autobench                   0000755 0000000 0000000 00000005063 11524350470 027140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/atd                         0000755 0000000 0000000 00000004112 11524350470 025732  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/mcelogd                     0000755 0000000 0000000 00000003535 11524350472 026606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/auditd                      0000755 0000000 0000000 00000006462 11524350470 026446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/certmonger                  0000755 0000000 0000000 00000004054 11524350470 027334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/irqbalance                  0000755 0000000 0000000 00000003521 11524350472 027270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/acpid                       0000755 0000000 0000000 00000003275 11524350470 026253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/nscd                        0000755 0000000 0000000 00000004723 11524350473 026124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                   0000755 0000000 0000000 00000005222 11524350474 027134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/nfs                         0000755 0000000 0000000 00000013536 11524350473 025765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/sssd                        0000755 0000000 0000000 00000004731 11524350475 026152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/crond                       0000755 0000000 0000000 00000005445 11524350471 026302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/ip6tables                   0000755 0000000 0000000 00000020716 11524350471 027064  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/autofs                      0000755 0000000 0000000 00000007234 11524350470 026473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/sshd                        0000755 0000000 0000000 00000010671 11524350475 026137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/ksm                         0000755 0000000 0000000 00000004236 11524350472 025765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/libvirt-guests              0000755 0000000 0000000 00000017172 11524350472 030161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                0000755 0000000 0000000 00000004754 11524350470 027527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/ypbind                      0000755 0000000 0000000 00000011277 11524350476 026467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/psacct                      0000755 0000000 0000000 00000003024 11524350474 026444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/xinetd                      0000755 0000000 0000000 00000006743 11524350475 026476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/nfslock                     0000755 0000000 0000000 00000006675 11524350473 026644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/cgred                       0000755 0000000 0000000 00000006302 11524350470 026251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/migrateip                   0000755 0000000 0000000 00000001364 11524350473 027154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/udev-post                   0000755 0000000 0000000 00000004370 11524350475 027123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/haldaemon                   0000755 0000000 0000000 00000003245 11524350471 027121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/ipsec                       0000755 0000000 0000000 00000010777 11524350471 026304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/rpcbind                     0000755 0000000 0000000 00000004031 11524350474 026607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/rhnsd                       0000755 0000000 0000000 00000005522 11524350474 026312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/functions                   0000644 0000000 0000000 00000042767 11524350471 027212  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/kdump                       0000755 0000000 0000000 00000027662 11524350472 026323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/postfix                     0000755 0000000 0000000 00000007414 11524350474 026672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/iptables                    0000755 0000000 0000000 00000020557 11524350472 027002  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/rsyslog                     0000755 0000000 0000000 00000004326 11524350475 026700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/netconsole                  0000755 0000000 0000000 00000005650 11524350473 027346  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/rpcgssd                     0000755 0000000 0000000 00000006050 11524350474 026636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/abrtd                       0000755 0000000 0000000 00000003254 11524350470 026264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                0000555 0000000 0000000 00000004612 11524350472 027534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/halt                        0000755 0000000 0000000 00000012723 11524350471 026122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/cgconfig                    0000755 0000000 0000000 00000012327 11524350470 026750  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/single                      0000755 0000000 0000000 00000001207 11524350475 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/mdmonitor                   0000755 0000000 0000000 00000005013 11524350472 027175  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/restorecond                 0000755 0000000 0000000 00000003427 11524350474 027525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/cpuspeed                    0000755 0000000 0000000 00000025442 11524350471 027004  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/netfs                       0000755 0000000 0000000 00000012432 11524350473 026310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                  0000755 0000000 0000000 00000006014 11524350475 027353  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/oddjobd                     0000755 0000000 0000000 00000004325 11524350474 026601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/ksmtuned                    0000755 0000000 0000000 00000003433 11524350472 027023  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/sandbox                     0000755 0000000 0000000 00000003242 11524350475 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/killall                     0000755 0000000 0000000 00000001214 11524350472 026610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/rdisc                       0000755 0000000 0000000 00000003027 11524350474 026276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/httpd                       0000755 0000000 0000000 00000006364 11524350471 026321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/ntpd                        0000755 0000000 0000000 00000003603 11524350473 026136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/smartd                      0000755 0000000 0000000 00000005672 11524350475 026475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/nslcd                       0000755 0000000 0000000 00000003213 11524350473 026271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/ntpdate                     0000755 0000000 0000000 00000003512 11524350474 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile10/appserver/VM_configuration/etc/rc.d/init.d/microcode_ctl               0000755 0000000 0000000 00000002221 11524350473 027772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/appserver/VM_configuration/etc/hosts                                   0000644 0000000 0000000 00000000267 11524350467 024321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/appserver/VM_configuration/etc/iproute2/                               0000777 0000000 0000000 00000000000 11524350467 025006  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/etc/iproute2/rt_dsfield                     0000644 0000000 0000000 00000000672 11524350467 027051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile10/appserver/VM_configuration/etc/iproute2/rt_realms                      0000644 0000000 0000000 00000000160 11524350467 026712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile10/appserver/VM_configuration/etc/iproute2/rt_scopes                      0000644 0000000 0000000 00000000134 11524350467 026724  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/appserver/VM_configuration/etc/iproute2/ematch_map                     0000644 0000000 0000000 00000000073 11524350467 027023  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/appserver/VM_configuration/etc/iproute2/rt_tables                      0000644 0000000 0000000 00000000127 11524350467 026704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/appserver/VM_configuration/etc/iproute2/rt_protos                      0000644 0000000 0000000 00000000475 11524350467 026766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/etc/nsswitch.conf                           0000644 0000000 0000000 00000003230 11524350467 025740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/appserver/VM_configuration/etc/fstab                                   0000644 0000000 0000000 00000001603 11524350466 024252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile10/appserver/VM_configuration/etc/sysctl.conf                             0000644 0000000 0000000 00000001466 11524350503 025417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile10/appserver/VM_configuration/etc/inittab                                 0000644 0000000 0000000 00000001564 11524350467 024614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile10/appserver/VM_configuration/var/                                        0000777 0000000 0000000 00000000000 11524350505 023243  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/var/log/                                    0000777 0000000 0000000 00000000000 11524350505 024024  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/var/log/dmesg                               0000644 0000000 0000000 00000044274 11524350505 025055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000009fffd000 (usable)
 BIOS-e820: 000000009fffd000 - 00000000a0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x9fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000009fffd000
 0000000000 - 009fe00000 page 2M
 009fe00000 - 009fffd000 page 4k
kernel direct mapping tables up to 9fffd000 @ 8000-d000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 000000009fffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000009ffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000009fffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000009ffffdc0 00040
ACPI: SSDT 000000009fffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000009fffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000009fffd000
Bootmem setup node 0 0000000000000000-000000009fffd000
  NODE_DATA [000000000000b000 - 000000000003efff]
  bootmap [000000000003f000 -  0000000000052fff] pages 14
(7 early reservations) ==> bootmem [0000000000 - 009fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000b000]          PGTABLE ==> [0000008000 - 000000b000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00023fffff] PMD -> [ffff880002200000-ffff8800045fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0009fffd
On node 0 totalpages: 655254
  DMA zone: 56 pages used for memmap
  DMA zone: 107 pages reserved
  DMA zone: 3830 pages, LIFO batch:0
  DMA32 zone: 8904 pages used for memmap
  DMA32 zone: 642357 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at a0000000 (gap: a0000000:5ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 646187
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2557352k/2621428k available (4935k kernel code, 412k absent, 63664k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 26214400 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (13867.27 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116104.306:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 5020
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:43 UTC (1297116103)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
d2:d5:73:ac:f8:ac
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/appserver/VM_configuration/boot/                                       0000777 0000000 0000000 00000000000 11524350466 023424  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/boot/grub/                                  0000777 0000000 0000000 00000000000 11524350466 024363  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/boot/grub/grub.conf                         0000644 0000000 0000000 00000001352 11524350466 026166  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/appserver/VM_configuration/rpmpkgs.txt                                 0000644 0000000 0000000 00000067153 11524350505 024707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/appserver/VM_configuration/ifconfig.txt                                0000644 0000000 0000000 00000002355 11524350504 025000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:38  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:260 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:25646 (25.0 KiB)  TX bytes:1006 (1006.0 b)

eth1      Link encap:Ethernet  HWaddr D2:D5:73:AC:F8:AC  
          inet addr:10.1.217.56  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::d0d5:73ff:feac:f8ac/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18328471 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38292383 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5115138083 (4.7 GiB)  TX bytes:41658486787 (38.7 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:657351 errors:0 dropped:0 overruns:0 frame:0
          TX packets:657351 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:106917492 (101.9 MiB)  TX bytes:106917492 (101.9 MiB)

                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/VM_configuration/chkconfig.txt                               0000644 0000000 0000000 00000006535 11524350466 025162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile10/appserver/Software_Configuration/                                      0000777 0000000 0000000 00000000000 11524350466 023671  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/Software_Configuration/AppSrv01/                             0000777 0000000 0000000 00000000000 11524350465 025244  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/Software_Configuration/AppSrv01/server.xml                   0000644 0000000 0000000 00000103647 11524350466 027304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   <?xml version="1.0" encoding="UTF-8"?>
<process:Server xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:adminservice="http://www.ibm.com/websphere/appserver/schemas/5.0/adminservice.xmi" xmlns:applicationserver="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.xmi" xmlns:applicationserver.ejbcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.xmi" xmlns:applicationserver.ejbcontainer.messagelistener="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.messagelistener.xmi" xmlns:applicationserver.sipcontainer="www.ibm.com/websphere/appserver/schemas/7.0/applicationserver.sipcontainer.xmi" xmlns:applicationserver.webcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.webcontainer.xmi" xmlns:channelservice="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.xmi" xmlns:channelservice.channels="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.channels.xmi" xmlns:coregroupbridgeservice="http://www.ibm.com/websphere/appserver/schemas/6.0/coregroupbridgeservice.xmi" xmlns:diagnosticproviderservice="http://www.ibm.com/websphere/appserver/schemas/5.0/diagnosticproviderservice.xmi" xmlns:loggingservice.http="http://www.ibm.com/websphere/appserver/schemas/6.0/loggingservice.http.xmi" xmlns:loggingservice.ras="http://www.ibm.com/websphere/appserver/schemas/5.0/loggingservice.ras.xmi" xmlns:namingserver="http://www.ibm.com/websphere/appserver/schemas/5.0/namingserver.xmi" xmlns:orb="http://www.ibm.com/websphere/appserver/schemas/5.0/orb.xmi" xmlns:pmiservice="http://www.ibm.com/websphere/appserver/schemas/5.0/pmiservice.xmi" xmlns:portletcontainer="http://www.ibm.com/websphere/appserver/schemas/6.0/portletcontainer.xmi" xmlns:process="http://www.ibm.com/websphere/appserver/schemas/5.0/process.xmi" xmlns:processexec="http://www.ibm.com/websphere/appserver/schemas/5.0/processexec.xmi" xmlns:sibresources="http://www.ibm.com/websphere/appserver/schemas/6.0/sibresources.xmi" xmlns:threadpoolmanager="http://www.ibm.com/websphere/appserver/schemas/6.0/threadpoolmanager.xmi" xmlns:tperfviewer="http://www.ibm.com/websphere/appserver/schemas/6.0/tperfviewer.xmi" xmlns:traceservice="http://www.ibm.com/websphere/appserver/schemas/5.0/traceservice.xmi" xmi:id="Server_1183122130078" name="server1" parallelStartEnabled="true">
  <stateManagement xmi:id="StateManageable_1183122130078" initialState="START"/>
  <statisticsProvider xmi:id="StatisticsProvider_1183122130078" specification="com.ibm.orb=enabled"/>
  <services xmi:type="pmiservice:PMIService" xmi:id="PMIService_1183122130078" enable="false" initialSpecLevel="" statisticSet="basic" synchronizedUpdate="false"/>
  <services xmi:type="adminservice:AdminService" xmi:id="AdminService_1183122130078" enable="true" standalone="true" localAdminProtocol="IPCConnector_1" remoteAdminProtocol="SOAPConnector_1">
    <connectors xmi:type="adminservice:SOAPConnector" xmi:id="SOAPConnector_1" enable="true">
      <properties xmi:id="Property_3" name="requestTimeout" value="600"/>
    </connectors>
    <connectors xmi:type="adminservice:RMIConnector" xmi:id="RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:JSR160RMIConnector" xmi:id="JSR160RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:IPCConnector" xmi:id="IPCConnector_1" enable="true">
      <properties xmi:id="Property_4" name="requestTimeout" value="600"/>
    </connectors>
    <configRepository xmi:id="RepositoryService_1183122130078"/>
    <pluginConfigService xmi:id="PluginConfigService_1183122130078" enable="true"/>
  </services>
  <services xmi:type="traceservice:TraceService" xmi:id="TraceService_1183122130078" enable="false" startupTraceSpecification="*=all=disabled" traceOutputType="SPECIFIED_FILE" traceFormat="BASIC" memoryBufferSize="8">
    <traceLog xmi:id="TraceLog_1183122130078" fileName="${SERVER_LOG_ROOT}/trace.log" rolloverSize="100" maxNumberOfBackupFiles="10"/>
  </services>
  <services xmi:type="diagnosticproviderservice:DiagnosticProviderService" xmi:id="DiagnosticProviderService_1183122130078" enable="true" startupStateCollectionSpec=".*:.*=0"/>
  <services xmi:type="loggingservice.ras:RASLoggingService" xmi:id="RASLoggingService_1183122130078" enable="true" messageFilterLevel="NONE" enableCorrelationId="true">
    <serviceLog xmi:id="ServiceLog_1183122130078" name="${LOG_ROOT}/activity.log" size="2" enabled="true"/>
  </services>
  <services xmi:type="coregroupbridgeservice:CoreGroupBridgeService" xmi:id="CoreGroupBridgeService_1183122130078" enable="true"/>
  <services xmi:type="tperfviewer:TPVService" xmi:id="TPVService_1183122130078" enable="true"/>
  <services xmi:type="orb:ObjectRequestBroker" xmi:id="ObjectRequestBroker_1183122130078" enable="true" requestTimeout="180" requestRetriesCount="1" requestRetriesDelay="0" connectionCacheMaximum="240" connectionCacheMinimum="100" commTraceEnabled="false" locateRequestTimeout="180" forceTunnel="never" noLocalCopies="false" useServerThreadPool="true">
    <properties xmi:id="Property_1183122130079" name="com.ibm.CORBA.enableLocateRequest" value="true"/>
    <properties xmi:id="Property_1183122130080" name="com.ibm.ws.orb.transport.WSSSLServerSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLServerSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130081" name="com.ibm.ws.orb.transport.WSSSLClientSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130082" name="com.ibm.CORBA.ConnectionInterceptorName" value="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor"/>
    <properties xmi:id="Property_1183122130083" name="com.ibm.CORBA.RasManager" value="com.ibm.websphere.ras.WsOrbRasManager"/>
    <properties xmi:id="Property_1183122130084" name="com.ibm.ws.orb.transport.useMultiHome" value="true"/>
    <properties xmi:id="Property_1183122130085" name="com.ibm.websphere.management.registerServerIORWithLSD" value="true"/>
    <interceptors xmi:id="Interceptor_1183122130078" name="com.ibm.ejs.ras.RasContextSupport"/>
    <interceptors xmi:id="Interceptor_1183122130079" name="com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRequestInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130080" name="com.ibm.ws.Transaction.JTS.TxInterceptorInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130081" name="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityComponentFactory"/>
    <interceptors xmi:id="Interceptor_1183122130082" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ServerRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130083" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ClientRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130084" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIClientRI"/>
    <interceptors xmi:id="Interceptor_1183122130085" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRI"/>
    <interceptors xmi:id="Interceptor_1183122130086" name="com.ibm.ws.wlm.client.WLMClientInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130087" name="com.ibm.ws.wlm.server.WLMServerInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130088" name="com.ibm.ws.activity.remote.cos.ActivityServiceServerInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130089" name="com.ibm.debug.DebugPortableInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130090" name="com.ibm.debug.olt.ivbtrjrt.OLT_RI"/>
    <plugins xmi:id="ORBPlugin_1183122130078" name="com.ibm.ws.orbimpl.transport.WSTransport"/>
    <plugins xmi:id="ORBPlugin_1183122130079" name="com.ibm.ISecurityUtilityImpl.SecurityPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130080" name="com.ibm.ws.orbimpl.WSORBPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130081" name="com.ibm.ws.wlm.client.WLMClient"/>
    <plugins xmi:id="ORBPlugin_1183122130082" name="com.ibm.ws.pmi.server.modules.OrbPerfModule"/>
    <plugins xmi:id="ORBPlugin_1183122130083" name="com.ibm.ws.csi.CORBAORBMethodAccessControl"/>
    <threadPool xmi:id="ThreadPool_1183122130078" minimumSize="13" maximumSize="13" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
  </services>
  <services xmi:type="channelservice:TransportChannelService" xmi:id="TransportChannelService_1183122130078" enable="true">
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130078" name="TCP_1" endPointName="WC_adminhost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130079" name="TCP_2" endPointName="WC_defaulthost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130080" name="TCP_3" endPointName="WC_adminhost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130081" name="TCP_4" endPointName="WC_defaulthost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130082" name="TCP_5" endPointName="DCS_UNICAST_ADDRESS" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130080"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130083" name="TCP_8" discriminationWeight="0" endPointName="SIP_DEFAULTHOST" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130084" name="TCP_9" discriminationWeight="0" endPointName="SIP_DEFAULTHOST_SECURE" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130078" name="SSL_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130079" name="SSL_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130080" name="SSL_3" discriminationWeight="2"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130081" name="SSL_5" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130078" name="HTTP_1" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130079" name="HTTP_2" discriminationWeight="1" maximumPersistentRequests="-1" keepAlive="true" readTimeout="6000" writeTimeout="6000" persistentTimeout="3000" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130080" name="HTTP_3" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130081" name="HTTP_4" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130078" name="HTTPQ_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130079" name="HTTPQ_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130078" name="WCC_1" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130079" name="WCC_2" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130080" name="WCC_3" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130081" name="WCC_4" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130082" name="WCC_5" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130083" name="WCC_6" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130078" name="DCS_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130079" name="DCS_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130078" name="SIP_1" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130079" name="SIP_2" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130080" name="SIP_3" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130078" name="SIPCC_1" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130079" name="SIPCC_2" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130080" name="SIPCC_3" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:UDPInboundChannel" xmi:id="UDPInboundChannel_1183122130078" name="UDP_1" discriminationWeight="0" endPointName="SIP_DEFAULTHOST"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130085" name="SIB_TCP_JFAP" endPointName="SIB_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130086" name="SIB_TCP_JFAP_SSL" endPointName="SIB_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130087" name="SIB_TCP_MQFAP" endPointName="SIB_MQ_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130088" name="SIB_TCP_MQFAP_SSL" endPointName="SIB_MQ_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130082" name="SIB_SSL_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130083" name="SIB_SSL_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130078" name="SIB_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130079" name="SIB_JFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130078" name="SIB_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130079" name="SIB_MQFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130078" name="SIB_TCP_JFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130079" name="SIB_TCP_JFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130080" name="SIB_TCP_JFAP_TUN_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130081" name="SIB_TCP_JFAP_TUN_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130082" name="SIB_TCP_MQFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130083" name="SIB_TCP_MQFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130078" name="SIB_SSL_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130079" name="SIB_SSL_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130080" name="SIB_SSL_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130078" name="SIB_HTTP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130079" name="SIB_HTTP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130078" name="SIB_HTC_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130079" name="SIB_HTC_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130078" name="SIB_JFAP_JFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130079" name="SIB_JFAP_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130080" name="SIB_JFAP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130081" name="SIB_JFAP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130078" name="SIB_MQFAP_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130079" name="SIB_MQFAP_MQFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130084" name="SIB_TCP_RMQ_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130085" name="SIB_TCP_RMQ_SSL_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130081" name="SIB_SSL_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130078" name="SIB_RMQ_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130079" name="SIB_RMQ_RMQ_OUT"/>
    <chains xmi:id="Chain_1183122130078" name="WCInboundAdmin" enable="true" transportChannels="TCPInboundChannel_1183122130078 HTTPInboundChannel_1183122130078 WebContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130079" name="WCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 WebContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130080" name="HttpQueueInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 HTTPQueueInboundChannel_1183122130078 WebContainerInboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130081" name="HttpQueueInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 HTTPQueueInboundChannel_1183122130079 WebContainerInboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130082" name="WCInboundAdminSecure" enable="true" transportChannels="TCPInboundChannel_1183122130080 SSLInboundChannel_1183122130078 HTTPInboundChannel_1183122130080 WebContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130083" name="WCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 WebContainerInboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130084" name="DCS" enable="true" transportChannels="TCPInboundChannel_1183122130082 DCSInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130085" name="DCS-Secure" enable="true" transportChannels="TCPInboundChannel_1183122130082 SSLInboundChannel_1183122130080 DCSInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130086" name="SIPCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130083 SIPInboundChannel_1183122130078 SIPContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130087" name="SIPCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130084 SSLInboundChannel_1183122130081 SIPInboundChannel_1183122130079 SIPContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130088" name="SIPCInboundDefaultUDP" enable="true" transportChannels="UDPInboundChannel_1183122130078 SIPInboundChannel_1183122130080 SIPContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130089" name="InboundBasicMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130085 JFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130090" name="InboundSecureMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130086 SSLInboundChannel_1183122130082 JFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130091" name="InboundBasicMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130087 MQFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130092" name="InboundSecureMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130088 SSLInboundChannel_1183122130083 MQFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130093" name="BootstrapBasicMessaging" transportChannels="JFAPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130094" name="BootstrapSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130079 TCPOutboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130095" name="BootstrapTunneledMessaging" transportChannels="JFAPOutboundChannel_1183122130080 HTTPTunnelOutboundChannel_1183122130078 HTTPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130096" name="BootstrapTunneledSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130081 HTTPTunnelOutboundChannel_1183122130079 HTTPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130080 TCPOutboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130097" name="OutboundBasicMQLink" transportChannels="MQFAPOutboundChannel_1183122130079 TCPOutboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130098" name="OutboundSecureMQLink" transportChannels="MQFAPOutboundChannel_1183122130078 SSLOutboundChannel_1183122130078 TCPOutboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130099" name="OutboundBasicWMQClient" transportChannels="RMQOutboundChannel_1183122130079 TCPOutboundChannel_1183122130084"/>
    <chains xmi:id="Chain_1183122130100" name="OutboundSecureWMQClient" transportChannels="RMQOutboundChannel_1183122130078 SSLOutboundChannel_1183122130081 TCPOutboundChannel_1183122130085"/>
  </services>
  <services xmi:type="threadpoolmanager:ThreadPoolManager" xmi:id="ThreadPoolManager_1183122130078" enable="true">
    <threadPools xmi:id="ThreadPool_1183122130083" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
    <threadPools xmi:id="ThreadPool_1183122130084" minimumSize="1" maximumSize="3" inactivityTimeout="30000" isGrowable="false" name="server.startup" description="This pool is used by WebSphere during server startup."/>
    <threadPools xmi:id="ThreadPool_1183122130085" minimumSize="15" maximumSize="15" inactivityTimeout="3500" name="Default"/>
    <threadPools xmi:id="ThreadPool_1183122130079" minimumSize="38" maximumSize="38" inactivityTimeout="3500" isGrowable="false" name="WebContainer"/>
    <threadPools xmi:id="ThreadPool_1183122130080" minimumSize="5" maximumSize="20" name="TCPChannel.DCS"/>
    <threadPools xmi:id="ThreadPool_1183122130081" minimumSize="4" maximumSize="50" name="SIBFAPInboundThreadPool" description="Service integration bus FAP inbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1183122130082" minimumSize="4" maximumSize="50" name="SIBFAPThreadPool" description="Service integration bus FAP outbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1265156361721" minimumSize="35" maximumSize="41" inactivityTimeout="3500" name="SIBJMSRAThreadPool" description="Service Integration Bus JMS Resource Adapter thread pool"/>
    <threadPools xmi:id="ThreadPool_1265156361827" minimumSize="1" maximumSize="40" name="WMQCommonServices" description="WebSphere MQ common services thread pool">
      <customProperties xmi:id="Property_1265156361829" name="com.ibm.websphere.threadpool.disableHungThreadDetection" value="true" required="false"/>
    </threadPools>
    <threadPools xmi:id="ThreadPool_1265156361831" minimumSize="5" maximumSize="25" name="WMQJCAResourceAdapter" description="wmqJcaRaThreadPoolDescription"/>
  </services>
  <services xmi:type="loggingservice.http:HTTPAccessLoggingService" xmi:id="HTTPAccessLoggingService_1183122130078" enable="false" enableErrorLogging="true" enableAccessLogging="true">
    <errorLog xmi:id="LogFile_1183122130078" filePath="${SERVER_LOG_ROOT}/http_error.log" maximumSize="500"/>
    <accessLog xmi:id="LogFile_1183122130079" filePath="${SERVER_LOG_ROOT}/http_access.log" maximumSize="500"/>
  </services>
  <errorStreamRedirect xmi:id="StreamRedirect_1183122130078" fileName="${SERVER_LOG_ROOT}/SystemErr.log" rolloverType="NONE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <outputStreamRedirect xmi:id="StreamRedirect_1183122130079" fileName="${SERVER_LOG_ROOT}/SystemOut.log" rolloverType="NONE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <components xmi:type="namingserver:NameServer" xmi:id="NameServer_1183122130078">
    <stateManagement xmi:id="StateManageable_1183122130079" initialState="START"/>
  </components>
  <components xmi:type="applicationserver:ApplicationServer" xmi:id="ApplicationServer_1183122130078" applicationClassLoaderPolicy="MULTIPLE">
    <stateManagement xmi:id="StateManageable_1183122130080" initialState="START"/>
    <services xmi:type="applicationserver:TransactionService" xmi:id="TransactionService_1183122130078" enable="true" totalTranLifetimeTimeout="0" clientInactivityTimeout="0" propogatedOrBMTTranLifetimeTimeout="300" httpProxyPrefix="" httpsProxyPrefix=""/>
    <services xmi:type="applicationserver:DynamicCache" xmi:id="DynamicCache_1183122130078" enable="true">
      <cacheGroups xmi:id="ExternalCacheGroup_1183122130078" name="EsiInvalidator">
        <members xmi:id="ExternalCacheGroupMember_1183122130078" address="localhost" adapterBeanName="com.ibm.websphere.servlet.cache.ESIInvalidatorServlet"/>
      </cacheGroups>
    </services>
    <components xmi:type="applicationserver.webcontainer:WebContainer" xmi:id="WebContainer_1183122130078" enableServletCaching="false" disablePooling="false">
      <stateManagement xmi:id="StateManageable_1183122130081" initialState="START"/>
      <services xmi:type="applicationserver.webcontainer:SessionManager" xmi:id="SessionManager_1183122130078" enable="true" enableUrlRewriting="false" enableCookies="true" enableSSLTracking="false" enableProtocolSwitchRewriting="false" sessionPersistenceMode="NONE" enableSecurityIntegration="false" allowSerializedSessionAccess="false" maxWaitTime="5" accessSessionOnTimeout="true">
        <defaultCookieSettings xmi:id="Cookie_1183122130078" domain="" maximumAge="-1" secure="false"/>
        <sessionDatabasePersistence xmi:id="SessionDatabasePersistence_1183122130078" datasourceJNDIName="jdbc/Sessions" userId="db2admin" password="{xor}Oz1tPjsyNjE=" db2RowSize="ROW_SIZE_4KB" tableSpaceName=""/>
        <tuningParams xmi:id="TuningParams_1183122130078" usingMultiRowSchema="false" maxInMemorySessionCount="1000" allowOverflow="true" scheduleInvalidation="false" writeFrequency="TIME_BASED_WRITE" writeInterval="10" writeContents="ONLY_UPDATED_ATTRIBUTES" invalidationTimeout="30">
          <invalidationSchedule xmi:id="InvalidationSchedule_1183122130078" firstHour="14" secondHour="2"/>
        </tuningParams>
      </services>
    </components>
    <components xmi:type="applicationserver.ejbcontainer:EJBContainer" xmi:id="EJBContainer_1183122130078" passivationDirectory="${USER_INSTALL_ROOT}/temp" inactivePoolCleanupInterval="30000">
      <stateManagement xmi:id="StateManageable_1183122130082" initialState="START"/>
      <services xmi:type="applicationserver.ejbcontainer.messagelistener:MessageListenerService" xmi:id="MessageListenerService_1183122130078">
        <threadPool xmi:id="ThreadPool_1183122130086" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="Message.Listener.Pool"/>
      </services>
      <cacheSettings xmi:id="EJBCache_1183122130078" cleanupInterval="3000" cacheSize="60000"/>
      <timerSettings xmi:id="EJBTimer_1183122130078" datasourceJNDIName="jdbc/DefaultEJBTimerDataSource" tablePrefix="EJBTIMER_" pollInterval="300" numAlarmThreads="1"/>
    </components>
    <components xmi:type="portletcontainer:PortletContainer" xmi:id="PortletContainer_1183122130078"/>
    <components xmi:type="applicationserver.sipcontainer:SIPContainer" xmi:id="SIPContainer_1183122130078" name="" maxAppSessions="120000" maxMessageRate="5000" maxDispatchQueueSize="3200" maxResponseTime="0" statAveragePeriod="1000" statUpdateRange="10000">
      <stack xmi:id="Stack_1183122130078">
        <timers xmi:id="Timers_1183122130078"/>
      </stack>
    </components>
    <webserverPluginSettings xmi:id="WebserverPluginSettings_1183122130078" WaitForContinue="false" ConnectTimeout="0" MaxConnections="-1" ExtendedHandshake="false" ServerIOTimeout="0"/>
  </components>
  <processDefinitions xmi:type="processexec:JavaProcessDef" xmi:id="JavaProcessDef_1183122130078" workingDirectory="${USER_INSTALL_ROOT}" executableTargetKind="JAVA_CLASS" executableTarget="com.ibm.ws.runtime.WsServer">
    <execution xmi:id="ProcessExecution_1183122130078" processPriority="20" runAsUser="" runAsGroup=""/>
    <ioRedirect xmi:id="OutputRedirect_1183122130078" stdoutFilename="${SERVER_LOG_ROOT}/native_stdout.log" stderrFilename="${SERVER_LOG_ROOT}/native_stderr.log"/>
    <monitoringPolicy xmi:id="MonitoringPolicy_1183122130078" maximumStartupAttempts="3" pingInterval="60" pingTimeout="300" autoRestart="true" nodeRestartState="STOPPED"/>
    <jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="true" verboseModeJNI="false" initialHeapSize="1280" maximumHeapSize="1280" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777" genericJvmArguments="-Dcom.ibm.CORBA.TransportMode=Pluggable -Dcom.ibm.ws.pm.batch=true -Dcom.ibm.ws.pm.deferredcreate=true -Dcom.ibm.CORBA.FragmentSize=3000 -Dcom.ibm.ws.pm.useLegacyCache=false -Dcom.ibm.ws.pm.grouppartialupdate=true -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XML11Configuration -noclassgc -Xss128k  -Xgcpolicy:gencon -Xmo320m -Xcodecache16m -Xgcthreads4 -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=0">
      <systemProperties xmi:id="Property_1" name="com.ibm.security.jgss.debug" value="off" required="false"/>
      <systemProperties xmi:id="Property_2" name="com.ibm.security.krb5.Krb5Debug" value="off" required="false"/>
    </jvmEntries>
  </processDefinitions>
</process:Server>
                                                                                         Virtual_Configuration/tile10/appserver/Software_Configuration/AppSrv02/                             0000777 0000000 0000000 00000000000 11524350466 025246  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/appserver/Software_Configuration/AppSrv02/server.xml                   0000644 0000000 0000000 00000102162 11524350466 027274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   <?xml version="1.0" encoding="UTF-8"?>
<process:Server xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:adminservice="http://www.ibm.com/websphere/appserver/schemas/5.0/adminservice.xmi" xmlns:applicationserver="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.xmi" xmlns:applicationserver.ejbcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.xmi" xmlns:applicationserver.ejbcontainer.messagelistener="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.messagelistener.xmi" xmlns:applicationserver.sipcontainer="www.ibm.com/websphere/appserver/schemas/7.0/applicationserver.sipcontainer.xmi" xmlns:applicationserver.webcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.webcontainer.xmi" xmlns:channelservice="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.xmi" xmlns:channelservice.channels="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.channels.xmi" xmlns:coregroupbridgeservice="http://www.ibm.com/websphere/appserver/schemas/6.0/coregroupbridgeservice.xmi" xmlns:diagnosticproviderservice="http://www.ibm.com/websphere/appserver/schemas/5.0/diagnosticproviderservice.xmi" xmlns:loggingservice.http="http://www.ibm.com/websphere/appserver/schemas/6.0/loggingservice.http.xmi" xmlns:loggingservice.ras="http://www.ibm.com/websphere/appserver/schemas/5.0/loggingservice.ras.xmi" xmlns:namingserver="http://www.ibm.com/websphere/appserver/schemas/5.0/namingserver.xmi" xmlns:orb="http://www.ibm.com/websphere/appserver/schemas/5.0/orb.xmi" xmlns:pmiservice="http://www.ibm.com/websphere/appserver/schemas/5.0/pmiservice.xmi" xmlns:portletcontainer="http://www.ibm.com/websphere/appserver/schemas/6.0/portletcontainer.xmi" xmlns:process="http://www.ibm.com/websphere/appserver/schemas/5.0/process.xmi" xmlns:processexec="http://www.ibm.com/websphere/appserver/schemas/5.0/processexec.xmi" xmlns:sibresources="http://www.ibm.com/websphere/appserver/schemas/6.0/sibresources.xmi" xmlns:threadpoolmanager="http://www.ibm.com/websphere/appserver/schemas/6.0/threadpoolmanager.xmi" xmlns:tperfviewer="http://www.ibm.com/websphere/appserver/schemas/6.0/tperfviewer.xmi" xmlns:traceservice="http://www.ibm.com/websphere/appserver/schemas/5.0/traceservice.xmi" xmi:id="Server_1183122130078" name="server1">
  <stateManagement xmi:id="StateManageable_1183122130078" initialState="START"/>
  <statisticsProvider xmi:id="StatisticsProvider_1183122130078" specification="com.ibm.orb=enabled"/>
  <services xmi:type="pmiservice:PMIService" xmi:id="PMIService_1183122130078" enable="true" initialSpecLevel="" statisticSet="basic" synchronizedUpdate="false"/>
  <services xmi:type="adminservice:AdminService" xmi:id="AdminService_1183122130078" enable="true" standalone="true" localAdminProtocol="IPCConnector_1" remoteAdminProtocol="SOAPConnector_1">
    <connectors xmi:type="adminservice:SOAPConnector" xmi:id="SOAPConnector_1" enable="true">
      <properties xmi:id="Property_3" name="requestTimeout" value="600"/>
    </connectors>
    <connectors xmi:type="adminservice:RMIConnector" xmi:id="RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:JSR160RMIConnector" xmi:id="JSR160RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:IPCConnector" xmi:id="IPCConnector_1" enable="true">
      <properties xmi:id="Property_4" name="requestTimeout" value="600"/>
    </connectors>
    <configRepository xmi:id="RepositoryService_1183122130078"/>
    <pluginConfigService xmi:id="PluginConfigService_1183122130078" enable="true"/>
  </services>
  <services xmi:type="traceservice:TraceService" xmi:id="TraceService_1183122130078" enable="true" startupTraceSpecification="*=info" traceOutputType="SPECIFIED_FILE" traceFormat="BASIC" memoryBufferSize="8">
    <traceLog xmi:id="TraceLog_1183122130078" fileName="${SERVER_LOG_ROOT}/trace.log" rolloverSize="20" maxNumberOfBackupFiles="1"/>
  </services>
  <services xmi:type="diagnosticproviderservice:DiagnosticProviderService" xmi:id="DiagnosticProviderService_1183122130078" enable="true" startupStateCollectionSpec=".*:.*=0"/>
  <services xmi:type="loggingservice.ras:RASLoggingService" xmi:id="RASLoggingService_1183122130078" enable="true" messageFilterLevel="NONE" enableCorrelationId="true">
    <serviceLog xmi:id="ServiceLog_1183122130078" name="${LOG_ROOT}/activity.log" size="2" enabled="true"/>
  </services>
  <services xmi:type="coregroupbridgeservice:CoreGroupBridgeService" xmi:id="CoreGroupBridgeService_1183122130078" enable="true"/>
  <services xmi:type="tperfviewer:TPVService" xmi:id="TPVService_1183122130078" enable="true"/>
  <services xmi:type="orb:ObjectRequestBroker" xmi:id="ObjectRequestBroker_1183122130078" enable="true" requestTimeout="180" requestRetriesCount="1" requestRetriesDelay="0" connectionCacheMaximum="240" connectionCacheMinimum="100" commTraceEnabled="false" locateRequestTimeout="180" forceTunnel="never" noLocalCopies="false" useServerThreadPool="false">
    <properties xmi:id="Property_1183122130079" name="com.ibm.CORBA.enableLocateRequest" value="true"/>
    <properties xmi:id="Property_1183122130080" name="com.ibm.ws.orb.transport.WSSSLServerSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLServerSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130081" name="com.ibm.ws.orb.transport.WSSSLClientSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130082" name="com.ibm.CORBA.ConnectionInterceptorName" value="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor"/>
    <properties xmi:id="Property_1183122130083" name="com.ibm.CORBA.RasManager" value="com.ibm.websphere.ras.WsOrbRasManager"/>
    <properties xmi:id="Property_1183122130084" name="com.ibm.ws.orb.transport.useMultiHome" value="true"/>
    <properties xmi:id="Property_1183122130085" name="com.ibm.websphere.management.registerServerIORWithLSD" value="true"/>
    <interceptors xmi:id="Interceptor_1183122130078" name="com.ibm.ejs.ras.RasContextSupport"/>
    <interceptors xmi:id="Interceptor_1183122130079" name="com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRequestInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130080" name="com.ibm.ws.Transaction.JTS.TxInterceptorInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130081" name="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityComponentFactory"/>
    <interceptors xmi:id="Interceptor_1183122130082" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ServerRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130083" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ClientRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130084" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIClientRI"/>
    <interceptors xmi:id="Interceptor_1183122130085" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRI"/>
    <interceptors xmi:id="Interceptor_1183122130086" name="com.ibm.ws.wlm.client.WLMClientInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130087" name="com.ibm.ws.wlm.server.WLMServerInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130088" name="com.ibm.ws.activity.remote.cos.ActivityServiceServerInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130089" name="com.ibm.debug.DebugPortableInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130090" name="com.ibm.debug.olt.ivbtrjrt.OLT_RI"/>
    <plugins xmi:id="ORBPlugin_1183122130078" name="com.ibm.ws.orbimpl.transport.WSTransport"/>
    <plugins xmi:id="ORBPlugin_1183122130079" name="com.ibm.ISecurityUtilityImpl.SecurityPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130080" name="com.ibm.ws.orbimpl.WSORBPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130081" name="com.ibm.ws.wlm.client.WLMClient"/>
    <plugins xmi:id="ORBPlugin_1183122130082" name="com.ibm.ws.pmi.server.modules.OrbPerfModule"/>
    <plugins xmi:id="ORBPlugin_1183122130083" name="com.ibm.ws.csi.CORBAORBMethodAccessControl"/>
    <threadPool xmi:id="ThreadPool_1183122130078" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
  </services>
  <services xmi:type="channelservice:TransportChannelService" xmi:id="TransportChannelService_1183122130078" enable="true">
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130078" name="TCP_1" endPointName="WC_adminhost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130079" name="TCP_2" endPointName="WC_defaulthost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130080" name="TCP_3" endPointName="WC_adminhost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130081" name="TCP_4" endPointName="WC_defaulthost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130082" name="TCP_5" endPointName="DCS_UNICAST_ADDRESS" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130080"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130083" name="TCP_8" discriminationWeight="0" endPointName="SIP_DEFAULTHOST" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130084" name="TCP_9" discriminationWeight="0" endPointName="SIP_DEFAULTHOST_SECURE" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130078" name="SSL_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130079" name="SSL_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130080" name="SSL_3" discriminationWeight="2"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130081" name="SSL_5" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130078" name="HTTP_1" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130079" name="HTTP_2" discriminationWeight="1" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130080" name="HTTP_3" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130081" name="HTTP_4" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130078" name="HTTPQ_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130079" name="HTTPQ_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130078" name="WCC_1" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130079" name="WCC_2" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130080" name="WCC_3" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130081" name="WCC_4" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130082" name="WCC_5" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130083" name="WCC_6" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130078" name="DCS_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130079" name="DCS_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130078" name="SIP_1" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130079" name="SIP_2" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130080" name="SIP_3" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130078" name="SIPCC_1" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130079" name="SIPCC_2" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130080" name="SIPCC_3" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:UDPInboundChannel" xmi:id="UDPInboundChannel_1183122130078" name="UDP_1" discriminationWeight="0" endPointName="SIP_DEFAULTHOST"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130085" name="SIB_TCP_JFAP" endPointName="SIB_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130086" name="SIB_TCP_JFAP_SSL" endPointName="SIB_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130087" name="SIB_TCP_MQFAP" endPointName="SIB_MQ_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130088" name="SIB_TCP_MQFAP_SSL" endPointName="SIB_MQ_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130082" name="SIB_SSL_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130083" name="SIB_SSL_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130078" name="SIB_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130079" name="SIB_JFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130078" name="SIB_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130079" name="SIB_MQFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130078" name="SIB_TCP_JFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130079" name="SIB_TCP_JFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130080" name="SIB_TCP_JFAP_TUN_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130081" name="SIB_TCP_JFAP_TUN_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130082" name="SIB_TCP_MQFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130083" name="SIB_TCP_MQFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130078" name="SIB_SSL_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130079" name="SIB_SSL_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130080" name="SIB_SSL_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130078" name="SIB_HTTP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130079" name="SIB_HTTP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130078" name="SIB_HTC_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130079" name="SIB_HTC_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130078" name="SIB_JFAP_JFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130079" name="SIB_JFAP_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130080" name="SIB_JFAP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130081" name="SIB_JFAP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130078" name="SIB_MQFAP_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130079" name="SIB_MQFAP_MQFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130084" name="SIB_TCP_RMQ_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130085" name="SIB_TCP_RMQ_SSL_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130081" name="SIB_SSL_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130078" name="SIB_RMQ_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130079" name="SIB_RMQ_RMQ_OUT"/>
    <chains xmi:id="Chain_1183122130078" name="WCInboundAdmin" enable="true" transportChannels="TCPInboundChannel_1183122130078 HTTPInboundChannel_1183122130078 WebContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130079" name="WCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 WebContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130080" name="HttpQueueInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 HTTPQueueInboundChannel_1183122130078 WebContainerInboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130081" name="HttpQueueInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 HTTPQueueInboundChannel_1183122130079 WebContainerInboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130082" name="WCInboundAdminSecure" enable="true" transportChannels="TCPInboundChannel_1183122130080 SSLInboundChannel_1183122130078 HTTPInboundChannel_1183122130080 WebContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130083" name="WCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 WebContainerInboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130084" name="DCS" enable="true" transportChannels="TCPInboundChannel_1183122130082 DCSInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130085" name="DCS-Secure" enable="true" transportChannels="TCPInboundChannel_1183122130082 SSLInboundChannel_1183122130080 DCSInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130086" name="SIPCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130083 SIPInboundChannel_1183122130078 SIPContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130087" name="SIPCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130084 SSLInboundChannel_1183122130081 SIPInboundChannel_1183122130079 SIPContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130088" name="SIPCInboundDefaultUDP" enable="true" transportChannels="UDPInboundChannel_1183122130078 SIPInboundChannel_1183122130080 SIPContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130089" name="InboundBasicMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130085 JFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130090" name="InboundSecureMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130086 SSLInboundChannel_1183122130082 JFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130091" name="InboundBasicMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130087 MQFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130092" name="InboundSecureMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130088 SSLInboundChannel_1183122130083 MQFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130093" name="BootstrapBasicMessaging" transportChannels="JFAPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130094" name="BootstrapSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130079 TCPOutboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130095" name="BootstrapTunneledMessaging" transportChannels="JFAPOutboundChannel_1183122130080 HTTPTunnelOutboundChannel_1183122130078 HTTPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130096" name="BootstrapTunneledSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130081 HTTPTunnelOutboundChannel_1183122130079 HTTPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130080 TCPOutboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130097" name="OutboundBasicMQLink" transportChannels="MQFAPOutboundChannel_1183122130079 TCPOutboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130098" name="OutboundSecureMQLink" transportChannels="MQFAPOutboundChannel_1183122130078 SSLOutboundChannel_1183122130078 TCPOutboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130099" name="OutboundBasicWMQClient" transportChannels="RMQOutboundChannel_1183122130079 TCPOutboundChannel_1183122130084"/>
    <chains xmi:id="Chain_1183122130100" name="OutboundSecureWMQClient" transportChannels="RMQOutboundChannel_1183122130078 SSLOutboundChannel_1183122130081 TCPOutboundChannel_1183122130085"/>
  </services>
  <services xmi:type="threadpoolmanager:ThreadPoolManager" xmi:id="ThreadPoolManager_1183122130078" enable="true">
    <threadPools xmi:id="ThreadPool_1183122130083" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
    <threadPools xmi:id="ThreadPool_1183122130084" minimumSize="1" maximumSize="3" inactivityTimeout="30000" isGrowable="false" name="server.startup" description="This pool is used by WebSphere during server startup."/>
    <threadPools xmi:id="ThreadPool_1183122130085" minimumSize="20" maximumSize="20" name="Default"/>
    <threadPools xmi:id="ThreadPool_1183122130079" minimumSize="50" maximumSize="50" inactivityTimeout="60000" isGrowable="false" name="WebContainer"/>
    <threadPools xmi:id="ThreadPool_1183122130080" minimumSize="5" maximumSize="20" name="TCPChannel.DCS"/>
    <threadPools xmi:id="ThreadPool_1183122130081" minimumSize="4" maximumSize="50" name="SIBFAPInboundThreadPool" description="Service integration bus FAP inbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1183122130082" minimumSize="4" maximumSize="50" name="SIBFAPThreadPool" description="Service integration bus FAP outbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1268079912035" minimumSize="35" maximumSize="41" inactivityTimeout="3500" name="SIBJMSRAThreadPool" description="Service Integration Bus JMS Resource Adapter thread pool"/>
    <threadPools xmi:id="ThreadPool_1268079912120" minimumSize="1" maximumSize="40" name="WMQCommonServices" description="WebSphere MQ common services thread pool">
      <customProperties xmi:id="Property_1268079912122" name="com.ibm.websphere.threadpool.disableHungThreadDetection" value="true" required="false"/>
    </threadPools>
    <threadPools xmi:id="ThreadPool_1268079912124" minimumSize="5" maximumSize="25" name="WMQJCAResourceAdapter" description="wmqJcaRaThreadPoolDescription"/>
  </services>
  <services xmi:type="loggingservice.http:HTTPAccessLoggingService" xmi:id="HTTPAccessLoggingService_1183122130078" enable="false" enableErrorLogging="true" enableAccessLogging="true">
    <errorLog xmi:id="LogFile_1183122130078" filePath="${SERVER_LOG_ROOT}/http_error.log" maximumSize="500"/>
    <accessLog xmi:id="LogFile_1183122130079" filePath="${SERVER_LOG_ROOT}/http_access.log" maximumSize="500"/>
  </services>
  <errorStreamRedirect xmi:id="StreamRedirect_1183122130078" fileName="${SERVER_LOG_ROOT}/SystemErr.log" rolloverType="SIZE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <outputStreamRedirect xmi:id="StreamRedirect_1183122130079" fileName="${SERVER_LOG_ROOT}/SystemOut.log" rolloverType="SIZE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <components xmi:type="namingserver:NameServer" xmi:id="NameServer_1183122130078">
    <stateManagement xmi:id="StateManageable_1183122130079" initialState="START"/>
  </components>
  <components xmi:type="applicationserver:ApplicationServer" xmi:id="ApplicationServer_1183122130078" applicationClassLoaderPolicy="MULTIPLE">
    <stateManagement xmi:id="StateManageable_1183122130080" initialState="START"/>
    <services xmi:type="applicationserver:TransactionService" xmi:id="TransactionService_1183122130078" enable="true" totalTranLifetimeTimeout="120" clientInactivityTimeout="60" propogatedOrBMTTranLifetimeTimeout="300" httpProxyPrefix="" httpsProxyPrefix=""/>
    <services xmi:type="applicationserver:DynamicCache" xmi:id="DynamicCache_1183122130078" enable="true">
      <cacheGroups xmi:id="ExternalCacheGroup_1183122130078" name="EsiInvalidator">
        <members xmi:id="ExternalCacheGroupMember_1183122130078" address="localhost" adapterBeanName="com.ibm.websphere.servlet.cache.ESIInvalidatorServlet"/>
      </cacheGroups>
    </services>
    <components xmi:type="applicationserver.webcontainer:WebContainer" xmi:id="WebContainer_1183122130078" enableServletCaching="false" disablePooling="false">
      <stateManagement xmi:id="StateManageable_1183122130081" initialState="START"/>
      <services xmi:type="applicationserver.webcontainer:SessionManager" xmi:id="SessionManager_1183122130078" enable="true" enableUrlRewriting="false" enableCookies="true" enableSSLTracking="false" enableProtocolSwitchRewriting="false" sessionPersistenceMode="NONE" enableSecurityIntegration="false" allowSerializedSessionAccess="false" maxWaitTime="5" accessSessionOnTimeout="true">
        <defaultCookieSettings xmi:id="Cookie_1183122130078" domain="" maximumAge="-1" secure="false"/>
        <sessionDatabasePersistence xmi:id="SessionDatabasePersistence_1183122130078" datasourceJNDIName="jdbc/Sessions" userId="db2admin" password="{xor}Oz1tPjsyNjE=" db2RowSize="ROW_SIZE_4KB" tableSpaceName=""/>
        <tuningParams xmi:id="TuningParams_1183122130078" usingMultiRowSchema="false" maxInMemorySessionCount="1000" allowOverflow="true" scheduleInvalidation="false" writeFrequency="TIME_BASED_WRITE" writeInterval="10" writeContents="ONLY_UPDATED_ATTRIBUTES" invalidationTimeout="30">
          <invalidationSchedule xmi:id="InvalidationSchedule_1183122130078" firstHour="14" secondHour="2"/>
        </tuningParams>
      </services>
    </components>
    <components xmi:type="applicationserver.ejbcontainer:EJBContainer" xmi:id="EJBContainer_1183122130078" passivationDirectory="${USER_INSTALL_ROOT}/temp" inactivePoolCleanupInterval="30000">
      <stateManagement xmi:id="StateManageable_1183122130082" initialState="START"/>
      <services xmi:type="applicationserver.ejbcontainer.messagelistener:MessageListenerService" xmi:id="MessageListenerService_1183122130078">
        <threadPool xmi:id="ThreadPool_1183122130086" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="Message.Listener.Pool"/>
      </services>
      <cacheSettings xmi:id="EJBCache_1183122130078" cleanupInterval="3000" cacheSize="2053"/>
      <timerSettings xmi:id="EJBTimer_1183122130078" datasourceJNDIName="jdbc/DefaultEJBTimerDataSource" tablePrefix="EJBTIMER_" pollInterval="300" numAlarmThreads="1"/>
    </components>
    <components xmi:type="portletcontainer:PortletContainer" xmi:id="PortletContainer_1183122130078"/>
    <components xmi:type="applicationserver.sipcontainer:SIPContainer" xmi:id="SIPContainer_1183122130078" name="" maxAppSessions="120000" maxMessageRate="5000" maxDispatchQueueSize="3200" maxResponseTime="0" statAveragePeriod="1000" statUpdateRange="10000">
      <stack xmi:id="Stack_1183122130078">
        <timers xmi:id="Timers_1183122130078"/>
      </stack>
    </components>
    <webserverPluginSettings xmi:id="WebserverPluginSettings_1183122130078" WaitForContinue="false" ConnectTimeout="0" MaxConnections="-1" ExtendedHandshake="false" ServerIOTimeout="0"/>
  </components>
  <processDefinitions xmi:type="processexec:JavaProcessDef" xmi:id="JavaProcessDef_1183122130078" workingDirectory="${USER_INSTALL_ROOT}" executableTargetKind="JAVA_CLASS" executableTarget="com.ibm.ws.runtime.WsServer">
    <execution xmi:id="ProcessExecution_1183122130078" processPriority="20" runAsUser="" runAsGroup=""/>
    <ioRedirect xmi:id="OutputRedirect_1183122130078" stdoutFilename="${SERVER_LOG_ROOT}/native_stdout.log" stderrFilename="${SERVER_LOG_ROOT}/native_stderr.log"/>
    <monitoringPolicy xmi:id="MonitoringPolicy_1183122130078" maximumStartupAttempts="3" pingInterval="60" pingTimeout="300" autoRestart="true" nodeRestartState="STOPPED"/>
    <jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7778" genericJvmArguments="">
      <systemProperties xmi:id="Property_1" name="com.ibm.security.jgss.debug" value="off" required="false"/>
      <systemProperties xmi:id="Property_2" name="com.ibm.security.krb5.Krb5Debug" value="off" required="false"/>
    </jvmEntries>
  </processDefinitions>
</process:Server>
                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/dbserver/                                                              0000777 0000000 0000000 00000000000 11524350506 017010  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/                                             0000777 0000000 0000000 00000000000 11524350525 022262  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/proc/                                        0000777 0000000 0000000 00000000000 11524350524 023224  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/proc/cpuinfo                                 0000644 0000000 0000000 00000001017 11524350524 024605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/dbserver/VM_configuration/proc/mounts                                  0000644 0000000 0000000 00000001357 11524350524 024476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1020708k,nr_inodes=255177,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1263,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1263,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/dbserver/VM_configuration/proc/swaps                                   0000644 0000000 0000000 00000000150 11524350524 024274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	32264	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/dbserver/VM_configuration/proc/devices                                 0000644 0000000 0000000 00000000567 11524350524 024575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile10/dbserver/VM_configuration/proc/modules                                 0000644 0000000 0000000 00000002621 11524350524 024614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 44 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile10/dbserver/VM_configuration/proc/partitions                              0000644 0000000 0000000 00000000260 11524350524 025335  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile10/dbserver/VM_configuration/proc/meminfo                                 0000644 0000000 0000000 00000002222 11524350524 024573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2055756 kB
MemFree:           71760 kB
Buffers:           30028 kB
Cached:           148340 kB
SwapCached:         2360 kB
Active:           745008 kB
Inactive:         286872 kB
Active(anon):     681912 kB
Inactive(anon):   231368 kB
Active(file):      63096 kB
Inactive(file):    55504 kB
Unevictable:        3228 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2015728 kB
Dirty:               196 kB
Writeback:             0 kB
AnonPages:        855840 kB
Mapped:           110404 kB
Shmem:             55152 kB
Slab:              69664 kB
SReclaimable:      14688 kB
SUnreclaim:        54976 kB
KernelStack:        2168 kB
PageTables:         8856 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2649884 kB
Committed_AS:    3487504 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       11532 kB
VmallocChunk:   34359719476 kB
HardwareCorrupted:     0 kB
AnonHugePages:    548864 kB
HugePages_Total:     416
HugePages_Free:       74
HugePages_Rsvd:       49
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2088960 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/dbserver/VM_configuration/root/                                        0000777 0000000 0000000 00000000000 11524350524 023244  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/root/convert_to_vf.sh                        0000755 0000000 0000000 00000001135 11524350524 026454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/lspci.txt                                    0000644 0000000 0000000 00000001211 11524350523 024122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/dbserver/VM_configuration/df.txt                                       0000644 0000000 0000000 00000000401 11524350506 023402  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916  10352572   2428364  82% /
tmpfs                  1027876         0   1027876   0% /dev/shm
/dev/vdb1             20642412  11290388   8303452  58% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/dbserver/VM_configuration/mount.txt                                    0000644 0000000 0000000 00000000612 11524350524 024157  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile10/dbserver/VM_configuration/etc/                                         0000777 0000000 0000000 00000000000 11524350523 023033  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/                                    0000777 0000000 0000000 00000000000 11524350515 023662  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/                              0000777 0000000 0000000 00000000000 11524350523 024572  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests             0000755 0000000 0000000 00000017172 11524350515 027765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                    0000755 0000000 0000000 00000004325 11524350516 026404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524350516 027172  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                   0000755 0000000 0000000 00000012327 11524350520 026566  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                  0000755 0000000 0000000 00000005222 11524350521 026752  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S99firstboot                  0000755 0000000 0000000 00000005341 11524350523 027037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                       0000755 0000000 0000000 00000010671 11524350522 025756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                      0000755 0000000 0000000 00000006364 11524350516 026133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                  0000755 0000000 0000000 00000020716 11524350520 026676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                       0000755 0000000 0000000 00000004731 11524350517 025763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon               0000755 0000000 0000000 00000004754 11524350515 027335  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                  0000755 0000000 0000000 00000001364 11524350522 026775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                      0000755 0000000 0000000 00000003027 11524350520 026113  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                     0000755 0000000 0000000 00000006743 11524350523 026317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                      0000755 0000000 0000000 00000010777 11524350517 026126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                 0000755 0000000 0000000 00000004230 11524350522 027137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                      0000755 0000000 0000000 00000006302 11524350517 026075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                        0000755 0000000 0000000 00000004236 11524350523 025612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                    0000755 0000000 0000000 00000004031 11524350521 026420  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                 0000755 0000000 0000000 00000003521 11524350521 027103  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                    0000755 0000000 0000000 00000006050 11524350521 026455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                    0000755 0000000 0000000 00000002363 11524350520 026524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                 0000755 0000000 0000000 00000004054 11524350515 027141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                  0000755 0000000 0000000 00000005013 11524350521 027012  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                      0000755 0000000 0000000 00000003213 11524350520 026106  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                    0000755 0000000 0000000 00000003512 11524350517 026446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                       0000755 0000000 0000000 00000003603 11524350517 025754  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                     0000755 0000000 0000000 00000011277 11524350517 026301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S10network                    0000755 0000000 0000000 00000014466 11524350520 026501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                    0000755 0000000 0000000 00000004326 11524350521 026507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                     0000755 0000000 0000000 00000006462 11524350521 026261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                      0000755 0000000 0000000 00000027662 11524350522 026135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                       0000755 0000000 0000000 00000006445 11524350517 025657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                  0000755 0000000 0000000 00000003245 11524350522 026742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K60crond                      0000755 0000000 0000000 00000005445 11524350516 026114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                      0000755 0000000 0000000 00000005522 11524350516 026116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl              0000755 0000000 0000000 00000002221 11524350520 027577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                  0000755 0000000 0000000 00000004010 11524350516 026755  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                        0000755 0000000 0000000 00000013536 11524350516 025575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                       0000755 0000000 0000000 00000004723 11524350522 025736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                     0000755 0000000 0000000 00000003024 11524350516 026246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                      0000755 0000000 0000000 00000003275 11524350522 026075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                   0000755 0000000 0000000 00000025442 11524350521 026620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                  0000755 0000000 0000000 00000004370 11524350522 026740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S99local                      0000755 0000000 0000000 00000000334 11524350523 026113  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                    0000755 0000000 0000000 00000006675 11524350521 026457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                 0000755 0000000 0000000 00000005650 11524350516 027155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor               0000555 0000000 0000000 00000004612 11524350520 027344  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                     0000755 0000000 0000000 00000007234 11524350522 026317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                   0000755 0000000 0000000 00000003433 11524350523 026651  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                     0000755 0000000 0000000 00000005672 11524350515 026275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                      0000755 0000000 0000000 00000003254 11524350523 026111  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                  0000755 0000000 0000000 00000005063 11524350522 026764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                      0000755 0000000 0000000 00000012432 11524350522 026126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                    0000755 0000000 0000000 00000007414 11524350516 026476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                   0000755 0000000 0000000 00000020557 11524350520 026613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond                0000755 0000000 0000000 00000003427 11524350520 027340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/rc3.d/K05atd                        0000755 0000000 0000000 00000004112 11524350516 025544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/                             0000777 0000000 0000000 00000000000 11524350515 025047  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/network                      0000755 0000000 0000000 00000014466 11524350513 026473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/gfs2                         0000755 0000000 0000000 00000006445 11524350511 025637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/sysstat                      0000755 0000000 0000000 00000002363 11524350515 026507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/saslauthd                    0000755 0000000 0000000 00000004010 11524350514 026753  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/messagebus                   0000755 0000000 0000000 00000004230 11524350512 027123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/autobench                    0000755 0000000 0000000 00000005063 11524350510 026740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/atd                          0000755 0000000 0000000 00000004112 11524350510 025532  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/mcelogd                      0000755 0000000 0000000 00000003535 11524350512 026406  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/auditd                       0000755 0000000 0000000 00000006462 11524350510 026246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/certmonger                   0000755 0000000 0000000 00000004054 11524350510 027134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/irqbalance                   0000755 0000000 0000000 00000003521 11524350511 027067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/acpid                        0000755 0000000 0000000 00000003275 11524350507 026061  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/nscd                         0000755 0000000 0000000 00000004723 11524350513 025724  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                    0000755 0000000 0000000 00000005222 11524350514 026734  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/nfs                          0000755 0000000 0000000 00000013536 11524350513 025565  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/sssd                         0000755 0000000 0000000 00000004731 11524350515 025752  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/crond                        0000755 0000000 0000000 00000005445 11524350510 026101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/ip6tables                    0000755 0000000 0000000 00000020716 11524350511 026664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/firstboot                    0000755 0000000 0000000 00000005341 11524350510 027002  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/autofs                       0000755 0000000 0000000 00000007234 11524350510 026273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/sshd                         0000755 0000000 0000000 00000010671 11524350515 025737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/ksm                          0000755 0000000 0000000 00000004236 11524350512 025565  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/libvirt-guests               0000755 0000000 0000000 00000017172 11524350512 027761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                 0000755 0000000 0000000 00000004754 11524350510 027327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/ypbind                       0000755 0000000 0000000 00000011277 11524350515 026266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/psacct                       0000755 0000000 0000000 00000003024 11524350513 026243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/xinetd                       0000755 0000000 0000000 00000006743 11524350515 026276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/nfslock                      0000755 0000000 0000000 00000006675 11524350513 026444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/cgred                        0000755 0000000 0000000 00000006302 11524350510 026051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/migrateip                    0000755 0000000 0000000 00000001364 11524350512 026753  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/udev-post                    0000755 0000000 0000000 00000004370 11524350515 026723  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/haldaemon                    0000755 0000000 0000000 00000003245 11524350511 026721  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/ipsec                        0000755 0000000 0000000 00000010777 11524350511 026104  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/rpcbind                      0000755 0000000 0000000 00000004031 11524350514 026407  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/rhnsd                        0000755 0000000 0000000 00000005522 11524350514 026112  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/functions                    0000644 0000000 0000000 00000042767 11524350511 027012  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/kdump                        0000755 0000000 0000000 00000027662 11524350511 026122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/postfix                      0000755 0000000 0000000 00000007414 11524350513 026471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/iptables                     0000755 0000000 0000000 00000020557 11524350511 026601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/rsyslog                      0000755 0000000 0000000 00000004326 11524350514 026477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/netconsole                   0000755 0000000 0000000 00000005650 11524350512 027145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/rpcgssd                      0000755 0000000 0000000 00000006050 11524350514 026436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/abrtd                        0000755 0000000 0000000 00000003254 11524350507 026072  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                 0000555 0000000 0000000 00000004612 11524350512 027334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/halt                         0000755 0000000 0000000 00000012723 11524350511 025722  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/cgconfig                     0000755 0000000 0000000 00000012327 11524350510 026550  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/single                       0000755 0000000 0000000 00000001207 11524350514 026251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/mdmonitor                    0000755 0000000 0000000 00000005013 11524350512 026775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/restorecond                  0000755 0000000 0000000 00000003427 11524350514 027325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/cpuspeed                     0000755 0000000 0000000 00000025442 11524350510 026603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/netfs                        0000755 0000000 0000000 00000012432 11524350512 026107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                   0000755 0000000 0000000 00000006014 11524350514 027152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/oddjobd                      0000755 0000000 0000000 00000004325 11524350513 026400  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/ksmtuned                     0000755 0000000 0000000 00000003433 11524350512 026623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/sandbox                      0000755 0000000 0000000 00000003242 11524350514 026427  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/killall                      0000755 0000000 0000000 00000001214 11524350512 026410  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/rdisc                        0000755 0000000 0000000 00000003027 11524350514 026076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/httpd                        0000755 0000000 0000000 00000006364 11524350511 026121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/ntpd                         0000755 0000000 0000000 00000003603 11524350513 025736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/smartd                       0000755 0000000 0000000 00000005672 11524350515 026275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/nslcd                        0000755 0000000 0000000 00000003213 11524350513 026071  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/ntpdate                      0000755 0000000 0000000 00000003512 11524350513 026427  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile10/dbserver/VM_configuration/etc/rc.d/init.d/microcode_ctl                0000755 0000000 0000000 00000002221 11524350512 027571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/dbserver/VM_configuration/etc/hosts                                    0000644 0000000 0000000 00000000267 11524350506 024120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/dbserver/VM_configuration/etc/iproute2/                                0000777 0000000 0000000 00000000000 11524350507 024606  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/etc/iproute2/rt_dsfield                      0000644 0000000 0000000 00000000672 11524350507 026651  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile10/dbserver/VM_configuration/etc/iproute2/rt_realms                       0000644 0000000 0000000 00000000160 11524350507 026512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile10/dbserver/VM_configuration/etc/iproute2/rt_scopes                       0000644 0000000 0000000 00000000134 11524350507 026524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/dbserver/VM_configuration/etc/iproute2/ematch_map                      0000644 0000000 0000000 00000000073 11524350507 026623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/dbserver/VM_configuration/etc/iproute2/rt_tables                       0000644 0000000 0000000 00000000127 11524350507 026504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/dbserver/VM_configuration/etc/iproute2/rt_protos                       0000644 0000000 0000000 00000000475 11524350507 026566  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/etc/nsswitch.conf                            0000644 0000000 0000000 00000003230 11524350507 025540  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/dbserver/VM_configuration/etc/fstab                                    0000644 0000000 0000000 00000001603 11524350506 024052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile10/dbserver/VM_configuration/etc/sysctl.conf                              0000644 0000000 0000000 00000001466 11524350523 025226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile10/dbserver/VM_configuration/etc/inittab                                  0000644 0000000 0000000 00000001714 11524350506 024410  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
fmc:2345:respawn:/data-disk/opt/ibm/db2/V9.7/bin/db2fmcd #DB2 Fault Monitor Coordinator
                                                    Virtual_Configuration/tile10/dbserver/VM_configuration/var/                                         0000777 0000000 0000000 00000000000 11524350525 023052  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/var/log/                                     0000777 0000000 0000000 00000000000 11524350525 023633  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/var/log/dmesg                                0000644 0000000 0000000 00000043426 11524350525 024662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0 hugepages=416
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007fffd000 (usable)
 BIOS-e820: 000000007fffd000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x7fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007fffd000
 0000000000 - 007fe00000 page 2M
 007fe00000 - 007fffd000 page 4k
kernel direct mapping tables up to 7fffd000 @ 8000-c000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000007fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000007ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000007fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000007ffffe00 00040
ACPI: SSDT 000000007fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000007fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000007fffd000
Bootmem setup node 0 0000000000000000-000000007fffd000
  NODE_DATA [000000000000a000 - 000000000003dfff]
  bootmap [000000000003e000 -  000000000004dfff] pages 10
(7 early reservations) ==> bootmem [0000000000 - 007fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000a000]          PGTABLE ==> [0000008000 - 000000a000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0001bfffff] PMD -> [ffff880002200000-ffff880003dfffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0007fffd
On node 0 totalpages: 524182
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3831 pages, LIFO batch:0
  DMA32 zone: 7112 pages used for memmap
  DMA32 zone: 513077 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 80000000 (gap: 80000000:7ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 516908
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0 hugepages=416
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2041384k/2097140k available (4935k kernel code, 412k absent, 55344k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 20971520 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116120.308:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 416 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 4012
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:59 UTC (1297116119)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
76:51:59:e5:51:5a
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                          Virtual_Configuration/tile10/dbserver/VM_configuration/boot/                                        0000777 0000000 0000000 00000000000 11524350506 023224  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/boot/grub/                                   0000777 0000000 0000000 00000000000 11524350506 024163  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/VM_configuration/boot/grub/grub.conf                          0000644 0000000 0000000 00000001457 11524350506 025774  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0 hugepages=416
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                 Virtual_Configuration/tile10/dbserver/VM_configuration/rpmpkgs.txt                                  0000644 0000000 0000000 00000076554 11524350525 024523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
scrub-2.2-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
xvattr-1.3-18.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
python-slip-0.2.11-1.el6.noarch
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
python-meh-0.9-1.el6.noarch
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
libstdc++-4.4.4-13.el6.i686
vte-0.25.1-5.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
glx-utils-7.7-2.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
yelp-2.28.1-8.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
gnome-terminal-2.31.3-4.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
cracklib-python-2.8.16-2.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
system-config-users-docs-1.0.8-1.el6.noarch
report-gtk-0.18-7.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
xorg-x11-xkb-utils-7.4-6.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
report-newt-0.18-7.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
zenity-2.28.0-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
fuse-2.8.3-1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
seabios-0.5.1-3.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                    Virtual_Configuration/tile10/dbserver/VM_configuration/ifconfig.txt                                 0000644 0000000 0000000 00000002327 11524350523 024605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:39  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:271 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:25583 (24.9 KiB)  TX bytes:827 (827.0 b)

eth1      Link encap:Ethernet  HWaddr 76:51:59:E5:51:5A  
          inet addr:10.1.217.57  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::7451:59ff:fee5:515a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9495619 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9323708 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1944963804 (1.8 GiB)  TX bytes:3743413963 (3.4 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:759 errors:0 dropped:0 overruns:0 frame:0
          TX packets:759 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:74338 (72.5 KiB)  TX bytes:74338 (72.5 KiB)

                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/dbserver/VM_configuration/chkconfig.txt                                0000644 0000000 0000000 00000006625 11524350506 024762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
firstboot      	0:off	1:off	2:off	3:on	4:off	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                           Virtual_Configuration/tile10/dbserver/Software_Configuration/                                       0000777 0000000 0000000 00000000000 11524350506 023471  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/dbserver/Software_Configuration/profile.env                            0000644 0000000 0000000 00000000116 11524350506 025635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   DB2_LARGE_PAGE_MEM='DB'
DB2_PINNED_BP='ON'
DB2COMM='TCPIP'
DB2AUTOSTART='YES'
                                                                                                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/dbserver/Software_Configuration/db2nodes.cfg                           0000444 0000000 0000000 00000000016 11524350506 025641  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0 tb3-dbt10 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/webserver/                                                             0000777 0000000 0000000 00000000000 11524350605 017200  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/                                            0000777 0000000 0000000 00000000000 11524350623 022451  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/proc/                                       0000777 0000000 0000000 00000000000 11524350623 023414  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/proc/cpuinfo                                0000644 0000000 0000000 00000002030 11524350622 024770  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/webserver/VM_configuration/proc/mounts                                 0000644 0000000 0000000 00000001754 11524350623 024667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=5574592k,nr_inodes=1393648,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1440,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1440,timeout=300,minproto=5,maxproto=5,indirect 0 0
tb3-infrat10:/support-download /var/www/html/support/downloads nfs rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.1.217.59,mountvers=3,mountport=54097,mountproto=udp,addr=10.1.217.59 0 0
                    Virtual_Configuration/tile10/webserver/VM_configuration/proc/swaps                                  0000644 0000000 0000000 00000000144 11524350623 024467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/webserver/VM_configuration/proc/devices                                0000644 0000000 0000000 00000000567 11524350622 024764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile10/webserver/VM_configuration/proc/modules                                0000644 0000000 0000000 00000003214 11524350623 025003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   nfs 348522 1 - Live 0xffffffffa026f000
lockd 73984 1 nfs, Live 0xffffffffa01ab000
fscache 46761 1 nfs, Live 0xffffffffa0141000
nfs_acl 2677 1 nfs, Live 0xffffffffa001b000
auth_rpcgss 44862 1 nfs, Live 0xffffffffa0134000
bridge 74113 0 - Live 0xffffffffa025a000
stp 2107 1 bridge, Live 0xffffffffa0254000
llc 5608 2 bridge,stp, Live 0xffffffffa024c000
autofs4 27683 3 - Live 0xffffffffa023f000
sunrpc 241630 16 nfs,lockd,nfs_acl,auth_rpcgss, Live 0xffffffffa01ec000
ipv6 321209 249 - Live 0xffffffffa015a000
dm_mirror 14003 0 - Live 0xffffffffa012e000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0125000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0120000
ppdev 8695 0 - Live 0xffffffffa00fe000
parport_pc 22944 0 - Live 0xffffffffa0118000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa00e0000
sg 30186 0 - Live 0xffffffffa007d000
virtio_net 15665 0 - Live 0xffffffffa0015000
ixgbevf 47200 0 - Live 0xffffffffa010a000
i2c_piix4 12574 0 - Live 0xffffffffa0104000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00f4000
ext4 353979 2 - Live 0xffffffffa0087000
mbcache 7918 1 ext4, Live 0xffffffffa0022000
jbd2 89033 1 ext4, Live 0xffffffffa0065000
sr_mod 16162 0 - Live 0xffffffffa005f000
cdrom 39769 1 sr_mod, Live 0xffffffffa0053000
virtio_blk 5087 5 - Live 0xffffffffa004c000
pata_acpi 3667 0 - Live 0xffffffffa0046000
ata_generic 3611 0 - Live 0xffffffffa0040000
ata_piix 22588 0 - Live 0xffffffffa0034000
virtio_pci 6733 0 - Live 0xffffffffa002c000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0025000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/webserver/VM_configuration/proc/partitions                             0000644 0000000 0000000 00000000260 11524350623 025525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20970496 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile10/webserver/VM_configuration/proc/meminfo                                0000644 0000000 0000000 00000002222 11524350622 024762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:       11163520 kB
MemFree:         1100244 kB
Buffers:            6524 kB
Cached:          9141052 kB
SwapCached:            0 kB
Active:          1713112 kB
Inactive:        7869380 kB
Active(anon):     341912 kB
Inactive(anon):    96008 kB
Active(file):    1371200 kB
Inactive(file):  7773372 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               188 kB
Writeback:             0 kB
AnonPages:        434832 kB
Mapped:            21928 kB
Shmem:              2988 kB
Slab:             331548 kB
SReclaimable:      87708 kB
SUnreclaim:       243840 kB
KernelStack:        2736 kB
PageTables:        96232 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     7629752 kB
Committed_AS:    1522248 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       40792 kB
VmallocChunk:   34359692908 kB
HardwareCorrupted:     0 kB
AnonHugePages:     22528 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:    11526144 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/webserver/VM_configuration/root/                                       0000777 0000000 0000000 00000000000 11524350623 023434  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/root/convert_to_vf.sh                       0000755 0000000 0000000 00000001135 11524350623 026644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/lspci.txt                                   0000644 0000000 0000000 00000001211 11524350622 024312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/webserver/VM_configuration/df.txt                                      0000644 0000000 0000000 00000000570 11524350605 023601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3892996   8887940  31% /
tmpfs                  5581760         0   5581760   0% /dev/shm
/dev/vdb1             20641404    969952  18622928   5% /data-disk
tb3-infrat10:/support-download
                      61923456  33417216  25360768  57% /var/www/html/support/downloads
                                                                                                                                        Virtual_Configuration/tile10/webserver/VM_configuration/mount.txt                                   0000644 0000000 0000000 00000000753 11524350622 024354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
tb3-infrat10:/support-download on /var/www/html/support/downloads type nfs (rw,addr=10.1.217.59)
                     Virtual_Configuration/tile10/webserver/VM_configuration/etc/                                        0000777 0000000 0000000 00000000000 11524350622 023223  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/                                   0000777 0000000 0000000 00000000000 11524350614 024052  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/                             0000777 0000000 0000000 00000000000 11524350622 024762  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests            0000755 0000000 0000000 00000017172 11524350615 030156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                   0000755 0000000 0000000 00000004325 11524350615 026574  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                0000755 0000000 0000000 00000006014 11524350616 027363  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                  0000755 0000000 0000000 00000012327 11524350617 026765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                 0000755 0000000 0000000 00000005222 11524350620 027142  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                      0000755 0000000 0000000 00000010671 11524350621 026146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                     0000755 0000000 0000000 00000006364 11524350615 026323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                 0000755 0000000 0000000 00000020716 11524350617 027075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                      0000755 0000000 0000000 00000004731 11524350616 026153  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon              0000755 0000000 0000000 00000004754 11524350615 027526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                 0000755 0000000 0000000 00000001364 11524350621 027165  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                     0000755 0000000 0000000 00000003027 11524350617 026312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                    0000755 0000000 0000000 00000006743 11524350621 026506  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                     0000755 0000000 0000000 00000010777 11524350616 026316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                0000755 0000000 0000000 00000004230 11524350620 027326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                     0000755 0000000 0000000 00000006302 11524350616 026265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                       0000755 0000000 0000000 00000004236 11524350621 026001  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                   0000755 0000000 0000000 00000004031 11524350620 026610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                0000755 0000000 0000000 00000003521 11524350620 027273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                   0000755 0000000 0000000 00000006050 11524350620 026645  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                   0000755 0000000 0000000 00000002363 11524350617 026723  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                0000755 0000000 0000000 00000004054 11524350614 027331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                 0000755 0000000 0000000 00000005013 11524350620 027202  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                     0000755 0000000 0000000 00000003213 11524350617 026305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                   0000755 0000000 0000000 00000003512 11524350616 026636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                      0000755 0000000 0000000 00000003603 11524350616 026144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                    0000755 0000000 0000000 00000011277 11524350616 026471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S10network                   0000755 0000000 0000000 00000014466 11524350617 026700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                   0000755 0000000 0000000 00000004326 11524350617 026705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                    0000755 0000000 0000000 00000006462 11524350617 026457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                     0000755 0000000 0000000 00000027662 11524350620 026324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                      0000755 0000000 0000000 00000006445 11524350616 026047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                 0000755 0000000 0000000 00000003245 11524350621 027132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K60crond                     0000755 0000000 0000000 00000005445 11524350616 026305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                     0000755 0000000 0000000 00000005522 11524350615 026306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl             0000755 0000000 0000000 00000002221 11524350617 027776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                 0000755 0000000 0000000 00000004010 11524350615 027145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                       0000755 0000000 0000000 00000013536 11524350616 025766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                      0000755 0000000 0000000 00000004723 11524350621 026126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                    0000755 0000000 0000000 00000003024 11524350615 026436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                     0000755 0000000 0000000 00000003275 11524350620 026264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                  0000755 0000000 0000000 00000025442 11524350620 027010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                 0000755 0000000 0000000 00000004370 11524350621 027130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S99local                     0000755 0000000 0000000 00000000334 11524350622 026303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                   0000755 0000000 0000000 00000006675 11524350620 026647  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                0000755 0000000 0000000 00000005650 11524350615 027345  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor              0000555 0000000 0000000 00000004612 11524350617 027543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                    0000755 0000000 0000000 00000007234 11524350621 026507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                  0000755 0000000 0000000 00000003433 11524350622 027041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                    0000755 0000000 0000000 00000005672 11524350615 026466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                     0000755 0000000 0000000 00000003254 11524350621 026300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                 0000755 0000000 0000000 00000005063 11524350621 027154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                     0000755 0000000 0000000 00000012432 11524350620 026315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                   0000755 0000000 0000000 00000007414 11524350615 026666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                  0000755 0000000 0000000 00000020557 11524350617 027012  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond               0000755 0000000 0000000 00000003427 11524350616 027536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/rc3.d/K05atd                       0000755 0000000 0000000 00000004112 11524350615 025734  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/                            0000777 0000000 0000000 00000000000 11524350614 025237  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/network                     0000755 0000000 0000000 00000014466 11524350612 026663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/gfs2                        0000755 0000000 0000000 00000006445 11524350610 026027  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/sysstat                     0000755 0000000 0000000 00000002363 11524350614 026677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/saslauthd                   0000755 0000000 0000000 00000004010 11524350614 027144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/messagebus                  0000755 0000000 0000000 00000004230 11524350611 027313  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/autobench                   0000755 0000000 0000000 00000005063 11524350607 027137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/atd                         0000755 0000000 0000000 00000004112 11524350607 025731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/mcelogd                     0000755 0000000 0000000 00000003535 11524350611 026576  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/auditd                      0000755 0000000 0000000 00000006462 11524350607 026445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/certmonger                  0000755 0000000 0000000 00000004054 11524350607 027333  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/irqbalance                  0000755 0000000 0000000 00000003521 11524350611 027260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/acpid                       0000755 0000000 0000000 00000003275 11524350607 026252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/nscd                        0000755 0000000 0000000 00000004723 11524350612 026114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                   0000755 0000000 0000000 00000005222 11524350613 027124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/nfs                         0000755 0000000 0000000 00000013536 11524350612 025755  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/sssd                        0000755 0000000 0000000 00000004731 11524350614 026142  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/crond                       0000755 0000000 0000000 00000005445 11524350610 026272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/ip6tables                   0000755 0000000 0000000 00000020716 11524350610 027054  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/autofs                      0000755 0000000 0000000 00000007234 11524350607 026472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/sshd                        0000755 0000000 0000000 00000010671 11524350614 026127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/ksm                         0000755 0000000 0000000 00000004236 11524350611 025755  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/libvirt-guests              0000755 0000000 0000000 00000017172 11524350611 030151  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                0000755 0000000 0000000 00000004754 11524350607 027526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/ypbind                      0000755 0000000 0000000 00000011277 11524350614 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/psacct                      0000755 0000000 0000000 00000003024 11524350613 026434  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/xinetd                      0000755 0000000 0000000 00000006743 11524350614 026466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/nfslock                     0000755 0000000 0000000 00000006675 11524350612 026634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/cgred                       0000755 0000000 0000000 00000006302 11524350610 026242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/migrateip                   0000755 0000000 0000000 00000001364 11524350612 027144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/udev-post                   0000755 0000000 0000000 00000004370 11524350614 027113  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/haldaemon                   0000755 0000000 0000000 00000003245 11524350610 027111  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/ipsec                       0000755 0000000 0000000 00000010777 11524350610 026274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/rpcbind                     0000755 0000000 0000000 00000004031 11524350613 026577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/rhnsd                       0000755 0000000 0000000 00000005522 11524350613 026302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/functions                   0000644 0000000 0000000 00000042767 11524350610 027202  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/kdump                       0000755 0000000 0000000 00000027662 11524350611 026313  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/postfix                     0000755 0000000 0000000 00000007414 11524350613 026662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/iptables                    0000755 0000000 0000000 00000020557 11524350610 026771  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/rsyslog                     0000755 0000000 0000000 00000004326 11524350613 026667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/netconsole                  0000755 0000000 0000000 00000005650 11524350612 027336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/rpcgssd                     0000755 0000000 0000000 00000006050 11524350613 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/abrtd                       0000755 0000000 0000000 00000003254 11524350607 026263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                0000555 0000000 0000000 00000004612 11524350611 027524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/halt                        0000755 0000000 0000000 00000012723 11524350610 026112  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/cgconfig                    0000755 0000000 0000000 00000012327 11524350607 026747  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/single                      0000755 0000000 0000000 00000001207 11524350614 026442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/mdmonitor                   0000755 0000000 0000000 00000005013 11524350611 027165  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/restorecond                 0000755 0000000 0000000 00000003427 11524350613 027515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/cpuspeed                    0000755 0000000 0000000 00000025442 11524350610 026774  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/netfs                       0000755 0000000 0000000 00000012432 11524350612 026300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                  0000755 0000000 0000000 00000006014 11524350613 027342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/oddjobd                     0000755 0000000 0000000 00000004325 11524350612 026570  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/ksmtuned                    0000755 0000000 0000000 00000003433 11524350611 027013  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/sandbox                     0000755 0000000 0000000 00000003242 11524350613 026617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/killall                     0000755 0000000 0000000 00000001214 11524350611 026600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/rdisc                       0000755 0000000 0000000 00000003027 11524350613 026266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/httpd                       0000755 0000000 0000000 00000006364 11524350610 026311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/ntpd                        0000755 0000000 0000000 00000003603 11524350612 026126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/smartd                      0000755 0000000 0000000 00000005672 11524350614 026465  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/nslcd                       0000755 0000000 0000000 00000003213 11524350612 026261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/ntpdate                     0000755 0000000 0000000 00000003512 11524350612 026617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile10/webserver/VM_configuration/etc/rc.d/init.d/microcode_ctl               0000755 0000000 0000000 00000002221 11524350611 027761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/webserver/VM_configuration/etc/hosts                                   0000644 0000000 0000000 00000000236 11524350606 024305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/webserver/VM_configuration/etc/iproute2/                               0000777 0000000 0000000 00000000000 11524350606 024776  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/etc/iproute2/rt_dsfield                     0000644 0000000 0000000 00000000672 11524350606 027041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile10/webserver/VM_configuration/etc/iproute2/rt_realms                      0000644 0000000 0000000 00000000160 11524350606 026702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile10/webserver/VM_configuration/etc/iproute2/rt_scopes                      0000644 0000000 0000000 00000000134 11524350606 026714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/webserver/VM_configuration/etc/iproute2/ematch_map                     0000644 0000000 0000000 00000000073 11524350606 027013  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/webserver/VM_configuration/etc/iproute2/rt_tables                      0000644 0000000 0000000 00000000127 11524350606 026674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/webserver/VM_configuration/etc/iproute2/rt_protos                      0000644 0000000 0000000 00000000475 11524350606 026756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/etc/nsswitch.conf                           0000644 0000000 0000000 00000003230 11524350606 025730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/webserver/VM_configuration/etc/fstab                                   0000644 0000000 0000000 00000001603 11524350606 024243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile10/webserver/VM_configuration/etc/sysctl.conf                             0000644 0000000 0000000 00000001466 11524350622 025416  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile10/webserver/VM_configuration/etc/inittab                                 0000644 0000000 0000000 00000001564 11524350606 024604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile10/webserver/VM_configuration/var/                                        0000777 0000000 0000000 00000000000 11524350623 023241  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/var/log/                                    0000777 0000000 0000000 00000000000 11524350623 024022  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/var/log/dmesg                               0000644 0000000 0000000 00000046333 11524350623 025051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
 BIOS-e820: 0000000100000000 - 00000002e0000000 (usable)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x2e0000 max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
init_memory_mapping: 0000000100000000-00000002e0000000
 0100000000 - 02e0000000 page 2M
kernel direct mapping tables up to 2e0000000 @ c000-19000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffddc0 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffdf0 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf30 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffd80 00040
ACPI: SSDT 00000000dfffdee0 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffddf0 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000002e0000000
Bootmem setup node 0 0000000000000000-00000002e0000000
  NODE_DATA [0000000000014000 - 0000000000047fff]
  bootmap [0000000000100000 -  000000000015bfff] pages 5c
(8 early reservations) ==> bootmem [0000000000 - 02e0000000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
  #7 [000000c000 - 0000014000]          PGTABLE ==> [000000c000 - 0000014000]
found SMP MP-table at [ffff8800000f8120] f8120
Reserving 129MB of memory at 32MB for crashkernel (System RAM: 11776MB)
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea000a1fffff] PMD -> [ffff880028600000-ffff8800321fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x002e0000
Movable zone start PFN for each node
early_node_map[3] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x000dfffd
    0: 0x00100000 -> 0x002e0000
On node 0 totalpages: 2883478
  DMA zone: 56 pages used for memmap
  DMA zone: 116 pages reserved
  DMA zone: 3821 pages, LIFO batch:0
  DMA32 zone: 14280 pages used for memmap
  DMA32 zone: 899125 pages, LIFO batch:31
  Normal zone: 26880 pages used for memmap
  Normal zone: 1939200 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
PM: Registered nosave memory: 00000000dfffd000 - 00000000e0000000
PM: Registered nosave memory: 00000000e0000000 - 00000000fffbc000
PM: Registered nosave memory: 00000000fffbc000 - 0000000100000000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880028200000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:28216901, primary cpu clock
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 2842146
Policy zone: Normal
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=129M@0M elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing 64MB software IO TLB between ffff880020000000 - ffff880024000000
software IO TLB at phys 0x20000000 - 0x24000000
Memory: 11149184k/12058624k available (4935k kernel code, 524712k absent, 384728k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 115343360 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes)
Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
APIC calibration not consistent with PM-Timer: 101ms instead of 100ms
APIC delta adjusted to PM-Timer: 6250035 (6373970)
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:28316901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (13867.27 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 524288 (order: 10, 4194304 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116158.302:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 21801
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:02:38 UTC (1297116158)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
72:ba:1b:96:4b:97
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/webserver/VM_configuration/boot/                                       0000777 0000000 0000000 00000000000 11524350605 023414  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/boot/grub/                                  0000777 0000000 0000000 00000000000 11524350605 024353  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/boot/grub/grub.conf                         0000644 0000000 0000000 00000002217 11524350605 026157  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/webserver/VM_configuration/rpmpkgs.txt                                 0000644 0000000 0000000 00000067255 11524350623 024710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
php-pecl-apc-3.1.3p1-1.2.el6.1.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
php-pear-1.9.0-2.el6.noarch
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/VM_configuration/ifconfig.txt                                0000644 0000000 0000000 00000002351 11524350622 024772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:37  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:167 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:14525 (14.1 KiB)  TX bytes:846 (846.0 b)

eth1      Link encap:Ethernet  HWaddr 72:BA:1B:96:4B:97  
          inet addr:10.1.217.55  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::70ba:1bff:fe96:4b97/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:185510930 errors:0 dropped:0 overruns:0 frame:0
          TX packets:287436569 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:177233355590 (165.0 GiB)  TX bytes:325407984005 (303.0 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:15223 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15223 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1579851 (1.5 MiB)  TX bytes:1579851 (1.5 MiB)

                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/webserver/VM_configuration/chkconfig.txt                               0000644 0000000 0000000 00000006535 11524350605 025152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile10/webserver/Software_Configuration/                                      0000777 0000000 0000000 00000000000 11524350604 023660  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/Software_Configuration/httpd/                                0000777 0000000 0000000 00000000000 11524350604 025003  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/Software_Configuration/httpd/conf.d/                         0000777 0000000 0000000 00000000000 11524350604 026152  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/Software_Configuration/httpd/conf.d/manual.conf              0000644 0000000 0000000 00000000447 11524350604 030277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This configuration file allows the manual to be accessed at 
# http://localhost/manual/
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"

<Directory "/var/www/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
                                                                                                                                                                                                                         Virtual_Configuration/tile10/webserver/Software_Configuration/httpd/conf.d/php.conf                 0000644 0000000 0000000 00000001242 11524350604 027603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/webserver/Software_Configuration/httpd/conf.d/welcome.conf             0000644 0000000 0000000 00000000453 11524350604 030452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # 
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

                                                                                                                                                                                                                     Virtual_Configuration/tile10/webserver/Software_Configuration/httpd/conf.d/README                   0000644 0000000 0000000 00000000610 11524350604 027023  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
This directory holds Apache 2.0 module-specific configuration files;
any files in this directory which have the ".conf" extension will be
processed as Apache configuration files.

Files are processed in alphabetical order, so if using configuration
directives which depend on, say, mod_perl being loaded, ensure that
these are placed in a filename later in the sort order than "perl.conf".

                                                                                                                        Virtual_Configuration/tile10/webserver/Software_Configuration/httpd/conf/                           0000777 0000000 0000000 00000000000 11524350603 025727  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/Software_Configuration/httpd/conf/httpd.conf                 0000644 0000000 0000000 00000103142 11524350603 027716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# Don't give away too much information about all the subcomponents
# we are running.  Comment out this line if you don't mind remote sites
# finding out what major optional modules you are running
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.  Note the PIDFILE variable in
# /etc/sysconfig/httpd must be set appropriately if this location is
# changed.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 60

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 0

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 60

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit 10240
MaxClients 10240
MaxRequestsPerChild  4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         4
MaxClients 10240
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

#
# The following modules are not loaded by default:
#
#LoadModule asis_module modules/mod_asis.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
#

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group #-1 on these systems!
#
User apache
Group apache

### Section 2: 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
#ServerName www.example.com:80

#
# UseCanonicalName: Determines how Apache constructs self-referencing 
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.  This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir disabled

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disabled" line above, and uncomment
    # the following line instead:
    # 
    #UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is 
# used to deliver files (assuming that the OS supports it). 
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
#
#EnableSendfile off

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
# requires the mod_logio module to be loaded.
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access_log common

#
# If you would like to have separate agent and referer logfiles, uncomment
# the following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# WebDAV module configuration section.
# 
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Directives controlling the display of server-generated directory listings.
#

#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes.  These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

#
# DefaultLanguage and AddLanguage allows you to specify the language of 
# a document. You can then use content negotiation to give a browser a 
# file in a language the user can understand.
#
# Specify a default language. This means that all data
# going out without a specific language tag (see below) will 
# be marked with this one. You probably do NOT want to set
# this unless you are sure it is correct for all cases.
#
# * It is generally better to not mark a page as 
# * being a certain language than marking it with the wrong
# * language!
#
# DefaultLanguage nl
#
# Note 1: The suffix does not have to be the same as the language
# keyword --- those with documents in Polish (whose net-standard
# language code is pl) may wish to use "AddLanguage pl .po" to
# avoid the ambiguity with the common suffix for perl scripts.
#
# Note 2: The example entries below illustrate that in some cases 
# the two character 'Language' abbreviation is not identical to 
# the two character 'Country' code for its country,
# E.g. 'Danmark/dk' versus 'Danish/da'.
#
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
# specifier. There is 'work in progress' to fix this and get
# the reference data for rfc1766 cleaned up.
#
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the 
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz

#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
#   MIME-types for downloading Certificates and CRLs
#
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
#  to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#    ErrorDocument 410 /error/HTTP_GONE.html.var
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Proxy>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
#   CacheEnable disk /
#   CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#

#</IfModule>
# End of proxy directives.

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
                                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/webserver/Software_Configuration/httpd/conf/magic                      0000644 0000000 0000000 00000031523 11524350603 026732  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Magic data for mod_mime_magic Apache module (originally for file(1) command)
# The module is described in /manual/mod/mod_mime_magic.html
#
# The format is 4-5 columns:
#    Column #1: byte number to begin checking from, ">" indicates continuation
#    Column #2: type of data to match
#    Column #3: contents of data to match
#    Column #4: MIME type of result
#    Column #5: MIME encoding of result (optional)

#------------------------------------------------------------------------------
# Localstuff:  file(1) magic for locally observed files
# Add any locally observed files here.

#------------------------------------------------------------------------------
# end local stuff
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Java

0	short		0xcafe
>2	short		0xbabe		application/java

#------------------------------------------------------------------------------
# audio:  file(1) magic for sound formats
#
# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
#

# Sun/NeXT audio data
0	string		.snd
>12	belong		1		audio/basic
>12	belong		2		audio/basic
>12	belong		3		audio/basic
>12	belong		4		audio/basic
>12	belong		5		audio/basic
>12	belong		6		audio/basic
>12	belong		7		audio/basic

>12	belong		23		audio/x-adpcm

# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
# (0x0064732E in little-endian encoding).
0	lelong		0x0064732E	
>12	lelong		1		audio/x-dec-basic
>12	lelong		2		audio/x-dec-basic
>12	lelong		3		audio/x-dec-basic
>12	lelong		4		audio/x-dec-basic
>12	lelong		5		audio/x-dec-basic
>12	lelong		6		audio/x-dec-basic
>12	lelong		7		audio/x-dec-basic
#                                       compressed (G.721 ADPCM)
>12	lelong		23		audio/x-dec-adpcm

# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
#					AIFF audio data
8	string		AIFF		audio/x-aiff	
#					AIFF-C audio data
8	string		AIFC		audio/x-aiff	
#					IFF/8SVX audio data
8	string		8SVX		audio/x-aiff	

# Creative Labs AUDIO stuff
#					Standard MIDI data
0	string	MThd			audio/unknown	
#>9 	byte	>0			(format %d)
#>11	byte	>1			using %d channels
#					Creative Music (CMF) data
0	string	CTMF			audio/unknown	
#					SoundBlaster instrument data
0	string	SBI			audio/unknown	
#					Creative Labs voice data
0	string	Creative\ Voice\ File	audio/unknown	
## is this next line right?  it came this way...
#>19	byte	0x1A
#>23	byte	>0			- version %d
#>22	byte	>0			\b.%d

# [GRR 950115:  is this also Creative Labs?  Guessing that first line
#  should be string instead of unknown-endian long...]
#0	long		0x4e54524b	MultiTrack sound data
#0	string		NTRK		MultiTrack sound data
#>4	long		x		- version %ld

# Microsoft WAVE format (*.wav)
# [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
#					Microsoft RIFF
0	string		RIFF		audio/unknown
#					- WAVE format
>8	string		WAVE		audio/x-wav
# MPEG audio.
0   beshort&0xfff0  0xfff0  audio/mpeg
# C64 SID Music files, from Linus Walleij <triad@df.lth.se>
0   string      PSID        audio/prs.sid

#------------------------------------------------------------------------------
# c-lang:  file(1) magic for C programs or various scripts
#

# XPM icons (Greg Roelofs, newt@uchicago.edu)
# ideally should go into "images", but entries below would tag XPM as C source
0	string		/*\ XPM		image/x-xbm	7bit

# this first will upset you if you're a PL/1 shop... (are there any left?)
# in which case rm it; ascmagic will catch real C programs
#					C or REXX program text
0	string		/*		text/plain
#					C++ program text
0	string		//		text/plain

#------------------------------------------------------------------------------
# compress:  file(1) magic for pure-compression formats (no archives)
#
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
#
# Formats for various forms of compressed data
# Formats for "compress" proper have been moved into "compress.c",
# because it tries to uncompress it to figure out what's inside.

# standard unix compress
0	string		\037\235	application/octet-stream	x-compress

# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
0       string          \037\213        application/octet-stream	x-gzip

# According to gzip.h, this is the correct byte order for packed data.
0	string		\037\036	application/octet-stream
#
# This magic number is byte-order-independent.
#
0	short		017437		application/octet-stream

# XXX - why *two* entries for "compacted data", one of which is
# byte-order independent, and one of which is byte-order dependent?
#
# compacted data
0	short		0x1fff		application/octet-stream
0	string		\377\037	application/octet-stream
# huf output
0	short		0145405		application/octet-stream

# Squeeze and Crunch...
# These numbers were gleaned from the Unix versions of the programs to
# handle these formats.  Note that I can only uncrunch, not crunch, and
# I didn't have a crunched file handy, so the crunch number is untested.
#				Keith Waclena <keith@cerberus.uchicago.edu>
#0	leshort		0x76FF		squeezed data (CP/M, DOS)
#0	leshort		0x76FE		crunched data (CP/M, DOS)

# Freeze
#0	string		\037\237	Frozen file 2.1
#0	string		\037\236	Frozen file 1.0 (or gzip 0.5)

# lzh?
#0	string		\037\240	LZH compressed data

#------------------------------------------------------------------------------
# frame:  file(1) magic for FrameMaker files
#
# This stuff came on a FrameMaker demo tape, most of which is
# copyright, but this file is "published" as witness the following:
#
0	string		\<MakerFile	application/x-frame
0	string		\<MIFFile	application/x-frame
0	string		\<MakerDictionary	application/x-frame
0	string		\<MakerScreenFon	application/x-frame
0	string		\<MML		application/x-frame
0	string		\<Book		application/x-frame
0	string		\<Maker		application/x-frame

#------------------------------------------------------------------------------
# html:  file(1) magic for HTML (HyperText Markup Language) docs
#
# from Daniel Quinlan <quinlan@yggdrasil.com>
# and Anna Shergold <anna@inext.co.uk>
#
0   string      \<!DOCTYPE\ HTML    text/html
0   string      \<!doctype\ html    text/html
0   string      \<HEAD      text/html
0   string      \<head      text/html
0   string      \<TITLE     text/html
0   string      \<title     text/html
0   string      \<html      text/html
0   string      \<HTML      text/html
0   string      \<!--       text/html
0   string      \<h1        text/html
0   string      \<H1        text/html

# XML eXtensible Markup Language, from Linus Walleij <triad@df.lth.se>
0   string      \<?xml      text/xml

#------------------------------------------------------------------------------
# images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
#
# originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
# additions by janl@ifi.uio.no as well as others. Jan also suggested
# merging several one- and two-line files into here.
#
# XXX - byte order for GIF and TIFF fields?
# [GRR:  TIFF allows both byte orders; GIF is probably little-endian]
#

# [GRR:  what the hell is this doing in here?]
#0	string		xbtoa		btoa'd file

# PBMPLUS
#					PBM file
0	string		P1		image/x-portable-bitmap	7bit
#					PGM file
0	string		P2		image/x-portable-greymap	7bit
#					PPM file
0	string		P3		image/x-portable-pixmap	7bit
#					PBM "rawbits" file
0	string		P4		image/x-portable-bitmap
#					PGM "rawbits" file
0	string		P5		image/x-portable-greymap
#					PPM "rawbits" file
0	string		P6		image/x-portable-pixmap

# NIFF (Navy Interchange File Format, a modification of TIFF)
# [GRR:  this *must* go before TIFF]
0	string		IIN1		image/x-niff

# TIFF and friends
#					TIFF file, big-endian
0	string		MM		image/tiff
#					TIFF file, little-endian
0	string		II		image/tiff

# possible GIF replacements; none yet released!
# (Greg Roelofs, newt@uchicago.edu)
#
# GRR 950115:  this was mine ("Zip GIF"):
#					ZIF image (GIF+deflate alpha)
0	string		GIF94z		image/unknown
#
# GRR 950115:  this is Jeremy Wohl's Free Graphics Format (better):
#					FGF image (GIF+deflate beta)
0	string		FGF95a		image/unknown
#
# GRR 950115:  this is Thomas Boutell's Portable Bitmap Format proposal
# (best; not yet implemented):
#					PBF image (deflate compression)
0	string		PBF		image/unknown

# GIF
0	string		GIF		image/gif

# JPEG images
0	beshort		0xffd8		image/jpeg

# PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
0	string		BM		image/bmp
#>14	byte		12		(OS/2 1.x format)
#>14	byte		64		(OS/2 2.x format)
#>14	byte		40		(Windows 3.x format)
#0	string		IC		icon
#0	string		PI		pointer
#0	string		CI		color icon
#0	string		CP		color pointer
#0	string		BA		bitmap array


#------------------------------------------------------------------------------
# lisp:  file(1) magic for lisp programs
#
# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
0	string	;;			text/plain	8bit
# Emacs 18 - this is always correct, but not very magical.
0	string	\012(			application/x-elc
# Emacs 19
0	string	;ELC\023\000\000\000	application/x-elc

#------------------------------------------------------------------------------
# mail.news:  file(1) magic for mail and news
#
# There are tests to ascmagic.c to cope with mail and news.
0	string		Relay-Version: 	message/rfc822	7bit
0	string		#!\ rnews	message/rfc822	7bit
0	string		N#!\ rnews	message/rfc822	7bit
0	string		Forward\ to 	message/rfc822	7bit
0	string		Pipe\ to 	message/rfc822	7bit
0	string		Return-Path:	message/rfc822	7bit
0	string		Path:		message/news	8bit
0	string		Xref:		message/news	8bit
0	string		From:		message/rfc822	7bit
0	string		Article 	message/news	8bit
#------------------------------------------------------------------------------
# msword: file(1) magic for MS Word files
#
# Contributor claims:
# Reversed-engineered MS Word magic numbers
#

0	string		\376\067\0\043			application/msword
0	string		\333\245-\0\0\0			application/msword

# disable this one because it applies also to other
# Office/OLE documents for which msword is not correct. See PR#2608.
#0	string		\320\317\021\340\241\261	application/msword



#------------------------------------------------------------------------------
# printer:  file(1) magic for printer-formatted files
#

# PostScript
0	string		%!		application/postscript
0	string		\004%!		application/postscript

# Acrobat
# (due to clamen@cs.cmu.edu)
0	string		%PDF-		application/pdf

#------------------------------------------------------------------------------
# sc:  file(1) magic for "sc" spreadsheet
#
38	string		Spreadsheet	application/x-sc

#------------------------------------------------------------------------------
# tex:  file(1) magic for TeX files
#
# XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
#
# From <conklin@talisman.kaleida.com>

# Although we may know the offset of certain text fields in TeX DVI
# and font files, we can't use them reliably because they are not
# zero terminated. [but we do anyway, christos]
0	string		\367\002	application/x-dvi
#0	string		\367\203	TeX generic font data
#0	string		\367\131	TeX packed font data
#0	string		\367\312	TeX virtual font data
#0	string		This\ is\ TeX,	TeX transcript text	
#0	string		This\ is\ METAFONT,	METAFONT transcript text

# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data.  The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
#2	string		\000\021	TeX font metric data
#2	string		\000\022	TeX font metric data
#>34	string		>\0		(%s)

# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
#0	string		\\input\ texinfo	Texinfo source text
#0	string		This\ is\ Info\ file	GNU Info text

# correct TeX magic for Linux (and maybe more)
# from Peter Tobias (tobias@server.et-inf.fho-emden.de)
#
0	leshort		0x02f7		application/x-dvi

# RTF - Rich Text Format
0	string		{\\rtf		application/rtf

#------------------------------------------------------------------------------
# animation:  file(1) magic for animation/movie formats
#
# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
#						MPEG file
0	string		\000\000\001\263	video/mpeg
#
# The contributor claims:
#   I couldn't find a real magic number for these, however, this
#   -appears- to work.  Note that it might catch other files, too,
#   so BE CAREFUL!
#
# Note that title and author appear in the two 20-byte chunks
# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
# 255 (hex FF)! DL format SUCKS BIG ROCKS.
#
#						DL file version 1 , medium format (160x100, 4 images/screen)
0	byte		1			video/unknown
0	byte		2			video/unknown
# Quicktime video, from Linus Walleij <triad@df.lth.se>
# from Apple quicktime file format documentation.
4   string      moov        video/quicktime
4   string      mdat        video/quicktime

# PNG [Portable Network Graphics, or "PNG's Not GIF"] images
#
# 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
0   string      \211PNG\015      image/png
                                                                                                                                                                             Virtual_Configuration/tile10/webserver/Software_Configuration/php/                                  0000777 0000000 0000000 00000000000 11524350605 024450  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/Software_Configuration/php/php.ini                           0000644 0000000 0000000 00000206751 11524350605 025747  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   [PHP]

;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.

; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
; 1. SAPI module specific location.
; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; 4. Current working directory (except CLI)
; 5. The web server's directory (for SAPI modules), or directory of PHP
; (otherwise in Windows)
; 6. The directory from the --with-config-file-path compile time option, or the
; Windows directory (C:\windows or C:\winnt)
; See the PHP docs for more specific information.
; http://www.php.net/manual/en/configuration.file.php

; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future. 

; Directives following the section heading [PATH=/www/mysite] only
; apply to PHP files in the /www/mysite directory.  Directives
; following the section heading [HOST=www.example.com] only apply to
; PHP files served from www.example.com.  Directives set in these
; special sections cannot be overridden by user-defined INI files or
; at runtime. Currently, [PATH=] and [HOST=] sections only work under
; CGI/FastCGI.
; http://www.php.net/manual/en/ini.sections.php

; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
; Directives are variables used to configure PHP or PHP extensions.
; There is no name validation.  If PHP can't find an expected
; directive because it is not set or is mistyped, a default value will be used.

; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
; previously set variable or directive (e.g. ${foo})

; Expressions in the INI file are limited to bitwise operators and parentheses:
; |  bitwise OR
; ^  bitwise XOR
; &  bitwise AND
; ~  bitwise NOT
; !  boolean NOT

; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.

; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:

;  foo =         ; sets foo to an empty string
;  foo = None    ; sets foo to an empty string
;  foo = "None"  ; sets foo to the string 'None'

; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.

;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; PHP comes packaged with two INI files. One that is recommended to be used
; in production environments and one that is recommended to be used in
; development environments.

; php.ini-production contains settings which hold security, performance and
; best practices at its core. But please be aware, these settings may break
; compatibility with older or less security conscience applications. We
; recommending using the production ini in production and testing environments.

; php.ini-development is very similar to its production variant, except it's
; much more verbose when it comes to errors. We recommending using the
; development version only in development environments as errors shown to
; application users can inadvertently leak otherwise secure information.

; This 2 files are provided, by RPM, in /usr/share/doc/php-common-*/
; File used by RPM (the /etc/php.ini) is mainly the php.ini-production

;;;;;;;;;;;;;;;;;;;
; Quick Reference ;
;;;;;;;;;;;;;;;;;;;
; The following are all the settings which are different in either the production
; or development versions of the INIs with respect to PHP's default behavior.
; Please see the actual settings later in the document for more details as to why
; we recommend these changes in PHP's behavior.

; allow_call_time_pass_reference
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; display_errors
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; display_startup_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; error_reporting
;   Default Value: E_ALL & ~E_NOTICE
;   Development Value: E_ALL | E_STRICT
;   Production Value: E_ALL & ~E_DEPRECATED

; html_errors
;   Default Value: On
;   Development Value: On
;   Production value: Off

; log_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: On

; magic_quotes_gpc
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; max_input_time
;   Default Value: -1 (Unlimited)
;   Development Value: 60 (60 seconds)
;   Production Value: 60 (60 seconds)

; output_buffering
;   Default Value: Off
;   Development Value: 4096
;   Production Value: 4096

; register_argc_argv
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; register_long_arrays
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; request_order
;   Default Value: None
;   Development Value: "GP"
;   Production Value: "GP"

; session.bug_compat_42
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; session.bug_compat_warn
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; session.gc_divisor
;   Default Value: 100
;   Development Value: 1000
;   Production Value: 1000

; session.hash_bits_per_character
;   Default Value: 4
;   Development Value: 5
;   Production Value: 5

; short_open_tag
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; track_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; url_rewriter.tags
;   Default Value: "a=href,area=href,frame=src,form=,fieldset="
;   Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
;   Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"

; variables_order
;   Default Value: "EGPCS"
;   Development Value: "GPCS"
;   Production Value: "GPCS"

;;;;;;;;;;;;;;;;;;;;
; php.ini Options  ;
;;;;;;;;;;;;;;;;;;;;
; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
;user_ini.filename = ".user.ini"

; To disable this feature set this option to empty value
;user_ini.filename =

; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
;user_ini.cache_ttl = 300

;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
; http://www.php.net/manual/en/apache.configuration.php#ini.engine
engine = On

; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.short-open-tag
short_open_tag = Off

; Allow ASP-style <% %> tags.
; http://www.php.net/manual/en/ini.core.php#ini.asp-tags
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
; http://www.php.net/manual/en/ini.core.php#ini.precision
precision = 14

; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
; http://www.php.net/manual/en/ini.core.php#ini.y2k-compliance
y2k_compliance = On

; Output buffering is a mechanism for controlling how much output data
; (excluding headers and cookies) PHP should keep internally before pushing that
; data to the client. If your application's output exceeds this setting, PHP
; will send that data in chunks of roughly the size you specify.
; Turning on this setting and managing its maximum buffer size can yield some
; interesting side-effects depending on your application and web server.
; You may be able to send headers and cookies after you've already sent output
; through print or echo. You also may see performance benefits if your server is
; emitting less packets due to buffered output versus PHP streaming the output
; as it gets it. On production servers, 4096 bytes is a good setting for performance
; reasons.
; Note: Output buffering can also be controlled via Output Buffering Control
;   functions.
; Possible Values:
;   On = Enabled and buffer is unlimited. (Use with caution)
;   Off = Disabled
;   Integer = Enables the buffer and sets its maximum size in bytes.
; Default Value: Off
; Development Value: 4096
; Production Value: 4096
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-buffering
output_buffering = 4096

; You can redirect all of the output of your scripts to a function.  For
; example, if you set output_handler to "mb_output_handler", character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
;   directive. Instead, explicitly set the output handler using ob_start().
;   Using this ini directive may cause problems unless you know what script
;   is doing.
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
;   and you cannot use both "ob_gzhandler" and "zlib.output_compression".
; Note: output_handler must be empty if this is set 'On' !!!!
;   Instead you must use zlib.output_handler.
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-handler
;output_handler =

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
; Note: Resulting chunk size may vary due to nature of compression. PHP
;   outputs chunks that are few hundreds bytes each as a result of
;   compression. If you prefer a larger chunk size for better
;   performance, enable output_buffering in addition.
; Note: You need to use zlib.output_handler instead of the standard
;   output_handler, or otherwise the output will be corrupted.
; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression
zlib.output_compression = Off

; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression-level
;zlib.output_compression_level = -1

; You cannot specify additional output handlers if zlib.output_compression
; is activated here. This setting does the same as output_handler but in
; a different order.
; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-handler
;zlib.output_handler =

; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block.  This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block.  Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.implicit-flush
implicit_flush = Off

; The unserialize callback function will be called (with the undefined class'
; name as parameter), if the unserializer finds an undefined class
; which should be instantiated. A warning appears if the specified function is
; not defined, or if the function doesn't include/implement the missing class.
; So only set this entry, if you really want to implement such a
; callback-function.
unserialize_callback_func =

; When floats & doubles are serialized store serialize_precision significant
; digits after the floating point. The default value ensures that when floats
; are decoded with unserialize, the data will remain the same.
serialize_precision = 100

; This directive allows you to enable and disable warnings which PHP will issue
; if you pass a value by reference at function call time. Passing values by
; reference at function call time is a deprecated feature which will be removed
; from PHP at some point in the near future. The acceptable method for passing a
; value by reference to a function is by declaring the reference in the functions
; definition, not at call time. This directive does not disable this feature, it
; only determines whether PHP will warn you about it or not. These warnings
; should enabled in development environments only.
; Default Value: On (Suppress warnings)
; Development Value: Off (Issue warnings)
; Production Value: Off (Issue warnings)
; http://www.php.net/manual/en/ini.core.php#ini.allow-call-time-pass-reference
allow_call_time_pass_reference = Off

; Safe Mode
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode
safe_mode = Off

; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-gid
safe_mode_gid = Off

; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-include-dir
safe_mode_include_dir =

; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-exec-dir
safe_mode_exec_dir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here.  By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
; Note:  If this directive is empty, PHP will let the user modify ANY
;   environment variable!
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-allowed-env-vars
safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv().  These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-protected-env-vars
safe_mode_protected_env_vars = LD_LIBRARY_PATH

; open_basedir, if set, limits all file operations to the defined directory
; and below.  This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.open-basedir
;open_basedir =

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.disable-functions
disable_functions =

; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.disable-classes
disable_classes =

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; <span style="color: ???????"> would work.
; http://www.php.net/manual/en/misc.configuration.php#ini.syntax-highlighting
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg      = #FFFFFF
;highlight.default = #0000BB
;highlight.html    = #000000

; If enabled, the request will be allowed to complete even if the user aborts
; the request. Consider enabling it if executing long requests, which may end up
; being interrupted by the user or a browser timing out. PHP's default behavior
; is to disable this feature.
; http://www.php.net/manual/en/misc.configuration.php#ini.ignore-user-abort
;ignore_user_abort = On

; Determines the size of the realpath cache to be used by PHP. This value should
; be increased on systems where PHP opens many files to reflect the quantity of
; the file operations performed.
; http://www.php.net/manual/en/ini.core.php#ini.realpath-cache-size
;realpath_cache_size = 16k

; Duration of time, in seconds for which to cache realpath information for a given
; file or directory. For systems with rarely changing files, consider increasing this
; value.
; http://www.php.net/manual/en/ini.core.php#ini.realpath-cache-ttl
;realpath_cache_ttl = 120

;;;;;;;;;;;;;;;;;
; Miscellaneous ;
;;;;;;;;;;;;;;;;;

; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header).  It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
; http://www.php.net/manual/en/ini.core.php#ini.expose-php
expose_php = On

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time
max_execution_time = 30     

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts. 
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://www.php.net/manual/en/info.configuration.php#ini.max-input-time
max_input_time = 60

; Maximum input variable nesting level
; http://www.php.net/manual/en/info.configuration.php#ini.max-input-nesting-level
;max_input_nesting_level = 64

; Maximum amount of memory a script may consume (128MB)
; http://www.php.net/manual/en/ini.core.php#ini.memory-limit
memory_limit = 128M

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; This directive informs PHP of which errors, warnings and notices you would like
; it to take action for. The recommended way of setting values for this
; directive is through the use of the error level constants and bitwise
; operators. The error level constants are below here for convenience as well as
; some common settings and their meanings.
; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
; those related to E_NOTICE and E_STRICT, which together cover best practices and
; recommended coding standards in PHP. For performance reasons, this is the
; recommend error reporting setting. Your production server shouldn't be wasting
; resources complaining about best practices and coding standards. That's what
; development servers and development settings are for.
; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This
; means it pretty much reports everything which is exactly what you want during
; development and early testing.
;
; Error Level Constants:
; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
; E_ERROR           - fatal run-time errors
; E_RECOVERABLE_ERROR  - almost fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_STRICT          - run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
; E_DEPRECATED      - warn about code that will not work in future versions
;                     of PHP
; E_USER_DEPRECATED - user-generated deprecation warnings
;
; Common Values:
;   E_ALL & ~E_NOTICE  (Show all errors, except for notices and coding standards warnings.)
;   E_ALL & ~E_NOTICE | E_STRICT  (Show all errors, except for notices)
;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
;   E_ALL | E_STRICT  (Show all errors, warnings and notices including coding standards.)
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
error_reporting = E_ALL & ~E_DEPRECATED

; This directive controls whether or not and where PHP will output errors,
; notices and warnings too. Error output is very useful during development, but
; it could be very dangerous in production environments. Depending on the code
; which is triggering the error, sensitive information could potentially leak
; out of your application such as database usernames and passwords or worse.
; It's recommended that errors be logged on production servers rather than
; having the errors sent to STDOUT.
; Possible Values:
;   Off = Do not display any errors 
;   stderr = Display errors to STDERR (affects only CGI/CLI binaries!)   
;   On or stdout = Display errors to STDOUT
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors
display_errors = Off

; The display of errors which occur during PHP's startup sequence are handled
; separately from display_errors. PHP's default behavior is to suppress those
; errors from clients. Turning the display of startup errors on can be useful in
; debugging configuration problems. But, it's strongly recommended that you
; leave this setting off on production servers.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-startup-errors
display_startup_errors = Off

; Besides displaying errors, PHP can also log errors to locations such as a
; server-specific log, STDERR, or a location specified by the error_log
; directive found below. While errors should not be displayed on productions
; servers they should still be monitored and logging is a great way to do that.
; Default Value: Off
; Development Value: On
; Production Value: On
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors
log_errors = On

; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors-max-len
log_errors_max_len = 1024

; Do not log repeated messages. Repeated errors must occur in same file on same
; line unless ignore_repeated_source is set true.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.ignore-repeated-errors
ignore_repeated_errors = Off

; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; source lines.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.ignore-repeated-source
ignore_repeated_source = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.report-memleaks
report_memleaks = On

; This setting is on by default.
;report_zend_debug = 0

; Store the last error/warning message in $php_errormsg (boolean). Setting this value
; to On can assist in debugging and is appropriate for development servers. It should
; however be disabled on production servers.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors
track_errors = Off

; Turn off normal error reporting and emit XML-RPC error XML
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.xmlrpc-errors
;xmlrpc_errors = 0

; An XML-RPC faultCode
;xmlrpc_error_number = 0

; When PHP displays or logs an error, it has the capability of inserting html
; links to documentation related to that error. This directive controls whether
; those HTML links appear in error messages or not. For performance and security
; reasons, it's recommended you disable this on production servers.
; Default Value: On
; Development Value: On
; Production value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.html-errors
html_errors = Off

; If html_errors is set On PHP produces clickable error messages that direct
; to a page describing the error or function causing the error in detail.
; You can download a copy of the PHP manual from http://www.php.net/docs.php
; and change docref_root to the base URL of your local copy including the
; leading '/'. You must also specify the file extension being used including
; the dot. PHP's default behavior is to leave these settings empty.
; Note: Never use this feature for production boxes.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.docref-root
; Examples
;docref_root = "/phpmanual/"

; http://www.php.net/manual/en/errorfunc.configuration.php#ini.docref-ext
;docref_ext = .html

; String to output before an error message. PHP's default behavior is to leave
; this setting blank.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-prepend-string
; Example:
;error_prepend_string = "<font color=#ff0000>"

; String to output after an error message. PHP's default behavior is to leave
; this setting blank.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-append-string
; Example:
;error_append_string = "</font>"

; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-log
; Example:
;error_log = php_errors.log
; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog

;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;

; Note - track_vars is ALWAYS enabled as of PHP 4.0.3

; The separator used in PHP generated URLs to separate arguments.
; PHP's default setting is "&".
; http://www.php.net/manual/en/ini.core.php#ini.arg-separator.output
; Example:
;arg_separator.output = "&amp;"

; List of separator(s) used by PHP to parse input URLs into variables.
; PHP's default setting is "&".
; NOTE: Every character in this directive is considered as separator!
; http://www.php.net/manual/en/ini.core.php#ini.arg-separator.input
; Example:
;arg_separator.input = ";&"

; This directive determines which super global arrays are registered when PHP
; starts up. If the register_globals directive is enabled, it also determines
; what order variables are populated into the global space. G,P,C,E & S are
; abbreviations for the following respective super globals: GET, POST, COOKIE,
; ENV and SERVER. There is a performance penalty paid for the registration of
; these arrays and because ENV is not as commonly used as the others, ENV is
; is not recommended on productions servers. You can still get access to
; the environment variables through getenv() should you need to.
; Default Value: "EGPCS"
; Development Value: "GPCS"
; Production Value: "GPCS";
; http://www.php.net/manual/en/ini.core.php#ini.variables-order
variables_order = "GPCS"

; This directive determines which super global data (G,P,C,E & S) should
; be registered into the super global array REQUEST. If so, it also determines
; the order in which that data is registered. The values for this directive are
; specified in the same manner as the variables_order directive, EXCEPT one.
; Leaving this value empty will cause PHP to use the value set in the 
; variables_order directive. It does not mean it will leave the super globals
; array REQUEST empty.
; Default Value: None
; Development Value: "GP"
; Production Value: "GP"
; http://www.php.net/manual/en/ini.core.php#ini.request-order
request_order = "GP"

; Whether or not to register the EGPCS variables as global variables.  You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data.  This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARS[],
; variables.
; You should do your best to write your scripts so that they do not require
; register_globals to be on;  Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
; http://www.php.net/manual/en/ini.core.php#ini.register-globals
register_globals = Off

; Determines whether the deprecated long $HTTP_*_VARS type predefined variables
; are registered by PHP or not. As they are deprecated, we obviously don't
; recommend you use them. They are on by default for compatibility reasons but
; they are not recommended on production servers.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.register-long-arrays
register_long_arrays = Off

; This directive determines whether PHP registers $argv & $argc each time it
; runs. $argv contains an array of all the arguments passed to PHP when a script
; is invoked. $argc contains an integer representing the number of arguments
; that were passed when the script was invoked. These arrays are extremely
; useful when running scripts from the command line. When this directive is
; enabled, registering these variables consumes CPU cycles and memory each time
; a script is executed. For performance reasons, this feature should be disabled
; on production servers.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.register-argc-argv
register_argc_argv = Off

; When enabled, the SERVER and ENV variables are created when they're first
; used (Just In Time) instead of when the script starts. If these variables
; are not used within a script, having this directive on will result in a
; performance gain. The PHP directives register_globals, register_long_arrays,
; and register_argc_argv must be disabled for this directive to have any affect.
; http://www.php.net/manual/en/ini.core.php#ini.auto-globals-jit
auto_globals_jit = On

; Maximum size of POST data that PHP will accept.
; http://www.php.net/manual/en/ini.core.php#ini.post-max-size
post_max_size = 8M

; Magic quotes are a preprocessing feature of PHP where PHP will attempt to
; escape any character sequences in GET, POST, COOKIE and ENV data which might
; otherwise corrupt data being placed in resources such as databases before
; making that data available to you. Because of character encoding issues and
; non-standard SQL implementations across many databases, it's not currently
; possible for this feature to be 100% accurate. PHP's default behavior is to
; enable the feature. We strongly recommend you use the escaping mechanisms
; designed specifically for the database your using instead of relying on this
; feature. Also note, this feature has been deprecated as of PHP 5.3.0 and is
; scheduled for removal in PHP 6.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
; http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-runtime
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
; http://www.php.net/manual/en/sybase.configuration.php#ini.magic-quotes-sybase
magic_quotes_sybase = Off

; Automatically add files before PHP document.
; http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file
auto_prepend_file =

; Automatically add files after PHP document.
; http://www.php.net/manual/en/ini.core.php#ini.auto-append-file
auto_append_file =

; As of 4.0b4, PHP always outputs a character encoding by default in
; the Content-type: header.  To disable sending of the charset, simply
; set it to be empty.
;
; PHP's built-in default is text/html
; http://www.php.net/manual/en/ini.core.php#ini.default-mimetype
default_mimetype = "text/html"

; PHP's default character set is set to empty.
; http://www.php.net/manual/en/ini.core.php#ini.default-charset
;default_charset = "iso-8859-1"

; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
; to disable this feature.
; http://www.php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data
;always_populate_raw_post_data = On

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
;
; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://www.php.net/manual/en/ini.core.php#ini.include-path

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
; http://www.php.net/manual/en/ini.core.php#ini.doc-root
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
; http://www.php.net/manual/en/ini.core.php#ini.user-dir
user_dir =

; Directory in which the loadable extensions (modules) reside.
; http://www.php.net/manual/en/ini.core.php#ini.extension-dir
; extension_dir = "./"

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
; http://www.php.net/manual/en/info.configuration.php#ini.enable-dl
enable_dl = Off

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers.  Left undefined, PHP turns this on by default.  You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; http://www.php.net/manual/en/ini.core.php#ini.cgi.force-redirect
;cgi.force_redirect = 1

; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
; every request. PHP's default behavior is to disable this feature.
;cgi.nph = 1

; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution.  Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.redirect-status-env
;cgi.redirect_status_env = ;

; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
; this to 1 will cause PHP CGI to fix its paths to conform to the spec.  A setting
; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.fix-pathinfo
;cgi.fix_pathinfo=1

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; security tokens of the calling client.  This allows IIS to define the
; security context that the request runs under.  mod_fastcgi under Apache
; does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS.  Default is zero.
; http://www.php.net/manual/en/ini.core.php#ini.fastcgi.impersonate
;fastcgi.impersonate = 1;

; Disable logging through FastCGI connection. PHP's default behavior is to enable
; this feature.
;fastcgi.logging = 0

; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
; is supported by Apache. When this option is set to 1 PHP will send
; RFC2616 compliant header.
; Default is zero.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.rfc2616-headers
;cgi.rfc2616_headers = 0

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
; http://www.php.net/manual/en/ini.core.php#ini.file-uploads
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://www.php.net/manual/en/ini.core.php#ini.upload-tmp-dir
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
; http://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize
upload_max_filesize = 2M

;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen
allow_url_fopen = On

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-include
allow_url_include = Off

; Define the anonymous ftp password (your email address). PHP's default setting
; for this is empty.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.from
;from="john@doe.com"

; Define the User-Agent string. PHP's default setting for this is empty.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.user-agent
;user_agent="PHP"

; Default timeout for socket based streams (seconds)
; http://www.php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout
default_socket_timeout = 60

; If your scripts have to deal with files from Macintosh systems,
; or you are running on a Mac and need to deal with files from
; unix or win32 systems, setting this flag will cause PHP to
; automatically detect the EOL character in those files so that
; fgets() and file() will work regardless of the source of the file.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.auto-detect-line-endings
;auto_detect_line_endings = Off

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example
;
;   extension=msql.so
;
; ... or with a path:
;
;   extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.

;;;;
; Note: packaged extension modules are now loaded via the .ini files
; found in the directory /etc/php.d; these are loaded by default.
;;;;


;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
;date.timezone =

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.default-latitude
;date.default_latitude = 31.7667

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.default-longitude
;date.default_longitude = 35.2333

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.sunrise-zenith
;date.sunrise_zenith = 90.583333

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.sunset-zenith
;date.sunset_zenith = 90.583333

[filter]
; http://www.php.net/manual/en/filter.configuration.php#ini.filter.default
;filter.default = unsafe_raw

; http://www.php.net/manual/en/filter.configuration.php#ini.filter.default-flags
;filter.default_flags =

[iconv]
;iconv.input_encoding = ISO-8859-1
;iconv.internal_encoding = ISO-8859-1
;iconv.output_encoding = ISO-8859-1

[intl]
;intl.default_locale = 

[sqlite]
; http://www.php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case
;sqlite.assoc_case = 0

[sqlite3]
;sqlite3.extension_dir =

[Pcre]
;PCRE library backtracking limit.
; http://www.php.net/manual/en/pcre.configuration.php#ini.pcre.backtrack-limit
;pcre.backtrack_limit=100000

;PCRE library recursion limit. 
;Please note that if you set this value to a high number you may consume all 
;the available process stack and eventually crash PHP (due to reaching the 
;stack size limit imposed by the Operating System).
; http://www.php.net/manual/en/pcre.configuration.php#ini.pcre.recursion-limit
;pcre.recursion_limit=100000

[Pdo]
; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
; http://www.php.net/manual/en/ref.pdo-odbc.php#ini.pdo-odbc.connection-pooling
;pdo_odbc.connection_pooling=strict

[Phar]
; http://www.php.net/manual/en/phar.configuration.php#ini.phar.readonly
;phar.readonly = On

; http://www.php.net/manual/en/phar.configuration.php#ini.phar.require-hash
;phar.require_hash = On

;phar.cache_list =

[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.).  Turning it off is a good idea performance-wise.  In
; runtime, you can define these variables by calling define_syslog_variables().
; http://www.php.net/manual/en/network.configuration.php#ini.define-syslog-variables
define_syslog_variables  = Off

[mail function]
; For Win32 only.
; http://www.php.net/manual/en/mail.configuration.php#ini.smtp
SMTP = localhost
; http://www.php.net/manual/en/mail.configuration.php#ini.smtp-port
smtp_port = 25

; For Win32 only.
; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-from
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-path
sendmail_path = /usr/sbin/sendmail -t -i

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originaiting-Script: that will include uid of the script followed by the filename
mail.add_x_header = On

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log =

[SQL]
; http://www.php.net/manual/en/ini.core.php#ini.sql.safe-mode
sql.safe_mode = Off

[ODBC]
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-db
;odbc.default_db    =  Not yet implemented

; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-user
;odbc.default_user  =  Not yet implemented

; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-pw
;odbc.default_pw    =  Not yet implemented

; Allow or prevent persistent links.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.allow-persistent
odbc.allow_persistent = On

; Check that a connection is still valid before reuse.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.check-persistent
odbc.check_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.max-persistent
odbc.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.max-links
odbc.max_links = -1

; Handling of LONG fields.  Returns number of bytes to variables.  0 means
; passthru.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.defaultlrl
odbc.defaultlrl = 4096

; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of uodbc.defaultlrl and uodbc.defaultbinmode
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.defaultbinmode
odbc.defaultbinmode = 1

;birdstep.max_links = -1

[MySQL]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.allow-persistent
mysql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.max-persistent
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.max-links
mysql.max_links = -1

; Default port number for mysql_connect().  If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-port
mysql.default_port =

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-socket
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-host
mysql.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-user
mysql.default_user =

; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-password
mysql.default_password =

; Maximum time (in seconds) for connect timeout. -1 means no limit
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.connect-timeout
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.trace-mode
mysql.trace_mode = Off

[MySQLi]

; Maximum number of links.  -1 means no limit.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.max-links
mysqli.max_links = -1

; Default port number for mysqli_connect().  If unset, mysqli_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-port
mysqli.default_port = 3306

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-socket
mysqli.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-host
mysqli.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-user
mysqli.default_user =

; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-pw
mysqli.default_pw =

; Allow or prevent reconnect
mysqli.reconnect = Off

[PostgresSQL]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.allow-persistent
pgsql.allow_persistent = On

; Detect broken persistent links always with pg_pconnect().
; Auto reset feature requires a little overheads.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.auto-reset-persistent
pgsql.auto_reset_persistent = Off

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-persistent
pgsql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-links
pgsql.max_links = -1

; Ignore PostgreSQL backends Notice message or not.
; Notice message logging require a little overheads.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.ignore-notice
pgsql.ignore_notice = 0

; Log PostgreSQL backends Noitce message or not.
; Unless pgsql.ignore_notice=0, module cannot log notice message.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.log-notice
pgsql.log_notice = 0

[Sybase-CT]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.allow-persistent
sybct.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.max-persistent
sybct.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.max-links
sybct.max_links = -1

; Minimum server message severity to display.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.min-server-severity
sybct.min_server_severity = 10

; Minimum client message severity to display.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.min-client-severity
sybct.min_client_severity = 10

; Set per-context timeout
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.timeout
;sybct.timeout=

;sybct.packet_size

[bcmath]
; Number of decimal digits for all bcmath functions.
; http://www.php.net/manual/en/bc.configuration.php#ini.bcmath.scale
bcmath.scale = 0

[browscap]
; http://www.php.net/manual/en/misc.configuration.php#ini.browscap
;browscap = extra/browscap.ini

[Session]
; Handler used to store/retrieve data.
; http://www.php.net/manual/en/session.configuration.php#ini.session.save-handler
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
;
; As of PHP 4.0.1, you can define the path as:
;
;     session.save_path = "N;/path"
;
; where N is an integer.  Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories.  This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
;         You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
;         use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
;     session.save_path = "N;MODE;/path"
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
; http://www.php.net/manual/en/session.configuration.php#ini.session.save-path
session.save_path = "/var/lib/php/session"

; Whether to use cookies.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-cookies
session.use_cookies = 1

; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-secure
;session.cookie_secure =

; This option forces PHP to fetch and use a cookie for storing and maintaining
; the session id. We encourage this operation as it's very helpful in combatting
; session hijacking when not specifying and managing your own session id. It is
; not the end all be all of session hijacking defense, but it's a good start.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-only-cookies
session.use_only_cookies = 1

; Name of the session (used as cookie name).
; http://www.php.net/manual/en/session.configuration.php#ini.session.name
session.name = PHPSESSID

; Initialize session on request startup.
; http://www.php.net/manual/en/session.configuration.php#ini.session.auto-start
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime
session.cookie_lifetime = 0

; The path for which the cookie is valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-path
session.cookie_path = /

; The domain for which the cookie is valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-domain
session.cookie_domain =

; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-httponly
session.cookie_httponly = 

; Handler used to serialize data.  php is the standard serializer of PHP.
; http://www.php.net/manual/en/session.configuration.php#ini.session.serialize-handler
session.serialize_handler = php

; Defines the probability that the 'garbage collection' process is started
; on every session initialization. The probability is calculated by using
; gc_probability/gc_divisor. Where session.gc_probability is the numerator
; and gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request.
; Default Value: 1
; Development Value: 1
; Production Value: 1
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-probability
session.gc_probability = 1

; Defines the probability that the 'garbage collection' process is started on every
; session initialization. The probability is calculated by using the following equation: 
; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
; session.gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request. Increasing this value to 1000 will give you
; a 0.1% chance the gc will run on any give request. For high volume production servers,
; this is a more efficient approach.
; Default Value: 100
; Development Value: 1000
; Production Value: 1000
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-divisor
session.gc_divisor = 1000

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime
session.gc_maxlifetime = 1440

; NOTE: If you are using the subdirectory option for storing session files
;       (see session.save_path above), then garbage collection does *not*
;       happen automatically.  You will need to do your own garbage
;       collection through a shell script, cron entry, or some other method.
;       For example, the following script would is the equivalent of
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
;          cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, even when register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled. This feature
; introduces some serious security problems if not handled correctly. It's
; recommended that you do not use this feature on production servers. But you
; should enable this on development servers and enable the warning as well. If you
; do not enable the feature on development servers, you won't be warned when it's
; used and debugging errors caused by this can be difficult to track down.
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/session.configuration.php#ini.session.bug-compat-42
session.bug_compat_42 = Off

; This setting controls whether or not you are warned by PHP when initializing a
; session value into the global space. session.bug_compat_42 must be enabled before
; these warnings can be issued by PHP. See the directive above for more information.
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/session.configuration.php#ini.session.bug-compat-warn
session.bug_compat_warn = Off

; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.referer-check
session.referer_check =

; How many bytes to read from the file.
; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-length
session.entropy_length = 0

; Specified here to create the session id.
; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-file
;session.entropy_file = /dev/urandom
session.entropy_file =

; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-length
;session.entropy_length = 16

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cache-limiter
session.cache_limiter = nocache

; Document expires after n minutes.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cache-expire
session.cache_expire = 180

; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
;   to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
;   in publically accessible computer.
; - User may access your site with the same session ID
;   always using URL stored in browser's history or bookmarks.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-trans-sid
session.use_trans_sid = 0

; Select a hash function for use in generating session ids.
; Possible Values 
;   0  (MD5 128 bits)
;   1  (SHA-1 160 bits)
; http://www.php.net/manual/en/session.configuration.php#ini.session.hash-function
session.hash_function = 0

; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
; Possible values:
;   4  (4 bits: 0-9, a-f)
;   5  (5 bits: 0-9, a-v)
;   6  (6 bits: 0-9, a-z, A-Z, "-", ",")
; Default Value: 4
; Development Value: 5
; Production Value: 5
; http://www.php.net/manual/en/session.configuration.php#ini.session.hash-bits-per-character
session.hash_bits_per_character = 5

; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden <input> field with the info which is otherwise appended
; to URLs.  If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a "=", even if no value follows.
; Default Value: "a=href,area=href,frame=src,form=,fieldset="
; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; http://www.php.net/manual/en/session.configuration.php#ini.url-rewriter.tags
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
mssql.max_links = -1

; Minimum error severity to display.
mssql.min_error_severity = 10

; Minimum message severity to display.
mssql.min_message_severity = 10

; Compatibility mode with old versions of PHP 3.0.
mssql.compatability_mode = Off

; Connect timeout
;mssql.connect_timeout = 5

; Query timeout
;mssql.timeout = 60

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textsize = 4096

; Limits the number of records in each batch.  0 = all records in one batch.
;mssql.batchsize = 0

; Specify how datetime and datetim4 columns are returned
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server
mssql.secure_connection = Off

; Specify max number of processes. -1 = library default
; msdlib defaults to 25
; FreeTDS defaults to 4096
;mssql.max_procs = -1

; Specify client character set. 
; If empty or not set the client charset from freetds.comf is used
; This is only used when compiled with FreeTDS
;mssql.charset = "ISO-8859-1"

[Assertion]
; Assert(expr); active by default.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.active
;assert.active = On

; Issue a PHP warning for each failed assertion.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.warning
;assert.warning = On

; Don't bail out by default.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.bail
;assert.bail = Off

; User-function to be called if an assertion fails.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.callback
;assert.callback = 0

; Eval the expression with current error_reporting().  Set to true if you want
; error_reporting(0) around the eval().
; http://www.php.net/manual/en/info.configuration.php#ini.assert.quiet-eval
;assert.quiet_eval = 0

[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
; http://www.php.net/manual/en/com.configuration.php#ini.com.typelib-file
;com.typelib_file =

; allow Distributed-COM calls
; http://www.php.net/manual/en/com.configuration.php#ini.com.allow-dcom
;com.allow_dcom = true

; autoregister constants of a components typlib on com_load()
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-typelib
;com.autoregister_typelib = true

; register constants casesensitive
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-casesensitive
;com.autoregister_casesensitive = false

; show warnings on duplicate constant registrations
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-verbose
;com.autoregister_verbose = true

[mbstring]
; language for internal character representation.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.language
;mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.internal-encoding
;mbstring.internal_encoding = EUC-JP

; http input encoding.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-input
;mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-output
;mbstring.http_output = SJIS

; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.encoding-translation
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; auto means
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.detect-order
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.substitute-character
;mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.func-overload
;mbstring.func_overload = 0

; enable strict encoding detection.
;mbstring.strict_detection = Off

; This directive specifies the regex pattern of content types for which mb_output_handler()
; is activated.
; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
;mbstring.http_output_conv_mimetype=

[gd]
; Tell the jpeg decode to ignore warnings and try to create
; a gd image. The warning will then be displayed as notices
; disabled by default
; http://www.php.net/manual/en/image.configuration.php#ini.image.jpeg-ignore-warning
;gd.jpeg_ignore_warning = 0

[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-unicode
;exif.encode_unicode = ISO-8859-15

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-motorola
;exif.decode_unicode_motorola = UCS-2BE

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-intel
;exif.decode_unicode_intel    = UCS-2LE

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-jis
;exif.encode_jis =

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-motorola
;exif.decode_jis_motorola = JIS

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-intel
;exif.decode_jis_intel    = JIS

[Tidy]
; The path to a default tidy configuration file to use when using tidy
; http://www.php.net/manual/en/tidy.configuration.php#ini.tidy.default-config
;tidy.default_config = /usr/local/lib/php/default.tcfg

; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
; http://www.php.net/manual/en/tidy.configuration.php#ini.tidy.clean-output
tidy.clean_output = Off

[soap]
; Enables or disables WSDL caching feature.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-enabled
soap.wsdl_cache_enabled=1

; Sets the directory name where SOAP extension will put cache files.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-dir
soap.wsdl_cache_dir="/tmp"

; (time to live) Sets the number of second while cached file will be used 
; instead of original one.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-ttl
soap.wsdl_cache_ttl=86400

[sysvshm]
; A default size of the shared memory segment
;sysvshm.init_mem = 10000


; Local Variables:
; tab-width: 4
; End:
                       Virtual_Configuration/tile10/webserver/Software_Configuration/php/php.d/                            0000777 0000000 0000000 00000000000 11524350605 025461  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/webserver/Software_Configuration/php/php.d/phar.ini                    0000644 0000000 0000000 00000000061 11524350605 027105  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable phar extension module
extension=phar.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/webserver/Software_Configuration/php/php.d/zip.ini                     0000644 0000000 0000000 00000000057 11524350605 026762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable zip extension module
extension=zip.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/webserver/Software_Configuration/php/php.d/json.ini                    0000644 0000000 0000000 00000000061 11524350604 027123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable json extension module
extension=json.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/webserver/Software_Configuration/php/php.d/apc.ini                     0000644 0000000 0000000 00000005340 11524350604 026722  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable apc extension module
extension = apc.so

; Options for the APC module version >= 3.1.3

; This can be set to 0 to disable APC. 
apc.enabled=1
; The number of shared memory segments to allocate for the compiler cache. 
apc.shm_segments=1
; The size of each shared memory segment in MB.
apc.shm_size=64
; A "hint" about the number of distinct source files that will be included or 
; requested on your web server. Set to zero or omit if you're not sure;
apc.num_files_hint=1024
; Just like num_files_hint, a "hint" about the number of distinct user cache
; variables to store.  Set to zero or omit if you're not sure;
apc.user_entries_hint=4096
; The number of seconds a cache entry is allowed to idle in a slot in case this
; cache entry slot is needed by another entry.
apc.ttl=7200
; use the SAPI request start time for TTL
apc.use_request_time=1
; The number of seconds a user cache entry is allowed to idle in a slot in case
; this cache entry slot is needed by another entry.
apc.user_ttl=7200
; The number of seconds that a cache entry may remain on the garbage-collection list. 
apc.gc_ttl=3600
; On by default, but can be set to off and used in conjunction with positive
; apc.filters so that files are only cached if matched by a positive filter.
apc.cache_by_default=1
; A comma-separated list of POSIX extended regular expressions.
apc.filters
; The mktemp-style file_mask to pass to the mmap module 
apc.mmap_file_mask=/tmp/apc.XXXXXX
; This file_update_protection setting puts a delay on caching brand new files.
apc.file_update_protection=2
; Setting this enables APC for the CLI version of PHP (Mostly for testing and debugging).
apc.enable_cli=0
; Prevents large files from being cached
apc.max_file_size=1M
; Whether to stat the main script file and the fullpath includes.
apc.stat=1
; Vertification with ctime will avoid problems caused by programs such as svn or rsync by making 
; sure inodes havn't changed since the last stat. APC will normally only check mtime.
apc.stat_ctime=0
; Whether to canonicalize paths in stat=0 mode or fall back to stat behaviour
apc.canonicalize=0
; With write_lock enabled, only one process at a time will try to compile an 
; uncached script while the other processes will run uncached
apc.write_lock=1
; Logs any scripts that were automatically excluded from being cached due to early/late binding issues.
apc.report_autofilter=0
; RFC1867 File Upload Progress hook handler
apc.rfc1867=0
apc.rfc1867_prefix =upload_
apc.rfc1867_name=APC_UPLOAD_PROGRESS
apc.rfc1867_freq=0
apc.rfc1867_ttl=3600
; Optimize include_once and require_once calls and avoid the expensive system calls used.
apc.include_once_override=0
apc.lazy_classes=00
apc.lazy_functions=0
; not documented
apc.coredump_unmap=0
apc.file_md5=0
apc.preload_path
                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile10/webserver/Software_Configuration/php/php.d/curl.ini                    0000644 0000000 0000000 00000000061 11524350604 027117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable curl extension module
extension=curl.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/webserver/Software_Configuration/php/php.d/fileinfo.ini                0000644 0000000 0000000 00000000071 11524350604 027746  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable fileinfo extension module
extension=fileinfo.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/mailserver/                                                            0000777 0000000 0000000 00000000000 11524350564 017351  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/                                           0000777 0000000 0000000 00000000000 11524350603 022614  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/proc/                                      0000777 0000000 0000000 00000000000 11524350602 023556  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/proc/cpuinfo                               0000644 0000000 0000000 00000001017 11524350602 025137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/mailserver/VM_configuration/proc/mounts                                0000644 0000000 0000000 00000001357 11524350602 025030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1020708k,nr_inodes=255177,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1306,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1306,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/mailserver/VM_configuration/proc/swaps                                 0000644 0000000 0000000 00000000144 11524350602 024631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/mailserver/VM_configuration/proc/devices                               0000644 0000000 0000000 00000000567 11524350602 025127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile10/mailserver/VM_configuration/proc/modules                               0000644 0000000 0000000 00000002621 11524350602 025146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 42 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile10/mailserver/VM_configuration/proc/partitions                            0000644 0000000 0000000 00000000260 11524350602 025667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   41943040 vdb
 252       17   41943024 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile10/mailserver/VM_configuration/proc/meminfo                               0000644 0000000 0000000 00000002222 11524350602 025125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2055756 kB
MemFree:          361216 kB
Buffers:          371860 kB
Cached:           902928 kB
SwapCached:            0 kB
Active:           896964 kB
Inactive:         449536 kB
Active(anon):      15760 kB
Inactive(anon):    56144 kB
Active(file):     881204 kB
Inactive(file):   393392 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               272 kB
Writeback:             0 kB
AnonPages:         71748 kB
Mapped:             9604 kB
Shmem:               164 kB
Slab:             327284 kB
SReclaimable:     256200 kB
SUnreclaim:        71084 kB
KernelStack:        1056 kB
PageTables:         3880 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3075868 kB
Committed_AS:     177088 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       11532 kB
VmallocChunk:   34359719476 kB
HardwareCorrupted:     0 kB
AnonHugePages:     24576 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2088960 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/mailserver/VM_configuration/root/                                      0000777 0000000 0000000 00000000000 11524350602 023576  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/root/convert_to_vf.sh                      0000755 0000000 0000000 00000001135 11524350602 027006  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/lspci.txt                                  0000644 0000000 0000000 00000001211 11524350601 024454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/mailserver/VM_configuration/df.txt                                     0000644 0000000 0000000 00000000401 11524350565 023744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3827476   8953460  30% /
tmpfs                  1027876         0   1027876   0% /dev/shm
/dev/vdb1             41284912  24789984  14397780  64% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/mailserver/VM_configuration/mount.txt                                  0000644 0000000 0000000 00000000612 11524350602 024511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile10/mailserver/VM_configuration/etc/                                       0000777 0000000 0000000 00000000000 11524350601 023365  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/                                  0000777 0000000 0000000 00000000000 11524350574 024224  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/                            0000777 0000000 0000000 00000000000 11524350601 025124  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests           0000755 0000000 0000000 00000017172 11524350574 030327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                  0000755 0000000 0000000 00000004325 11524350574 026745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd               0000755 0000000 0000000 00000006014 11524350575 027534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                 0000755 0000000 0000000 00000012327 11524350576 027136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                0000755 0000000 0000000 00000005222 11524350577 027322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                     0000755 0000000 0000000 00000010671 11524350601 026311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                    0000755 0000000 0000000 00000006364 11524350575 026475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                0000755 0000000 0000000 00000020716 11524350576 027246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                     0000755 0000000 0000000 00000004731 11524350576 026325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon             0000755 0000000 0000000 00000004754 11524350574 027677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                0000755 0000000 0000000 00000001364 11524350601 027330  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                    0000755 0000000 0000000 00000003027 11524350576 026463  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                   0000755 0000000 0000000 00000006743 11524350601 026651  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                    0000755 0000000 0000000 00000010777 11524350576 026470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus               0000755 0000000 0000000 00000004230 11524350600 027471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                    0000755 0000000 0000000 00000006302 11524350576 026437  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                      0000755 0000000 0000000 00000004236 11524350601 026144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                  0000755 0000000 0000000 00000004031 11524350577 026770  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance               0000755 0000000 0000000 00000003521 11524350577 027453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                  0000755 0000000 0000000 00000006050 11524350600 027010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                  0000755 0000000 0000000 00000002363 11524350576 027074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger               0000755 0000000 0000000 00000004054 11524350574 027503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                0000755 0000000 0000000 00000005013 11524350577 027362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                    0000755 0000000 0000000 00000003213 11524350576 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                  0000755 0000000 0000000 00000003512 11524350575 027007  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                     0000755 0000000 0000000 00000003603 11524350575 026315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                   0000755 0000000 0000000 00000011277 11524350575 026642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S10network                  0000755 0000000 0000000 00000014466 11524350577 027052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                  0000755 0000000 0000000 00000004326 11524350577 027057  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                   0000755 0000000 0000000 00000006462 11524350577 026631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                    0000755 0000000 0000000 00000027662 11524350600 026467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                     0000755 0000000 0000000 00000006445 11524350575 026220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                0000755 0000000 0000000 00000003245 11524350600 027274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K60crond                    0000755 0000000 0000000 00000005445 11524350575 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                    0000755 0000000 0000000 00000005522 11524350574 026457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl            0000755 0000000 0000000 00000002221 11524350577 030150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                0000755 0000000 0000000 00000004010 11524350575 027317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                      0000755 0000000 0000000 00000013536 11524350575 026137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                     0000755 0000000 0000000 00000004723 11524350600 026270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                   0000755 0000000 0000000 00000003024 11524350575 026610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                    0000755 0000000 0000000 00000003275 11524350600 026427  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                 0000755 0000000 0000000 00000025442 11524350577 027170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                0000755 0000000 0000000 00000004370 11524350600 027272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S99local                    0000755 0000000 0000000 00000000334 11524350601 026445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                  0000755 0000000 0000000 00000006675 11524350577 027027  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole               0000755 0000000 0000000 00000005650 11524350575 027517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor             0000555 0000000 0000000 00000004612 11524350577 027715  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                   0000755 0000000 0000000 00000007234 11524350600 026651  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                 0000755 0000000 0000000 00000003433 11524350601 027203  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                   0000755 0000000 0000000 00000005672 11524350574 026637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                    0000755 0000000 0000000 00000003254 11524350601 026443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                0000755 0000000 0000000 00000005063 11524350600 027316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                    0000755 0000000 0000000 00000012432 11524350600 026460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                  0000755 0000000 0000000 00000007414 11524350575 027040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                 0000755 0000000 0000000 00000020557 11524350576 027163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond              0000755 0000000 0000000 00000003427 11524350576 027710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/rc3.d/K05atd                      0000755 0000000 0000000 00000004112 11524350574 026105  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/                           0000777 0000000 0000000 00000000000 11524350574 025411  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/network                    0000755 0000000 0000000 00000014466 11524350571 027034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/gfs2                       0000755 0000000 0000000 00000006445 11524350567 026207  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/sysstat                    0000755 0000000 0000000 00000002363 11524350573 027050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/saslauthd                  0000755 0000000 0000000 00000004010 11524350573 027315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/messagebus                 0000755 0000000 0000000 00000004230 11524350571 027465  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/autobench                  0000755 0000000 0000000 00000005063 11524350566 027310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/atd                        0000755 0000000 0000000 00000004112 11524350566 026102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/mcelogd                    0000755 0000000 0000000 00000003535 11524350571 026750  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/auditd                     0000755 0000000 0000000 00000006462 11524350566 026616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/certmonger                 0000755 0000000 0000000 00000004054 11524350567 027505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/irqbalance                 0000755 0000000 0000000 00000003521 11524350570 027431  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/acpid                      0000755 0000000 0000000 00000003275 11524350566 026423  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/nscd                       0000755 0000000 0000000 00000004723 11524350572 026266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                  0000755 0000000 0000000 00000005222 11524350573 027276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/nfs                        0000755 0000000 0000000 00000013536 11524350571 026126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/sssd                       0000755 0000000 0000000 00000004731 11524350573 026313  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/crond                      0000755 0000000 0000000 00000005445 11524350567 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/ip6tables                  0000755 0000000 0000000 00000020716 11524350570 027226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/autofs                     0000755 0000000 0000000 00000007234 11524350567 026644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/sshd                       0000755 0000000 0000000 00000010671 11524350573 026300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/ksm                        0000755 0000000 0000000 00000004236 11524350570 026126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/libvirt-guests             0000755 0000000 0000000 00000017172 11524350570 030322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/avahi-daemon               0000755 0000000 0000000 00000004754 11524350567 027700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/ypbind                     0000755 0000000 0000000 00000011277 11524350574 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/psacct                     0000755 0000000 0000000 00000003024 11524350572 026605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/xinetd                     0000755 0000000 0000000 00000006743 11524350574 026640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/nfslock                    0000755 0000000 0000000 00000006675 11524350571 027005  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/cgred                      0000755 0000000 0000000 00000006302 11524350567 026422  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/migrateip                  0000755 0000000 0000000 00000001364 11524350571 027315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/udev-post                  0000755 0000000 0000000 00000004370 11524350574 027265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/haldaemon                  0000755 0000000 0000000 00000003245 11524350567 027271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/ipsec                      0000755 0000000 0000000 00000010777 11524350570 026446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/rpcbind                    0000755 0000000 0000000 00000004031 11524350572 026750  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/rhnsd                      0000755 0000000 0000000 00000005522 11524350572 026453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/functions                  0000644 0000000 0000000 00000042767 11524350567 027362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/kdump                      0000755 0000000 0000000 00000027662 11524350570 026464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/postfix                    0000755 0000000 0000000 00000007414 11524350572 027033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/iptables                   0000755 0000000 0000000 00000020557 11524350570 027143  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/rsyslog                    0000755 0000000 0000000 00000004326 11524350573 027041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/netconsole                 0000755 0000000 0000000 00000005650 11524350571 027507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/rpcgssd                    0000755 0000000 0000000 00000006050 11524350572 026777  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/abrtd                      0000755 0000000 0000000 00000003254 11524350566 026434  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor               0000555 0000000 0000000 00000004612 11524350571 027676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/halt                       0000755 0000000 0000000 00000012723 11524350567 026272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/cgconfig                   0000755 0000000 0000000 00000012327 11524350567 027121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/single                     0000755 0000000 0000000 00000001207 11524350573 026613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/mdmonitor                  0000755 0000000 0000000 00000005013 11524350571 027337  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/restorecond                0000755 0000000 0000000 00000003427 11524350572 027666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/cpuspeed                   0000755 0000000 0000000 00000025442 11524350567 027154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/netfs                      0000755 0000000 0000000 00000012432 11524350571 026451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524350573 027514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/oddjobd                    0000755 0000000 0000000 00000004325 11524350572 026742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/ksmtuned                   0000755 0000000 0000000 00000003433 11524350570 027164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/sandbox                    0000755 0000000 0000000 00000003242 11524350573 026771  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/killall                    0000755 0000000 0000000 00000001214 11524350570 026751  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/rdisc                      0000755 0000000 0000000 00000003027 11524350572 026437  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/httpd                      0000755 0000000 0000000 00000006364 11524350570 026463  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/ntpd                       0000755 0000000 0000000 00000003603 11524350572 026300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/smartd                     0000755 0000000 0000000 00000005672 11524350573 026636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/nslcd                      0000755 0000000 0000000 00000003213 11524350572 026433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/ntpdate                    0000755 0000000 0000000 00000003512 11524350572 026771  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile10/mailserver/VM_configuration/etc/rc.d/init.d/microcode_ctl              0000755 0000000 0000000 00000002221 11524350571 030133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/mailserver/VM_configuration/etc/hosts                                  0000644 0000000 0000000 00000000267 11524350565 024462  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/mailserver/VM_configuration/etc/iproute2/                              0000777 0000000 0000000 00000000000 11524350566 025150  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/etc/iproute2/rt_dsfield                    0000644 0000000 0000000 00000000672 11524350565 027212  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile10/mailserver/VM_configuration/etc/iproute2/rt_realms                     0000644 0000000 0000000 00000000160 11524350566 027054  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile10/mailserver/VM_configuration/etc/iproute2/rt_scopes                     0000644 0000000 0000000 00000000134 11524350566 027066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/mailserver/VM_configuration/etc/iproute2/ematch_map                    0000644 0000000 0000000 00000000073 11524350565 027164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/mailserver/VM_configuration/etc/iproute2/rt_tables                     0000644 0000000 0000000 00000000127 11524350566 027046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/mailserver/VM_configuration/etc/iproute2/rt_protos                     0000644 0000000 0000000 00000000475 11524350566 027130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/etc/nsswitch.conf                          0000644 0000000 0000000 00000003230 11524350566 026102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/mailserver/VM_configuration/etc/fstab                                  0000644 0000000 0000000 00000001603 11524350565 024414  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile10/mailserver/VM_configuration/etc/sysctl.conf                            0000644 0000000 0000000 00000001466 11524350601 025560  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile10/mailserver/VM_configuration/etc/inittab                                0000644 0000000 0000000 00000001564 11524350565 024755  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile10/mailserver/VM_configuration/var/                                       0000777 0000000 0000000 00000000000 11524350603 023404  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/var/log/                                   0000777 0000000 0000000 00000000000 11524350603 024165  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/var/log/dmesg                              0000644 0000000 0000000 00000043370 11524350603 025212  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007fffd000 (usable)
 BIOS-e820: 000000007fffd000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x7fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007fffd000
 0000000000 - 007fe00000 page 2M
 007fe00000 - 007fffd000 page 4k
kernel direct mapping tables up to 7fffd000 @ 8000-c000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000007fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000007ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000007fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000007ffffe00 00040
ACPI: SSDT 000000007fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000007fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000007fffd000
Bootmem setup node 0 0000000000000000-000000007fffd000
  NODE_DATA [000000000000a000 - 000000000003dfff]
  bootmap [000000000003e000 -  000000000004dfff] pages 10
(7 early reservations) ==> bootmem [0000000000 - 007fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000a000]          PGTABLE ==> [0000008000 - 000000a000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0001bfffff] PMD -> [ffff880002200000-ffff880003dfffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0007fffd
On node 0 totalpages: 524182
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3831 pages, LIFO batch:0
  DMA32 zone: 7112 pages used for memmap
  DMA32 zone: 513077 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 80000000 (gap: 80000000:7ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 516908
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2041384k/2097140k available (4935k kernel code, 412k absent, 55344k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 20971520 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116091.295:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 4012
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:30 UTC (1297116090)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
72:a1:d2:da:d3:12
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/mailserver/VM_configuration/boot/                                      0000777 0000000 0000000 00000000000 11524350564 023565  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/boot/grub/                                 0000777 0000000 0000000 00000000000 11524350565 024525  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/VM_configuration/boot/grub/grub.conf                        0000644 0000000 0000000 00000002217 11524350565 026331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/mailserver/VM_configuration/rpmpkgs.txt                                0000644 0000000 0000000 00000067153 11524350603 025050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/mailserver/VM_configuration/ifconfig.txt                               0000644 0000000 0000000 00000002325 11524350601 025135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:3C  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:87 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:8232 (8.0 KiB)  TX bytes:918 (918.0 b)

eth1      Link encap:Ethernet  HWaddr 72:A1:D2:DA:D3:12  
          inet addr:10.1.217.60  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::70a1:d2ff:feda:d312/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3965216 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4138580 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:672397009 (641.2 MiB)  TX bytes:4581684649 (4.2 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:747 errors:0 dropped:0 overruns:0 frame:0
          TX packets:747 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:73463 (71.7 KiB)  TX bytes:73463 (71.7 KiB)

                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/mailserver/VM_configuration/chkconfig.txt                              0000644 0000000 0000000 00000006535 11524350565 025324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/Software_Configuration/                                     0000777 0000000 0000000 00000000000 11524350564 024032  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/mailserver/Software_Configuration/dovecot.conf                         0000644 0000000 0000000 00000000654 11524350564 026345  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   base_dir = /var/run/dovecot/
ssl = no
disable_plaintext_auth = no
listen = *
log_path = /var/log/dovecot
mail_debug = yes
mail_location = dbox:/mailstore/dovecot/maildir/%u
mdbox_rotate_size = 2048
passdb {
  args = /etc/passwd.dovecot
  driver = passwd-file
}
protocols = imap
service auth {
  user = root
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  process_min_avail = 10
}
userdb {
  driver = passwd
}
                                                                                    Virtual_Configuration/tile10/infraserver/                                                           0000777 0000000 0000000 00000000000 11524350545 017525  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/                                          0000777 0000000 0000000 00000000000 11524350564 022777  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/proc/                                     0000777 0000000 0000000 00000000000 11524350563 023741  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/proc/cpuinfo                              0000644 0000000 0000000 00000001017 11524350563 025322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/infraserver/VM_configuration/proc/mounts                               0000644 0000000 0000000 00000001426 11524350563 025210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=503592k,nr_inodes=125898,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1238,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1238,timeout=300,minproto=5,maxproto=5,indirect 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
                                                                                                                                                                                                                                          Virtual_Configuration/tile10/infraserver/VM_configuration/proc/swaps                                0000644 0000000 0000000 00000000144 11524350563 025014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/infraserver/VM_configuration/proc/devices                              0000644 0000000 0000000 00000000567 11524350563 025312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile10/infraserver/VM_configuration/proc/modules                              0000644 0000000 0000000 00000003222 11524350563 025327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa034e000
stp 2107 1 bridge, Live 0xffffffffa0348000
llc 5608 2 bridge,stp, Live 0xffffffffa0340000
nfsd 302737 13 - Live 0xffffffffa02e7000
lockd 73984 1 nfsd, Live 0xffffffffa02cb000
nfs_acl 2677 1 nfsd, Live 0xffffffffa02c5000
auth_rpcgss 44862 1 nfsd, Live 0xffffffffa02b2000
exportfs 4202 1 nfsd, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 16 nfsd,lockd,nfs_acl,auth_rpcgss, Live 0xffffffffa024b000
ipv6 321209 62 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/infraserver/VM_configuration/proc/partitions                           0000644 0000000 0000000 00000000260 11524350563 026052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   62914560 vdb
 252       17   62910508 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile10/infraserver/VM_configuration/proc/meminfo                              0000644 0000000 0000000 00000002222 11524350563 025310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        1021520 kB
MemFree:           63200 kB
Buffers:            7568 kB
Cached:           777344 kB
SwapCached:            0 kB
Active:           176580 kB
Inactive:         691312 kB
Active(anon):      43284 kB
Inactive(anon):    42684 kB
Active(file):     133296 kB
Inactive(file):   648628 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               208 kB
Writeback:             0 kB
AnonPages:         82988 kB
Mapped:            20292 kB
Shmem:              2984 kB
Slab:              61660 kB
SReclaimable:      20128 kB
SUnreclaim:        41532 kB
KernelStack:        1560 kB
PageTables:        12564 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2558752 kB
Committed_AS:     285200 kB
VmallocTotal:   34359738367 kB
VmallocUsed:        7680 kB
VmallocChunk:   34359722652 kB
HardwareCorrupted:     0 kB
AnonHugePages:     22528 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     1040384 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/infraserver/VM_configuration/root/                                     0000777 0000000 0000000 00000000000 11524350563 023761  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/root/convert_to_vf.sh                     0000755 0000000 0000000 00000001135 11524350563 027171  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/lspci.txt                                 0000644 0000000 0000000 00000001211 11524350563 024640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/infraserver/VM_configuration/df.txt                                    0000644 0000000 0000000 00000000401 11524350546 024120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3482660   9298276  28% /
tmpfs                   510760         0    510760   0% /dev/shm
/dev/vdb1             61923368  33417152  25360692  57% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/infraserver/VM_configuration/mount.txt                                 0000644 0000000 0000000 00000000657 11524350563 024705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
                                                                                 Virtual_Configuration/tile10/infraserver/VM_configuration/etc/                                      0000777 0000000 0000000 00000000000 11524350562 023550  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/                                 0000777 0000000 0000000 00000000000 11524350555 024400  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/                           0000777 0000000 0000000 00000000000 11524350562 025307  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests          0000755 0000000 0000000 00000017172 11524350555 030503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                 0000755 0000000 0000000 00000004325 11524350555 027121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd              0000755 0000000 0000000 00000006014 11524350556 027710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                0000755 0000000 0000000 00000012327 11524350557 027312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd               0000755 0000000 0000000 00000005222 11524350560 027467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                    0000755 0000000 0000000 00000010671 11524350562 026474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                   0000755 0000000 0000000 00000006364 11524350556 026651  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables               0000755 0000000 0000000 00000020716 11524350557 027422  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                    0000755 0000000 0000000 00000004731 11524350557 026501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S30nfs                     0000755 0000000 0000000 00000013536 11524350561 026314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon            0000755 0000000 0000000 00000004754 11524350555 030053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip               0000755 0000000 0000000 00000001364 11524350562 027513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                   0000755 0000000 0000000 00000003027 11524350557 026637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                  0000755 0000000 0000000 00000006743 11524350562 027034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                   0000755 0000000 0000000 00000010777 11524350557 026644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus              0000755 0000000 0000000 00000004230 11524350561 027654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                   0000755 0000000 0000000 00000006302 11524350557 026613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                     0000755 0000000 0000000 00000004236 11524350562 026327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                 0000755 0000000 0000000 00000004031 11524350560 027135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance              0000755 0000000 0000000 00000003521 11524350560 027620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                 0000755 0000000 0000000 00000006050 11524350561 027173  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                 0000755 0000000 0000000 00000002363 11524350557 027250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger              0000755 0000000 0000000 00000004054 11524350555 027657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor               0000755 0000000 0000000 00000005013 11524350560 027527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                   0000755 0000000 0000000 00000003213 11524350557 026632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                 0000755 0000000 0000000 00000003512 11524350557 027164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                    0000755 0000000 0000000 00000003603 11524350557 026472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                  0000755 0000000 0000000 00000011277 11524350556 027016  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S10network                 0000755 0000000 0000000 00000014466 11524350560 027217  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                 0000755 0000000 0000000 00000004326 11524350560 027224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                  0000755 0000000 0000000 00000006462 11524350560 026776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                   0000755 0000000 0000000 00000027662 11524350561 026652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                    0000755 0000000 0000000 00000006445 11524350556 026374  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon               0000755 0000000 0000000 00000003245 11524350561 027457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K60crond                   0000755 0000000 0000000 00000005445 11524350556 026632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                   0000755 0000000 0000000 00000005522 11524350555 026633  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl           0000755 0000000 0000000 00000002221 11524350560 030315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd               0000755 0000000 0000000 00000004010 11524350556 027473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                    0000755 0000000 0000000 00000004723 11524350561 026453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                  0000755 0000000 0000000 00000003024 11524350556 026764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                   0000755 0000000 0000000 00000003275 11524350561 026612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                0000755 0000000 0000000 00000025442 11524350560 027335  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post               0000755 0000000 0000000 00000004370 11524350561 027455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S99local                   0000755 0000000 0000000 00000000334 11524350562 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                 0000755 0000000 0000000 00000006675 11524350560 027174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole              0000755 0000000 0000000 00000005650 11524350556 027673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor            0000555 0000000 0000000 00000004612 11524350560 030062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                  0000755 0000000 0000000 00000007234 11524350561 027034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                0000755 0000000 0000000 00000003433 11524350562 027366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                  0000755 0000000 0000000 00000005672 11524350555 027013  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                   0000755 0000000 0000000 00000003254 11524350562 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S55autobench               0000755 0000000 0000000 00000005063 11524350562 027502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                   0000755 0000000 0000000 00000012432 11524350561 026643  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                 0000755 0000000 0000000 00000007414 11524350556 027214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                0000755 0000000 0000000 00000020557 11524350557 027337  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond             0000755 0000000 0000000 00000003427 11524350557 030064  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/rc3.d/K05atd                     0000755 0000000 0000000 00000004112 11524350556 026262  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/                          0000777 0000000 0000000 00000000000 11524350555 025565  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/network                   0000755 0000000 0000000 00000014466 11524350552 027210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/gfs2                      0000755 0000000 0000000 00000006445 11524350550 026354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/sysstat                   0000755 0000000 0000000 00000002363 11524350555 027225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/saslauthd                 0000755 0000000 0000000 00000004010 11524350554 027471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/messagebus                0000755 0000000 0000000 00000004230 11524350552 027641  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/autobench                 0000755 0000000 0000000 00000005063 11524350547 027464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/atd                       0000755 0000000 0000000 00000004112 11524350547 026256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/mcelogd                   0000755 0000000 0000000 00000003535 11524350552 027124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/auditd                    0000755 0000000 0000000 00000006462 11524350547 026772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/certmonger                0000755 0000000 0000000 00000004054 11524350550 027652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/irqbalance                0000755 0000000 0000000 00000003521 11524350551 027605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/acpid                     0000755 0000000 0000000 00000003275 11524350547 026577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/nscd                      0000755 0000000 0000000 00000004723 11524350553 026442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                 0000755 0000000 0000000 00000005222 11524350554 027452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/nfs                       0000755 0000000 0000000 00000013536 11524350552 026302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/sssd                      0000755 0000000 0000000 00000004731 11524350554 026467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/crond                     0000755 0000000 0000000 00000005445 11524350550 026617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/ip6tables                 0000755 0000000 0000000 00000020716 11524350551 027402  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/autofs                    0000755 0000000 0000000 00000007234 11524350547 027017  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/sshd                      0000755 0000000 0000000 00000010671 11524350554 026454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/ksm                       0000755 0000000 0000000 00000004236 11524350551 026302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/libvirt-guests            0000755 0000000 0000000 00000017172 11524350551 030476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/avahi-daemon              0000755 0000000 0000000 00000004754 11524350547 030053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/ypbind                    0000755 0000000 0000000 00000011277 11524350555 027004  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/psacct                    0000755 0000000 0000000 00000003024 11524350553 026761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/xinetd                    0000755 0000000 0000000 00000006743 11524350555 027014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/nfslock                   0000755 0000000 0000000 00000006675 11524350552 027161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/cgred                     0000755 0000000 0000000 00000006302 11524350550 026567  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/migrateip                 0000755 0000000 0000000 00000001364 11524350552 027471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/udev-post                 0000755 0000000 0000000 00000004370 11524350555 027441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/haldaemon                 0000755 0000000 0000000 00000003245 11524350550 027436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/ipsec                     0000755 0000000 0000000 00000010777 11524350551 026622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/rpcbind                   0000755 0000000 0000000 00000004031 11524350554 027125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/rhnsd                     0000755 0000000 0000000 00000005522 11524350553 026627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/functions                 0000644 0000000 0000000 00000042767 11524350550 027527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/kdump                     0000755 0000000 0000000 00000027662 11524350551 026640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/postfix                   0000755 0000000 0000000 00000007414 11524350553 027207  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/iptables                  0000755 0000000 0000000 00000020557 11524350551 027317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/rsyslog                   0000755 0000000 0000000 00000004326 11524350554 027215  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/netconsole                0000755 0000000 0000000 00000005650 11524350552 027663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/rpcgssd                   0000755 0000000 0000000 00000006050 11524350554 027154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/abrtd                     0000755 0000000 0000000 00000003254 11524350547 026610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor              0000555 0000000 0000000 00000004612 11524350551 030051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/halt                      0000755 0000000 0000000 00000012723 11524350550 026437  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/cgconfig                  0000755 0000000 0000000 00000012327 11524350550 027266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/single                    0000755 0000000 0000000 00000001207 11524350554 026767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/mdmonitor                 0000755 0000000 0000000 00000005013 11524350552 027513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/restorecond               0000755 0000000 0000000 00000003427 11524350553 030042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/cpuspeed                  0000755 0000000 0000000 00000025442 11524350550 027321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/netfs                     0000755 0000000 0000000 00000012432 11524350552 026625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                0000755 0000000 0000000 00000006014 11524350554 027670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/oddjobd                   0000755 0000000 0000000 00000004325 11524350553 027116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/ksmtuned                  0000755 0000000 0000000 00000003433 11524350551 027340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/sandbox                   0000755 0000000 0000000 00000003242 11524350554 027145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/killall                   0000755 0000000 0000000 00000001214 11524350551 027125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/rdisc                     0000755 0000000 0000000 00000003027 11524350553 026613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/httpd                     0000755 0000000 0000000 00000006364 11524350550 026636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/ntpd                      0000755 0000000 0000000 00000003603 11524350553 026454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/smartd                    0000755 0000000 0000000 00000005672 11524350554 027012  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/nslcd                     0000755 0000000 0000000 00000003213 11524350553 026607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/ntpdate                   0000755 0000000 0000000 00000003512 11524350553 027145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile10/infraserver/VM_configuration/etc/rc.d/init.d/microcode_ctl             0000755 0000000 0000000 00000002221 11524350552 030307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/infraserver/VM_configuration/etc/hosts                                 0000644 0000000 0000000 00000000236 11524350546 024632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/infraserver/VM_configuration/etc/iproute2/                             0000777 0000000 0000000 00000000000 11524350547 025324  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/etc/iproute2/rt_dsfield                   0000644 0000000 0000000 00000000672 11524350546 027366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile10/infraserver/VM_configuration/etc/iproute2/rt_realms                    0000644 0000000 0000000 00000000160 11524350546 027227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile10/infraserver/VM_configuration/etc/iproute2/rt_scopes                    0000644 0000000 0000000 00000000134 11524350547 027242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile10/infraserver/VM_configuration/etc/iproute2/ematch_map                   0000644 0000000 0000000 00000000073 11524350546 027340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile10/infraserver/VM_configuration/etc/iproute2/rt_tables                    0000644 0000000 0000000 00000000127 11524350547 027222  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile10/infraserver/VM_configuration/etc/iproute2/rt_protos                    0000644 0000000 0000000 00000000475 11524350546 027303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/etc/nsswitch.conf                         0000644 0000000 0000000 00000003230 11524350547 026256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile10/infraserver/VM_configuration/etc/fstab                                 0000644 0000000 0000000 00000001603 11524350546 024570  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile10/infraserver/VM_configuration/etc/sysctl.conf                           0000644 0000000 0000000 00000001466 11524350562 025743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile10/infraserver/VM_configuration/etc/inittab                               0000644 0000000 0000000 00000001564 11524350546 025131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile10/infraserver/VM_configuration/var/                                      0000777 0000000 0000000 00000000000 11524350564 023567  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/var/log/                                  0000777 0000000 0000000 00000000000 11524350564 024350  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/var/log/dmesg                             0000644 0000000 0000000 00000043364 11524350564 025400  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003fffd000 (usable)
 BIOS-e820: 000000003fffd000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x3fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000003fffd000
 0000000000 - 003fe00000 page 2M
 003fe00000 - 003fffd000 page 4k
kernel direct mapping tables up to 3fffd000 @ 8000-b000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000003fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000003ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000003fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000003ffffe00 00040
ACPI: SSDT 000000003fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000003fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000003fffd000
Bootmem setup node 0 0000000000000000-000000003fffd000
  NODE_DATA [0000000000009000 - 000000000003cfff]
  bootmap [000000000003d000 -  0000000000044fff] pages 8
(7 early reservations) ==> bootmem [0000000000 - 003fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0000dfffff] PMD -> [ffff880002200000-ffff880002ffffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0003fffd
On node 0 totalpages: 262038
  DMA zone: 56 pages used for memmap
  DMA zone: 105 pages reserved
  DMA zone: 3832 pages, LIFO batch:0
  DMA32 zone: 3528 pages used for memmap
  DMA32 zone: 254517 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 40000000 (gap: 40000000:bffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 258349
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 1007148k/1048564k available (4935k kernel code, 412k absent, 41004k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 10485760 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116131.333:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 1992
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:02:10 UTC (1297116130)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
9e:82:80:a5:83:22
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile10/infraserver/VM_configuration/boot/                                     0000777 0000000 0000000 00000000000 11524350545 023741  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/boot/grub/                                0000777 0000000 0000000 00000000000 11524350545 024700  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/VM_configuration/boot/grub/grub.conf                       0000644 0000000 0000000 00000002217 11524350545 026504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile10/infraserver/VM_configuration/rpmpkgs.txt                               0000644 0000000 0000000 00000067243 11524350564 025233  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
hivex-1.2.2-1.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
fcgi-2.4.0-14.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
scrub-2.2-1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
fcgi-devel-2.4.0-14.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
libguestfs-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile10/infraserver/VM_configuration/ifconfig.txt                              0000644 0000000 0000000 00000002336 11524350562 025322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:3B  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:294 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:29429 (28.7 KiB)  TX bytes:990 (990.0 b)

eth1      Link encap:Ethernet  HWaddr 9E:82:80:A5:83:22  
          inet addr:10.1.217.59  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::9c82:80ff:fea5:8322/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:63776441 errors:0 dropped:0 overruns:0 frame:0
          TX packets:118764572 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4487661991 (4.1 GiB)  TX bytes:171408985604 (159.6 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:982 errors:0 dropped:0 overruns:0 frame:0
          TX packets:982 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:98039 (95.7 KiB)  TX bytes:98039 (95.7 KiB)

                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile10/infraserver/VM_configuration/chkconfig.txt                             0000644 0000000 0000000 00000006531 11524350546 025474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                       Virtual_Configuration/tile10/infraserver/Software_Configuration/                                    0000777 0000000 0000000 00000000000 11524350544 024205  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/Software_Configuration/exports                             0000644 0000000 0000000 00000000101 11524350544 025620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /support-download *(rw,no_subtree_check,crossmnt,no_root_squash)
                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile10/infraserver/Software_Configuration/httpd/                              0000777 0000000 0000000 00000000000 11524350545 025331  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/Software_Configuration/httpd/conf.d/                       0000777 0000000 0000000 00000000000 11524350545 026500  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/Software_Configuration/httpd/conf.d/manual.conf            0000644 0000000 0000000 00000000447 11524350545 030625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This configuration file allows the manual to be accessed at 
# http://localhost/manual/
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"

<Directory "/var/www/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
                                                                                                                                                                                                                         Virtual_Configuration/tile10/infraserver/Software_Configuration/httpd/conf.d/php.conf               0000644 0000000 0000000 00000001242 11524350545 030131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile10/infraserver/Software_Configuration/httpd/conf.d/welcome.conf           0000644 0000000 0000000 00000000453 11524350545 031000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # 
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

                                                                                                                                                                                                                     Virtual_Configuration/tile10/infraserver/Software_Configuration/httpd/conf.d/README                 0000644 0000000 0000000 00000000610 11524350545 027351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
This directory holds Apache 2.0 module-specific configuration files;
any files in this directory which have the ".conf" extension will be
processed as Apache configuration files.

Files are processed in alphabetical order, so if using configuration
directives which depend on, say, mod_perl being loaded, ensure that
these are placed in a filename later in the sort order than "perl.conf".

                                                                                                                        Virtual_Configuration/tile10/infraserver/Software_Configuration/httpd/conf/                         0000777 0000000 0000000 00000000000 11524350545 026256  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile10/infraserver/Software_Configuration/httpd/conf/httpd.conf               0000644 0000000 0000000 00000103212 11524350545 030243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# Don't give away too much information about all the subcomponents
# we are running.  Comment out this line if you don't mind remote sites
# finding out what major optional modules you are running
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.  Note the PIDFILE variable in
# /etc/sysconfig/httpd must be set appropriately if this location is
# changed.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 60

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive Off

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit 10240
MaxClients 10240
MaxRequestsPerChild  4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         4
MaxClients 10240
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 81

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

#
# The following modules are not loaded by default:
#
#LoadModule asis_module modules/mod_asis.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
#

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group #-1 on these systems!
#
User apache
Group apache

### Section 2: 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
#ServerName www.example.com:80

#
# UseCanonicalName: Determines how Apache constructs self-referencing 
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.  This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir disabled

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disabled" line above, and uncomment
    # the following line instead:
    # 
    #UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is 
# used to deliver files (assuming that the OS supports it). 
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
#
#EnableSendfile off

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
# requires the mod_logio module to be loaded.
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access_log common

#
# If you would like to have separate agent and referer logfiles, uncomment
# the following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# WebDAV module configuration section.
# 
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Directives controlling the display of server-generated directory listings.
#

#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes.  These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

#
# DefaultLanguage and AddLanguage allows you to specify the language of 
# a document. You can then use content negotiation to give a browser a 
# file in a language the user can understand.
#
# Specify a default language. This means that all data
# going out without a specific language tag (see below) will 
# be marked with this one. You probably do NOT want to set
# this unless you are sure it is correct for all cases.
#
# * It is generally better to not mark a page as 
# * being a certain language than marking it with the wrong
# * language!
#
# DefaultLanguage nl
#
# Note 1: The suffix does not have to be the same as the language
# keyword --- those with documents in Polish (whose net-standard
# language code is pl) may wish to use "AddLanguage pl .po" to
# avoid the ambiguity with the common suffix for perl scripts.
#
# Note 2: The example entries below illustrate that in some cases 
# the two character 'Language' abbreviation is not identical to 
# the two character 'Country' code for its country,
# E.g. 'Danmark/dk' versus 'Danish/da'.
#
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
# specifier. There is 'work in progress' to fix this and get
# the reference data for rfc1766 cleaned up.
#
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the 
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz

#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
#   MIME-types for downloading Certificates and CRLs
#
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
#  to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#    ErrorDocument 410 /error/HTTP_GONE.html.var
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Proxy>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
#   CacheEnable disk /
#   CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#

#</IfModule>
# End of proxy directives.

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>














Include conf/fcgi.conf
                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile10/infraserver/Software_Configuration/httpd/conf/fcgi.conf                0000644 0000000 0000000 00000000607 11524350544 030033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   LoadModule fastcgi_module modules/mod_fastcgi.so
ScriptAlias /fcgi-bin/ "/var/www/fcgi-bin/"
FastCgiIpcDir /etc/httpd/fastcgi
<Directory "/var/www/fcgi-bin">
    AllowOverride None
    Options +ExecCGI -Includes
    SetHandler fastcgi-script
    Order allow,deny
    Allow from all
 </Directory>
 AddHandler fastcgi-script fcgi
 FastCgiServer /var/www/fcgi-bin/besim_fcgi.fcgi -processes 50
                                                                                                                         Virtual_Configuration/tile10/infraserver/Software_Configuration/httpd/conf/magic                    0000644 0000000 0000000 00000031523 11524350545 027261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Magic data for mod_mime_magic Apache module (originally for file(1) command)
# The module is described in /manual/mod/mod_mime_magic.html
#
# The format is 4-5 columns:
#    Column #1: byte number to begin checking from, ">" indicates continuation
#    Column #2: type of data to match
#    Column #3: contents of data to match
#    Column #4: MIME type of result
#    Column #5: MIME encoding of result (optional)

#------------------------------------------------------------------------------
# Localstuff:  file(1) magic for locally observed files
# Add any locally observed files here.

#------------------------------------------------------------------------------
# end local stuff
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Java

0	short		0xcafe
>2	short		0xbabe		application/java

#------------------------------------------------------------------------------
# audio:  file(1) magic for sound formats
#
# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
#

# Sun/NeXT audio data
0	string		.snd
>12	belong		1		audio/basic
>12	belong		2		audio/basic
>12	belong		3		audio/basic
>12	belong		4		audio/basic
>12	belong		5		audio/basic
>12	belong		6		audio/basic
>12	belong		7		audio/basic

>12	belong		23		audio/x-adpcm

# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
# (0x0064732E in little-endian encoding).
0	lelong		0x0064732E	
>12	lelong		1		audio/x-dec-basic
>12	lelong		2		audio/x-dec-basic
>12	lelong		3		audio/x-dec-basic
>12	lelong		4		audio/x-dec-basic
>12	lelong		5		audio/x-dec-basic
>12	lelong		6		audio/x-dec-basic
>12	lelong		7		audio/x-dec-basic
#                                       compressed (G.721 ADPCM)
>12	lelong		23		audio/x-dec-adpcm

# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
#					AIFF audio data
8	string		AIFF		audio/x-aiff	
#					AIFF-C audio data
8	string		AIFC		audio/x-aiff	
#					IFF/8SVX audio data
8	string		8SVX		audio/x-aiff	

# Creative Labs AUDIO stuff
#					Standard MIDI data
0	string	MThd			audio/unknown	
#>9 	byte	>0			(format %d)
#>11	byte	>1			using %d channels
#					Creative Music (CMF) data
0	string	CTMF			audio/unknown	
#					SoundBlaster instrument data
0	string	SBI			audio/unknown	
#					Creative Labs voice data
0	string	Creative\ Voice\ File	audio/unknown	
## is this next line right?  it came this way...
#>19	byte	0x1A
#>23	byte	>0			- version %d
#>22	byte	>0			\b.%d

# [GRR 950115:  is this also Creative Labs?  Guessing that first line
#  should be string instead of unknown-endian long...]
#0	long		0x4e54524b	MultiTrack sound data
#0	string		NTRK		MultiTrack sound data
#>4	long		x		- version %ld

# Microsoft WAVE format (*.wav)
# [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
#					Microsoft RIFF
0	string		RIFF		audio/unknown
#					- WAVE format
>8	string		WAVE		audio/x-wav
# MPEG audio.
0   beshort&0xfff0  0xfff0  audio/mpeg
# C64 SID Music files, from Linus Walleij <triad@df.lth.se>
0   string      PSID        audio/prs.sid

#------------------------------------------------------------------------------
# c-lang:  file(1) magic for C programs or various scripts
#

# XPM icons (Greg Roelofs, newt@uchicago.edu)
# ideally should go into "images", but entries below would tag XPM as C source
0	string		/*\ XPM		image/x-xbm	7bit

# this first will upset you if you're a PL/1 shop... (are there any left?)
# in which case rm it; ascmagic will catch real C programs
#					C or REXX program text
0	string		/*		text/plain
#					C++ program text
0	string		//		text/plain

#------------------------------------------------------------------------------
# compress:  file(1) magic for pure-compression formats (no archives)
#
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
#
# Formats for various forms of compressed data
# Formats for "compress" proper have been moved into "compress.c",
# because it tries to uncompress it to figure out what's inside.

# standard unix compress
0	string		\037\235	application/octet-stream	x-compress

# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
0       string          \037\213        application/octet-stream	x-gzip

# According to gzip.h, this is the correct byte order for packed data.
0	string		\037\036	application/octet-stream
#
# This magic number is byte-order-independent.
#
0	short		017437		application/octet-stream

# XXX - why *two* entries for "compacted data", one of which is
# byte-order independent, and one of which is byte-order dependent?
#
# compacted data
0	short		0x1fff		application/octet-stream
0	string		\377\037	application/octet-stream
# huf output
0	short		0145405		application/octet-stream

# Squeeze and Crunch...
# These numbers were gleaned from the Unix versions of the programs to
# handle these formats.  Note that I can only uncrunch, not crunch, and
# I didn't have a crunched file handy, so the crunch number is untested.
#				Keith Waclena <keith@cerberus.uchicago.edu>
#0	leshort		0x76FF		squeezed data (CP/M, DOS)
#0	leshort		0x76FE		crunched data (CP/M, DOS)

# Freeze
#0	string		\037\237	Frozen file 2.1
#0	string		\037\236	Frozen file 1.0 (or gzip 0.5)

# lzh?
#0	string		\037\240	LZH compressed data

#------------------------------------------------------------------------------
# frame:  file(1) magic for FrameMaker files
#
# This stuff came on a FrameMaker demo tape, most of which is
# copyright, but this file is "published" as witness the following:
#
0	string		\<MakerFile	application/x-frame
0	string		\<MIFFile	application/x-frame
0	string		\<MakerDictionary	application/x-frame
0	string		\<MakerScreenFon	application/x-frame
0	string		\<MML		application/x-frame
0	string		\<Book		application/x-frame
0	string		\<Maker		application/x-frame

#------------------------------------------------------------------------------
# html:  file(1) magic for HTML (HyperText Markup Language) docs
#
# from Daniel Quinlan <quinlan@yggdrasil.com>
# and Anna Shergold <anna@inext.co.uk>
#
0   string      \<!DOCTYPE\ HTML    text/html
0   string      \<!doctype\ html    text/html
0   string      \<HEAD      text/html
0   string      \<head      text/html
0   string      \<TITLE     text/html
0   string      \<title     text/html
0   string      \<html      text/html
0   string      \<HTML      text/html
0   string      \<!--       text/html
0   string      \<h1        text/html
0   string      \<H1        text/html

# XML eXtensible Markup Language, from Linus Walleij <triad@df.lth.se>
0   string      \<?xml      text/xml

#------------------------------------------------------------------------------
# images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
#
# originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
# additions by janl@ifi.uio.no as well as others. Jan also suggested
# merging several one- and two-line files into here.
#
# XXX - byte order for GIF and TIFF fields?
# [GRR:  TIFF allows both byte orders; GIF is probably little-endian]
#

# [GRR:  what the hell is this doing in here?]
#0	string		xbtoa		btoa'd file

# PBMPLUS
#					PBM file
0	string		P1		image/x-portable-bitmap	7bit
#					PGM file
0	string		P2		image/x-portable-greymap	7bit
#					PPM file
0	string		P3		image/x-portable-pixmap	7bit
#					PBM "rawbits" file
0	string		P4		image/x-portable-bitmap
#					PGM "rawbits" file
0	string		P5		image/x-portable-greymap
#					PPM "rawbits" file
0	string		P6		image/x-portable-pixmap

# NIFF (Navy Interchange File Format, a modification of TIFF)
# [GRR:  this *must* go before TIFF]
0	string		IIN1		image/x-niff

# TIFF and friends
#					TIFF file, big-endian
0	string		MM		image/tiff
#					TIFF file, little-endian
0	string		II		image/tiff

# possible GIF replacements; none yet released!
# (Greg Roelofs, newt@uchicago.edu)
#
# GRR 950115:  this was mine ("Zip GIF"):
#					ZIF image (GIF+deflate alpha)
0	string		GIF94z		image/unknown
#
# GRR 950115:  this is Jeremy Wohl's Free Graphics Format (better):
#					FGF image (GIF+deflate beta)
0	string		FGF95a		image/unknown
#
# GRR 950115:  this is Thomas Boutell's Portable Bitmap Format proposal
# (best; not yet implemented):
#					PBF image (deflate compression)
0	string		PBF		image/unknown

# GIF
0	string		GIF		image/gif

# JPEG images
0	beshort		0xffd8		image/jpeg

# PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
0	string		BM		image/bmp
#>14	byte		12		(OS/2 1.x format)
#>14	byte		64		(OS/2 2.x format)
#>14	byte		40		(Windows 3.x format)
#0	string		IC		icon
#0	string		PI		pointer
#0	string		CI		color icon
#0	string		CP		color pointer
#0	string		BA		bitmap array


#------------------------------------------------------------------------------
# lisp:  file(1) magic for lisp programs
#
# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
0	string	;;			text/plain	8bit
# Emacs 18 - this is always correct, but not very magical.
0	string	\012(			application/x-elc
# Emacs 19
0	string	;ELC\023\000\000\000	application/x-elc

#------------------------------------------------------------------------------
# mail.news:  file(1) magic for mail and news
#
# There are tests to ascmagic.c to cope with mail and news.
0	string		Relay-Version: 	message/rfc822	7bit
0	string		#!\ rnews	message/rfc822	7bit
0	string		N#!\ rnews	message/rfc822	7bit
0	string		Forward\ to 	message/rfc822	7bit
0	string		Pipe\ to 	message/rfc822	7bit
0	string		Return-Path:	message/rfc822	7bit
0	string		Path:		message/news	8bit
0	string		Xref:		message/news	8bit
0	string		From:		message/rfc822	7bit
0	string		Article 	message/news	8bit
#------------------------------------------------------------------------------
# msword: file(1) magic for MS Word files
#
# Contributor claims:
# Reversed-engineered MS Word magic numbers
#

0	string		\376\067\0\043			application/msword
0	string		\333\245-\0\0\0			application/msword

# disable this one because it applies also to other
# Office/OLE documents for which msword is not correct. See PR#2608.
#0	string		\320\317\021\340\241\261	application/msword



#------------------------------------------------------------------------------
# printer:  file(1) magic for printer-formatted files
#

# PostScript
0	string		%!		application/postscript
0	string		\004%!		application/postscript

# Acrobat
# (due to clamen@cs.cmu.edu)
0	string		%PDF-		application/pdf

#------------------------------------------------------------------------------
# sc:  file(1) magic for "sc" spreadsheet
#
38	string		Spreadsheet	application/x-sc

#------------------------------------------------------------------------------
# tex:  file(1) magic for TeX files
#
# XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
#
# From <conklin@talisman.kaleida.com>

# Although we may know the offset of certain text fields in TeX DVI
# and font files, we can't use them reliably because they are not
# zero terminated. [but we do anyway, christos]
0	string		\367\002	application/x-dvi
#0	string		\367\203	TeX generic font data
#0	string		\367\131	TeX packed font data
#0	string		\367\312	TeX virtual font data
#0	string		This\ is\ TeX,	TeX transcript text	
#0	string		This\ is\ METAFONT,	METAFONT transcript text

# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data.  The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
#2	string		\000\021	TeX font metric data
#2	string		\000\022	TeX font metric data
#>34	string		>\0		(%s)

# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
#0	string		\\input\ texinfo	Texinfo source text
#0	string		This\ is\ Info\ file	GNU Info text

# correct TeX magic for Linux (and maybe more)
# from Peter Tobias (tobias@server.et-inf.fho-emden.de)
#
0	leshort		0x02f7		application/x-dvi

# RTF - Rich Text Format
0	string		{\\rtf		application/rtf

#------------------------------------------------------------------------------
# animation:  file(1) magic for animation/movie formats
#
# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
#						MPEG file
0	string		\000\000\001\263	video/mpeg
#
# The contributor claims:
#   I couldn't find a real magic number for these, however, this
#   -appears- to work.  Note that it might catch other files, too,
#   so BE CAREFUL!
#
# Note that title and author appear in the two 20-byte chunks
# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
# 255 (hex FF)! DL format SUCKS BIG ROCKS.
#
#						DL file version 1 , medium format (160x100, 4 images/screen)
0	byte		1			video/unknown
0	byte		2			video/unknown
# Quicktime video, from Linus Walleij <triad@df.lth.se>
# from Apple quicktime file format documentation.
4   string      moov        video/quicktime
4   string      mdat        video/quicktime

# PNG [Portable Network Graphics, or "PNG's Not GIF"] images
#
# 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
0   string      \211PNG\015      image/png
                                                                                                                                                                             Virtual_Configuration/tile13/                                                                       0000777 0000000 0000000 00000000000 11524351254 015200  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/                                                            0000777 0000000 0000000 00000000000 11524351175 017346  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/                                           0000777 0000000 0000000 00000000000 11524351214 022611  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/proc/                                      0000777 0000000 0000000 00000000000 11524351213 023553  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/proc/cpuinfo                               0000644 0000000 0000000 00000001017 11524351213 025134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/idleserver/VM_configuration/proc/mounts                                0000644 0000000 0000000 00000001356 11524351213 025024  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=503592k,nr_inodes=125898,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1240,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1240,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/idleserver/VM_configuration/proc/swaps                                 0000644 0000000 0000000 00000000144 11524351213 024626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/idleserver/VM_configuration/proc/devices                               0000644 0000000 0000000 00000000567 11524351213 025124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile13/idleserver/VM_configuration/proc/modules                               0000644 0000000 0000000 00000002547 11524351213 025152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02a5000
stp 2107 1 bridge, Live 0xffffffffa029f000
llc 5608 2 bridge,stp, Live 0xffffffffa0297000
autofs4 27683 3 - Live 0xffffffffa028a000
sunrpc 241630 1 - Live 0xffffffffa0237000
ipv6 321209 39 - Live 0xffffffffa01a2000
dm_mirror 14003 0 - Live 0xffffffffa0176000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa016d000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0164000
ppdev 8695 0 - Live 0xffffffffa0156000
parport_pc 22944 0 - Live 0xffffffffa0149000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa0137000
sg 30186 0 - Live 0xffffffffa0128000
virtio_net 15665 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
sr_mod 16162 0 - Live 0xffffffffa0064000
cdrom 39769 1 sr_mod, Live 0xffffffffa0053000
virtio_blk 5087 5 - Live 0xffffffffa004c000
pata_acpi 3667 0 - Live 0xffffffffa0046000
ata_generic 3611 0 - Live 0xffffffffa0040000
ata_piix 22588 0 - Live 0xffffffffa0034000
virtio_pci 6733 0 - Live 0xffffffffa002c000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0025000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Virtual_Configuration/tile13/idleserver/VM_configuration/proc/partitions                            0000644 0000000 0000000 00000000260 11524351213 025664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile13/idleserver/VM_configuration/proc/meminfo                               0000644 0000000 0000000 00000002222 11524351213 025122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        1021520 kB
MemFree:          782692 kB
Buffers:           16488 kB
Cached:            97524 kB
SwapCached:            0 kB
Active:            87312 kB
Inactive:          75164 kB
Active(anon):      48596 kB
Inactive(anon):        0 kB
Active(file):      38716 kB
Inactive(file):    75164 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               208 kB
Writeback:             0 kB
AnonPages:         48476 kB
Mapped:            18844 kB
Shmem:               160 kB
Slab:              61176 kB
SReclaimable:      24740 kB
SUnreclaim:        36436 kB
KernelStack:         912 kB
PageTables:         3004 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2558752 kB
Committed_AS:     150984 kB
VmallocTotal:   34359738367 kB
VmallocUsed:        7592 kB
VmallocChunk:   34359726760 kB
HardwareCorrupted:     0 kB
AnonHugePages:      6144 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     1040384 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/idleserver/VM_configuration/root/                                      0000777 0000000 0000000 00000000000 11524351213 023573  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/root/convert_to_vf.sh                      0000755 0000000 0000000 00000001135 11524351213 027003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/lspci.txt                                  0000644 0000000 0000000 00000001046 11524351212 024457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile13/idleserver/VM_configuration/df.txt                                     0000644 0000000 0000000 00000000401 11524351175 023740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3617584   9163352  29% /
tmpfs                   510760         0    510760   0% /dev/shm
/dev/vdb1             20642412    176072  19417768   1% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/idleserver/VM_configuration/mount.txt                                  0000644 0000000 0000000 00000000612 11524351212 024505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile13/idleserver/VM_configuration/etc/                                       0000777 0000000 0000000 00000000000 11524351212 023362  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/                                  0000777 0000000 0000000 00000000000 11524351204 024211  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/                            0000777 0000000 0000000 00000000000 11524351212 025121  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests           0000755 0000000 0000000 00000017172 11524351205 030315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                  0000755 0000000 0000000 00000004325 11524351205 026733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd               0000755 0000000 0000000 00000006014 11524351206 027522  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                 0000755 0000000 0000000 00000012327 11524351207 027124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                0000755 0000000 0000000 00000005222 11524351210 027301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                     0000755 0000000 0000000 00000010671 11524351211 026305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                    0000755 0000000 0000000 00000006364 11524351205 026462  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                0000755 0000000 0000000 00000020716 11524351207 027234  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                     0000755 0000000 0000000 00000004731 11524351206 026312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon             0000755 0000000 0000000 00000004754 11524351205 027665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                0000755 0000000 0000000 00000001364 11524351211 027324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                    0000755 0000000 0000000 00000003027 11524351207 026451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                   0000755 0000000 0000000 00000006743 11524351211 026645  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                    0000755 0000000 0000000 00000010777 11524351206 026455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus               0000755 0000000 0000000 00000004230 11524351211 027466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                    0000755 0000000 0000000 00000006302 11524351206 026424  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                      0000755 0000000 0000000 00000004236 11524351212 026141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                  0000755 0000000 0000000 00000004031 11524351210 026747  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance               0000755 0000000 0000000 00000003521 11524351210 027432  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                  0000755 0000000 0000000 00000006050 11524351210 027004  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                  0000755 0000000 0000000 00000002363 11524351207 027062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger               0000755 0000000 0000000 00000004054 11524351205 027471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                0000755 0000000 0000000 00000005013 11524351210 027341  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                    0000755 0000000 0000000 00000003213 11524351207 026444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                  0000755 0000000 0000000 00000003512 11524351206 026775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                     0000755 0000000 0000000 00000003603 11524351206 026303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                   0000755 0000000 0000000 00000011277 11524351206 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S10network                  0000755 0000000 0000000 00000014466 11524351207 027037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                  0000755 0000000 0000000 00000004326 11524351210 027036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                   0000755 0000000 0000000 00000006462 11524351210 026610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                    0000755 0000000 0000000 00000027662 11524351210 026463  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                     0000755 0000000 0000000 00000006445 11524351206 026206  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                0000755 0000000 0000000 00000003245 11524351211 027271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K60crond                    0000755 0000000 0000000 00000005445 11524351206 026444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                    0000755 0000000 0000000 00000005522 11524351205 026445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl            0000755 0000000 0000000 00000002221 11524351207 030135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                0000755 0000000 0000000 00000004010 11524351205 027304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                      0000755 0000000 0000000 00000013536 11524351206 026125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                     0000755 0000000 0000000 00000004723 11524351211 026265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                   0000755 0000000 0000000 00000003024 11524351205 026575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                    0000755 0000000 0000000 00000003275 11524351211 026424  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                 0000755 0000000 0000000 00000025442 11524351210 027147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                0000755 0000000 0000000 00000004370 11524351211 027267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S99local                    0000755 0000000 0000000 00000000334 11524351212 026442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                  0000755 0000000 0000000 00000006675 11524351210 027006  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole               0000755 0000000 0000000 00000005650 11524351206 027505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor             0000555 0000000 0000000 00000004612 11524351207 027702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                   0000755 0000000 0000000 00000007234 11524351211 026646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                 0000755 0000000 0000000 00000003433 11524351212 027200  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                   0000755 0000000 0000000 00000005672 11524351205 026625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                    0000755 0000000 0000000 00000003254 11524351211 026437  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                0000755 0000000 0000000 00000005063 11524351211 027313  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                    0000755 0000000 0000000 00000012432 11524351211 026455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                  0000755 0000000 0000000 00000007414 11524351205 027025  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                 0000755 0000000 0000000 00000020557 11524351207 027151  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond              0000755 0000000 0000000 00000003427 11524351207 027676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/rc3.d/K05atd                      0000755 0000000 0000000 00000004112 11524351205 026073  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/                           0000777 0000000 0000000 00000000000 11524351204 025376  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/network                    0000755 0000000 0000000 00000014466 11524351202 027022  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/gfs2                       0000755 0000000 0000000 00000006445 11524351200 026166  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/sysstat                    0000755 0000000 0000000 00000002363 11524351204 027036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/saslauthd                  0000755 0000000 0000000 00000004010 11524351204 027303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/messagebus                 0000755 0000000 0000000 00000004230 11524351201 027452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/autobench                  0000755 0000000 0000000 00000005063 11524351177 027305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/atd                        0000755 0000000 0000000 00000004112 11524351177 026077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/mcelogd                    0000755 0000000 0000000 00000003535 11524351201 026735  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/auditd                     0000755 0000000 0000000 00000006462 11524351177 026613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/certmonger                 0000755 0000000 0000000 00000004054 11524351177 027501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/irqbalance                 0000755 0000000 0000000 00000003521 11524351201 027417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/acpid                      0000755 0000000 0000000 00000003275 11524351177 026420  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/nscd                       0000755 0000000 0000000 00000004723 11524351202 026253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                  0000755 0000000 0000000 00000005222 11524351203 027263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/nfs                        0000755 0000000 0000000 00000013536 11524351202 026114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/sssd                       0000755 0000000 0000000 00000004731 11524351204 026301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/crond                      0000755 0000000 0000000 00000005445 11524351200 026431  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/ip6tables                  0000755 0000000 0000000 00000020716 11524351200 027213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/autofs                     0000755 0000000 0000000 00000007234 11524351177 026640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/sshd                       0000755 0000000 0000000 00000010671 11524351204 026266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/ksm                        0000755 0000000 0000000 00000004236 11524351201 026114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/libvirt-guests             0000755 0000000 0000000 00000017172 11524351201 030310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/avahi-daemon               0000755 0000000 0000000 00000004754 11524351177 027674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/ypbind                     0000755 0000000 0000000 00000011277 11524351204 026615  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/psacct                     0000755 0000000 0000000 00000003024 11524351203 026573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/xinetd                     0000755 0000000 0000000 00000006743 11524351204 026625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/nfslock                    0000755 0000000 0000000 00000006675 11524351202 026773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/cgred                      0000755 0000000 0000000 00000006302 11524351200 026401  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/migrateip                  0000755 0000000 0000000 00000001364 11524351202 027303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/udev-post                  0000755 0000000 0000000 00000004370 11524351204 027252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/haldaemon                  0000755 0000000 0000000 00000003245 11524351200 027250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/ipsec                      0000755 0000000 0000000 00000010777 11524351200 026433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/rpcbind                    0000755 0000000 0000000 00000004031 11524351203 026736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/rhnsd                      0000755 0000000 0000000 00000005522 11524351203 026441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/functions                  0000644 0000000 0000000 00000042767 11524351200 027341  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/kdump                      0000755 0000000 0000000 00000027662 11524351201 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/postfix                    0000755 0000000 0000000 00000007414 11524351203 027021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/iptables                   0000755 0000000 0000000 00000020557 11524351200 027130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/rsyslog                    0000755 0000000 0000000 00000004326 11524351203 027026  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/netconsole                 0000755 0000000 0000000 00000005650 11524351202 027475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/rpcgssd                    0000755 0000000 0000000 00000006050 11524351203 026765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/abrtd                      0000755 0000000 0000000 00000003254 11524351177 026431  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor               0000555 0000000 0000000 00000004612 11524351201 027663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/halt                       0000755 0000000 0000000 00000012723 11524351200 026251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/cgconfig                   0000755 0000000 0000000 00000012327 11524351177 027115  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/single                     0000755 0000000 0000000 00000001207 11524351204 026601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/mdmonitor                  0000755 0000000 0000000 00000005013 11524351201 027324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/restorecond                0000755 0000000 0000000 00000003427 11524351203 027654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/cpuspeed                   0000755 0000000 0000000 00000025442 11524351200 027133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/netfs                      0000755 0000000 0000000 00000012432 11524351202 026437  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524351203 027501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/oddjobd                    0000755 0000000 0000000 00000004325 11524351203 026730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/ksmtuned                   0000755 0000000 0000000 00000003433 11524351201 027152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/sandbox                    0000755 0000000 0000000 00000003242 11524351204 026757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/killall                    0000755 0000000 0000000 00000001214 11524351201 026737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/rdisc                      0000755 0000000 0000000 00000003027 11524351203 026425  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/httpd                      0000755 0000000 0000000 00000006364 11524351200 026450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/ntpd                       0000755 0000000 0000000 00000003603 11524351202 026265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/smartd                     0000755 0000000 0000000 00000005672 11524351204 026624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/nslcd                      0000755 0000000 0000000 00000003213 11524351202 026420  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/ntpdate                    0000755 0000000 0000000 00000003512 11524351202 026756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile13/idleserver/VM_configuration/etc/rc.d/init.d/microcode_ctl              0000755 0000000 0000000 00000002221 11524351202 030121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/idleserver/VM_configuration/etc/hosts                                  0000644 0000000 0000000 00000000267 11524351176 024457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/idleserver/VM_configuration/etc/iproute2/                              0000777 0000000 0000000 00000000000 11524351176 025144  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/etc/iproute2/rt_dsfield                    0000644 0000000 0000000 00000000672 11524351176 027207  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile13/idleserver/VM_configuration/etc/iproute2/rt_realms                     0000644 0000000 0000000 00000000160 11524351176 027050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile13/idleserver/VM_configuration/etc/iproute2/rt_scopes                     0000644 0000000 0000000 00000000134 11524351176 027062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/idleserver/VM_configuration/etc/iproute2/ematch_map                    0000644 0000000 0000000 00000000073 11524351176 027161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/idleserver/VM_configuration/etc/iproute2/rt_tables                     0000644 0000000 0000000 00000000127 11524351176 027042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/idleserver/VM_configuration/etc/iproute2/rt_protos                     0000644 0000000 0000000 00000000475 11524351176 027124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/etc/nsswitch.conf                          0000644 0000000 0000000 00000003230 11524351176 026076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/idleserver/VM_configuration/etc/fstab                                  0000644 0000000 0000000 00000001603 11524351176 024411  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile13/idleserver/VM_configuration/etc/sysctl.conf                            0000644 0000000 0000000 00000001466 11524351212 025555  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile13/idleserver/VM_configuration/etc/inittab                                0000644 0000000 0000000 00000001564 11524351176 024752  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile13/idleserver/VM_configuration/var/                                       0000777 0000000 0000000 00000000000 11524351214 023401  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/var/log/                                   0000777 0000000 0000000 00000000000 11524351214 024162  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/var/log/dmesg                              0000644 0000000 0000000 00000041447 11524351214 025212  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003fffd000 (usable)
 BIOS-e820: 000000003fffd000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x3fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000003fffd000
 0000000000 - 003fe00000 page 2M
 003fe00000 - 003fffd000 page 4k
kernel direct mapping tables up to 3fffd000 @ 8000-b000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000003fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000003ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000003fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000003ffffe00 00040
ACPI: SSDT 000000003fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000003fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000003fffd000
Bootmem setup node 0 0000000000000000-000000003fffd000
  NODE_DATA [0000000000009000 - 000000000003cfff]
  bootmap [000000000003d000 -  0000000000044fff] pages 8
(7 early reservations) ==> bootmem [0000000000 - 003fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0000dfffff] PMD -> [ffff880002200000-ffff880002ffffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0003fffd
On node 0 totalpages: 262038
  DMA zone: 56 pages used for memmap
  DMA zone: 105 pages reserved
  DMA zone: 3832 pages, LIFO batch:0
  DMA32 zone: 3528 pages used for memmap
  DMA32 zone: 254517 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 40000000 (gap: 40000000:bffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 258349
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 1007148k/1048564k available (4935k kernel code, 412k absent, 41004k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 10485760 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116196.324:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 1992
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:03:15 UTC (1297116195)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 30 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                         Virtual_Configuration/tile13/idleserver/VM_configuration/boot/                                      0000777 0000000 0000000 00000000000 11524351175 023562  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/boot/grub/                                 0000777 0000000 0000000 00000000000 11524351175 024521  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/VM_configuration/boot/grub/grub.conf                        0000644 0000000 0000000 00000002217 11524351175 026325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/idleserver/VM_configuration/rpmpkgs.txt                                0000644 0000000 0000000 00000067153 11524351214 025045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/idleserver/VM_configuration/ifconfig.txt                               0000644 0000000 0000000 00000001573 11524351212 025136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:4C  
          inet addr:10.1.217.76  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe91:4c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22939 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2746 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1938179 (1.8 MiB)  TX bytes:808791 (789.8 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:751 errors:0 dropped:0 overruns:0 frame:0
          TX packets:751 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:73671 (71.9 KiB)  TX bytes:73671 (71.9 KiB)

                                                                                                                                     Virtual_Configuration/tile13/idleserver/VM_configuration/chkconfig.txt                              0000644 0000000 0000000 00000006535 11524351175 025320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile13/idleserver/Software_Configuration/                                     0000777 0000000 0000000 00000000000 11524351175 024027  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/                                                             0000777 0000000 0000000 00000000000 11524351137 017207  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/                                            0000777 0000000 0000000 00000000000 11524351156 022461  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/proc/                                       0000777 0000000 0000000 00000000000 11524351155 023423  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/proc/cpuinfo                                0000644 0000000 0000000 00000002030 11524351155 025000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/appserver/VM_configuration/proc/mounts                                 0000644 0000000 0000000 00000001357 11524351155 024675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1278676k,nr_inodes=319669,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1360,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1360,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/appserver/VM_configuration/proc/swaps                                  0000644 0000000 0000000 00000000144 11524351155 024476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/appserver/VM_configuration/proc/devices                                0000644 0000000 0000000 00000000567 11524351155 024774  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile13/appserver/VM_configuration/proc/modules                                0000644 0000000 0000000 00000002621 11524351155 025013  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 63 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile13/appserver/VM_configuration/proc/partitions                             0000644 0000000 0000000 00000000260 11524351155 025534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile13/appserver/VM_configuration/proc/meminfo                                0000644 0000000 0000000 00000002222 11524351155 024772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2571688 kB
MemFree:          476868 kB
Buffers:           37884 kB
Cached:           244856 kB
SwapCached:            0 kB
Active:          1769144 kB
Inactive:         189252 kB
Active(anon):    1675848 kB
Inactive(anon):        0 kB
Active(file):      93296 kB
Inactive(file):   189252 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               148 kB
Writeback:             0 kB
AnonPages:       1675696 kB
Mapped:            76276 kB
Shmem:               160 kB
Slab:             102428 kB
SReclaimable:      35364 kB
SUnreclaim:        67064 kB
KernelStack:        2696 kB
PageTables:         7044 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3333836 kB
Committed_AS:     345832 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19244 kB
VmallocChunk:   34359711668 kB
HardwareCorrupted:     0 kB
AnonHugePages:   1429504 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2613248 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/appserver/VM_configuration/root/                                       0000777 0000000 0000000 00000000000 11524351155 023443  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/root/convert_to_vf.sh                       0000755 0000000 0000000 00000001135 11524351155 026653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/lspci.txt                                   0000644 0000000 0000000 00000001211 11524351154 024321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/appserver/VM_configuration/df.txt                                      0000644 0000000 0000000 00000000401 11524351140 023573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8772680   4008256  69% /
tmpfs                  1285844         0   1285844   0% /dev/shm
/dev/vdb1             20642412   2027316  17566524  11% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/appserver/VM_configuration/mount.txt                                   0000644 0000000 0000000 00000000612 11524351154 024355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile13/appserver/VM_configuration/etc/                                        0000777 0000000 0000000 00000000000 11524351154 023232  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/                                   0000777 0000000 0000000 00000000000 11524351146 024061  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/                             0000777 0000000 0000000 00000000000 11524351154 024771  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests            0000755 0000000 0000000 00000017172 11524351147 030165  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                   0000755 0000000 0000000 00000004325 11524351147 026603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                0000755 0000000 0000000 00000006014 11524351150 027363  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                  0000755 0000000 0000000 00000012327 11524351151 026765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                 0000755 0000000 0000000 00000005222 11524351152 027151  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                      0000755 0000000 0000000 00000010671 11524351154 026156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                     0000755 0000000 0000000 00000006364 11524351147 026332  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                 0000755 0000000 0000000 00000020716 11524351151 027075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                      0000755 0000000 0000000 00000004731 11524351150 026153  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon              0000755 0000000 0000000 00000004754 11524351147 027535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                 0000755 0000000 0000000 00000001364 11524351153 027174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                     0000755 0000000 0000000 00000003027 11524351151 026312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                    0000755 0000000 0000000 00000006743 11524351154 026516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                     0000755 0000000 0000000 00000010777 11524351150 026316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                0000755 0000000 0000000 00000004230 11524351153 027336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                     0000755 0000000 0000000 00000006302 11524351150 026265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                       0000755 0000000 0000000 00000004236 11524351154 026011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                   0000755 0000000 0000000 00000004031 11524351152 026617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                0000755 0000000 0000000 00000003521 11524351152 027302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                   0000755 0000000 0000000 00000006050 11524351152 026654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                   0000755 0000000 0000000 00000002363 11524351151 026723  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                0000755 0000000 0000000 00000004054 11524351147 027341  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                 0000755 0000000 0000000 00000005013 11524351152 027211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                     0000755 0000000 0000000 00000003213 11524351151 026305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                   0000755 0000000 0000000 00000003512 11524351150 026636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                      0000755 0000000 0000000 00000003603 11524351150 026144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                    0000755 0000000 0000000 00000011277 11524351150 026471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S10network                   0000755 0000000 0000000 00000014466 11524351152 026701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                   0000755 0000000 0000000 00000004326 11524351152 026706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                    0000755 0000000 0000000 00000006462 11524351152 026460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                     0000755 0000000 0000000 00000027662 11524351153 026334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                      0000755 0000000 0000000 00000006445 11524351150 026047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                 0000755 0000000 0000000 00000003245 11524351153 027141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K60crond                     0000755 0000000 0000000 00000005445 11524351150 026305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                     0000755 0000000 0000000 00000005522 11524351147 026315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl             0000755 0000000 0000000 00000002221 11524351151 027776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                 0000755 0000000 0000000 00000004010 11524351147 027154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                       0000755 0000000 0000000 00000013536 11524351150 025766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                      0000755 0000000 0000000 00000004723 11524351153 026135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                    0000755 0000000 0000000 00000003024 11524351147 026445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                     0000755 0000000 0000000 00000003275 11524351153 026274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                  0000755 0000000 0000000 00000025442 11524351152 027017  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                 0000755 0000000 0000000 00000004370 11524351153 027137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S99local                     0000755 0000000 0000000 00000000334 11524351154 026312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                   0000755 0000000 0000000 00000006675 11524351152 026656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                0000755 0000000 0000000 00000005650 11524351147 027354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor              0000555 0000000 0000000 00000004612 11524351151 027543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                    0000755 0000000 0000000 00000007234 11524351153 026516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                  0000755 0000000 0000000 00000003433 11524351154 027050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                    0000755 0000000 0000000 00000005672 11524351147 026475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                     0000755 0000000 0000000 00000003254 11524351154 026310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                 0000755 0000000 0000000 00000005063 11524351153 027163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                     0000755 0000000 0000000 00000012432 11524351153 026325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                   0000755 0000000 0000000 00000007414 11524351147 026675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                  0000755 0000000 0000000 00000020557 11524351151 027012  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond               0000755 0000000 0000000 00000003427 11524351151 027537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/rc3.d/K05atd                       0000755 0000000 0000000 00000004112 11524351147 025743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/                            0000777 0000000 0000000 00000000000 11524351146 025246  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/network                     0000755 0000000 0000000 00000014466 11524351144 026672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/gfs2                        0000755 0000000 0000000 00000006445 11524351142 026036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/sysstat                     0000755 0000000 0000000 00000002363 11524351146 026706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/saslauthd                   0000755 0000000 0000000 00000004010 11524351146 027153  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/messagebus                  0000755 0000000 0000000 00000004230 11524351143 027322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/autobench                   0000755 0000000 0000000 00000005063 11524351141 027137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/atd                         0000755 0000000 0000000 00000004112 11524351141 025731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/mcelogd                     0000755 0000000 0000000 00000003535 11524351143 026605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/auditd                      0000755 0000000 0000000 00000006462 11524351141 026445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/certmonger                  0000755 0000000 0000000 00000004054 11524351141 027333  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/irqbalance                  0000755 0000000 0000000 00000003521 11524351143 027267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/acpid                       0000755 0000000 0000000 00000003275 11524351141 026252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/nscd                        0000755 0000000 0000000 00000004723 11524351144 026123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                   0000755 0000000 0000000 00000005222 11524351145 027133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/nfs                         0000755 0000000 0000000 00000013536 11524351144 025764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/sssd                        0000755 0000000 0000000 00000004731 11524351146 026151  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/crond                       0000755 0000000 0000000 00000005445 11524351142 026301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/ip6tables                   0000755 0000000 0000000 00000020716 11524351142 027063  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/autofs                      0000755 0000000 0000000 00000007234 11524351141 026472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/sshd                        0000755 0000000 0000000 00000010671 11524351146 026136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/ksm                         0000755 0000000 0000000 00000004236 11524351143 025764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/libvirt-guests              0000755 0000000 0000000 00000017172 11524351143 030160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                0000755 0000000 0000000 00000004754 11524351141 027526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/ypbind                      0000755 0000000 0000000 00000011277 11524351146 026465  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/psacct                      0000755 0000000 0000000 00000003024 11524351145 026443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/xinetd                      0000755 0000000 0000000 00000006743 11524351146 026475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/nfslock                     0000755 0000000 0000000 00000006675 11524351144 026643  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/cgred                       0000755 0000000 0000000 00000006302 11524351142 026251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/migrateip                   0000755 0000000 0000000 00000001364 11524351144 027153  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/udev-post                   0000755 0000000 0000000 00000004370 11524351146 027122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/haldaemon                   0000755 0000000 0000000 00000003245 11524351142 027120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/ipsec                       0000755 0000000 0000000 00000010777 11524351142 026303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/rpcbind                     0000755 0000000 0000000 00000004031 11524351145 026606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/rhnsd                       0000755 0000000 0000000 00000005522 11524351145 026311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/functions                   0000644 0000000 0000000 00000042767 11524351142 027211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/kdump                       0000755 0000000 0000000 00000027662 11524351143 026322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/postfix                     0000755 0000000 0000000 00000007414 11524351145 026671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/iptables                    0000755 0000000 0000000 00000020557 11524351143 027001  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/rsyslog                     0000755 0000000 0000000 00000004326 11524351145 026676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/netconsole                  0000755 0000000 0000000 00000005650 11524351144 027345  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/rpcgssd                     0000755 0000000 0000000 00000006050 11524351145 026635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/abrtd                       0000755 0000000 0000000 00000003254 11524351141 026263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                0000555 0000000 0000000 00000004612 11524351143 027533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/halt                        0000755 0000000 0000000 00000012723 11524351142 026121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/cgconfig                    0000755 0000000 0000000 00000012327 11524351141 026747  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/single                      0000755 0000000 0000000 00000001207 11524351146 026451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/mdmonitor                   0000755 0000000 0000000 00000005013 11524351143 027174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/restorecond                 0000755 0000000 0000000 00000003427 11524351145 027524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/cpuspeed                    0000755 0000000 0000000 00000025442 11524351142 027003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/netfs                       0000755 0000000 0000000 00000012432 11524351144 026307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                  0000755 0000000 0000000 00000006014 11524351145 027351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/oddjobd                     0000755 0000000 0000000 00000004325 11524351144 026577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/ksmtuned                    0000755 0000000 0000000 00000003433 11524351143 027022  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/sandbox                     0000755 0000000 0000000 00000003242 11524351146 026627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/killall                     0000755 0000000 0000000 00000001214 11524351143 026607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/rdisc                       0000755 0000000 0000000 00000003027 11524351145 026275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/httpd                       0000755 0000000 0000000 00000006364 11524351142 026320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/ntpd                        0000755 0000000 0000000 00000003603 11524351144 026135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/smartd                      0000755 0000000 0000000 00000005672 11524351146 026474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/nslcd                       0000755 0000000 0000000 00000003213 11524351144 026270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/ntpdate                     0000755 0000000 0000000 00000003512 11524351144 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile13/appserver/VM_configuration/etc/rc.d/init.d/microcode_ctl               0000755 0000000 0000000 00000002221 11524351144 027771  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/appserver/VM_configuration/etc/hosts                                   0000644 0000000 0000000 00000000267 11524351140 024311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/appserver/VM_configuration/etc/iproute2/                               0000777 0000000 0000000 00000000000 11524351140 024776  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/etc/iproute2/rt_dsfield                     0000644 0000000 0000000 00000000672 11524351140 027041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile13/appserver/VM_configuration/etc/iproute2/rt_realms                      0000644 0000000 0000000 00000000160 11524351140 026702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile13/appserver/VM_configuration/etc/iproute2/rt_scopes                      0000644 0000000 0000000 00000000134 11524351140 026714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/appserver/VM_configuration/etc/iproute2/ematch_map                     0000644 0000000 0000000 00000000073 11524351140 027013  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/appserver/VM_configuration/etc/iproute2/rt_tables                      0000644 0000000 0000000 00000000127 11524351140 026674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/appserver/VM_configuration/etc/iproute2/rt_protos                      0000644 0000000 0000000 00000000475 11524351140 026756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/etc/nsswitch.conf                           0000644 0000000 0000000 00000003230 11524351141 025731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/appserver/VM_configuration/etc/fstab                                   0000644 0000000 0000000 00000001603 11524351140 024243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile13/appserver/VM_configuration/etc/sysctl.conf                             0000644 0000000 0000000 00000001466 11524351154 025425  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile13/appserver/VM_configuration/etc/inittab                                 0000644 0000000 0000000 00000001564 11524351140 024604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile13/appserver/VM_configuration/var/                                        0000777 0000000 0000000 00000000000 11524351156 023251  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/var/log/                                    0000777 0000000 0000000 00000000000 11524351156 024032  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/var/log/dmesg                               0000644 0000000 0000000 00000044275 11524351156 025064  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000009fffd000 (usable)
 BIOS-e820: 000000009fffd000 - 00000000a0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x9fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000009fffd000
 0000000000 - 009fe00000 page 2M
 009fe00000 - 009fffd000 page 4k
kernel direct mapping tables up to 9fffd000 @ 8000-d000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 000000009fffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000009ffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000009fffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000009ffffdc0 00040
ACPI: SSDT 000000009fffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000009fffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000009fffd000
Bootmem setup node 0 0000000000000000-000000009fffd000
  NODE_DATA [000000000000b000 - 000000000003efff]
  bootmap [000000000003f000 -  0000000000052fff] pages 14
(7 early reservations) ==> bootmem [0000000000 - 009fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000b000]          PGTABLE ==> [0000008000 - 000000b000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00023fffff] PMD -> [ffff880002200000-ffff8800045fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0009fffd
On node 0 totalpages: 655254
  DMA zone: 56 pages used for memmap
  DMA zone: 107 pages reserved
  DMA zone: 3830 pages, LIFO batch:0
  DMA32 zone: 8904 pages used for memmap
  DMA32 zone: 642357 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at a0000000 (gap: a0000000:5ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 646187
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2557352k/2621428k available (4935k kernel code, 412k absent, 63664k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 26214400 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (13867.27 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116101.298:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 5020
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:40 UTC (1297116100)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda:
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
4e:2b:a1:57:84:fc
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/boot/                                       0000777 0000000 0000000 00000000000 11524351137 023423  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/boot/grub/                                  0000777 0000000 0000000 00000000000 11524351137 024362  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/VM_configuration/boot/grub/grub.conf                         0000644 0000000 0000000 00000001352 11524351137 026165  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/appserver/VM_configuration/rpmpkgs.txt                                 0000644 0000000 0000000 00000067153 11524351155 024714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/appserver/VM_configuration/ifconfig.txt                                0000644 0000000 0000000 00000002353 11524351154 025003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:4A  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:229 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:22473 (21.9 KiB)  TX bytes:828 (828.0 b)

eth1      Link encap:Ethernet  HWaddr 4E:2B:A1:57:84:FC  
          inet addr:10.1.217.74  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::4c2b:a1ff:fe57:84fc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18439211 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38597085 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5139853027 (4.7 GiB)  TX bytes:42317997364 (39.4 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:659481 errors:0 dropped:0 overruns:0 frame:0
          TX packets:659481 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:107352719 (102.3 MiB)  TX bytes:107352719 (102.3 MiB)

                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/appserver/VM_configuration/chkconfig.txt                               0000644 0000000 0000000 00000006535 11524351137 025161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile13/appserver/Software_Configuration/                                      0000777 0000000 0000000 00000000000 11524351137 023670  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/Software_Configuration/AppSrv01/                             0000777 0000000 0000000 00000000000 11524351137 025244  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/Software_Configuration/AppSrv01/server.xml                   0000644 0000000 0000000 00000103647 11524351137 027303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   <?xml version="1.0" encoding="UTF-8"?>
<process:Server xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:adminservice="http://www.ibm.com/websphere/appserver/schemas/5.0/adminservice.xmi" xmlns:applicationserver="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.xmi" xmlns:applicationserver.ejbcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.xmi" xmlns:applicationserver.ejbcontainer.messagelistener="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.messagelistener.xmi" xmlns:applicationserver.sipcontainer="www.ibm.com/websphere/appserver/schemas/7.0/applicationserver.sipcontainer.xmi" xmlns:applicationserver.webcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.webcontainer.xmi" xmlns:channelservice="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.xmi" xmlns:channelservice.channels="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.channels.xmi" xmlns:coregroupbridgeservice="http://www.ibm.com/websphere/appserver/schemas/6.0/coregroupbridgeservice.xmi" xmlns:diagnosticproviderservice="http://www.ibm.com/websphere/appserver/schemas/5.0/diagnosticproviderservice.xmi" xmlns:loggingservice.http="http://www.ibm.com/websphere/appserver/schemas/6.0/loggingservice.http.xmi" xmlns:loggingservice.ras="http://www.ibm.com/websphere/appserver/schemas/5.0/loggingservice.ras.xmi" xmlns:namingserver="http://www.ibm.com/websphere/appserver/schemas/5.0/namingserver.xmi" xmlns:orb="http://www.ibm.com/websphere/appserver/schemas/5.0/orb.xmi" xmlns:pmiservice="http://www.ibm.com/websphere/appserver/schemas/5.0/pmiservice.xmi" xmlns:portletcontainer="http://www.ibm.com/websphere/appserver/schemas/6.0/portletcontainer.xmi" xmlns:process="http://www.ibm.com/websphere/appserver/schemas/5.0/process.xmi" xmlns:processexec="http://www.ibm.com/websphere/appserver/schemas/5.0/processexec.xmi" xmlns:sibresources="http://www.ibm.com/websphere/appserver/schemas/6.0/sibresources.xmi" xmlns:threadpoolmanager="http://www.ibm.com/websphere/appserver/schemas/6.0/threadpoolmanager.xmi" xmlns:tperfviewer="http://www.ibm.com/websphere/appserver/schemas/6.0/tperfviewer.xmi" xmlns:traceservice="http://www.ibm.com/websphere/appserver/schemas/5.0/traceservice.xmi" xmi:id="Server_1183122130078" name="server1" parallelStartEnabled="true">
  <stateManagement xmi:id="StateManageable_1183122130078" initialState="START"/>
  <statisticsProvider xmi:id="StatisticsProvider_1183122130078" specification="com.ibm.orb=enabled"/>
  <services xmi:type="pmiservice:PMIService" xmi:id="PMIService_1183122130078" enable="false" initialSpecLevel="" statisticSet="basic" synchronizedUpdate="false"/>
  <services xmi:type="adminservice:AdminService" xmi:id="AdminService_1183122130078" enable="true" standalone="true" localAdminProtocol="IPCConnector_1" remoteAdminProtocol="SOAPConnector_1">
    <connectors xmi:type="adminservice:SOAPConnector" xmi:id="SOAPConnector_1" enable="true">
      <properties xmi:id="Property_3" name="requestTimeout" value="600"/>
    </connectors>
    <connectors xmi:type="adminservice:RMIConnector" xmi:id="RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:JSR160RMIConnector" xmi:id="JSR160RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:IPCConnector" xmi:id="IPCConnector_1" enable="true">
      <properties xmi:id="Property_4" name="requestTimeout" value="600"/>
    </connectors>
    <configRepository xmi:id="RepositoryService_1183122130078"/>
    <pluginConfigService xmi:id="PluginConfigService_1183122130078" enable="true"/>
  </services>
  <services xmi:type="traceservice:TraceService" xmi:id="TraceService_1183122130078" enable="false" startupTraceSpecification="*=all=disabled" traceOutputType="SPECIFIED_FILE" traceFormat="BASIC" memoryBufferSize="8">
    <traceLog xmi:id="TraceLog_1183122130078" fileName="${SERVER_LOG_ROOT}/trace.log" rolloverSize="100" maxNumberOfBackupFiles="10"/>
  </services>
  <services xmi:type="diagnosticproviderservice:DiagnosticProviderService" xmi:id="DiagnosticProviderService_1183122130078" enable="true" startupStateCollectionSpec=".*:.*=0"/>
  <services xmi:type="loggingservice.ras:RASLoggingService" xmi:id="RASLoggingService_1183122130078" enable="true" messageFilterLevel="NONE" enableCorrelationId="true">
    <serviceLog xmi:id="ServiceLog_1183122130078" name="${LOG_ROOT}/activity.log" size="2" enabled="true"/>
  </services>
  <services xmi:type="coregroupbridgeservice:CoreGroupBridgeService" xmi:id="CoreGroupBridgeService_1183122130078" enable="true"/>
  <services xmi:type="tperfviewer:TPVService" xmi:id="TPVService_1183122130078" enable="true"/>
  <services xmi:type="orb:ObjectRequestBroker" xmi:id="ObjectRequestBroker_1183122130078" enable="true" requestTimeout="180" requestRetriesCount="1" requestRetriesDelay="0" connectionCacheMaximum="240" connectionCacheMinimum="100" commTraceEnabled="false" locateRequestTimeout="180" forceTunnel="never" noLocalCopies="false" useServerThreadPool="true">
    <properties xmi:id="Property_1183122130079" name="com.ibm.CORBA.enableLocateRequest" value="true"/>
    <properties xmi:id="Property_1183122130080" name="com.ibm.ws.orb.transport.WSSSLServerSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLServerSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130081" name="com.ibm.ws.orb.transport.WSSSLClientSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130082" name="com.ibm.CORBA.ConnectionInterceptorName" value="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor"/>
    <properties xmi:id="Property_1183122130083" name="com.ibm.CORBA.RasManager" value="com.ibm.websphere.ras.WsOrbRasManager"/>
    <properties xmi:id="Property_1183122130084" name="com.ibm.ws.orb.transport.useMultiHome" value="true"/>
    <properties xmi:id="Property_1183122130085" name="com.ibm.websphere.management.registerServerIORWithLSD" value="true"/>
    <interceptors xmi:id="Interceptor_1183122130078" name="com.ibm.ejs.ras.RasContextSupport"/>
    <interceptors xmi:id="Interceptor_1183122130079" name="com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRequestInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130080" name="com.ibm.ws.Transaction.JTS.TxInterceptorInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130081" name="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityComponentFactory"/>
    <interceptors xmi:id="Interceptor_1183122130082" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ServerRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130083" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ClientRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130084" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIClientRI"/>
    <interceptors xmi:id="Interceptor_1183122130085" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRI"/>
    <interceptors xmi:id="Interceptor_1183122130086" name="com.ibm.ws.wlm.client.WLMClientInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130087" name="com.ibm.ws.wlm.server.WLMServerInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130088" name="com.ibm.ws.activity.remote.cos.ActivityServiceServerInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130089" name="com.ibm.debug.DebugPortableInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130090" name="com.ibm.debug.olt.ivbtrjrt.OLT_RI"/>
    <plugins xmi:id="ORBPlugin_1183122130078" name="com.ibm.ws.orbimpl.transport.WSTransport"/>
    <plugins xmi:id="ORBPlugin_1183122130079" name="com.ibm.ISecurityUtilityImpl.SecurityPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130080" name="com.ibm.ws.orbimpl.WSORBPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130081" name="com.ibm.ws.wlm.client.WLMClient"/>
    <plugins xmi:id="ORBPlugin_1183122130082" name="com.ibm.ws.pmi.server.modules.OrbPerfModule"/>
    <plugins xmi:id="ORBPlugin_1183122130083" name="com.ibm.ws.csi.CORBAORBMethodAccessControl"/>
    <threadPool xmi:id="ThreadPool_1183122130078" minimumSize="13" maximumSize="13" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
  </services>
  <services xmi:type="channelservice:TransportChannelService" xmi:id="TransportChannelService_1183122130078" enable="true">
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130078" name="TCP_1" endPointName="WC_adminhost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130079" name="TCP_2" endPointName="WC_defaulthost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130080" name="TCP_3" endPointName="WC_adminhost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130081" name="TCP_4" endPointName="WC_defaulthost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130082" name="TCP_5" endPointName="DCS_UNICAST_ADDRESS" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130080"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130083" name="TCP_8" discriminationWeight="0" endPointName="SIP_DEFAULTHOST" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130084" name="TCP_9" discriminationWeight="0" endPointName="SIP_DEFAULTHOST_SECURE" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130078" name="SSL_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130079" name="SSL_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130080" name="SSL_3" discriminationWeight="2"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130081" name="SSL_5" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130078" name="HTTP_1" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130079" name="HTTP_2" discriminationWeight="1" maximumPersistentRequests="-1" keepAlive="true" readTimeout="6000" writeTimeout="6000" persistentTimeout="3000" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130080" name="HTTP_3" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130081" name="HTTP_4" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130078" name="HTTPQ_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130079" name="HTTPQ_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130078" name="WCC_1" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130079" name="WCC_2" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130080" name="WCC_3" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130081" name="WCC_4" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130082" name="WCC_5" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130083" name="WCC_6" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130078" name="DCS_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130079" name="DCS_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130078" name="SIP_1" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130079" name="SIP_2" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130080" name="SIP_3" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130078" name="SIPCC_1" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130079" name="SIPCC_2" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130080" name="SIPCC_3" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:UDPInboundChannel" xmi:id="UDPInboundChannel_1183122130078" name="UDP_1" discriminationWeight="0" endPointName="SIP_DEFAULTHOST"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130085" name="SIB_TCP_JFAP" endPointName="SIB_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130086" name="SIB_TCP_JFAP_SSL" endPointName="SIB_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130087" name="SIB_TCP_MQFAP" endPointName="SIB_MQ_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130088" name="SIB_TCP_MQFAP_SSL" endPointName="SIB_MQ_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130082" name="SIB_SSL_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130083" name="SIB_SSL_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130078" name="SIB_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130079" name="SIB_JFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130078" name="SIB_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130079" name="SIB_MQFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130078" name="SIB_TCP_JFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130079" name="SIB_TCP_JFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130080" name="SIB_TCP_JFAP_TUN_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130081" name="SIB_TCP_JFAP_TUN_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130082" name="SIB_TCP_MQFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130083" name="SIB_TCP_MQFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130078" name="SIB_SSL_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130079" name="SIB_SSL_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130080" name="SIB_SSL_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130078" name="SIB_HTTP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130079" name="SIB_HTTP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130078" name="SIB_HTC_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130079" name="SIB_HTC_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130078" name="SIB_JFAP_JFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130079" name="SIB_JFAP_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130080" name="SIB_JFAP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130081" name="SIB_JFAP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130078" name="SIB_MQFAP_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130079" name="SIB_MQFAP_MQFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130084" name="SIB_TCP_RMQ_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130085" name="SIB_TCP_RMQ_SSL_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130081" name="SIB_SSL_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130078" name="SIB_RMQ_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130079" name="SIB_RMQ_RMQ_OUT"/>
    <chains xmi:id="Chain_1183122130078" name="WCInboundAdmin" enable="true" transportChannels="TCPInboundChannel_1183122130078 HTTPInboundChannel_1183122130078 WebContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130079" name="WCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 WebContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130080" name="HttpQueueInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 HTTPQueueInboundChannel_1183122130078 WebContainerInboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130081" name="HttpQueueInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 HTTPQueueInboundChannel_1183122130079 WebContainerInboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130082" name="WCInboundAdminSecure" enable="true" transportChannels="TCPInboundChannel_1183122130080 SSLInboundChannel_1183122130078 HTTPInboundChannel_1183122130080 WebContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130083" name="WCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 WebContainerInboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130084" name="DCS" enable="true" transportChannels="TCPInboundChannel_1183122130082 DCSInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130085" name="DCS-Secure" enable="true" transportChannels="TCPInboundChannel_1183122130082 SSLInboundChannel_1183122130080 DCSInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130086" name="SIPCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130083 SIPInboundChannel_1183122130078 SIPContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130087" name="SIPCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130084 SSLInboundChannel_1183122130081 SIPInboundChannel_1183122130079 SIPContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130088" name="SIPCInboundDefaultUDP" enable="true" transportChannels="UDPInboundChannel_1183122130078 SIPInboundChannel_1183122130080 SIPContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130089" name="InboundBasicMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130085 JFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130090" name="InboundSecureMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130086 SSLInboundChannel_1183122130082 JFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130091" name="InboundBasicMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130087 MQFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130092" name="InboundSecureMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130088 SSLInboundChannel_1183122130083 MQFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130093" name="BootstrapBasicMessaging" transportChannels="JFAPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130094" name="BootstrapSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130079 TCPOutboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130095" name="BootstrapTunneledMessaging" transportChannels="JFAPOutboundChannel_1183122130080 HTTPTunnelOutboundChannel_1183122130078 HTTPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130096" name="BootstrapTunneledSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130081 HTTPTunnelOutboundChannel_1183122130079 HTTPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130080 TCPOutboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130097" name="OutboundBasicMQLink" transportChannels="MQFAPOutboundChannel_1183122130079 TCPOutboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130098" name="OutboundSecureMQLink" transportChannels="MQFAPOutboundChannel_1183122130078 SSLOutboundChannel_1183122130078 TCPOutboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130099" name="OutboundBasicWMQClient" transportChannels="RMQOutboundChannel_1183122130079 TCPOutboundChannel_1183122130084"/>
    <chains xmi:id="Chain_1183122130100" name="OutboundSecureWMQClient" transportChannels="RMQOutboundChannel_1183122130078 SSLOutboundChannel_1183122130081 TCPOutboundChannel_1183122130085"/>
  </services>
  <services xmi:type="threadpoolmanager:ThreadPoolManager" xmi:id="ThreadPoolManager_1183122130078" enable="true">
    <threadPools xmi:id="ThreadPool_1183122130083" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
    <threadPools xmi:id="ThreadPool_1183122130084" minimumSize="1" maximumSize="3" inactivityTimeout="30000" isGrowable="false" name="server.startup" description="This pool is used by WebSphere during server startup."/>
    <threadPools xmi:id="ThreadPool_1183122130085" minimumSize="15" maximumSize="15" inactivityTimeout="3500" name="Default"/>
    <threadPools xmi:id="ThreadPool_1183122130079" minimumSize="38" maximumSize="38" inactivityTimeout="3500" isGrowable="false" name="WebContainer"/>
    <threadPools xmi:id="ThreadPool_1183122130080" minimumSize="5" maximumSize="20" name="TCPChannel.DCS"/>
    <threadPools xmi:id="ThreadPool_1183122130081" minimumSize="4" maximumSize="50" name="SIBFAPInboundThreadPool" description="Service integration bus FAP inbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1183122130082" minimumSize="4" maximumSize="50" name="SIBFAPThreadPool" description="Service integration bus FAP outbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1265156361721" minimumSize="35" maximumSize="41" inactivityTimeout="3500" name="SIBJMSRAThreadPool" description="Service Integration Bus JMS Resource Adapter thread pool"/>
    <threadPools xmi:id="ThreadPool_1265156361827" minimumSize="1" maximumSize="40" name="WMQCommonServices" description="WebSphere MQ common services thread pool">
      <customProperties xmi:id="Property_1265156361829" name="com.ibm.websphere.threadpool.disableHungThreadDetection" value="true" required="false"/>
    </threadPools>
    <threadPools xmi:id="ThreadPool_1265156361831" minimumSize="5" maximumSize="25" name="WMQJCAResourceAdapter" description="wmqJcaRaThreadPoolDescription"/>
  </services>
  <services xmi:type="loggingservice.http:HTTPAccessLoggingService" xmi:id="HTTPAccessLoggingService_1183122130078" enable="false" enableErrorLogging="true" enableAccessLogging="true">
    <errorLog xmi:id="LogFile_1183122130078" filePath="${SERVER_LOG_ROOT}/http_error.log" maximumSize="500"/>
    <accessLog xmi:id="LogFile_1183122130079" filePath="${SERVER_LOG_ROOT}/http_access.log" maximumSize="500"/>
  </services>
  <errorStreamRedirect xmi:id="StreamRedirect_1183122130078" fileName="${SERVER_LOG_ROOT}/SystemErr.log" rolloverType="NONE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <outputStreamRedirect xmi:id="StreamRedirect_1183122130079" fileName="${SERVER_LOG_ROOT}/SystemOut.log" rolloverType="NONE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <components xmi:type="namingserver:NameServer" xmi:id="NameServer_1183122130078">
    <stateManagement xmi:id="StateManageable_1183122130079" initialState="START"/>
  </components>
  <components xmi:type="applicationserver:ApplicationServer" xmi:id="ApplicationServer_1183122130078" applicationClassLoaderPolicy="MULTIPLE">
    <stateManagement xmi:id="StateManageable_1183122130080" initialState="START"/>
    <services xmi:type="applicationserver:TransactionService" xmi:id="TransactionService_1183122130078" enable="true" totalTranLifetimeTimeout="0" clientInactivityTimeout="0" propogatedOrBMTTranLifetimeTimeout="300" httpProxyPrefix="" httpsProxyPrefix=""/>
    <services xmi:type="applicationserver:DynamicCache" xmi:id="DynamicCache_1183122130078" enable="true">
      <cacheGroups xmi:id="ExternalCacheGroup_1183122130078" name="EsiInvalidator">
        <members xmi:id="ExternalCacheGroupMember_1183122130078" address="localhost" adapterBeanName="com.ibm.websphere.servlet.cache.ESIInvalidatorServlet"/>
      </cacheGroups>
    </services>
    <components xmi:type="applicationserver.webcontainer:WebContainer" xmi:id="WebContainer_1183122130078" enableServletCaching="false" disablePooling="false">
      <stateManagement xmi:id="StateManageable_1183122130081" initialState="START"/>
      <services xmi:type="applicationserver.webcontainer:SessionManager" xmi:id="SessionManager_1183122130078" enable="true" enableUrlRewriting="false" enableCookies="true" enableSSLTracking="false" enableProtocolSwitchRewriting="false" sessionPersistenceMode="NONE" enableSecurityIntegration="false" allowSerializedSessionAccess="false" maxWaitTime="5" accessSessionOnTimeout="true">
        <defaultCookieSettings xmi:id="Cookie_1183122130078" domain="" maximumAge="-1" secure="false"/>
        <sessionDatabasePersistence xmi:id="SessionDatabasePersistence_1183122130078" datasourceJNDIName="jdbc/Sessions" userId="db2admin" password="{xor}Oz1tPjsyNjE=" db2RowSize="ROW_SIZE_4KB" tableSpaceName=""/>
        <tuningParams xmi:id="TuningParams_1183122130078" usingMultiRowSchema="false" maxInMemorySessionCount="1000" allowOverflow="true" scheduleInvalidation="false" writeFrequency="TIME_BASED_WRITE" writeInterval="10" writeContents="ONLY_UPDATED_ATTRIBUTES" invalidationTimeout="30">
          <invalidationSchedule xmi:id="InvalidationSchedule_1183122130078" firstHour="14" secondHour="2"/>
        </tuningParams>
      </services>
    </components>
    <components xmi:type="applicationserver.ejbcontainer:EJBContainer" xmi:id="EJBContainer_1183122130078" passivationDirectory="${USER_INSTALL_ROOT}/temp" inactivePoolCleanupInterval="30000">
      <stateManagement xmi:id="StateManageable_1183122130082" initialState="START"/>
      <services xmi:type="applicationserver.ejbcontainer.messagelistener:MessageListenerService" xmi:id="MessageListenerService_1183122130078">
        <threadPool xmi:id="ThreadPool_1183122130086" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="Message.Listener.Pool"/>
      </services>
      <cacheSettings xmi:id="EJBCache_1183122130078" cleanupInterval="3000" cacheSize="60000"/>
      <timerSettings xmi:id="EJBTimer_1183122130078" datasourceJNDIName="jdbc/DefaultEJBTimerDataSource" tablePrefix="EJBTIMER_" pollInterval="300" numAlarmThreads="1"/>
    </components>
    <components xmi:type="portletcontainer:PortletContainer" xmi:id="PortletContainer_1183122130078"/>
    <components xmi:type="applicationserver.sipcontainer:SIPContainer" xmi:id="SIPContainer_1183122130078" name="" maxAppSessions="120000" maxMessageRate="5000" maxDispatchQueueSize="3200" maxResponseTime="0" statAveragePeriod="1000" statUpdateRange="10000">
      <stack xmi:id="Stack_1183122130078">
        <timers xmi:id="Timers_1183122130078"/>
      </stack>
    </components>
    <webserverPluginSettings xmi:id="WebserverPluginSettings_1183122130078" WaitForContinue="false" ConnectTimeout="0" MaxConnections="-1" ExtendedHandshake="false" ServerIOTimeout="0"/>
  </components>
  <processDefinitions xmi:type="processexec:JavaProcessDef" xmi:id="JavaProcessDef_1183122130078" workingDirectory="${USER_INSTALL_ROOT}" executableTargetKind="JAVA_CLASS" executableTarget="com.ibm.ws.runtime.WsServer">
    <execution xmi:id="ProcessExecution_1183122130078" processPriority="20" runAsUser="" runAsGroup=""/>
    <ioRedirect xmi:id="OutputRedirect_1183122130078" stdoutFilename="${SERVER_LOG_ROOT}/native_stdout.log" stderrFilename="${SERVER_LOG_ROOT}/native_stderr.log"/>
    <monitoringPolicy xmi:id="MonitoringPolicy_1183122130078" maximumStartupAttempts="3" pingInterval="60" pingTimeout="300" autoRestart="true" nodeRestartState="STOPPED"/>
    <jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="true" verboseModeJNI="false" initialHeapSize="1280" maximumHeapSize="1280" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777" genericJvmArguments="-Dcom.ibm.CORBA.TransportMode=Pluggable -Dcom.ibm.ws.pm.batch=true -Dcom.ibm.ws.pm.deferredcreate=true -Dcom.ibm.CORBA.FragmentSize=3000 -Dcom.ibm.ws.pm.useLegacyCache=false -Dcom.ibm.ws.pm.grouppartialupdate=true -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XML11Configuration -noclassgc -Xss128k  -Xgcpolicy:gencon -Xmo320m -Xcodecache16m -Xgcthreads4 -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=0">
      <systemProperties xmi:id="Property_1" name="com.ibm.security.jgss.debug" value="off" required="false"/>
      <systemProperties xmi:id="Property_2" name="com.ibm.security.krb5.Krb5Debug" value="off" required="false"/>
    </jvmEntries>
  </processDefinitions>
</process:Server>
                                                                                         Virtual_Configuration/tile13/appserver/Software_Configuration/AppSrv02/                             0000777 0000000 0000000 00000000000 11524351137 025245  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/appserver/Software_Configuration/AppSrv02/server.xml                   0000644 0000000 0000000 00000102162 11524351137 027273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   <?xml version="1.0" encoding="UTF-8"?>
<process:Server xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:adminservice="http://www.ibm.com/websphere/appserver/schemas/5.0/adminservice.xmi" xmlns:applicationserver="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.xmi" xmlns:applicationserver.ejbcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.xmi" xmlns:applicationserver.ejbcontainer.messagelistener="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.messagelistener.xmi" xmlns:applicationserver.sipcontainer="www.ibm.com/websphere/appserver/schemas/7.0/applicationserver.sipcontainer.xmi" xmlns:applicationserver.webcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.webcontainer.xmi" xmlns:channelservice="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.xmi" xmlns:channelservice.channels="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.channels.xmi" xmlns:coregroupbridgeservice="http://www.ibm.com/websphere/appserver/schemas/6.0/coregroupbridgeservice.xmi" xmlns:diagnosticproviderservice="http://www.ibm.com/websphere/appserver/schemas/5.0/diagnosticproviderservice.xmi" xmlns:loggingservice.http="http://www.ibm.com/websphere/appserver/schemas/6.0/loggingservice.http.xmi" xmlns:loggingservice.ras="http://www.ibm.com/websphere/appserver/schemas/5.0/loggingservice.ras.xmi" xmlns:namingserver="http://www.ibm.com/websphere/appserver/schemas/5.0/namingserver.xmi" xmlns:orb="http://www.ibm.com/websphere/appserver/schemas/5.0/orb.xmi" xmlns:pmiservice="http://www.ibm.com/websphere/appserver/schemas/5.0/pmiservice.xmi" xmlns:portletcontainer="http://www.ibm.com/websphere/appserver/schemas/6.0/portletcontainer.xmi" xmlns:process="http://www.ibm.com/websphere/appserver/schemas/5.0/process.xmi" xmlns:processexec="http://www.ibm.com/websphere/appserver/schemas/5.0/processexec.xmi" xmlns:sibresources="http://www.ibm.com/websphere/appserver/schemas/6.0/sibresources.xmi" xmlns:threadpoolmanager="http://www.ibm.com/websphere/appserver/schemas/6.0/threadpoolmanager.xmi" xmlns:tperfviewer="http://www.ibm.com/websphere/appserver/schemas/6.0/tperfviewer.xmi" xmlns:traceservice="http://www.ibm.com/websphere/appserver/schemas/5.0/traceservice.xmi" xmi:id="Server_1183122130078" name="server1">
  <stateManagement xmi:id="StateManageable_1183122130078" initialState="START"/>
  <statisticsProvider xmi:id="StatisticsProvider_1183122130078" specification="com.ibm.orb=enabled"/>
  <services xmi:type="pmiservice:PMIService" xmi:id="PMIService_1183122130078" enable="true" initialSpecLevel="" statisticSet="basic" synchronizedUpdate="false"/>
  <services xmi:type="adminservice:AdminService" xmi:id="AdminService_1183122130078" enable="true" standalone="true" localAdminProtocol="IPCConnector_1" remoteAdminProtocol="SOAPConnector_1">
    <connectors xmi:type="adminservice:SOAPConnector" xmi:id="SOAPConnector_1" enable="true">
      <properties xmi:id="Property_3" name="requestTimeout" value="600"/>
    </connectors>
    <connectors xmi:type="adminservice:RMIConnector" xmi:id="RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:JSR160RMIConnector" xmi:id="JSR160RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:IPCConnector" xmi:id="IPCConnector_1" enable="true">
      <properties xmi:id="Property_4" name="requestTimeout" value="600"/>
    </connectors>
    <configRepository xmi:id="RepositoryService_1183122130078"/>
    <pluginConfigService xmi:id="PluginConfigService_1183122130078" enable="true"/>
  </services>
  <services xmi:type="traceservice:TraceService" xmi:id="TraceService_1183122130078" enable="true" startupTraceSpecification="*=info" traceOutputType="SPECIFIED_FILE" traceFormat="BASIC" memoryBufferSize="8">
    <traceLog xmi:id="TraceLog_1183122130078" fileName="${SERVER_LOG_ROOT}/trace.log" rolloverSize="20" maxNumberOfBackupFiles="1"/>
  </services>
  <services xmi:type="diagnosticproviderservice:DiagnosticProviderService" xmi:id="DiagnosticProviderService_1183122130078" enable="true" startupStateCollectionSpec=".*:.*=0"/>
  <services xmi:type="loggingservice.ras:RASLoggingService" xmi:id="RASLoggingService_1183122130078" enable="true" messageFilterLevel="NONE" enableCorrelationId="true">
    <serviceLog xmi:id="ServiceLog_1183122130078" name="${LOG_ROOT}/activity.log" size="2" enabled="true"/>
  </services>
  <services xmi:type="coregroupbridgeservice:CoreGroupBridgeService" xmi:id="CoreGroupBridgeService_1183122130078" enable="true"/>
  <services xmi:type="tperfviewer:TPVService" xmi:id="TPVService_1183122130078" enable="true"/>
  <services xmi:type="orb:ObjectRequestBroker" xmi:id="ObjectRequestBroker_1183122130078" enable="true" requestTimeout="180" requestRetriesCount="1" requestRetriesDelay="0" connectionCacheMaximum="240" connectionCacheMinimum="100" commTraceEnabled="false" locateRequestTimeout="180" forceTunnel="never" noLocalCopies="false" useServerThreadPool="false">
    <properties xmi:id="Property_1183122130079" name="com.ibm.CORBA.enableLocateRequest" value="true"/>
    <properties xmi:id="Property_1183122130080" name="com.ibm.ws.orb.transport.WSSSLServerSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLServerSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130081" name="com.ibm.ws.orb.transport.WSSSLClientSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130082" name="com.ibm.CORBA.ConnectionInterceptorName" value="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor"/>
    <properties xmi:id="Property_1183122130083" name="com.ibm.CORBA.RasManager" value="com.ibm.websphere.ras.WsOrbRasManager"/>
    <properties xmi:id="Property_1183122130084" name="com.ibm.ws.orb.transport.useMultiHome" value="true"/>
    <properties xmi:id="Property_1183122130085" name="com.ibm.websphere.management.registerServerIORWithLSD" value="true"/>
    <interceptors xmi:id="Interceptor_1183122130078" name="com.ibm.ejs.ras.RasContextSupport"/>
    <interceptors xmi:id="Interceptor_1183122130079" name="com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRequestInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130080" name="com.ibm.ws.Transaction.JTS.TxInterceptorInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130081" name="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityComponentFactory"/>
    <interceptors xmi:id="Interceptor_1183122130082" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ServerRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130083" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ClientRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130084" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIClientRI"/>
    <interceptors xmi:id="Interceptor_1183122130085" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRI"/>
    <interceptors xmi:id="Interceptor_1183122130086" name="com.ibm.ws.wlm.client.WLMClientInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130087" name="com.ibm.ws.wlm.server.WLMServerInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130088" name="com.ibm.ws.activity.remote.cos.ActivityServiceServerInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130089" name="com.ibm.debug.DebugPortableInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130090" name="com.ibm.debug.olt.ivbtrjrt.OLT_RI"/>
    <plugins xmi:id="ORBPlugin_1183122130078" name="com.ibm.ws.orbimpl.transport.WSTransport"/>
    <plugins xmi:id="ORBPlugin_1183122130079" name="com.ibm.ISecurityUtilityImpl.SecurityPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130080" name="com.ibm.ws.orbimpl.WSORBPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130081" name="com.ibm.ws.wlm.client.WLMClient"/>
    <plugins xmi:id="ORBPlugin_1183122130082" name="com.ibm.ws.pmi.server.modules.OrbPerfModule"/>
    <plugins xmi:id="ORBPlugin_1183122130083" name="com.ibm.ws.csi.CORBAORBMethodAccessControl"/>
    <threadPool xmi:id="ThreadPool_1183122130078" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
  </services>
  <services xmi:type="channelservice:TransportChannelService" xmi:id="TransportChannelService_1183122130078" enable="true">
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130078" name="TCP_1" endPointName="WC_adminhost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130079" name="TCP_2" endPointName="WC_defaulthost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130080" name="TCP_3" endPointName="WC_adminhost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130081" name="TCP_4" endPointName="WC_defaulthost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130082" name="TCP_5" endPointName="DCS_UNICAST_ADDRESS" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130080"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130083" name="TCP_8" discriminationWeight="0" endPointName="SIP_DEFAULTHOST" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130084" name="TCP_9" discriminationWeight="0" endPointName="SIP_DEFAULTHOST_SECURE" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130078" name="SSL_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130079" name="SSL_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130080" name="SSL_3" discriminationWeight="2"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130081" name="SSL_5" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130078" name="HTTP_1" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130079" name="HTTP_2" discriminationWeight="1" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130080" name="HTTP_3" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130081" name="HTTP_4" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130078" name="HTTPQ_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130079" name="HTTPQ_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130078" name="WCC_1" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130079" name="WCC_2" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130080" name="WCC_3" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130081" name="WCC_4" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130082" name="WCC_5" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130083" name="WCC_6" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130078" name="DCS_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130079" name="DCS_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130078" name="SIP_1" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130079" name="SIP_2" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130080" name="SIP_3" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130078" name="SIPCC_1" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130079" name="SIPCC_2" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130080" name="SIPCC_3" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:UDPInboundChannel" xmi:id="UDPInboundChannel_1183122130078" name="UDP_1" discriminationWeight="0" endPointName="SIP_DEFAULTHOST"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130085" name="SIB_TCP_JFAP" endPointName="SIB_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130086" name="SIB_TCP_JFAP_SSL" endPointName="SIB_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130087" name="SIB_TCP_MQFAP" endPointName="SIB_MQ_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130088" name="SIB_TCP_MQFAP_SSL" endPointName="SIB_MQ_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130082" name="SIB_SSL_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130083" name="SIB_SSL_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130078" name="SIB_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130079" name="SIB_JFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130078" name="SIB_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130079" name="SIB_MQFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130078" name="SIB_TCP_JFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130079" name="SIB_TCP_JFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130080" name="SIB_TCP_JFAP_TUN_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130081" name="SIB_TCP_JFAP_TUN_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130082" name="SIB_TCP_MQFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130083" name="SIB_TCP_MQFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130078" name="SIB_SSL_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130079" name="SIB_SSL_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130080" name="SIB_SSL_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130078" name="SIB_HTTP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130079" name="SIB_HTTP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130078" name="SIB_HTC_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130079" name="SIB_HTC_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130078" name="SIB_JFAP_JFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130079" name="SIB_JFAP_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130080" name="SIB_JFAP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130081" name="SIB_JFAP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130078" name="SIB_MQFAP_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130079" name="SIB_MQFAP_MQFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130084" name="SIB_TCP_RMQ_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130085" name="SIB_TCP_RMQ_SSL_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130081" name="SIB_SSL_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130078" name="SIB_RMQ_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130079" name="SIB_RMQ_RMQ_OUT"/>
    <chains xmi:id="Chain_1183122130078" name="WCInboundAdmin" enable="true" transportChannels="TCPInboundChannel_1183122130078 HTTPInboundChannel_1183122130078 WebContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130079" name="WCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 WebContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130080" name="HttpQueueInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 HTTPQueueInboundChannel_1183122130078 WebContainerInboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130081" name="HttpQueueInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 HTTPQueueInboundChannel_1183122130079 WebContainerInboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130082" name="WCInboundAdminSecure" enable="true" transportChannels="TCPInboundChannel_1183122130080 SSLInboundChannel_1183122130078 HTTPInboundChannel_1183122130080 WebContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130083" name="WCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 WebContainerInboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130084" name="DCS" enable="true" transportChannels="TCPInboundChannel_1183122130082 DCSInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130085" name="DCS-Secure" enable="true" transportChannels="TCPInboundChannel_1183122130082 SSLInboundChannel_1183122130080 DCSInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130086" name="SIPCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130083 SIPInboundChannel_1183122130078 SIPContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130087" name="SIPCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130084 SSLInboundChannel_1183122130081 SIPInboundChannel_1183122130079 SIPContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130088" name="SIPCInboundDefaultUDP" enable="true" transportChannels="UDPInboundChannel_1183122130078 SIPInboundChannel_1183122130080 SIPContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130089" name="InboundBasicMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130085 JFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130090" name="InboundSecureMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130086 SSLInboundChannel_1183122130082 JFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130091" name="InboundBasicMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130087 MQFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130092" name="InboundSecureMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130088 SSLInboundChannel_1183122130083 MQFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130093" name="BootstrapBasicMessaging" transportChannels="JFAPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130094" name="BootstrapSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130079 TCPOutboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130095" name="BootstrapTunneledMessaging" transportChannels="JFAPOutboundChannel_1183122130080 HTTPTunnelOutboundChannel_1183122130078 HTTPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130096" name="BootstrapTunneledSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130081 HTTPTunnelOutboundChannel_1183122130079 HTTPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130080 TCPOutboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130097" name="OutboundBasicMQLink" transportChannels="MQFAPOutboundChannel_1183122130079 TCPOutboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130098" name="OutboundSecureMQLink" transportChannels="MQFAPOutboundChannel_1183122130078 SSLOutboundChannel_1183122130078 TCPOutboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130099" name="OutboundBasicWMQClient" transportChannels="RMQOutboundChannel_1183122130079 TCPOutboundChannel_1183122130084"/>
    <chains xmi:id="Chain_1183122130100" name="OutboundSecureWMQClient" transportChannels="RMQOutboundChannel_1183122130078 SSLOutboundChannel_1183122130081 TCPOutboundChannel_1183122130085"/>
  </services>
  <services xmi:type="threadpoolmanager:ThreadPoolManager" xmi:id="ThreadPoolManager_1183122130078" enable="true">
    <threadPools xmi:id="ThreadPool_1183122130083" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
    <threadPools xmi:id="ThreadPool_1183122130084" minimumSize="1" maximumSize="3" inactivityTimeout="30000" isGrowable="false" name="server.startup" description="This pool is used by WebSphere during server startup."/>
    <threadPools xmi:id="ThreadPool_1183122130085" minimumSize="20" maximumSize="20" name="Default"/>
    <threadPools xmi:id="ThreadPool_1183122130079" minimumSize="50" maximumSize="50" inactivityTimeout="60000" isGrowable="false" name="WebContainer"/>
    <threadPools xmi:id="ThreadPool_1183122130080" minimumSize="5" maximumSize="20" name="TCPChannel.DCS"/>
    <threadPools xmi:id="ThreadPool_1183122130081" minimumSize="4" maximumSize="50" name="SIBFAPInboundThreadPool" description="Service integration bus FAP inbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1183122130082" minimumSize="4" maximumSize="50" name="SIBFAPThreadPool" description="Service integration bus FAP outbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1268079912035" minimumSize="35" maximumSize="41" inactivityTimeout="3500" name="SIBJMSRAThreadPool" description="Service Integration Bus JMS Resource Adapter thread pool"/>
    <threadPools xmi:id="ThreadPool_1268079912120" minimumSize="1" maximumSize="40" name="WMQCommonServices" description="WebSphere MQ common services thread pool">
      <customProperties xmi:id="Property_1268079912122" name="com.ibm.websphere.threadpool.disableHungThreadDetection" value="true" required="false"/>
    </threadPools>
    <threadPools xmi:id="ThreadPool_1268079912124" minimumSize="5" maximumSize="25" name="WMQJCAResourceAdapter" description="wmqJcaRaThreadPoolDescription"/>
  </services>
  <services xmi:type="loggingservice.http:HTTPAccessLoggingService" xmi:id="HTTPAccessLoggingService_1183122130078" enable="false" enableErrorLogging="true" enableAccessLogging="true">
    <errorLog xmi:id="LogFile_1183122130078" filePath="${SERVER_LOG_ROOT}/http_error.log" maximumSize="500"/>
    <accessLog xmi:id="LogFile_1183122130079" filePath="${SERVER_LOG_ROOT}/http_access.log" maximumSize="500"/>
  </services>
  <errorStreamRedirect xmi:id="StreamRedirect_1183122130078" fileName="${SERVER_LOG_ROOT}/SystemErr.log" rolloverType="SIZE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <outputStreamRedirect xmi:id="StreamRedirect_1183122130079" fileName="${SERVER_LOG_ROOT}/SystemOut.log" rolloverType="SIZE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <components xmi:type="namingserver:NameServer" xmi:id="NameServer_1183122130078">
    <stateManagement xmi:id="StateManageable_1183122130079" initialState="START"/>
  </components>
  <components xmi:type="applicationserver:ApplicationServer" xmi:id="ApplicationServer_1183122130078" applicationClassLoaderPolicy="MULTIPLE">
    <stateManagement xmi:id="StateManageable_1183122130080" initialState="START"/>
    <services xmi:type="applicationserver:TransactionService" xmi:id="TransactionService_1183122130078" enable="true" totalTranLifetimeTimeout="120" clientInactivityTimeout="60" propogatedOrBMTTranLifetimeTimeout="300" httpProxyPrefix="" httpsProxyPrefix=""/>
    <services xmi:type="applicationserver:DynamicCache" xmi:id="DynamicCache_1183122130078" enable="true">
      <cacheGroups xmi:id="ExternalCacheGroup_1183122130078" name="EsiInvalidator">
        <members xmi:id="ExternalCacheGroupMember_1183122130078" address="localhost" adapterBeanName="com.ibm.websphere.servlet.cache.ESIInvalidatorServlet"/>
      </cacheGroups>
    </services>
    <components xmi:type="applicationserver.webcontainer:WebContainer" xmi:id="WebContainer_1183122130078" enableServletCaching="false" disablePooling="false">
      <stateManagement xmi:id="StateManageable_1183122130081" initialState="START"/>
      <services xmi:type="applicationserver.webcontainer:SessionManager" xmi:id="SessionManager_1183122130078" enable="true" enableUrlRewriting="false" enableCookies="true" enableSSLTracking="false" enableProtocolSwitchRewriting="false" sessionPersistenceMode="NONE" enableSecurityIntegration="false" allowSerializedSessionAccess="false" maxWaitTime="5" accessSessionOnTimeout="true">
        <defaultCookieSettings xmi:id="Cookie_1183122130078" domain="" maximumAge="-1" secure="false"/>
        <sessionDatabasePersistence xmi:id="SessionDatabasePersistence_1183122130078" datasourceJNDIName="jdbc/Sessions" userId="db2admin" password="{xor}Oz1tPjsyNjE=" db2RowSize="ROW_SIZE_4KB" tableSpaceName=""/>
        <tuningParams xmi:id="TuningParams_1183122130078" usingMultiRowSchema="false" maxInMemorySessionCount="1000" allowOverflow="true" scheduleInvalidation="false" writeFrequency="TIME_BASED_WRITE" writeInterval="10" writeContents="ONLY_UPDATED_ATTRIBUTES" invalidationTimeout="30">
          <invalidationSchedule xmi:id="InvalidationSchedule_1183122130078" firstHour="14" secondHour="2"/>
        </tuningParams>
      </services>
    </components>
    <components xmi:type="applicationserver.ejbcontainer:EJBContainer" xmi:id="EJBContainer_1183122130078" passivationDirectory="${USER_INSTALL_ROOT}/temp" inactivePoolCleanupInterval="30000">
      <stateManagement xmi:id="StateManageable_1183122130082" initialState="START"/>
      <services xmi:type="applicationserver.ejbcontainer.messagelistener:MessageListenerService" xmi:id="MessageListenerService_1183122130078">
        <threadPool xmi:id="ThreadPool_1183122130086" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="Message.Listener.Pool"/>
      </services>
      <cacheSettings xmi:id="EJBCache_1183122130078" cleanupInterval="3000" cacheSize="2053"/>
      <timerSettings xmi:id="EJBTimer_1183122130078" datasourceJNDIName="jdbc/DefaultEJBTimerDataSource" tablePrefix="EJBTIMER_" pollInterval="300" numAlarmThreads="1"/>
    </components>
    <components xmi:type="portletcontainer:PortletContainer" xmi:id="PortletContainer_1183122130078"/>
    <components xmi:type="applicationserver.sipcontainer:SIPContainer" xmi:id="SIPContainer_1183122130078" name="" maxAppSessions="120000" maxMessageRate="5000" maxDispatchQueueSize="3200" maxResponseTime="0" statAveragePeriod="1000" statUpdateRange="10000">
      <stack xmi:id="Stack_1183122130078">
        <timers xmi:id="Timers_1183122130078"/>
      </stack>
    </components>
    <webserverPluginSettings xmi:id="WebserverPluginSettings_1183122130078" WaitForContinue="false" ConnectTimeout="0" MaxConnections="-1" ExtendedHandshake="false" ServerIOTimeout="0"/>
  </components>
  <processDefinitions xmi:type="processexec:JavaProcessDef" xmi:id="JavaProcessDef_1183122130078" workingDirectory="${USER_INSTALL_ROOT}" executableTargetKind="JAVA_CLASS" executableTarget="com.ibm.ws.runtime.WsServer">
    <execution xmi:id="ProcessExecution_1183122130078" processPriority="20" runAsUser="" runAsGroup=""/>
    <ioRedirect xmi:id="OutputRedirect_1183122130078" stdoutFilename="${SERVER_LOG_ROOT}/native_stdout.log" stderrFilename="${SERVER_LOG_ROOT}/native_stderr.log"/>
    <monitoringPolicy xmi:id="MonitoringPolicy_1183122130078" maximumStartupAttempts="3" pingInterval="60" pingTimeout="300" autoRestart="true" nodeRestartState="STOPPED"/>
    <jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7778" genericJvmArguments="">
      <systemProperties xmi:id="Property_1" name="com.ibm.security.jgss.debug" value="off" required="false"/>
      <systemProperties xmi:id="Property_2" name="com.ibm.security.krb5.Krb5Debug" value="off" required="false"/>
    </jvmEntries>
  </processDefinitions>
</process:Server>
                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/dbserver/                                                              0000777 0000000 0000000 00000000000 11524351156 017015  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/                                             0000777 0000000 0000000 00000000000 11524351175 022267  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/proc/                                        0000777 0000000 0000000 00000000000 11524351174 023231  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/proc/cpuinfo                                 0000644 0000000 0000000 00000001017 11524351174 024612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/dbserver/VM_configuration/proc/mounts                                  0000644 0000000 0000000 00000001357 11524351174 024503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1020708k,nr_inodes=255177,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1317,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1317,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/dbserver/VM_configuration/proc/swaps                                   0000644 0000000 0000000 00000000150 11524351174 024301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	23840	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/dbserver/VM_configuration/proc/devices                                 0000644 0000000 0000000 00000000567 11524351174 024602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile13/dbserver/VM_configuration/proc/modules                                 0000644 0000000 0000000 00000002621 11524351174 024621  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 39 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile13/dbserver/VM_configuration/proc/partitions                              0000644 0000000 0000000 00000000260 11524351174 025342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile13/dbserver/VM_configuration/proc/meminfo                                 0000644 0000000 0000000 00000002222 11524351174 024600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2055756 kB
MemFree:           60056 kB
Buffers:           20260 kB
Cached:           143164 kB
SwapCached:         2272 kB
Active:           752332 kB
Inactive:         290280 kB
Active(anon):     700412 kB
Inactive(anon):   236684 kB
Active(file):      51920 kB
Inactive(file):    53596 kB
Unevictable:        3228 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2024312 kB
Dirty:               224 kB
Writeback:             0 kB
AnonPages:        881596 kB
Mapped:           108624 kB
Shmem:             53292 kB
Slab:              70652 kB
SReclaimable:      15680 kB
SUnreclaim:        54972 kB
KernelStack:        2136 kB
PageTables:         8960 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2649884 kB
Committed_AS:    3482900 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       11532 kB
VmallocChunk:   34359719476 kB
HardwareCorrupted:     0 kB
AnonHugePages:    587776 kB
HugePages_Total:     416
HugePages_Free:       74
HugePages_Rsvd:       49
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2088960 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/dbserver/VM_configuration/root/                                        0000777 0000000 0000000 00000000000 11524351174 023251  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/root/convert_to_vf.sh                        0000755 0000000 0000000 00000001135 11524351174 026461  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/lspci.txt                                    0000644 0000000 0000000 00000001211 11524351173 024127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/dbserver/VM_configuration/df.txt                                       0000644 0000000 0000000 00000000401 11524351157 023410  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916  10362120   2418816  82% /
tmpfs                  1027876         0   1027876   0% /dev/shm
/dev/vdb1             20642412  11291948   8301892  58% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/dbserver/VM_configuration/mount.txt                                    0000644 0000000 0000000 00000000612 11524351173 024163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile13/dbserver/VM_configuration/etc/                                         0000777 0000000 0000000 00000000000 11524351173 023040  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/                                    0000777 0000000 0000000 00000000000 11524351166 023670  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/                              0000777 0000000 0000000 00000000000 11524351173 024577  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests             0000755 0000000 0000000 00000017172 11524351166 027773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                    0000755 0000000 0000000 00000004325 11524351166 026411  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524351167 027200  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                   0000755 0000000 0000000 00000012327 11524351170 026573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                  0000755 0000000 0000000 00000005222 11524351171 026757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S99firstboot                  0000755 0000000 0000000 00000005341 11524351173 027044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                       0000755 0000000 0000000 00000010671 11524351172 025763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                      0000755 0000000 0000000 00000006364 11524351167 026141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                  0000755 0000000 0000000 00000020716 11524351170 026703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                       0000755 0000000 0000000 00000004731 11524351170 025762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon               0000755 0000000 0000000 00000004754 11524351166 027343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                  0000755 0000000 0000000 00000001364 11524351172 027002  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                      0000755 0000000 0000000 00000003027 11524351170 026120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                     0000755 0000000 0000000 00000006743 11524351173 026324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                      0000755 0000000 0000000 00000010777 11524351167 026133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                 0000755 0000000 0000000 00000004230 11524351172 027144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                      0000755 0000000 0000000 00000006302 11524351170 026074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                        0000755 0000000 0000000 00000004236 11524351173 025617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                    0000755 0000000 0000000 00000004031 11524351171 026425  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                 0000755 0000000 0000000 00000003521 11524351171 027110  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                    0000755 0000000 0000000 00000006050 11524351171 026462  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                    0000755 0000000 0000000 00000002363 11524351170 026531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                 0000755 0000000 0000000 00000004054 11524351166 027147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                  0000755 0000000 0000000 00000005013 11524351171 027017  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                      0000755 0000000 0000000 00000003213 11524351170 026113  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                    0000755 0000000 0000000 00000003512 11524351167 026453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                       0000755 0000000 0000000 00000003603 11524351167 025761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                     0000755 0000000 0000000 00000011277 11524351167 026306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S10network                    0000755 0000000 0000000 00000014466 11524351171 026507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                    0000755 0000000 0000000 00000004326 11524351171 026514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                     0000755 0000000 0000000 00000006462 11524351171 026266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                      0000755 0000000 0000000 00000027662 11524351171 026141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                       0000755 0000000 0000000 00000006445 11524351167 025664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                  0000755 0000000 0000000 00000003245 11524351172 026747  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K60crond                      0000755 0000000 0000000 00000005445 11524351167 026122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                      0000755 0000000 0000000 00000005522 11524351166 026123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl              0000755 0000000 0000000 00000002221 11524351170 027604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                  0000755 0000000 0000000 00000004010 11524351166 026762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                        0000755 0000000 0000000 00000013536 11524351167 025603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                       0000755 0000000 0000000 00000004723 11524351172 025743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                     0000755 0000000 0000000 00000003024 11524351166 026253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                      0000755 0000000 0000000 00000003275 11524351172 026102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                   0000755 0000000 0000000 00000025442 11524351171 026625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                  0000755 0000000 0000000 00000004370 11524351172 026745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S99local                      0000755 0000000 0000000 00000000334 11524351173 026120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                    0000755 0000000 0000000 00000006675 11524351171 026464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                 0000755 0000000 0000000 00000005650 11524351167 027163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor               0000555 0000000 0000000 00000004612 11524351171 027352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                     0000755 0000000 0000000 00000007234 11524351172 026324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                   0000755 0000000 0000000 00000003433 11524351173 026656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                     0000755 0000000 0000000 00000005672 11524351166 026303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                      0000755 0000000 0000000 00000003254 11524351173 026116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                  0000755 0000000 0000000 00000005063 11524351172 026771  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                      0000755 0000000 0000000 00000012432 11524351172 026133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                    0000755 0000000 0000000 00000007414 11524351167 026504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                   0000755 0000000 0000000 00000020557 11524351170 026620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond                0000755 0000000 0000000 00000003427 11524351170 027345  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/rc3.d/K05atd                        0000755 0000000 0000000 00000004112 11524351166 025551  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/                             0000777 0000000 0000000 00000000000 11524351166 025055  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/network                      0000755 0000000 0000000 00000014466 11524351163 026500  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/gfs2                         0000755 0000000 0000000 00000006445 11524351161 025644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/sysstat                      0000755 0000000 0000000 00000002363 11524351165 026514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/saslauthd                    0000755 0000000 0000000 00000004010 11524351165 026761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/messagebus                   0000755 0000000 0000000 00000004230 11524351163 027131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/autobench                    0000755 0000000 0000000 00000005063 11524351160 026745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/atd                          0000755 0000000 0000000 00000004112 11524351160 025537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/mcelogd                      0000755 0000000 0000000 00000003535 11524351163 026414  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/auditd                       0000755 0000000 0000000 00000006462 11524351160 026253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/certmonger                   0000755 0000000 0000000 00000004054 11524351161 027142  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/irqbalance                   0000755 0000000 0000000 00000003521 11524351162 027075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/acpid                        0000755 0000000 0000000 00000003275 11524351160 026060  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/nscd                         0000755 0000000 0000000 00000004723 11524351163 025731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                    0000755 0000000 0000000 00000005222 11524351164 026741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/nfs                          0000755 0000000 0000000 00000013536 11524351163 025572  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/sssd                         0000755 0000000 0000000 00000004731 11524351165 025757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/crond                        0000755 0000000 0000000 00000005445 11524351161 026107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/ip6tables                    0000755 0000000 0000000 00000020716 11524351162 026672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/firstboot                    0000755 0000000 0000000 00000005341 11524351161 027010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/autofs                       0000755 0000000 0000000 00000007234 11524351160 026300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/sshd                         0000755 0000000 0000000 00000010671 11524351165 025744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/ksm                          0000755 0000000 0000000 00000004236 11524351162 025572  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/libvirt-guests               0000755 0000000 0000000 00000017172 11524351162 027766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                 0000755 0000000 0000000 00000004754 11524351160 027334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/ypbind                       0000755 0000000 0000000 00000011277 11524351166 026274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/psacct                       0000755 0000000 0000000 00000003024 11524351164 026251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/xinetd                       0000755 0000000 0000000 00000006743 11524351166 026304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/nfslock                      0000755 0000000 0000000 00000006675 11524351163 026451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/cgred                        0000755 0000000 0000000 00000006302 11524351161 026057  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/migrateip                    0000755 0000000 0000000 00000001364 11524351163 026761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/udev-post                    0000755 0000000 0000000 00000004370 11524351165 026730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/haldaemon                    0000755 0000000 0000000 00000003245 11524351161 026726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/ipsec                        0000755 0000000 0000000 00000010777 11524351162 026112  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/rpcbind                      0000755 0000000 0000000 00000004031 11524351164 026414  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/rhnsd                        0000755 0000000 0000000 00000005522 11524351164 026117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/functions                    0000644 0000000 0000000 00000042767 11524351161 027017  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/kdump                        0000755 0000000 0000000 00000027662 11524351162 026130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/postfix                      0000755 0000000 0000000 00000007414 11524351164 026477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/iptables                     0000755 0000000 0000000 00000020557 11524351162 026607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/rsyslog                      0000755 0000000 0000000 00000004326 11524351165 026505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/netconsole                   0000755 0000000 0000000 00000005650 11524351163 027153  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/rpcgssd                      0000755 0000000 0000000 00000006050 11524351164 026443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/abrtd                        0000755 0000000 0000000 00000003254 11524351160 026071  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                 0000555 0000000 0000000 00000004612 11524351162 027341  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/halt                         0000755 0000000 0000000 00000012723 11524351161 025727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/cgconfig                     0000755 0000000 0000000 00000012327 11524351161 026556  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/single                       0000755 0000000 0000000 00000001207 11524351165 026257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/mdmonitor                    0000755 0000000 0000000 00000005013 11524351163 027003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/restorecond                  0000755 0000000 0000000 00000003427 11524351164 027332  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/cpuspeed                     0000755 0000000 0000000 00000025442 11524351161 026611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/netfs                        0000755 0000000 0000000 00000012432 11524351163 026115  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                   0000755 0000000 0000000 00000006014 11524351165 027160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/oddjobd                      0000755 0000000 0000000 00000004325 11524351164 026406  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/ksmtuned                     0000755 0000000 0000000 00000003433 11524351162 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/sandbox                      0000755 0000000 0000000 00000003242 11524351165 026435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/killall                      0000755 0000000 0000000 00000001214 11524351162 026415  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/rdisc                        0000755 0000000 0000000 00000003027 11524351164 026103  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/httpd                        0000755 0000000 0000000 00000006364 11524351162 026127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/ntpd                         0000755 0000000 0000000 00000003603 11524351164 025744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/smartd                       0000755 0000000 0000000 00000005672 11524351165 026302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/nslcd                        0000755 0000000 0000000 00000003213 11524351164 026077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/ntpdate                      0000755 0000000 0000000 00000003512 11524351164 026435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile13/dbserver/VM_configuration/etc/rc.d/init.d/microcode_ctl                0000755 0000000 0000000 00000002221 11524351163 027577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/dbserver/VM_configuration/etc/hosts                                    0000644 0000000 0000000 00000000267 11524351157 024126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/dbserver/VM_configuration/etc/iproute2/                                0000777 0000000 0000000 00000000000 11524351160 024605  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/etc/iproute2/rt_dsfield                      0000644 0000000 0000000 00000000672 11524351157 026656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile13/dbserver/VM_configuration/etc/iproute2/rt_realms                       0000644 0000000 0000000 00000000160 11524351157 026517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile13/dbserver/VM_configuration/etc/iproute2/rt_scopes                       0000644 0000000 0000000 00000000134 11524351160 026523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/dbserver/VM_configuration/etc/iproute2/ematch_map                      0000644 0000000 0000000 00000000073 11524351157 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/dbserver/VM_configuration/etc/iproute2/rt_tables                       0000644 0000000 0000000 00000000127 11524351160 026503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/dbserver/VM_configuration/etc/iproute2/rt_protos                       0000644 0000000 0000000 00000000475 11524351157 026573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/etc/nsswitch.conf                            0000644 0000000 0000000 00000003230 11524351160 025537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/dbserver/VM_configuration/etc/fstab                                    0000644 0000000 0000000 00000001603 11524351157 024060  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile13/dbserver/VM_configuration/etc/sysctl.conf                              0000644 0000000 0000000 00000001466 11524351173 025233  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile13/dbserver/VM_configuration/etc/inittab                                  0000644 0000000 0000000 00000001714 11524351157 024416  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
fmc:2345:respawn:/data-disk/opt/ibm/db2/V9.7/bin/db2fmcd #DB2 Fault Monitor Coordinator
                                                    Virtual_Configuration/tile13/dbserver/VM_configuration/var/                                         0000777 0000000 0000000 00000000000 11524351175 023057  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/var/log/                                     0000777 0000000 0000000 00000000000 11524351175 023640  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/var/log/dmesg                                0000644 0000000 0000000 00000043426 11524351175 024667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0 hugepages=416
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007fffd000 (usable)
 BIOS-e820: 000000007fffd000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x7fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007fffd000
 0000000000 - 007fe00000 page 2M
 007fe00000 - 007fffd000 page 4k
kernel direct mapping tables up to 7fffd000 @ 8000-c000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000007fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000007ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000007fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000007ffffe00 00040
ACPI: SSDT 000000007fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000007fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000007fffd000
Bootmem setup node 0 0000000000000000-000000007fffd000
  NODE_DATA [000000000000a000 - 000000000003dfff]
  bootmap [000000000003e000 -  000000000004dfff] pages 10
(7 early reservations) ==> bootmem [0000000000 - 007fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000a000]          PGTABLE ==> [0000008000 - 000000a000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0001bfffff] PMD -> [ffff880002200000-ffff880003dfffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0007fffd
On node 0 totalpages: 524182
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3831 pages, LIFO batch:0
  DMA32 zone: 7112 pages used for memmap
  DMA32 zone: 513077 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 80000000 (gap: 80000000:7ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 516908
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0 hugepages=416
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2041384k/2097140k available (4935k kernel code, 412k absent, 55344k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 20971520 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116117.292:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 416 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 4012
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:56 UTC (1297116116)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
b6:ac:04:cc:a4:cf
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                          Virtual_Configuration/tile13/dbserver/VM_configuration/boot/                                        0000777 0000000 0000000 00000000000 11524351156 023231  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/boot/grub/                                   0000777 0000000 0000000 00000000000 11524351156 024170  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/VM_configuration/boot/grub/grub.conf                          0000644 0000000 0000000 00000001457 11524351156 026001  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0 hugepages=416
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                 Virtual_Configuration/tile13/dbserver/VM_configuration/rpmpkgs.txt                                  0000644 0000000 0000000 00000076554 11524351174 024527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
scrub-2.2-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
xvattr-1.3-18.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
python-slip-0.2.11-1.el6.noarch
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
python-meh-0.9-1.el6.noarch
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
libstdc++-4.4.4-13.el6.i686
vte-0.25.1-5.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
glx-utils-7.7-2.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
yelp-2.28.1-8.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
gnome-terminal-2.31.3-4.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
cracklib-python-2.8.16-2.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
system-config-users-docs-1.0.8-1.el6.noarch
report-gtk-0.18-7.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
xorg-x11-xkb-utils-7.4-6.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
report-newt-0.18-7.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
zenity-2.28.0-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
fuse-2.8.3-1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
seabios-0.5.1-3.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                    Virtual_Configuration/tile13/dbserver/VM_configuration/ifconfig.txt                                 0000644 0000000 0000000 00000002326 11524351173 024611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:4B  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:264 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:24849 (24.2 KiB)  TX bytes:827 (827.0 b)

eth1      Link encap:Ethernet  HWaddr B6:AC:04:CC:A4:CF  
          inet addr:10.1.217.75  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::b4ac:4ff:fecc:a4cf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9460962 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9146272 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1947158972 (1.8 GiB)  TX bytes:3741466993 (3.4 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:761 errors:0 dropped:0 overruns:0 frame:0
          TX packets:761 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:74442 (72.6 KiB)  TX bytes:74442 (72.6 KiB)

                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile13/dbserver/VM_configuration/chkconfig.txt                                0000644 0000000 0000000 00000006625 11524351157 024770  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
firstboot      	0:off	1:off	2:off	3:on	4:off	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                           Virtual_Configuration/tile13/dbserver/Software_Configuration/                                       0000777 0000000 0000000 00000000000 11524351156 023476  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/dbserver/Software_Configuration/profile.env                            0000644 0000000 0000000 00000000116 11524351156 025642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   DB2_LARGE_PAGE_MEM='DB'
DB2_PINNED_BP='ON'
DB2COMM='TCPIP'
DB2AUTOSTART='YES'
                                                                                                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/dbserver/Software_Configuration/db2nodes.cfg                           0000444 0000000 0000000 00000000016 11524351156 025646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0 tb3-dbt13 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/webserver/                                                             0000777 0000000 0000000 00000000000 11524351256 017206  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/                                            0000777 0000000 0000000 00000000000 11524351274 022457  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/proc/                                       0000777 0000000 0000000 00000000000 11524351274 023422  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/proc/cpuinfo                                0000644 0000000 0000000 00000002030 11524351273 024776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/webserver/VM_configuration/proc/mounts                                 0000644 0000000 0000000 00000001754 11524351274 024675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=5574592k,nr_inodes=1393648,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1384,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1384,timeout=300,minproto=5,maxproto=5,indirect 0 0
tb3-infrat13:/support-download /var/www/html/support/downloads nfs rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.1.217.77,mountvers=3,mountport=58175,mountproto=udp,addr=10.1.217.77 0 0
                    Virtual_Configuration/tile13/webserver/VM_configuration/proc/swaps                                  0000644 0000000 0000000 00000000144 11524351274 024475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/webserver/VM_configuration/proc/devices                                0000644 0000000 0000000 00000000567 11524351273 024772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile13/webserver/VM_configuration/proc/modules                                0000644 0000000 0000000 00000003214 11524351274 025011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   nfs 348522 1 - Live 0xffffffffa026d000
lockd 73984 1 nfs, Live 0xffffffffa01a9000
fscache 46761 1 nfs, Live 0xffffffffa013f000
nfs_acl 2677 1 nfs, Live 0xffffffffa001b000
auth_rpcgss 44862 1 nfs, Live 0xffffffffa0132000
bridge 74113 0 - Live 0xffffffffa0258000
stp 2107 1 bridge, Live 0xffffffffa0252000
llc 5608 2 bridge,stp, Live 0xffffffffa024a000
autofs4 27683 3 - Live 0xffffffffa023d000
sunrpc 241630 16 nfs,lockd,nfs_acl,auth_rpcgss, Live 0xffffffffa01ea000
ipv6 321209 181 - Live 0xffffffffa0158000
dm_mirror 14003 0 - Live 0xffffffffa012c000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0127000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0122000
ppdev 8695 0 - Live 0xffffffffa011d000
parport_pc 22944 0 - Live 0xffffffffa00e9000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa0111000
sg 30186 0 - Live 0xffffffffa00df000
virtio_net 15665 0 - Live 0xffffffffa0015000
ixgbevf 47200 0 - Live 0xffffffffa0103000
i2c_piix4 12574 0 - Live 0xffffffffa00fd000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00f3000
ext4 353979 2 - Live 0xffffffffa0086000
mbcache 7918 1 ext4, Live 0xffffffffa0026000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/webserver/VM_configuration/proc/partitions                             0000644 0000000 0000000 00000000260 11524351274 025533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20970496 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile13/webserver/VM_configuration/proc/meminfo                                0000644 0000000 0000000 00000002222 11524351273 024770  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:       11163520 kB
MemFree:         1333656 kB
Buffers:            6656 kB
Cached:          9073908 kB
SwapCached:            0 kB
Active:          1597508 kB
Inactive:        7794156 kB
Active(anon):     228616 kB
Inactive(anon):    85380 kB
Active(file):    1368892 kB
Inactive(file):  7708776 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               192 kB
Writeback:             0 kB
AnonPages:        310888 kB
Mapped:            22124 kB
Shmem:              2984 kB
Slab:             319788 kB
SReclaimable:      87008 kB
SUnreclaim:       232780 kB
KernelStack:        2184 kB
PageTables:        65676 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     7629752 kB
Committed_AS:    1071216 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       40792 kB
VmallocChunk:   34359693584 kB
HardwareCorrupted:     0 kB
AnonHugePages:     22528 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:    11526144 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/webserver/VM_configuration/root/                                       0000777 0000000 0000000 00000000000 11524351274 023442  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/root/convert_to_vf.sh                       0000755 0000000 0000000 00000001135 11524351274 026652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/lspci.txt                                   0000644 0000000 0000000 00000001211 11524351273 024320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/webserver/VM_configuration/df.txt                                      0000644 0000000 0000000 00000000570 11524351256 023607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3890620   8890316  31% /
tmpfs                  5581760         0   5581760   0% /dev/shm
/dev/vdb1             20641404    969836  18623044   5% /data-disk
tb3-infrat13:/support-download
                      61923456  33417216  25360768  57% /var/www/html/support/downloads
                                                                                                                                        Virtual_Configuration/tile13/webserver/VM_configuration/mount.txt                                   0000644 0000000 0000000 00000000753 11524351273 024362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
tb3-infrat13:/support-download on /var/www/html/support/downloads type nfs (rw,addr=10.1.217.77)
                     Virtual_Configuration/tile13/webserver/VM_configuration/etc/                                        0000777 0000000 0000000 00000000000 11524351273 023231  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/                                   0000777 0000000 0000000 00000000000 11524351266 024061  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/                             0000777 0000000 0000000 00000000000 11524351273 024770  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests            0000755 0000000 0000000 00000017172 11524351266 030164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                   0000755 0000000 0000000 00000004325 11524351266 026602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                0000755 0000000 0000000 00000006014 11524351267 027371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                  0000755 0000000 0000000 00000012327 11524351270 026764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                 0000755 0000000 0000000 00000005222 11524351271 027150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                      0000755 0000000 0000000 00000010671 11524351272 026154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                     0000755 0000000 0000000 00000006364 11524351266 026331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                 0000755 0000000 0000000 00000020716 11524351270 027074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                      0000755 0000000 0000000 00000004731 11524351267 026161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon              0000755 0000000 0000000 00000004754 11524351266 027534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                 0000755 0000000 0000000 00000001364 11524351272 027173  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                     0000755 0000000 0000000 00000003027 11524351270 026311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                    0000755 0000000 0000000 00000006743 11524351272 026514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                     0000755 0000000 0000000 00000010777 11524351267 026324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                0000755 0000000 0000000 00000004230 11524351271 027334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                     0000755 0000000 0000000 00000006302 11524351267 026273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                       0000755 0000000 0000000 00000004236 11524351272 026007  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                   0000755 0000000 0000000 00000004031 11524351271 026616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                0000755 0000000 0000000 00000003521 11524351271 027301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                   0000755 0000000 0000000 00000006050 11524351271 026653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                   0000755 0000000 0000000 00000002363 11524351270 026722  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                0000755 0000000 0000000 00000004054 11524351266 027340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                 0000755 0000000 0000000 00000005013 11524351271 027210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                     0000755 0000000 0000000 00000003213 11524351270 026304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                   0000755 0000000 0000000 00000003512 11524351267 026644  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                      0000755 0000000 0000000 00000003603 11524351267 026152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                    0000755 0000000 0000000 00000011277 11524351267 026477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S10network                   0000755 0000000 0000000 00000014466 11524351270 026677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                   0000755 0000000 0000000 00000004326 11524351271 026705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                    0000755 0000000 0000000 00000006462 11524351270 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                     0000755 0000000 0000000 00000027662 11524351271 026332  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                      0000755 0000000 0000000 00000006445 11524351267 026055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                 0000755 0000000 0000000 00000003245 11524351272 027140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K60crond                     0000755 0000000 0000000 00000005445 11524351267 026313  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                     0000755 0000000 0000000 00000005522 11524351266 026314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl             0000755 0000000 0000000 00000002221 11524351270 027775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                 0000755 0000000 0000000 00000004010 11524351266 027153  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                       0000755 0000000 0000000 00000013536 11524351267 025774  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                      0000755 0000000 0000000 00000004723 11524351272 026134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                    0000755 0000000 0000000 00000003024 11524351266 026444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                     0000755 0000000 0000000 00000003275 11524351272 026273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                  0000755 0000000 0000000 00000025442 11524351271 027016  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                 0000755 0000000 0000000 00000004370 11524351272 027136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S99local                     0000755 0000000 0000000 00000000334 11524351273 026311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                   0000755 0000000 0000000 00000006675 11524351271 026655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                0000755 0000000 0000000 00000005650 11524351267 027354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor              0000555 0000000 0000000 00000004612 11524351270 027542  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                    0000755 0000000 0000000 00000007234 11524351272 026515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                  0000755 0000000 0000000 00000003433 11524351272 027046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                    0000755 0000000 0000000 00000005672 11524351266 026474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                     0000755 0000000 0000000 00000003254 11524351272 026306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                 0000755 0000000 0000000 00000005063 11524351272 027162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                     0000755 0000000 0000000 00000012432 11524351271 026323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                   0000755 0000000 0000000 00000007414 11524351266 026674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                  0000755 0000000 0000000 00000020557 11524351270 027011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond               0000755 0000000 0000000 00000003427 11524351270 027536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/rc3.d/K05atd                       0000755 0000000 0000000 00000004112 11524351266 025742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/                            0000777 0000000 0000000 00000000000 11524351265 025245  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/network                     0000755 0000000 0000000 00000014466 11524351263 026671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/gfs2                        0000755 0000000 0000000 00000006445 11524351261 026035  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/sysstat                     0000755 0000000 0000000 00000002363 11524351265 026705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/saslauthd                   0000755 0000000 0000000 00000004010 11524351265 027152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/messagebus                  0000755 0000000 0000000 00000004230 11524351262 027321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/autobench                   0000755 0000000 0000000 00000005063 11524351260 027136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/atd                         0000755 0000000 0000000 00000004112 11524351260 025730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/mcelogd                     0000755 0000000 0000000 00000003535 11524351262 026604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/auditd                      0000755 0000000 0000000 00000006462 11524351260 026444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/certmonger                  0000755 0000000 0000000 00000004054 11524351260 027332  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/irqbalance                  0000755 0000000 0000000 00000003521 11524351261 027265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/acpid                       0000755 0000000 0000000 00000003275 11524351260 026251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/nscd                        0000755 0000000 0000000 00000004723 11524351263 026122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                   0000755 0000000 0000000 00000005222 11524351264 027132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/nfs                         0000755 0000000 0000000 00000013536 11524351263 025763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/sssd                        0000755 0000000 0000000 00000004731 11524351265 026150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/crond                       0000755 0000000 0000000 00000005445 11524351261 026300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/ip6tables                   0000755 0000000 0000000 00000020716 11524351261 027062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/autofs                      0000755 0000000 0000000 00000007234 11524351260 026471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/sshd                        0000755 0000000 0000000 00000010671 11524351265 026135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/ksm                         0000755 0000000 0000000 00000004236 11524351262 025763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/libvirt-guests              0000755 0000000 0000000 00000017172 11524351262 030157  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                0000755 0000000 0000000 00000004754 11524351260 027525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/ypbind                      0000755 0000000 0000000 00000011277 11524351265 026464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/psacct                      0000755 0000000 0000000 00000003024 11524351264 026442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/xinetd                      0000755 0000000 0000000 00000006743 11524351265 026474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/nfslock                     0000755 0000000 0000000 00000006675 11524351263 026642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/cgred                       0000755 0000000 0000000 00000006302 11524351260 026247  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/migrateip                   0000755 0000000 0000000 00000001364 11524351263 027152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/udev-post                   0000755 0000000 0000000 00000004370 11524351265 027121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/haldaemon                   0000755 0000000 0000000 00000003245 11524351261 027117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/ipsec                       0000755 0000000 0000000 00000010777 11524351261 026302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/rpcbind                     0000755 0000000 0000000 00000004031 11524351264 026605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/rhnsd                       0000755 0000000 0000000 00000005522 11524351264 026310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/functions                   0000644 0000000 0000000 00000042767 11524351261 027210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/kdump                       0000755 0000000 0000000 00000027662 11524351262 026321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/postfix                     0000755 0000000 0000000 00000007414 11524351264 026670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/iptables                    0000755 0000000 0000000 00000020557 11524351261 026777  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/rsyslog                     0000755 0000000 0000000 00000004326 11524351264 026675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/netconsole                  0000755 0000000 0000000 00000005650 11524351263 027344  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/rpcgssd                     0000755 0000000 0000000 00000006050 11524351264 026634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/abrtd                       0000755 0000000 0000000 00000003254 11524351260 026262  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                0000555 0000000 0000000 00000004612 11524351262 027532  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/halt                        0000755 0000000 0000000 00000012723 11524351261 026120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/cgconfig                    0000755 0000000 0000000 00000012327 11524351260 026746  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/single                      0000755 0000000 0000000 00000001207 11524351265 026450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/mdmonitor                   0000755 0000000 0000000 00000005013 11524351262 027173  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/restorecond                 0000755 0000000 0000000 00000003427 11524351264 027523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/cpuspeed                    0000755 0000000 0000000 00000025442 11524351261 027002  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/netfs                       0000755 0000000 0000000 00000012432 11524351263 026306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                  0000755 0000000 0000000 00000006014 11524351264 027350  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/oddjobd                     0000755 0000000 0000000 00000004325 11524351264 026577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/ksmtuned                    0000755 0000000 0000000 00000003433 11524351262 027021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/sandbox                     0000755 0000000 0000000 00000003242 11524351265 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/killall                     0000755 0000000 0000000 00000001214 11524351262 026606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/rdisc                       0000755 0000000 0000000 00000003027 11524351264 026274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/httpd                       0000755 0000000 0000000 00000006364 11524351261 026317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/ntpd                        0000755 0000000 0000000 00000003603 11524351263 026134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/smartd                      0000755 0000000 0000000 00000005672 11524351265 026473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/nslcd                       0000755 0000000 0000000 00000003213 11524351263 026267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/ntpdate                     0000755 0000000 0000000 00000003512 11524351264 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile13/webserver/VM_configuration/etc/rc.d/init.d/microcode_ctl               0000755 0000000 0000000 00000002221 11524351262 027767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/webserver/VM_configuration/etc/hosts                                   0000644 0000000 0000000 00000000236 11524351257 024313  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/webserver/VM_configuration/etc/iproute2/                               0000777 0000000 0000000 00000000000 11524351257 025004  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/etc/iproute2/rt_dsfield                     0000644 0000000 0000000 00000000672 11524351257 027047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile13/webserver/VM_configuration/etc/iproute2/rt_realms                      0000644 0000000 0000000 00000000160 11524351257 026710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile13/webserver/VM_configuration/etc/iproute2/rt_scopes                      0000644 0000000 0000000 00000000134 11524351257 026722  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/webserver/VM_configuration/etc/iproute2/ematch_map                     0000644 0000000 0000000 00000000073 11524351257 027021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/webserver/VM_configuration/etc/iproute2/rt_tables                      0000644 0000000 0000000 00000000127 11524351257 026702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/webserver/VM_configuration/etc/iproute2/rt_protos                      0000644 0000000 0000000 00000000475 11524351257 026764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/etc/nsswitch.conf                           0000644 0000000 0000000 00000003230 11524351257 025736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/webserver/VM_configuration/etc/fstab                                   0000644 0000000 0000000 00000001603 11524351256 024250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile13/webserver/VM_configuration/etc/sysctl.conf                             0000644 0000000 0000000 00000001466 11524351273 025424  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile13/webserver/VM_configuration/etc/inittab                                 0000644 0000000 0000000 00000001564 11524351257 024612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile13/webserver/VM_configuration/var/                                        0000777 0000000 0000000 00000000000 11524351274 023247  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/var/log/                                    0000777 0000000 0000000 00000000000 11524351274 024030  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/var/log/dmesg                               0000644 0000000 0000000 00000046142 11524351274 025055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
 BIOS-e820: 0000000100000000 - 00000002e0000000 (usable)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x2e0000 max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
init_memory_mapping: 0000000100000000-00000002e0000000
 0100000000 - 02e0000000 page 2M
kernel direct mapping tables up to 2e0000000 @ c000-19000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffddc0 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffdf0 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf30 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffd80 00040
ACPI: SSDT 00000000dfffdee0 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffddf0 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000002e0000000
Bootmem setup node 0 0000000000000000-00000002e0000000
  NODE_DATA [0000000000014000 - 0000000000047fff]
  bootmap [0000000000100000 -  000000000015bfff] pages 5c
(8 early reservations) ==> bootmem [0000000000 - 02e0000000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
  #7 [000000c000 - 0000014000]          PGTABLE ==> [000000c000 - 0000014000]
found SMP MP-table at [ffff8800000f8120] f8120
Reserving 129MB of memory at 32MB for crashkernel (System RAM: 11776MB)
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea000a1fffff] PMD -> [ffff880028600000-ffff8800321fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x002e0000
Movable zone start PFN for each node
early_node_map[3] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x000dfffd
    0: 0x00100000 -> 0x002e0000
On node 0 totalpages: 2883478
  DMA zone: 56 pages used for memmap
  DMA zone: 116 pages reserved
  DMA zone: 3821 pages, LIFO batch:0
  DMA32 zone: 14280 pages used for memmap
  DMA32 zone: 899125 pages, LIFO batch:31
  Normal zone: 26880 pages used for memmap
  Normal zone: 1939200 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
PM: Registered nosave memory: 00000000dfffd000 - 00000000e0000000
PM: Registered nosave memory: 00000000e0000000 - 00000000fffbc000
PM: Registered nosave memory: 00000000fffbc000 - 0000000100000000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880028200000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:28216901, primary cpu clock
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 2842146
Policy zone: Normal
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=129M@0M elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing 64MB software IO TLB between ffff880020000000 - ffff880024000000
software IO TLB at phys 0x20000000 - 0x24000000
Memory: 11149184k/12058624k available (4935k kernel code, 524712k absent, 384728k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 115343360 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes)
Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:28316901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (13867.27 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 524288 (order: 10, 4194304 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116145.301:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 21801
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:02:24 UTC (1297116144)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
ca:af:f0:3b:b7:87
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/webserver/VM_configuration/boot/                                       0000777 0000000 0000000 00000000000 11524351256 023422  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/boot/grub/                                  0000777 0000000 0000000 00000000000 11524351256 024361  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/boot/grub/grub.conf                         0000644 0000000 0000000 00000002217 11524351256 026165  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/webserver/VM_configuration/rpmpkgs.txt                                 0000644 0000000 0000000 00000067255 11524351274 024716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
php-pecl-apc-3.1.3p1-1.2.el6.1.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
php-pear-1.9.0-2.el6.noarch
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/VM_configuration/ifconfig.txt                                0000644 0000000 0000000 00000002351 11524351273 025000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:49  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:290 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:27038 (26.4 KiB)  TX bytes:846 (846.0 b)

eth1      Link encap:Ethernet  HWaddr CA:AF:F0:3B:B7:87  
          inet addr:10.1.217.73  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::c8af:f0ff:fe3b:b787/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:191039001 errors:0 dropped:0 overruns:0 frame:0
          TX packets:286422861 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:175228633442 (163.1 GiB)  TX bytes:324658091330 (302.3 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:15616 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15616 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1620691 (1.5 MiB)  TX bytes:1620691 (1.5 MiB)

                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/webserver/VM_configuration/chkconfig.txt                               0000644 0000000 0000000 00000006535 11524351256 025160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile13/webserver/Software_Configuration/                                      0000777 0000000 0000000 00000000000 11524351255 023666  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/Software_Configuration/httpd/                                0000777 0000000 0000000 00000000000 11524351254 025010  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/Software_Configuration/httpd/conf.d/                         0000777 0000000 0000000 00000000000 11524351255 026160  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/Software_Configuration/httpd/conf.d/manual.conf              0000644 0000000 0000000 00000000447 11524351255 030305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This configuration file allows the manual to be accessed at 
# http://localhost/manual/
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"

<Directory "/var/www/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
                                                                                                                                                                                                                         Virtual_Configuration/tile13/webserver/Software_Configuration/httpd/conf.d/php.conf                 0000644 0000000 0000000 00000001242 11524351255 027611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/webserver/Software_Configuration/httpd/conf.d/welcome.conf             0000644 0000000 0000000 00000000453 11524351255 030460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # 
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

                                                                                                                                                                                                                     Virtual_Configuration/tile13/webserver/Software_Configuration/httpd/conf.d/README                   0000644 0000000 0000000 00000000610 11524351254 027030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
This directory holds Apache 2.0 module-specific configuration files;
any files in this directory which have the ".conf" extension will be
processed as Apache configuration files.

Files are processed in alphabetical order, so if using configuration
directives which depend on, say, mod_perl being loaded, ensure that
these are placed in a filename later in the sort order than "perl.conf".

                                                                                                                        Virtual_Configuration/tile13/webserver/Software_Configuration/httpd/conf/                           0000777 0000000 0000000 00000000000 11524351254 025735  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/Software_Configuration/httpd/conf/httpd.conf                 0000644 0000000 0000000 00000103142 11524351254 027724  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# Don't give away too much information about all the subcomponents
# we are running.  Comment out this line if you don't mind remote sites
# finding out what major optional modules you are running
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.  Note the PIDFILE variable in
# /etc/sysconfig/httpd must be set appropriately if this location is
# changed.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 60

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 0

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 60

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit 10240
MaxClients 10240
MaxRequestsPerChild  4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         4
MaxClients 10240
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

#
# The following modules are not loaded by default:
#
#LoadModule asis_module modules/mod_asis.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
#

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group #-1 on these systems!
#
User apache
Group apache

### Section 2: 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
#ServerName www.example.com:80

#
# UseCanonicalName: Determines how Apache constructs self-referencing 
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.  This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir disabled

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disabled" line above, and uncomment
    # the following line instead:
    # 
    #UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is 
# used to deliver files (assuming that the OS supports it). 
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
#
#EnableSendfile off

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
# requires the mod_logio module to be loaded.
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access_log common

#
# If you would like to have separate agent and referer logfiles, uncomment
# the following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# WebDAV module configuration section.
# 
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Directives controlling the display of server-generated directory listings.
#

#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes.  These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

#
# DefaultLanguage and AddLanguage allows you to specify the language of 
# a document. You can then use content negotiation to give a browser a 
# file in a language the user can understand.
#
# Specify a default language. This means that all data
# going out without a specific language tag (see below) will 
# be marked with this one. You probably do NOT want to set
# this unless you are sure it is correct for all cases.
#
# * It is generally better to not mark a page as 
# * being a certain language than marking it with the wrong
# * language!
#
# DefaultLanguage nl
#
# Note 1: The suffix does not have to be the same as the language
# keyword --- those with documents in Polish (whose net-standard
# language code is pl) may wish to use "AddLanguage pl .po" to
# avoid the ambiguity with the common suffix for perl scripts.
#
# Note 2: The example entries below illustrate that in some cases 
# the two character 'Language' abbreviation is not identical to 
# the two character 'Country' code for its country,
# E.g. 'Danmark/dk' versus 'Danish/da'.
#
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
# specifier. There is 'work in progress' to fix this and get
# the reference data for rfc1766 cleaned up.
#
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the 
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz

#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
#   MIME-types for downloading Certificates and CRLs
#
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
#  to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#    ErrorDocument 410 /error/HTTP_GONE.html.var
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Proxy>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
#   CacheEnable disk /
#   CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#

#</IfModule>
# End of proxy directives.

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
                                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/webserver/Software_Configuration/httpd/conf/magic                      0000644 0000000 0000000 00000031523 11524351254 026740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Magic data for mod_mime_magic Apache module (originally for file(1) command)
# The module is described in /manual/mod/mod_mime_magic.html
#
# The format is 4-5 columns:
#    Column #1: byte number to begin checking from, ">" indicates continuation
#    Column #2: type of data to match
#    Column #3: contents of data to match
#    Column #4: MIME type of result
#    Column #5: MIME encoding of result (optional)

#------------------------------------------------------------------------------
# Localstuff:  file(1) magic for locally observed files
# Add any locally observed files here.

#------------------------------------------------------------------------------
# end local stuff
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Java

0	short		0xcafe
>2	short		0xbabe		application/java

#------------------------------------------------------------------------------
# audio:  file(1) magic for sound formats
#
# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
#

# Sun/NeXT audio data
0	string		.snd
>12	belong		1		audio/basic
>12	belong		2		audio/basic
>12	belong		3		audio/basic
>12	belong		4		audio/basic
>12	belong		5		audio/basic
>12	belong		6		audio/basic
>12	belong		7		audio/basic

>12	belong		23		audio/x-adpcm

# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
# (0x0064732E in little-endian encoding).
0	lelong		0x0064732E	
>12	lelong		1		audio/x-dec-basic
>12	lelong		2		audio/x-dec-basic
>12	lelong		3		audio/x-dec-basic
>12	lelong		4		audio/x-dec-basic
>12	lelong		5		audio/x-dec-basic
>12	lelong		6		audio/x-dec-basic
>12	lelong		7		audio/x-dec-basic
#                                       compressed (G.721 ADPCM)
>12	lelong		23		audio/x-dec-adpcm

# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
#					AIFF audio data
8	string		AIFF		audio/x-aiff	
#					AIFF-C audio data
8	string		AIFC		audio/x-aiff	
#					IFF/8SVX audio data
8	string		8SVX		audio/x-aiff	

# Creative Labs AUDIO stuff
#					Standard MIDI data
0	string	MThd			audio/unknown	
#>9 	byte	>0			(format %d)
#>11	byte	>1			using %d channels
#					Creative Music (CMF) data
0	string	CTMF			audio/unknown	
#					SoundBlaster instrument data
0	string	SBI			audio/unknown	
#					Creative Labs voice data
0	string	Creative\ Voice\ File	audio/unknown	
## is this next line right?  it came this way...
#>19	byte	0x1A
#>23	byte	>0			- version %d
#>22	byte	>0			\b.%d

# [GRR 950115:  is this also Creative Labs?  Guessing that first line
#  should be string instead of unknown-endian long...]
#0	long		0x4e54524b	MultiTrack sound data
#0	string		NTRK		MultiTrack sound data
#>4	long		x		- version %ld

# Microsoft WAVE format (*.wav)
# [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
#					Microsoft RIFF
0	string		RIFF		audio/unknown
#					- WAVE format
>8	string		WAVE		audio/x-wav
# MPEG audio.
0   beshort&0xfff0  0xfff0  audio/mpeg
# C64 SID Music files, from Linus Walleij <triad@df.lth.se>
0   string      PSID        audio/prs.sid

#------------------------------------------------------------------------------
# c-lang:  file(1) magic for C programs or various scripts
#

# XPM icons (Greg Roelofs, newt@uchicago.edu)
# ideally should go into "images", but entries below would tag XPM as C source
0	string		/*\ XPM		image/x-xbm	7bit

# this first will upset you if you're a PL/1 shop... (are there any left?)
# in which case rm it; ascmagic will catch real C programs
#					C or REXX program text
0	string		/*		text/plain
#					C++ program text
0	string		//		text/plain

#------------------------------------------------------------------------------
# compress:  file(1) magic for pure-compression formats (no archives)
#
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
#
# Formats for various forms of compressed data
# Formats for "compress" proper have been moved into "compress.c",
# because it tries to uncompress it to figure out what's inside.

# standard unix compress
0	string		\037\235	application/octet-stream	x-compress

# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
0       string          \037\213        application/octet-stream	x-gzip

# According to gzip.h, this is the correct byte order for packed data.
0	string		\037\036	application/octet-stream
#
# This magic number is byte-order-independent.
#
0	short		017437		application/octet-stream

# XXX - why *two* entries for "compacted data", one of which is
# byte-order independent, and one of which is byte-order dependent?
#
# compacted data
0	short		0x1fff		application/octet-stream
0	string		\377\037	application/octet-stream
# huf output
0	short		0145405		application/octet-stream

# Squeeze and Crunch...
# These numbers were gleaned from the Unix versions of the programs to
# handle these formats.  Note that I can only uncrunch, not crunch, and
# I didn't have a crunched file handy, so the crunch number is untested.
#				Keith Waclena <keith@cerberus.uchicago.edu>
#0	leshort		0x76FF		squeezed data (CP/M, DOS)
#0	leshort		0x76FE		crunched data (CP/M, DOS)

# Freeze
#0	string		\037\237	Frozen file 2.1
#0	string		\037\236	Frozen file 1.0 (or gzip 0.5)

# lzh?
#0	string		\037\240	LZH compressed data

#------------------------------------------------------------------------------
# frame:  file(1) magic for FrameMaker files
#
# This stuff came on a FrameMaker demo tape, most of which is
# copyright, but this file is "published" as witness the following:
#
0	string		\<MakerFile	application/x-frame
0	string		\<MIFFile	application/x-frame
0	string		\<MakerDictionary	application/x-frame
0	string		\<MakerScreenFon	application/x-frame
0	string		\<MML		application/x-frame
0	string		\<Book		application/x-frame
0	string		\<Maker		application/x-frame

#------------------------------------------------------------------------------
# html:  file(1) magic for HTML (HyperText Markup Language) docs
#
# from Daniel Quinlan <quinlan@yggdrasil.com>
# and Anna Shergold <anna@inext.co.uk>
#
0   string      \<!DOCTYPE\ HTML    text/html
0   string      \<!doctype\ html    text/html
0   string      \<HEAD      text/html
0   string      \<head      text/html
0   string      \<TITLE     text/html
0   string      \<title     text/html
0   string      \<html      text/html
0   string      \<HTML      text/html
0   string      \<!--       text/html
0   string      \<h1        text/html
0   string      \<H1        text/html

# XML eXtensible Markup Language, from Linus Walleij <triad@df.lth.se>
0   string      \<?xml      text/xml

#------------------------------------------------------------------------------
# images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
#
# originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
# additions by janl@ifi.uio.no as well as others. Jan also suggested
# merging several one- and two-line files into here.
#
# XXX - byte order for GIF and TIFF fields?
# [GRR:  TIFF allows both byte orders; GIF is probably little-endian]
#

# [GRR:  what the hell is this doing in here?]
#0	string		xbtoa		btoa'd file

# PBMPLUS
#					PBM file
0	string		P1		image/x-portable-bitmap	7bit
#					PGM file
0	string		P2		image/x-portable-greymap	7bit
#					PPM file
0	string		P3		image/x-portable-pixmap	7bit
#					PBM "rawbits" file
0	string		P4		image/x-portable-bitmap
#					PGM "rawbits" file
0	string		P5		image/x-portable-greymap
#					PPM "rawbits" file
0	string		P6		image/x-portable-pixmap

# NIFF (Navy Interchange File Format, a modification of TIFF)
# [GRR:  this *must* go before TIFF]
0	string		IIN1		image/x-niff

# TIFF and friends
#					TIFF file, big-endian
0	string		MM		image/tiff
#					TIFF file, little-endian
0	string		II		image/tiff

# possible GIF replacements; none yet released!
# (Greg Roelofs, newt@uchicago.edu)
#
# GRR 950115:  this was mine ("Zip GIF"):
#					ZIF image (GIF+deflate alpha)
0	string		GIF94z		image/unknown
#
# GRR 950115:  this is Jeremy Wohl's Free Graphics Format (better):
#					FGF image (GIF+deflate beta)
0	string		FGF95a		image/unknown
#
# GRR 950115:  this is Thomas Boutell's Portable Bitmap Format proposal
# (best; not yet implemented):
#					PBF image (deflate compression)
0	string		PBF		image/unknown

# GIF
0	string		GIF		image/gif

# JPEG images
0	beshort		0xffd8		image/jpeg

# PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
0	string		BM		image/bmp
#>14	byte		12		(OS/2 1.x format)
#>14	byte		64		(OS/2 2.x format)
#>14	byte		40		(Windows 3.x format)
#0	string		IC		icon
#0	string		PI		pointer
#0	string		CI		color icon
#0	string		CP		color pointer
#0	string		BA		bitmap array


#------------------------------------------------------------------------------
# lisp:  file(1) magic for lisp programs
#
# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
0	string	;;			text/plain	8bit
# Emacs 18 - this is always correct, but not very magical.
0	string	\012(			application/x-elc
# Emacs 19
0	string	;ELC\023\000\000\000	application/x-elc

#------------------------------------------------------------------------------
# mail.news:  file(1) magic for mail and news
#
# There are tests to ascmagic.c to cope with mail and news.
0	string		Relay-Version: 	message/rfc822	7bit
0	string		#!\ rnews	message/rfc822	7bit
0	string		N#!\ rnews	message/rfc822	7bit
0	string		Forward\ to 	message/rfc822	7bit
0	string		Pipe\ to 	message/rfc822	7bit
0	string		Return-Path:	message/rfc822	7bit
0	string		Path:		message/news	8bit
0	string		Xref:		message/news	8bit
0	string		From:		message/rfc822	7bit
0	string		Article 	message/news	8bit
#------------------------------------------------------------------------------
# msword: file(1) magic for MS Word files
#
# Contributor claims:
# Reversed-engineered MS Word magic numbers
#

0	string		\376\067\0\043			application/msword
0	string		\333\245-\0\0\0			application/msword

# disable this one because it applies also to other
# Office/OLE documents for which msword is not correct. See PR#2608.
#0	string		\320\317\021\340\241\261	application/msword



#------------------------------------------------------------------------------
# printer:  file(1) magic for printer-formatted files
#

# PostScript
0	string		%!		application/postscript
0	string		\004%!		application/postscript

# Acrobat
# (due to clamen@cs.cmu.edu)
0	string		%PDF-		application/pdf

#------------------------------------------------------------------------------
# sc:  file(1) magic for "sc" spreadsheet
#
38	string		Spreadsheet	application/x-sc

#------------------------------------------------------------------------------
# tex:  file(1) magic for TeX files
#
# XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
#
# From <conklin@talisman.kaleida.com>

# Although we may know the offset of certain text fields in TeX DVI
# and font files, we can't use them reliably because they are not
# zero terminated. [but we do anyway, christos]
0	string		\367\002	application/x-dvi
#0	string		\367\203	TeX generic font data
#0	string		\367\131	TeX packed font data
#0	string		\367\312	TeX virtual font data
#0	string		This\ is\ TeX,	TeX transcript text	
#0	string		This\ is\ METAFONT,	METAFONT transcript text

# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data.  The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
#2	string		\000\021	TeX font metric data
#2	string		\000\022	TeX font metric data
#>34	string		>\0		(%s)

# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
#0	string		\\input\ texinfo	Texinfo source text
#0	string		This\ is\ Info\ file	GNU Info text

# correct TeX magic for Linux (and maybe more)
# from Peter Tobias (tobias@server.et-inf.fho-emden.de)
#
0	leshort		0x02f7		application/x-dvi

# RTF - Rich Text Format
0	string		{\\rtf		application/rtf

#------------------------------------------------------------------------------
# animation:  file(1) magic for animation/movie formats
#
# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
#						MPEG file
0	string		\000\000\001\263	video/mpeg
#
# The contributor claims:
#   I couldn't find a real magic number for these, however, this
#   -appears- to work.  Note that it might catch other files, too,
#   so BE CAREFUL!
#
# Note that title and author appear in the two 20-byte chunks
# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
# 255 (hex FF)! DL format SUCKS BIG ROCKS.
#
#						DL file version 1 , medium format (160x100, 4 images/screen)
0	byte		1			video/unknown
0	byte		2			video/unknown
# Quicktime video, from Linus Walleij <triad@df.lth.se>
# from Apple quicktime file format documentation.
4   string      moov        video/quicktime
4   string      mdat        video/quicktime

# PNG [Portable Network Graphics, or "PNG's Not GIF"] images
#
# 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
0   string      \211PNG\015      image/png
                                                                                                                                                                             Virtual_Configuration/tile13/webserver/Software_Configuration/php/                                  0000777 0000000 0000000 00000000000 11524351256 024456  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/Software_Configuration/php/php.ini                           0000644 0000000 0000000 00000206751 11524351256 025755  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   [PHP]

;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.

; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
; 1. SAPI module specific location.
; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; 4. Current working directory (except CLI)
; 5. The web server's directory (for SAPI modules), or directory of PHP
; (otherwise in Windows)
; 6. The directory from the --with-config-file-path compile time option, or the
; Windows directory (C:\windows or C:\winnt)
; See the PHP docs for more specific information.
; http://www.php.net/manual/en/configuration.file.php

; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future. 

; Directives following the section heading [PATH=/www/mysite] only
; apply to PHP files in the /www/mysite directory.  Directives
; following the section heading [HOST=www.example.com] only apply to
; PHP files served from www.example.com.  Directives set in these
; special sections cannot be overridden by user-defined INI files or
; at runtime. Currently, [PATH=] and [HOST=] sections only work under
; CGI/FastCGI.
; http://www.php.net/manual/en/ini.sections.php

; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
; Directives are variables used to configure PHP or PHP extensions.
; There is no name validation.  If PHP can't find an expected
; directive because it is not set or is mistyped, a default value will be used.

; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
; previously set variable or directive (e.g. ${foo})

; Expressions in the INI file are limited to bitwise operators and parentheses:
; |  bitwise OR
; ^  bitwise XOR
; &  bitwise AND
; ~  bitwise NOT
; !  boolean NOT

; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.

; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:

;  foo =         ; sets foo to an empty string
;  foo = None    ; sets foo to an empty string
;  foo = "None"  ; sets foo to the string 'None'

; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.

;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; PHP comes packaged with two INI files. One that is recommended to be used
; in production environments and one that is recommended to be used in
; development environments.

; php.ini-production contains settings which hold security, performance and
; best practices at its core. But please be aware, these settings may break
; compatibility with older or less security conscience applications. We
; recommending using the production ini in production and testing environments.

; php.ini-development is very similar to its production variant, except it's
; much more verbose when it comes to errors. We recommending using the
; development version only in development environments as errors shown to
; application users can inadvertently leak otherwise secure information.

; This 2 files are provided, by RPM, in /usr/share/doc/php-common-*/
; File used by RPM (the /etc/php.ini) is mainly the php.ini-production

;;;;;;;;;;;;;;;;;;;
; Quick Reference ;
;;;;;;;;;;;;;;;;;;;
; The following are all the settings which are different in either the production
; or development versions of the INIs with respect to PHP's default behavior.
; Please see the actual settings later in the document for more details as to why
; we recommend these changes in PHP's behavior.

; allow_call_time_pass_reference
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; display_errors
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; display_startup_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; error_reporting
;   Default Value: E_ALL & ~E_NOTICE
;   Development Value: E_ALL | E_STRICT
;   Production Value: E_ALL & ~E_DEPRECATED

; html_errors
;   Default Value: On
;   Development Value: On
;   Production value: Off

; log_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: On

; magic_quotes_gpc
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; max_input_time
;   Default Value: -1 (Unlimited)
;   Development Value: 60 (60 seconds)
;   Production Value: 60 (60 seconds)

; output_buffering
;   Default Value: Off
;   Development Value: 4096
;   Production Value: 4096

; register_argc_argv
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; register_long_arrays
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; request_order
;   Default Value: None
;   Development Value: "GP"
;   Production Value: "GP"

; session.bug_compat_42
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; session.bug_compat_warn
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; session.gc_divisor
;   Default Value: 100
;   Development Value: 1000
;   Production Value: 1000

; session.hash_bits_per_character
;   Default Value: 4
;   Development Value: 5
;   Production Value: 5

; short_open_tag
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; track_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; url_rewriter.tags
;   Default Value: "a=href,area=href,frame=src,form=,fieldset="
;   Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
;   Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"

; variables_order
;   Default Value: "EGPCS"
;   Development Value: "GPCS"
;   Production Value: "GPCS"

;;;;;;;;;;;;;;;;;;;;
; php.ini Options  ;
;;;;;;;;;;;;;;;;;;;;
; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
;user_ini.filename = ".user.ini"

; To disable this feature set this option to empty value
;user_ini.filename =

; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
;user_ini.cache_ttl = 300

;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
; http://www.php.net/manual/en/apache.configuration.php#ini.engine
engine = On

; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.short-open-tag
short_open_tag = Off

; Allow ASP-style <% %> tags.
; http://www.php.net/manual/en/ini.core.php#ini.asp-tags
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
; http://www.php.net/manual/en/ini.core.php#ini.precision
precision = 14

; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
; http://www.php.net/manual/en/ini.core.php#ini.y2k-compliance
y2k_compliance = On

; Output buffering is a mechanism for controlling how much output data
; (excluding headers and cookies) PHP should keep internally before pushing that
; data to the client. If your application's output exceeds this setting, PHP
; will send that data in chunks of roughly the size you specify.
; Turning on this setting and managing its maximum buffer size can yield some
; interesting side-effects depending on your application and web server.
; You may be able to send headers and cookies after you've already sent output
; through print or echo. You also may see performance benefits if your server is
; emitting less packets due to buffered output versus PHP streaming the output
; as it gets it. On production servers, 4096 bytes is a good setting for performance
; reasons.
; Note: Output buffering can also be controlled via Output Buffering Control
;   functions.
; Possible Values:
;   On = Enabled and buffer is unlimited. (Use with caution)
;   Off = Disabled
;   Integer = Enables the buffer and sets its maximum size in bytes.
; Default Value: Off
; Development Value: 4096
; Production Value: 4096
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-buffering
output_buffering = 4096

; You can redirect all of the output of your scripts to a function.  For
; example, if you set output_handler to "mb_output_handler", character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
;   directive. Instead, explicitly set the output handler using ob_start().
;   Using this ini directive may cause problems unless you know what script
;   is doing.
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
;   and you cannot use both "ob_gzhandler" and "zlib.output_compression".
; Note: output_handler must be empty if this is set 'On' !!!!
;   Instead you must use zlib.output_handler.
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-handler
;output_handler =

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
; Note: Resulting chunk size may vary due to nature of compression. PHP
;   outputs chunks that are few hundreds bytes each as a result of
;   compression. If you prefer a larger chunk size for better
;   performance, enable output_buffering in addition.
; Note: You need to use zlib.output_handler instead of the standard
;   output_handler, or otherwise the output will be corrupted.
; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression
zlib.output_compression = Off

; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression-level
;zlib.output_compression_level = -1

; You cannot specify additional output handlers if zlib.output_compression
; is activated here. This setting does the same as output_handler but in
; a different order.
; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-handler
;zlib.output_handler =

; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block.  This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block.  Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.implicit-flush
implicit_flush = Off

; The unserialize callback function will be called (with the undefined class'
; name as parameter), if the unserializer finds an undefined class
; which should be instantiated. A warning appears if the specified function is
; not defined, or if the function doesn't include/implement the missing class.
; So only set this entry, if you really want to implement such a
; callback-function.
unserialize_callback_func =

; When floats & doubles are serialized store serialize_precision significant
; digits after the floating point. The default value ensures that when floats
; are decoded with unserialize, the data will remain the same.
serialize_precision = 100

; This directive allows you to enable and disable warnings which PHP will issue
; if you pass a value by reference at function call time. Passing values by
; reference at function call time is a deprecated feature which will be removed
; from PHP at some point in the near future. The acceptable method for passing a
; value by reference to a function is by declaring the reference in the functions
; definition, not at call time. This directive does not disable this feature, it
; only determines whether PHP will warn you about it or not. These warnings
; should enabled in development environments only.
; Default Value: On (Suppress warnings)
; Development Value: Off (Issue warnings)
; Production Value: Off (Issue warnings)
; http://www.php.net/manual/en/ini.core.php#ini.allow-call-time-pass-reference
allow_call_time_pass_reference = Off

; Safe Mode
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode
safe_mode = Off

; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-gid
safe_mode_gid = Off

; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-include-dir
safe_mode_include_dir =

; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-exec-dir
safe_mode_exec_dir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here.  By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
; Note:  If this directive is empty, PHP will let the user modify ANY
;   environment variable!
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-allowed-env-vars
safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv().  These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-protected-env-vars
safe_mode_protected_env_vars = LD_LIBRARY_PATH

; open_basedir, if set, limits all file operations to the defined directory
; and below.  This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.open-basedir
;open_basedir =

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.disable-functions
disable_functions =

; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.disable-classes
disable_classes =

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; <span style="color: ???????"> would work.
; http://www.php.net/manual/en/misc.configuration.php#ini.syntax-highlighting
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg      = #FFFFFF
;highlight.default = #0000BB
;highlight.html    = #000000

; If enabled, the request will be allowed to complete even if the user aborts
; the request. Consider enabling it if executing long requests, which may end up
; being interrupted by the user or a browser timing out. PHP's default behavior
; is to disable this feature.
; http://www.php.net/manual/en/misc.configuration.php#ini.ignore-user-abort
;ignore_user_abort = On

; Determines the size of the realpath cache to be used by PHP. This value should
; be increased on systems where PHP opens many files to reflect the quantity of
; the file operations performed.
; http://www.php.net/manual/en/ini.core.php#ini.realpath-cache-size
;realpath_cache_size = 16k

; Duration of time, in seconds for which to cache realpath information for a given
; file or directory. For systems with rarely changing files, consider increasing this
; value.
; http://www.php.net/manual/en/ini.core.php#ini.realpath-cache-ttl
;realpath_cache_ttl = 120

;;;;;;;;;;;;;;;;;
; Miscellaneous ;
;;;;;;;;;;;;;;;;;

; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header).  It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
; http://www.php.net/manual/en/ini.core.php#ini.expose-php
expose_php = On

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time
max_execution_time = 30     

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts. 
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://www.php.net/manual/en/info.configuration.php#ini.max-input-time
max_input_time = 60

; Maximum input variable nesting level
; http://www.php.net/manual/en/info.configuration.php#ini.max-input-nesting-level
;max_input_nesting_level = 64

; Maximum amount of memory a script may consume (128MB)
; http://www.php.net/manual/en/ini.core.php#ini.memory-limit
memory_limit = 128M

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; This directive informs PHP of which errors, warnings and notices you would like
; it to take action for. The recommended way of setting values for this
; directive is through the use of the error level constants and bitwise
; operators. The error level constants are below here for convenience as well as
; some common settings and their meanings.
; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
; those related to E_NOTICE and E_STRICT, which together cover best practices and
; recommended coding standards in PHP. For performance reasons, this is the
; recommend error reporting setting. Your production server shouldn't be wasting
; resources complaining about best practices and coding standards. That's what
; development servers and development settings are for.
; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This
; means it pretty much reports everything which is exactly what you want during
; development and early testing.
;
; Error Level Constants:
; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
; E_ERROR           - fatal run-time errors
; E_RECOVERABLE_ERROR  - almost fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_STRICT          - run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
; E_DEPRECATED      - warn about code that will not work in future versions
;                     of PHP
; E_USER_DEPRECATED - user-generated deprecation warnings
;
; Common Values:
;   E_ALL & ~E_NOTICE  (Show all errors, except for notices and coding standards warnings.)
;   E_ALL & ~E_NOTICE | E_STRICT  (Show all errors, except for notices)
;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
;   E_ALL | E_STRICT  (Show all errors, warnings and notices including coding standards.)
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
error_reporting = E_ALL & ~E_DEPRECATED

; This directive controls whether or not and where PHP will output errors,
; notices and warnings too. Error output is very useful during development, but
; it could be very dangerous in production environments. Depending on the code
; which is triggering the error, sensitive information could potentially leak
; out of your application such as database usernames and passwords or worse.
; It's recommended that errors be logged on production servers rather than
; having the errors sent to STDOUT.
; Possible Values:
;   Off = Do not display any errors 
;   stderr = Display errors to STDERR (affects only CGI/CLI binaries!)   
;   On or stdout = Display errors to STDOUT
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors
display_errors = Off

; The display of errors which occur during PHP's startup sequence are handled
; separately from display_errors. PHP's default behavior is to suppress those
; errors from clients. Turning the display of startup errors on can be useful in
; debugging configuration problems. But, it's strongly recommended that you
; leave this setting off on production servers.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-startup-errors
display_startup_errors = Off

; Besides displaying errors, PHP can also log errors to locations such as a
; server-specific log, STDERR, or a location specified by the error_log
; directive found below. While errors should not be displayed on productions
; servers they should still be monitored and logging is a great way to do that.
; Default Value: Off
; Development Value: On
; Production Value: On
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors
log_errors = On

; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors-max-len
log_errors_max_len = 1024

; Do not log repeated messages. Repeated errors must occur in same file on same
; line unless ignore_repeated_source is set true.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.ignore-repeated-errors
ignore_repeated_errors = Off

; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; source lines.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.ignore-repeated-source
ignore_repeated_source = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.report-memleaks
report_memleaks = On

; This setting is on by default.
;report_zend_debug = 0

; Store the last error/warning message in $php_errormsg (boolean). Setting this value
; to On can assist in debugging and is appropriate for development servers. It should
; however be disabled on production servers.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors
track_errors = Off

; Turn off normal error reporting and emit XML-RPC error XML
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.xmlrpc-errors
;xmlrpc_errors = 0

; An XML-RPC faultCode
;xmlrpc_error_number = 0

; When PHP displays or logs an error, it has the capability of inserting html
; links to documentation related to that error. This directive controls whether
; those HTML links appear in error messages or not. For performance and security
; reasons, it's recommended you disable this on production servers.
; Default Value: On
; Development Value: On
; Production value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.html-errors
html_errors = Off

; If html_errors is set On PHP produces clickable error messages that direct
; to a page describing the error or function causing the error in detail.
; You can download a copy of the PHP manual from http://www.php.net/docs.php
; and change docref_root to the base URL of your local copy including the
; leading '/'. You must also specify the file extension being used including
; the dot. PHP's default behavior is to leave these settings empty.
; Note: Never use this feature for production boxes.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.docref-root
; Examples
;docref_root = "/phpmanual/"

; http://www.php.net/manual/en/errorfunc.configuration.php#ini.docref-ext
;docref_ext = .html

; String to output before an error message. PHP's default behavior is to leave
; this setting blank.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-prepend-string
; Example:
;error_prepend_string = "<font color=#ff0000>"

; String to output after an error message. PHP's default behavior is to leave
; this setting blank.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-append-string
; Example:
;error_append_string = "</font>"

; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-log
; Example:
;error_log = php_errors.log
; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog

;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;

; Note - track_vars is ALWAYS enabled as of PHP 4.0.3

; The separator used in PHP generated URLs to separate arguments.
; PHP's default setting is "&".
; http://www.php.net/manual/en/ini.core.php#ini.arg-separator.output
; Example:
;arg_separator.output = "&amp;"

; List of separator(s) used by PHP to parse input URLs into variables.
; PHP's default setting is "&".
; NOTE: Every character in this directive is considered as separator!
; http://www.php.net/manual/en/ini.core.php#ini.arg-separator.input
; Example:
;arg_separator.input = ";&"

; This directive determines which super global arrays are registered when PHP
; starts up. If the register_globals directive is enabled, it also determines
; what order variables are populated into the global space. G,P,C,E & S are
; abbreviations for the following respective super globals: GET, POST, COOKIE,
; ENV and SERVER. There is a performance penalty paid for the registration of
; these arrays and because ENV is not as commonly used as the others, ENV is
; is not recommended on productions servers. You can still get access to
; the environment variables through getenv() should you need to.
; Default Value: "EGPCS"
; Development Value: "GPCS"
; Production Value: "GPCS";
; http://www.php.net/manual/en/ini.core.php#ini.variables-order
variables_order = "GPCS"

; This directive determines which super global data (G,P,C,E & S) should
; be registered into the super global array REQUEST. If so, it also determines
; the order in which that data is registered. The values for this directive are
; specified in the same manner as the variables_order directive, EXCEPT one.
; Leaving this value empty will cause PHP to use the value set in the 
; variables_order directive. It does not mean it will leave the super globals
; array REQUEST empty.
; Default Value: None
; Development Value: "GP"
; Production Value: "GP"
; http://www.php.net/manual/en/ini.core.php#ini.request-order
request_order = "GP"

; Whether or not to register the EGPCS variables as global variables.  You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data.  This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARS[],
; variables.
; You should do your best to write your scripts so that they do not require
; register_globals to be on;  Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
; http://www.php.net/manual/en/ini.core.php#ini.register-globals
register_globals = Off

; Determines whether the deprecated long $HTTP_*_VARS type predefined variables
; are registered by PHP or not. As they are deprecated, we obviously don't
; recommend you use them. They are on by default for compatibility reasons but
; they are not recommended on production servers.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.register-long-arrays
register_long_arrays = Off

; This directive determines whether PHP registers $argv & $argc each time it
; runs. $argv contains an array of all the arguments passed to PHP when a script
; is invoked. $argc contains an integer representing the number of arguments
; that were passed when the script was invoked. These arrays are extremely
; useful when running scripts from the command line. When this directive is
; enabled, registering these variables consumes CPU cycles and memory each time
; a script is executed. For performance reasons, this feature should be disabled
; on production servers.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.register-argc-argv
register_argc_argv = Off

; When enabled, the SERVER and ENV variables are created when they're first
; used (Just In Time) instead of when the script starts. If these variables
; are not used within a script, having this directive on will result in a
; performance gain. The PHP directives register_globals, register_long_arrays,
; and register_argc_argv must be disabled for this directive to have any affect.
; http://www.php.net/manual/en/ini.core.php#ini.auto-globals-jit
auto_globals_jit = On

; Maximum size of POST data that PHP will accept.
; http://www.php.net/manual/en/ini.core.php#ini.post-max-size
post_max_size = 8M

; Magic quotes are a preprocessing feature of PHP where PHP will attempt to
; escape any character sequences in GET, POST, COOKIE and ENV data which might
; otherwise corrupt data being placed in resources such as databases before
; making that data available to you. Because of character encoding issues and
; non-standard SQL implementations across many databases, it's not currently
; possible for this feature to be 100% accurate. PHP's default behavior is to
; enable the feature. We strongly recommend you use the escaping mechanisms
; designed specifically for the database your using instead of relying on this
; feature. Also note, this feature has been deprecated as of PHP 5.3.0 and is
; scheduled for removal in PHP 6.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
; http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-runtime
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
; http://www.php.net/manual/en/sybase.configuration.php#ini.magic-quotes-sybase
magic_quotes_sybase = Off

; Automatically add files before PHP document.
; http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file
auto_prepend_file =

; Automatically add files after PHP document.
; http://www.php.net/manual/en/ini.core.php#ini.auto-append-file
auto_append_file =

; As of 4.0b4, PHP always outputs a character encoding by default in
; the Content-type: header.  To disable sending of the charset, simply
; set it to be empty.
;
; PHP's built-in default is text/html
; http://www.php.net/manual/en/ini.core.php#ini.default-mimetype
default_mimetype = "text/html"

; PHP's default character set is set to empty.
; http://www.php.net/manual/en/ini.core.php#ini.default-charset
;default_charset = "iso-8859-1"

; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
; to disable this feature.
; http://www.php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data
;always_populate_raw_post_data = On

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
;
; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://www.php.net/manual/en/ini.core.php#ini.include-path

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
; http://www.php.net/manual/en/ini.core.php#ini.doc-root
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
; http://www.php.net/manual/en/ini.core.php#ini.user-dir
user_dir =

; Directory in which the loadable extensions (modules) reside.
; http://www.php.net/manual/en/ini.core.php#ini.extension-dir
; extension_dir = "./"

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
; http://www.php.net/manual/en/info.configuration.php#ini.enable-dl
enable_dl = Off

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers.  Left undefined, PHP turns this on by default.  You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; http://www.php.net/manual/en/ini.core.php#ini.cgi.force-redirect
;cgi.force_redirect = 1

; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
; every request. PHP's default behavior is to disable this feature.
;cgi.nph = 1

; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution.  Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.redirect-status-env
;cgi.redirect_status_env = ;

; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
; this to 1 will cause PHP CGI to fix its paths to conform to the spec.  A setting
; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.fix-pathinfo
;cgi.fix_pathinfo=1

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; security tokens of the calling client.  This allows IIS to define the
; security context that the request runs under.  mod_fastcgi under Apache
; does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS.  Default is zero.
; http://www.php.net/manual/en/ini.core.php#ini.fastcgi.impersonate
;fastcgi.impersonate = 1;

; Disable logging through FastCGI connection. PHP's default behavior is to enable
; this feature.
;fastcgi.logging = 0

; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
; is supported by Apache. When this option is set to 1 PHP will send
; RFC2616 compliant header.
; Default is zero.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.rfc2616-headers
;cgi.rfc2616_headers = 0

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
; http://www.php.net/manual/en/ini.core.php#ini.file-uploads
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://www.php.net/manual/en/ini.core.php#ini.upload-tmp-dir
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
; http://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize
upload_max_filesize = 2M

;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen
allow_url_fopen = On

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-include
allow_url_include = Off

; Define the anonymous ftp password (your email address). PHP's default setting
; for this is empty.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.from
;from="john@doe.com"

; Define the User-Agent string. PHP's default setting for this is empty.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.user-agent
;user_agent="PHP"

; Default timeout for socket based streams (seconds)
; http://www.php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout
default_socket_timeout = 60

; If your scripts have to deal with files from Macintosh systems,
; or you are running on a Mac and need to deal with files from
; unix or win32 systems, setting this flag will cause PHP to
; automatically detect the EOL character in those files so that
; fgets() and file() will work regardless of the source of the file.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.auto-detect-line-endings
;auto_detect_line_endings = Off

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example
;
;   extension=msql.so
;
; ... or with a path:
;
;   extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.

;;;;
; Note: packaged extension modules are now loaded via the .ini files
; found in the directory /etc/php.d; these are loaded by default.
;;;;


;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
;date.timezone =

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.default-latitude
;date.default_latitude = 31.7667

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.default-longitude
;date.default_longitude = 35.2333

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.sunrise-zenith
;date.sunrise_zenith = 90.583333

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.sunset-zenith
;date.sunset_zenith = 90.583333

[filter]
; http://www.php.net/manual/en/filter.configuration.php#ini.filter.default
;filter.default = unsafe_raw

; http://www.php.net/manual/en/filter.configuration.php#ini.filter.default-flags
;filter.default_flags =

[iconv]
;iconv.input_encoding = ISO-8859-1
;iconv.internal_encoding = ISO-8859-1
;iconv.output_encoding = ISO-8859-1

[intl]
;intl.default_locale = 

[sqlite]
; http://www.php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case
;sqlite.assoc_case = 0

[sqlite3]
;sqlite3.extension_dir =

[Pcre]
;PCRE library backtracking limit.
; http://www.php.net/manual/en/pcre.configuration.php#ini.pcre.backtrack-limit
;pcre.backtrack_limit=100000

;PCRE library recursion limit. 
;Please note that if you set this value to a high number you may consume all 
;the available process stack and eventually crash PHP (due to reaching the 
;stack size limit imposed by the Operating System).
; http://www.php.net/manual/en/pcre.configuration.php#ini.pcre.recursion-limit
;pcre.recursion_limit=100000

[Pdo]
; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
; http://www.php.net/manual/en/ref.pdo-odbc.php#ini.pdo-odbc.connection-pooling
;pdo_odbc.connection_pooling=strict

[Phar]
; http://www.php.net/manual/en/phar.configuration.php#ini.phar.readonly
;phar.readonly = On

; http://www.php.net/manual/en/phar.configuration.php#ini.phar.require-hash
;phar.require_hash = On

;phar.cache_list =

[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.).  Turning it off is a good idea performance-wise.  In
; runtime, you can define these variables by calling define_syslog_variables().
; http://www.php.net/manual/en/network.configuration.php#ini.define-syslog-variables
define_syslog_variables  = Off

[mail function]
; For Win32 only.
; http://www.php.net/manual/en/mail.configuration.php#ini.smtp
SMTP = localhost
; http://www.php.net/manual/en/mail.configuration.php#ini.smtp-port
smtp_port = 25

; For Win32 only.
; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-from
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-path
sendmail_path = /usr/sbin/sendmail -t -i

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originaiting-Script: that will include uid of the script followed by the filename
mail.add_x_header = On

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log =

[SQL]
; http://www.php.net/manual/en/ini.core.php#ini.sql.safe-mode
sql.safe_mode = Off

[ODBC]
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-db
;odbc.default_db    =  Not yet implemented

; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-user
;odbc.default_user  =  Not yet implemented

; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-pw
;odbc.default_pw    =  Not yet implemented

; Allow or prevent persistent links.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.allow-persistent
odbc.allow_persistent = On

; Check that a connection is still valid before reuse.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.check-persistent
odbc.check_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.max-persistent
odbc.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.max-links
odbc.max_links = -1

; Handling of LONG fields.  Returns number of bytes to variables.  0 means
; passthru.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.defaultlrl
odbc.defaultlrl = 4096

; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of uodbc.defaultlrl and uodbc.defaultbinmode
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.defaultbinmode
odbc.defaultbinmode = 1

;birdstep.max_links = -1

[MySQL]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.allow-persistent
mysql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.max-persistent
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.max-links
mysql.max_links = -1

; Default port number for mysql_connect().  If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-port
mysql.default_port =

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-socket
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-host
mysql.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-user
mysql.default_user =

; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-password
mysql.default_password =

; Maximum time (in seconds) for connect timeout. -1 means no limit
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.connect-timeout
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.trace-mode
mysql.trace_mode = Off

[MySQLi]

; Maximum number of links.  -1 means no limit.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.max-links
mysqli.max_links = -1

; Default port number for mysqli_connect().  If unset, mysqli_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-port
mysqli.default_port = 3306

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-socket
mysqli.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-host
mysqli.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-user
mysqli.default_user =

; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-pw
mysqli.default_pw =

; Allow or prevent reconnect
mysqli.reconnect = Off

[PostgresSQL]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.allow-persistent
pgsql.allow_persistent = On

; Detect broken persistent links always with pg_pconnect().
; Auto reset feature requires a little overheads.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.auto-reset-persistent
pgsql.auto_reset_persistent = Off

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-persistent
pgsql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-links
pgsql.max_links = -1

; Ignore PostgreSQL backends Notice message or not.
; Notice message logging require a little overheads.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.ignore-notice
pgsql.ignore_notice = 0

; Log PostgreSQL backends Noitce message or not.
; Unless pgsql.ignore_notice=0, module cannot log notice message.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.log-notice
pgsql.log_notice = 0

[Sybase-CT]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.allow-persistent
sybct.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.max-persistent
sybct.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.max-links
sybct.max_links = -1

; Minimum server message severity to display.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.min-server-severity
sybct.min_server_severity = 10

; Minimum client message severity to display.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.min-client-severity
sybct.min_client_severity = 10

; Set per-context timeout
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.timeout
;sybct.timeout=

;sybct.packet_size

[bcmath]
; Number of decimal digits for all bcmath functions.
; http://www.php.net/manual/en/bc.configuration.php#ini.bcmath.scale
bcmath.scale = 0

[browscap]
; http://www.php.net/manual/en/misc.configuration.php#ini.browscap
;browscap = extra/browscap.ini

[Session]
; Handler used to store/retrieve data.
; http://www.php.net/manual/en/session.configuration.php#ini.session.save-handler
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
;
; As of PHP 4.0.1, you can define the path as:
;
;     session.save_path = "N;/path"
;
; where N is an integer.  Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories.  This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
;         You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
;         use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
;     session.save_path = "N;MODE;/path"
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
; http://www.php.net/manual/en/session.configuration.php#ini.session.save-path
session.save_path = "/var/lib/php/session"

; Whether to use cookies.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-cookies
session.use_cookies = 1

; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-secure
;session.cookie_secure =

; This option forces PHP to fetch and use a cookie for storing and maintaining
; the session id. We encourage this operation as it's very helpful in combatting
; session hijacking when not specifying and managing your own session id. It is
; not the end all be all of session hijacking defense, but it's a good start.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-only-cookies
session.use_only_cookies = 1

; Name of the session (used as cookie name).
; http://www.php.net/manual/en/session.configuration.php#ini.session.name
session.name = PHPSESSID

; Initialize session on request startup.
; http://www.php.net/manual/en/session.configuration.php#ini.session.auto-start
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime
session.cookie_lifetime = 0

; The path for which the cookie is valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-path
session.cookie_path = /

; The domain for which the cookie is valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-domain
session.cookie_domain =

; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-httponly
session.cookie_httponly = 

; Handler used to serialize data.  php is the standard serializer of PHP.
; http://www.php.net/manual/en/session.configuration.php#ini.session.serialize-handler
session.serialize_handler = php

; Defines the probability that the 'garbage collection' process is started
; on every session initialization. The probability is calculated by using
; gc_probability/gc_divisor. Where session.gc_probability is the numerator
; and gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request.
; Default Value: 1
; Development Value: 1
; Production Value: 1
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-probability
session.gc_probability = 1

; Defines the probability that the 'garbage collection' process is started on every
; session initialization. The probability is calculated by using the following equation: 
; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
; session.gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request. Increasing this value to 1000 will give you
; a 0.1% chance the gc will run on any give request. For high volume production servers,
; this is a more efficient approach.
; Default Value: 100
; Development Value: 1000
; Production Value: 1000
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-divisor
session.gc_divisor = 1000

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime
session.gc_maxlifetime = 1440

; NOTE: If you are using the subdirectory option for storing session files
;       (see session.save_path above), then garbage collection does *not*
;       happen automatically.  You will need to do your own garbage
;       collection through a shell script, cron entry, or some other method.
;       For example, the following script would is the equivalent of
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
;          cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, even when register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled. This feature
; introduces some serious security problems if not handled correctly. It's
; recommended that you do not use this feature on production servers. But you
; should enable this on development servers and enable the warning as well. If you
; do not enable the feature on development servers, you won't be warned when it's
; used and debugging errors caused by this can be difficult to track down.
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/session.configuration.php#ini.session.bug-compat-42
session.bug_compat_42 = Off

; This setting controls whether or not you are warned by PHP when initializing a
; session value into the global space. session.bug_compat_42 must be enabled before
; these warnings can be issued by PHP. See the directive above for more information.
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/session.configuration.php#ini.session.bug-compat-warn
session.bug_compat_warn = Off

; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.referer-check
session.referer_check =

; How many bytes to read from the file.
; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-length
session.entropy_length = 0

; Specified here to create the session id.
; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-file
;session.entropy_file = /dev/urandom
session.entropy_file =

; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-length
;session.entropy_length = 16

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cache-limiter
session.cache_limiter = nocache

; Document expires after n minutes.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cache-expire
session.cache_expire = 180

; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
;   to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
;   in publically accessible computer.
; - User may access your site with the same session ID
;   always using URL stored in browser's history or bookmarks.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-trans-sid
session.use_trans_sid = 0

; Select a hash function for use in generating session ids.
; Possible Values 
;   0  (MD5 128 bits)
;   1  (SHA-1 160 bits)
; http://www.php.net/manual/en/session.configuration.php#ini.session.hash-function
session.hash_function = 0

; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
; Possible values:
;   4  (4 bits: 0-9, a-f)
;   5  (5 bits: 0-9, a-v)
;   6  (6 bits: 0-9, a-z, A-Z, "-", ",")
; Default Value: 4
; Development Value: 5
; Production Value: 5
; http://www.php.net/manual/en/session.configuration.php#ini.session.hash-bits-per-character
session.hash_bits_per_character = 5

; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden <input> field with the info which is otherwise appended
; to URLs.  If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a "=", even if no value follows.
; Default Value: "a=href,area=href,frame=src,form=,fieldset="
; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; http://www.php.net/manual/en/session.configuration.php#ini.url-rewriter.tags
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
mssql.max_links = -1

; Minimum error severity to display.
mssql.min_error_severity = 10

; Minimum message severity to display.
mssql.min_message_severity = 10

; Compatibility mode with old versions of PHP 3.0.
mssql.compatability_mode = Off

; Connect timeout
;mssql.connect_timeout = 5

; Query timeout
;mssql.timeout = 60

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textsize = 4096

; Limits the number of records in each batch.  0 = all records in one batch.
;mssql.batchsize = 0

; Specify how datetime and datetim4 columns are returned
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server
mssql.secure_connection = Off

; Specify max number of processes. -1 = library default
; msdlib defaults to 25
; FreeTDS defaults to 4096
;mssql.max_procs = -1

; Specify client character set. 
; If empty or not set the client charset from freetds.comf is used
; This is only used when compiled with FreeTDS
;mssql.charset = "ISO-8859-1"

[Assertion]
; Assert(expr); active by default.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.active
;assert.active = On

; Issue a PHP warning for each failed assertion.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.warning
;assert.warning = On

; Don't bail out by default.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.bail
;assert.bail = Off

; User-function to be called if an assertion fails.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.callback
;assert.callback = 0

; Eval the expression with current error_reporting().  Set to true if you want
; error_reporting(0) around the eval().
; http://www.php.net/manual/en/info.configuration.php#ini.assert.quiet-eval
;assert.quiet_eval = 0

[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
; http://www.php.net/manual/en/com.configuration.php#ini.com.typelib-file
;com.typelib_file =

; allow Distributed-COM calls
; http://www.php.net/manual/en/com.configuration.php#ini.com.allow-dcom
;com.allow_dcom = true

; autoregister constants of a components typlib on com_load()
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-typelib
;com.autoregister_typelib = true

; register constants casesensitive
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-casesensitive
;com.autoregister_casesensitive = false

; show warnings on duplicate constant registrations
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-verbose
;com.autoregister_verbose = true

[mbstring]
; language for internal character representation.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.language
;mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.internal-encoding
;mbstring.internal_encoding = EUC-JP

; http input encoding.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-input
;mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-output
;mbstring.http_output = SJIS

; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.encoding-translation
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; auto means
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.detect-order
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.substitute-character
;mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.func-overload
;mbstring.func_overload = 0

; enable strict encoding detection.
;mbstring.strict_detection = Off

; This directive specifies the regex pattern of content types for which mb_output_handler()
; is activated.
; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
;mbstring.http_output_conv_mimetype=

[gd]
; Tell the jpeg decode to ignore warnings and try to create
; a gd image. The warning will then be displayed as notices
; disabled by default
; http://www.php.net/manual/en/image.configuration.php#ini.image.jpeg-ignore-warning
;gd.jpeg_ignore_warning = 0

[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-unicode
;exif.encode_unicode = ISO-8859-15

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-motorola
;exif.decode_unicode_motorola = UCS-2BE

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-intel
;exif.decode_unicode_intel    = UCS-2LE

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-jis
;exif.encode_jis =

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-motorola
;exif.decode_jis_motorola = JIS

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-intel
;exif.decode_jis_intel    = JIS

[Tidy]
; The path to a default tidy configuration file to use when using tidy
; http://www.php.net/manual/en/tidy.configuration.php#ini.tidy.default-config
;tidy.default_config = /usr/local/lib/php/default.tcfg

; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
; http://www.php.net/manual/en/tidy.configuration.php#ini.tidy.clean-output
tidy.clean_output = Off

[soap]
; Enables or disables WSDL caching feature.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-enabled
soap.wsdl_cache_enabled=1

; Sets the directory name where SOAP extension will put cache files.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-dir
soap.wsdl_cache_dir="/tmp"

; (time to live) Sets the number of second while cached file will be used 
; instead of original one.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-ttl
soap.wsdl_cache_ttl=86400

[sysvshm]
; A default size of the shared memory segment
;sysvshm.init_mem = 10000


; Local Variables:
; tab-width: 4
; End:
                       Virtual_Configuration/tile13/webserver/Software_Configuration/php/php.d/                            0000777 0000000 0000000 00000000000 11524351255 025466  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/webserver/Software_Configuration/php/php.d/phar.ini                    0000644 0000000 0000000 00000000061 11524351255 027112  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable phar extension module
extension=phar.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/webserver/Software_Configuration/php/php.d/zip.ini                     0000644 0000000 0000000 00000000057 11524351255 026767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable zip extension module
extension=zip.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/webserver/Software_Configuration/php/php.d/json.ini                    0000644 0000000 0000000 00000000061 11524351255 027131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable json extension module
extension=json.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/webserver/Software_Configuration/php/php.d/apc.ini                     0000644 0000000 0000000 00000005340 11524351255 026730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable apc extension module
extension = apc.so

; Options for the APC module version >= 3.1.3

; This can be set to 0 to disable APC. 
apc.enabled=1
; The number of shared memory segments to allocate for the compiler cache. 
apc.shm_segments=1
; The size of each shared memory segment in MB.
apc.shm_size=64
; A "hint" about the number of distinct source files that will be included or 
; requested on your web server. Set to zero or omit if you're not sure;
apc.num_files_hint=1024
; Just like num_files_hint, a "hint" about the number of distinct user cache
; variables to store.  Set to zero or omit if you're not sure;
apc.user_entries_hint=4096
; The number of seconds a cache entry is allowed to idle in a slot in case this
; cache entry slot is needed by another entry.
apc.ttl=7200
; use the SAPI request start time for TTL
apc.use_request_time=1
; The number of seconds a user cache entry is allowed to idle in a slot in case
; this cache entry slot is needed by another entry.
apc.user_ttl=7200
; The number of seconds that a cache entry may remain on the garbage-collection list. 
apc.gc_ttl=3600
; On by default, but can be set to off and used in conjunction with positive
; apc.filters so that files are only cached if matched by a positive filter.
apc.cache_by_default=1
; A comma-separated list of POSIX extended regular expressions.
apc.filters
; The mktemp-style file_mask to pass to the mmap module 
apc.mmap_file_mask=/tmp/apc.XXXXXX
; This file_update_protection setting puts a delay on caching brand new files.
apc.file_update_protection=2
; Setting this enables APC for the CLI version of PHP (Mostly for testing and debugging).
apc.enable_cli=0
; Prevents large files from being cached
apc.max_file_size=1M
; Whether to stat the main script file and the fullpath includes.
apc.stat=1
; Vertification with ctime will avoid problems caused by programs such as svn or rsync by making 
; sure inodes havn't changed since the last stat. APC will normally only check mtime.
apc.stat_ctime=0
; Whether to canonicalize paths in stat=0 mode or fall back to stat behaviour
apc.canonicalize=0
; With write_lock enabled, only one process at a time will try to compile an 
; uncached script while the other processes will run uncached
apc.write_lock=1
; Logs any scripts that were automatically excluded from being cached due to early/late binding issues.
apc.report_autofilter=0
; RFC1867 File Upload Progress hook handler
apc.rfc1867=0
apc.rfc1867_prefix =upload_
apc.rfc1867_name=APC_UPLOAD_PROGRESS
apc.rfc1867_freq=0
apc.rfc1867_ttl=3600
; Optimize include_once and require_once calls and avoid the expensive system calls used.
apc.include_once_override=0
apc.lazy_classes=00
apc.lazy_functions=0
; not documented
apc.coredump_unmap=0
apc.file_md5=0
apc.preload_path
                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile13/webserver/Software_Configuration/php/php.d/curl.ini                    0000644 0000000 0000000 00000000061 11524351255 027125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable curl extension module
extension=curl.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/webserver/Software_Configuration/php/php.d/fileinfo.ini                0000644 0000000 0000000 00000000071 11524351255 027754  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable fileinfo extension module
extension=fileinfo.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/mailserver/                                                            0000777 0000000 0000000 00000000000 11524351235 017350  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/                                           0000777 0000000 0000000 00000000000 11524351253 022621  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/proc/                                      0000777 0000000 0000000 00000000000 11524351253 023564  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/proc/cpuinfo                               0000644 0000000 0000000 00000001017 11524351253 025145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/mailserver/VM_configuration/proc/mounts                                0000644 0000000 0000000 00000001357 11524351253 025036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1020708k,nr_inodes=255177,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1298,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1298,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/mailserver/VM_configuration/proc/swaps                                 0000644 0000000 0000000 00000000144 11524351253 024637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/mailserver/VM_configuration/proc/devices                               0000644 0000000 0000000 00000000567 11524351253 025135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile13/mailserver/VM_configuration/proc/modules                               0000644 0000000 0000000 00000002621 11524351253 025154  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 38 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile13/mailserver/VM_configuration/proc/partitions                            0000644 0000000 0000000 00000000260 11524351253 025675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   41943040 vdb
 252       17   41943024 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile13/mailserver/VM_configuration/proc/meminfo                               0000644 0000000 0000000 00000002222 11524351253 025133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2055756 kB
MemFree:          362472 kB
Buffers:          378400 kB
Cached:           893716 kB
SwapCached:            0 kB
Active:           888360 kB
Inactive:         455076 kB
Active(anon):      15508 kB
Inactive(anon):    55944 kB
Active(file):     872852 kB
Inactive(file):   399132 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               216 kB
Writeback:             0 kB
AnonPages:         71328 kB
Mapped:             9608 kB
Shmem:               164 kB
Slab:             329172 kB
SReclaimable:     258124 kB
SUnreclaim:        71048 kB
KernelStack:        1072 kB
PageTables:         3880 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3075868 kB
Committed_AS:     176804 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       11532 kB
VmallocChunk:   34359719476 kB
HardwareCorrupted:     0 kB
AnonHugePages:     24576 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2088960 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/mailserver/VM_configuration/root/                                      0000777 0000000 0000000 00000000000 11524351253 023604  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/root/convert_to_vf.sh                      0000755 0000000 0000000 00000001135 11524351253 027014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/lspci.txt                                  0000644 0000000 0000000 00000001211 11524351252 024462  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/mailserver/VM_configuration/df.txt                                     0000644 0000000 0000000 00000000401 11524351235 023742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3827984   8952952  30% /
tmpfs                  1027876         0   1027876   0% /dev/shm
/dev/vdb1             41284912  24791164  14396600  64% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/mailserver/VM_configuration/mount.txt                                  0000644 0000000 0000000 00000000612 11524351252 024516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile13/mailserver/VM_configuration/etc/                                       0000777 0000000 0000000 00000000000 11524351252 023373  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/                                  0000777 0000000 0000000 00000000000 11524351244 024222  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/                            0000777 0000000 0000000 00000000000 11524351252 025132  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests           0000755 0000000 0000000 00000017172 11524351245 030326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                  0000755 0000000 0000000 00000004325 11524351245 026744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd               0000755 0000000 0000000 00000006014 11524351246 027533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                 0000755 0000000 0000000 00000012327 11524351247 027135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                0000755 0000000 0000000 00000005222 11524351250 027312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                     0000755 0000000 0000000 00000010671 11524351251 026316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                    0000755 0000000 0000000 00000006364 11524351245 026473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                0000755 0000000 0000000 00000020716 11524351247 027245  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                     0000755 0000000 0000000 00000004731 11524351246 026323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon             0000755 0000000 0000000 00000004754 11524351245 027676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                0000755 0000000 0000000 00000001364 11524351251 027335  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                    0000755 0000000 0000000 00000003027 11524351247 026462  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                   0000755 0000000 0000000 00000006743 11524351251 026656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                    0000755 0000000 0000000 00000010777 11524351246 026466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus               0000755 0000000 0000000 00000004230 11524351251 027477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                    0000755 0000000 0000000 00000006302 11524351246 026435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                      0000755 0000000 0000000 00000004236 11524351252 026152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                  0000755 0000000 0000000 00000004031 11524351250 026760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance               0000755 0000000 0000000 00000003521 11524351250 027443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                  0000755 0000000 0000000 00000006050 11524351250 027015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                  0000755 0000000 0000000 00000002363 11524351247 027073  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger               0000755 0000000 0000000 00000004054 11524351244 027501  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                0000755 0000000 0000000 00000005013 11524351250 027352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                    0000755 0000000 0000000 00000003213 11524351246 026454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                  0000755 0000000 0000000 00000003512 11524351246 027006  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                     0000755 0000000 0000000 00000003603 11524351246 026314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                   0000755 0000000 0000000 00000011277 11524351246 026641  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S10network                  0000755 0000000 0000000 00000014466 11524351247 027050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                  0000755 0000000 0000000 00000004326 11524351250 027047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                   0000755 0000000 0000000 00000006462 11524351250 026621  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                    0000755 0000000 0000000 00000027662 11524351251 026475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                     0000755 0000000 0000000 00000006445 11524351246 026217  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                0000755 0000000 0000000 00000003245 11524351251 027302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K60crond                    0000755 0000000 0000000 00000005445 11524351246 026455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                    0000755 0000000 0000000 00000005522 11524351245 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl            0000755 0000000 0000000 00000002221 11524351247 030146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                0000755 0000000 0000000 00000004010 11524351245 027315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                      0000755 0000000 0000000 00000013536 11524351246 026136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                     0000755 0000000 0000000 00000004723 11524351251 026276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                   0000755 0000000 0000000 00000003024 11524351245 026606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                    0000755 0000000 0000000 00000003275 11524351251 026435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                 0000755 0000000 0000000 00000025442 11524351250 027160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                0000755 0000000 0000000 00000004370 11524351251 027300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S99local                    0000755 0000000 0000000 00000000334 11524351252 026453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                  0000755 0000000 0000000 00000006675 11524351250 027017  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole               0000755 0000000 0000000 00000005650 11524351245 027515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor             0000555 0000000 0000000 00000004612 11524351247 027713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                   0000755 0000000 0000000 00000007234 11524351251 026657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                 0000755 0000000 0000000 00000003433 11524351252 027211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                   0000755 0000000 0000000 00000005672 11524351245 026636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                    0000755 0000000 0000000 00000003254 11524351252 026451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                0000755 0000000 0000000 00000005063 11524351251 027324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                    0000755 0000000 0000000 00000012432 11524351251 026466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                  0000755 0000000 0000000 00000007414 11524351245 027036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                 0000755 0000000 0000000 00000020557 11524351247 027162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond              0000755 0000000 0000000 00000003427 11524351246 027706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/rc3.d/K05atd                      0000755 0000000 0000000 00000004112 11524351245 026104  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/                           0000777 0000000 0000000 00000000000 11524351244 025407  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/network                    0000755 0000000 0000000 00000014466 11524351242 027033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/gfs2                       0000755 0000000 0000000 00000006445 11524351240 026177  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/sysstat                    0000755 0000000 0000000 00000002363 11524351244 027047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/saslauthd                  0000755 0000000 0000000 00000004010 11524351243 027313  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/messagebus                 0000755 0000000 0000000 00000004230 11524351241 027463  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/autobench                  0000755 0000000 0000000 00000005063 11524351237 027307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/atd                        0000755 0000000 0000000 00000004112 11524351237 026101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/mcelogd                    0000755 0000000 0000000 00000003535 11524351241 026746  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/auditd                     0000755 0000000 0000000 00000006462 11524351237 026615  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/certmonger                 0000755 0000000 0000000 00000004054 11524351237 027503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/irqbalance                 0000755 0000000 0000000 00000003521 11524351240 027427  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/acpid                      0000755 0000000 0000000 00000003275 11524351237 026422  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/nscd                       0000755 0000000 0000000 00000004723 11524351242 026264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                  0000755 0000000 0000000 00000005222 11524351243 027274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/nfs                        0000755 0000000 0000000 00000013536 11524351242 026125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/sssd                       0000755 0000000 0000000 00000004731 11524351244 026312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/crond                      0000755 0000000 0000000 00000005445 11524351240 026442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/ip6tables                  0000755 0000000 0000000 00000020716 11524351240 027224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/autofs                     0000755 0000000 0000000 00000007234 11524351237 026642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/sshd                       0000755 0000000 0000000 00000010671 11524351244 026277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/ksm                        0000755 0000000 0000000 00000004236 11524351241 026125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/libvirt-guests             0000755 0000000 0000000 00000017172 11524351241 030321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/avahi-daemon               0000755 0000000 0000000 00000004754 11524351237 027676  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/ypbind                     0000755 0000000 0000000 00000011277 11524351244 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/psacct                     0000755 0000000 0000000 00000003024 11524351243 026604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/xinetd                     0000755 0000000 0000000 00000006743 11524351244 026636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/nfslock                    0000755 0000000 0000000 00000006675 11524351242 027004  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/cgred                      0000755 0000000 0000000 00000006302 11524351237 026420  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/migrateip                  0000755 0000000 0000000 00000001364 11524351242 027314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/udev-post                  0000755 0000000 0000000 00000004370 11524351244 027263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/haldaemon                  0000755 0000000 0000000 00000003245 11524351240 027261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/ipsec                      0000755 0000000 0000000 00000010777 11524351240 026444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/rpcbind                    0000755 0000000 0000000 00000004031 11524351243 026747  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/rhnsd                      0000755 0000000 0000000 00000005522 11524351243 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/functions                  0000644 0000000 0000000 00000042767 11524351240 027352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/kdump                      0000755 0000000 0000000 00000027662 11524351241 026463  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/postfix                    0000755 0000000 0000000 00000007414 11524351242 027031  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/iptables                   0000755 0000000 0000000 00000020557 11524351240 027141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/rsyslog                    0000755 0000000 0000000 00000004326 11524351243 027037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/netconsole                 0000755 0000000 0000000 00000005650 11524351242 027506  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/rpcgssd                    0000755 0000000 0000000 00000006050 11524351243 026776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/abrtd                      0000755 0000000 0000000 00000003254 11524351237 026433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor               0000555 0000000 0000000 00000004612 11524351241 027674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/halt                       0000755 0000000 0000000 00000012723 11524351240 026262  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/cgconfig                   0000755 0000000 0000000 00000012327 11524351237 027117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/single                     0000755 0000000 0000000 00000001207 11524351244 026612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/mdmonitor                  0000755 0000000 0000000 00000005013 11524351241 027335  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/restorecond                0000755 0000000 0000000 00000003427 11524351243 027665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/cpuspeed                   0000755 0000000 0000000 00000025442 11524351240 027144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/netfs                      0000755 0000000 0000000 00000012432 11524351242 026450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524351243 027512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/oddjobd                    0000755 0000000 0000000 00000004325 11524351242 026740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/ksmtuned                   0000755 0000000 0000000 00000003433 11524351241 027163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/sandbox                    0000755 0000000 0000000 00000003242 11524351243 026767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/killall                    0000755 0000000 0000000 00000001214 11524351241 026750  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/rdisc                      0000755 0000000 0000000 00000003027 11524351243 026436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/httpd                      0000755 0000000 0000000 00000006364 11524351240 026461  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/ntpd                       0000755 0000000 0000000 00000003603 11524351242 026276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/smartd                     0000755 0000000 0000000 00000005672 11524351244 026635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/nslcd                      0000755 0000000 0000000 00000003213 11524351242 026431  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/ntpdate                    0000755 0000000 0000000 00000003512 11524351242 026767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile13/mailserver/VM_configuration/etc/rc.d/init.d/microcode_ctl              0000755 0000000 0000000 00000002221 11524351241 030131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/mailserver/VM_configuration/etc/hosts                                  0000644 0000000 0000000 00000000267 11524351236 024461  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/mailserver/VM_configuration/etc/iproute2/                              0000777 0000000 0000000 00000000000 11524351236 025146  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/etc/iproute2/rt_dsfield                    0000644 0000000 0000000 00000000672 11524351236 027211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile13/mailserver/VM_configuration/etc/iproute2/rt_realms                     0000644 0000000 0000000 00000000160 11524351236 027052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile13/mailserver/VM_configuration/etc/iproute2/rt_scopes                     0000644 0000000 0000000 00000000134 11524351236 027064  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/mailserver/VM_configuration/etc/iproute2/ematch_map                    0000644 0000000 0000000 00000000073 11524351236 027163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/mailserver/VM_configuration/etc/iproute2/rt_tables                     0000644 0000000 0000000 00000000127 11524351236 027044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/mailserver/VM_configuration/etc/iproute2/rt_protos                     0000644 0000000 0000000 00000000475 11524351236 027126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/etc/nsswitch.conf                          0000644 0000000 0000000 00000003230 11524351236 026100  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/mailserver/VM_configuration/etc/fstab                                  0000644 0000000 0000000 00000001603 11524351235 024412  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile13/mailserver/VM_configuration/etc/sysctl.conf                            0000644 0000000 0000000 00000001466 11524351252 025566  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile13/mailserver/VM_configuration/etc/inittab                                0000644 0000000 0000000 00000001564 11524351236 024754  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile13/mailserver/VM_configuration/var/                                       0000777 0000000 0000000 00000000000 11524351253 023411  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/var/log/                                   0000777 0000000 0000000 00000000000 11524351254 024173  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/var/log/dmesg                              0000644 0000000 0000000 00000043370 11524351254 025220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007fffd000 (usable)
 BIOS-e820: 000000007fffd000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x7fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007fffd000
 0000000000 - 007fe00000 page 2M
 007fe00000 - 007fffd000 page 4k
kernel direct mapping tables up to 7fffd000 @ 8000-c000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000007fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000007ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000007fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000007ffffe00 00040
ACPI: SSDT 000000007fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000007fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000007fffd000
Bootmem setup node 0 0000000000000000-000000007fffd000
  NODE_DATA [000000000000a000 - 000000000003dfff]
  bootmap [000000000003e000 -  000000000004dfff] pages 10
(7 early reservations) ==> bootmem [0000000000 - 007fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000a000]          PGTABLE ==> [0000008000 - 000000a000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0001bfffff] PMD -> [ffff880002200000-ffff880003dfffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0007fffd
On node 0 totalpages: 524182
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3831 pages, LIFO batch:0
  DMA32 zone: 7112 pages used for memmap
  DMA32 zone: 513077 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 80000000 (gap: 80000000:7ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 516908
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2041384k/2097140k available (4935k kernel code, 412k absent, 55344k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 20971520 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116088.293:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 4012
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:28 UTC (1297116088)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
06:76:75:87:78:b0
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/mailserver/VM_configuration/boot/                                      0000777 0000000 0000000 00000000000 11524351235 023564  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/boot/grub/                                 0000777 0000000 0000000 00000000000 11524351235 024523  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/VM_configuration/boot/grub/grub.conf                        0000644 0000000 0000000 00000002217 11524351235 026327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/mailserver/VM_configuration/rpmpkgs.txt                                0000644 0000000 0000000 00000067153 11524351253 025055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/mailserver/VM_configuration/ifconfig.txt                               0000644 0000000 0000000 00000002324 11524351252 025142  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:4E  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:76 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:6780 (6.6 KiB)  TX bytes:829 (829.0 b)

eth1      Link encap:Ethernet  HWaddr 06:76:75:87:78:B0  
          inet addr:10.1.217.78  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::476:75ff:fe87:78b0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3982421 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4107142 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:673645661 (642.4 MiB)  TX bytes:4601452432 (4.2 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:752 errors:0 dropped:0 overruns:0 frame:0
          TX packets:752 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:73723 (71.9 KiB)  TX bytes:73723 (71.9 KiB)

                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/mailserver/VM_configuration/chkconfig.txt                              0000644 0000000 0000000 00000006535 11524351235 025322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/Software_Configuration/                                     0000777 0000000 0000000 00000000000 11524351235 024031  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/mailserver/Software_Configuration/dovecot.conf                         0000644 0000000 0000000 00000000654 11524351235 026344  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   base_dir = /var/run/dovecot/
ssl = no
disable_plaintext_auth = no
listen = *
log_path = /var/log/dovecot
mail_debug = yes
mail_location = dbox:/mailstore/dovecot/maildir/%u
mdbox_rotate_size = 2048
passdb {
  args = /etc/passwd.dovecot
  driver = passwd-file
}
protocols = imap
service auth {
  user = root
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  process_min_avail = 10
}
userdb {
  driver = passwd
}
                                                                                    Virtual_Configuration/tile13/infraserver/                                                           0000777 0000000 0000000 00000000000 11524351215 017523  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/                                          0000777 0000000 0000000 00000000000 11524351234 022775  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/proc/                                     0000777 0000000 0000000 00000000000 11524351234 023740  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/proc/cpuinfo                              0000644 0000000 0000000 00000001017 11524351233 025320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/infraserver/VM_configuration/proc/mounts                               0000644 0000000 0000000 00000001426 11524351234 025207  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=503592k,nr_inodes=125898,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1310,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1310,timeout=300,minproto=5,maxproto=5,indirect 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
                                                                                                                                                                                                                                          Virtual_Configuration/tile13/infraserver/VM_configuration/proc/swaps                                0000644 0000000 0000000 00000000144 11524351234 025013  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/infraserver/VM_configuration/proc/devices                              0000644 0000000 0000000 00000000567 11524351233 025310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile13/infraserver/VM_configuration/proc/modules                              0000644 0000000 0000000 00000003222 11524351234 025326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa034e000
stp 2107 1 bridge, Live 0xffffffffa0348000
llc 5608 2 bridge,stp, Live 0xffffffffa0340000
nfsd 302737 13 - Live 0xffffffffa02e7000
lockd 73984 1 nfsd, Live 0xffffffffa02cb000
nfs_acl 2677 1 nfsd, Live 0xffffffffa02c5000
auth_rpcgss 44862 1 nfsd, Live 0xffffffffa02b2000
exportfs 4202 1 nfsd, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 16 nfsd,lockd,nfs_acl,auth_rpcgss, Live 0xffffffffa024b000
ipv6 321209 65 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/infraserver/VM_configuration/proc/partitions                           0000644 0000000 0000000 00000000260 11524351234 026051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   62914560 vdb
 252       17   62910508 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile13/infraserver/VM_configuration/proc/meminfo                              0000644 0000000 0000000 00000002222 11524351234 025307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        1021520 kB
MemFree:           66512 kB
Buffers:            7720 kB
Cached:           770172 kB
SwapCached:            0 kB
Active:           179712 kB
Inactive:         681020 kB
Active(anon):      43296 kB
Inactive(anon):    42516 kB
Active(file):     136416 kB
Inactive(file):   638504 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               224 kB
Writeback:             0 kB
AnonPages:         82856 kB
Mapped:            20644 kB
Shmem:              2988 kB
Slab:              62548 kB
SReclaimable:      20188 kB
SUnreclaim:        42360 kB
KernelStack:        1632 kB
PageTables:        15408 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2558752 kB
Committed_AS:     313792 kB
VmallocTotal:   34359738367 kB
VmallocUsed:        7680 kB
VmallocChunk:   34359722652 kB
HardwareCorrupted:     0 kB
AnonHugePages:     24576 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     1040384 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/infraserver/VM_configuration/root/                                     0000777 0000000 0000000 00000000000 11524351234 023760  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/root/convert_to_vf.sh                     0000755 0000000 0000000 00000001135 11524351234 027170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/lspci.txt                                 0000644 0000000 0000000 00000001211 11524351233 024636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/infraserver/VM_configuration/df.txt                                    0000644 0000000 0000000 00000000401 11524351216 024116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3482912   9298024  28% /
tmpfs                   510760         0    510760   0% /dev/shm
/dev/vdb1             61923368  33417152  25360692  57% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/infraserver/VM_configuration/mount.txt                                 0000644 0000000 0000000 00000000657 11524351233 024703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
                                                                                 Virtual_Configuration/tile13/infraserver/VM_configuration/etc/                                      0000777 0000000 0000000 00000000000 11524351233 023547  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/                                 0000777 0000000 0000000 00000000000 11524351225 024376  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/                           0000777 0000000 0000000 00000000000 11524351233 025306  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests          0000755 0000000 0000000 00000017172 11524351226 030502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                 0000755 0000000 0000000 00000004325 11524351226 027120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd              0000755 0000000 0000000 00000006014 11524351226 027706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                0000755 0000000 0000000 00000012327 11524351230 027302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd               0000755 0000000 0000000 00000005222 11524351231 027466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                    0000755 0000000 0000000 00000010671 11524351232 026472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                   0000755 0000000 0000000 00000006364 11524351226 026647  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables               0000755 0000000 0000000 00000020716 11524351230 027412  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                    0000755 0000000 0000000 00000004731 11524351227 026477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S30nfs                     0000755 0000000 0000000 00000013536 11524351232 026313  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon            0000755 0000000 0000000 00000004754 11524351225 030051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip               0000755 0000000 0000000 00000001364 11524351232 027511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                   0000755 0000000 0000000 00000003027 11524351230 026627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                  0000755 0000000 0000000 00000006743 11524351232 027032  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                   0000755 0000000 0000000 00000010777 11524351227 026642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus              0000755 0000000 0000000 00000004230 11524351231 027652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                   0000755 0000000 0000000 00000006302 11524351227 026611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                     0000755 0000000 0000000 00000004236 11524351233 026326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                 0000755 0000000 0000000 00000004031 11524351231 027134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance              0000755 0000000 0000000 00000003521 11524351231 027617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                 0000755 0000000 0000000 00000006050 11524351231 027171  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                 0000755 0000000 0000000 00000002363 11524351230 027240  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger              0000755 0000000 0000000 00000004054 11524351225 027655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor               0000755 0000000 0000000 00000005013 11524351231 027526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                   0000755 0000000 0000000 00000003213 11524351227 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                 0000755 0000000 0000000 00000003512 11524351227 027162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                    0000755 0000000 0000000 00000003603 11524351227 026470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                  0000755 0000000 0000000 00000011277 11524351226 027014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S10network                 0000755 0000000 0000000 00000014466 11524351230 027215  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                 0000755 0000000 0000000 00000004326 11524351230 027222  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                  0000755 0000000 0000000 00000006462 11524351230 026774  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                   0000755 0000000 0000000 00000027662 11524351231 026650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                    0000755 0000000 0000000 00000006445 11524351227 026373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon               0000755 0000000 0000000 00000003245 11524351232 027456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K60crond                   0000755 0000000 0000000 00000005445 11524351226 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                   0000755 0000000 0000000 00000005522 11524351226 026632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl           0000755 0000000 0000000 00000002221 11524351230 030313  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd               0000755 0000000 0000000 00000004010 11524351226 027471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                    0000755 0000000 0000000 00000004723 11524351232 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                  0000755 0000000 0000000 00000003024 11524351226 026762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                   0000755 0000000 0000000 00000003275 11524351231 026610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                0000755 0000000 0000000 00000025442 11524351231 027334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post               0000755 0000000 0000000 00000004370 11524351232 027454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S99local                   0000755 0000000 0000000 00000000334 11524351233 026627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                 0000755 0000000 0000000 00000006675 11524351231 027173  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole              0000755 0000000 0000000 00000005650 11524351226 027671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor            0000555 0000000 0000000 00000004612 11524351230 030060  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                  0000755 0000000 0000000 00000007234 11524351232 027033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                0000755 0000000 0000000 00000003433 11524351233 027365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                  0000755 0000000 0000000 00000005672 11524351225 027011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                   0000755 0000000 0000000 00000003254 11524351232 026624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S55autobench               0000755 0000000 0000000 00000005063 11524351232 027500  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                   0000755 0000000 0000000 00000012432 11524351231 026641  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                 0000755 0000000 0000000 00000007414 11524351226 027212  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                0000755 0000000 0000000 00000020557 11524351230 027327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond             0000755 0000000 0000000 00000003427 11524351227 030062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/rc3.d/K05atd                     0000755 0000000 0000000 00000004112 11524351226 026260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/                          0000777 0000000 0000000 00000000000 11524351225 025563  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/network                   0000755 0000000 0000000 00000014466 11524351222 027206  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/gfs2                      0000755 0000000 0000000 00000006445 11524351220 026352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/sysstat                   0000755 0000000 0000000 00000002363 11524351225 027223  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/saslauthd                 0000755 0000000 0000000 00000004010 11524351224 027467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/messagebus                0000755 0000000 0000000 00000004230 11524351222 027637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/autobench                 0000755 0000000 0000000 00000005063 11524351217 027462  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/atd                       0000755 0000000 0000000 00000004112 11524351217 026254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/mcelogd                   0000755 0000000 0000000 00000003535 11524351222 027122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/auditd                    0000755 0000000 0000000 00000006462 11524351217 026770  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/certmonger                0000755 0000000 0000000 00000004054 11524351220 027650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/irqbalance                0000755 0000000 0000000 00000003521 11524351221 027603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/acpid                     0000755 0000000 0000000 00000003275 11524351217 026575  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/nscd                      0000755 0000000 0000000 00000004723 11524351223 026440  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                 0000755 0000000 0000000 00000005222 11524351224 027450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/nfs                       0000755 0000000 0000000 00000013536 11524351222 026300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/sssd                      0000755 0000000 0000000 00000004731 11524351225 026466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/crond                     0000755 0000000 0000000 00000005445 11524351220 026615  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/ip6tables                 0000755 0000000 0000000 00000020716 11524351221 027400  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/autofs                    0000755 0000000 0000000 00000007234 11524351220 027007  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/sshd                      0000755 0000000 0000000 00000010671 11524351225 026453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/ksm                       0000755 0000000 0000000 00000004236 11524351221 026300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/libvirt-guests            0000755 0000000 0000000 00000017172 11524351222 030475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/avahi-daemon              0000755 0000000 0000000 00000004754 11524351220 030043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/ypbind                    0000755 0000000 0000000 00000011277 11524351225 027002  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/psacct                    0000755 0000000 0000000 00000003024 11524351223 026757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/xinetd                    0000755 0000000 0000000 00000006743 11524351225 027012  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/nfslock                   0000755 0000000 0000000 00000006675 11524351223 027160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/cgred                     0000755 0000000 0000000 00000006302 11524351220 026565  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/migrateip                 0000755 0000000 0000000 00000001364 11524351222 027467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/udev-post                 0000755 0000000 0000000 00000004370 11524351225 027437  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/haldaemon                 0000755 0000000 0000000 00000003245 11524351220 027434  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/ipsec                     0000755 0000000 0000000 00000010777 11524351221 026620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/rpcbind                   0000755 0000000 0000000 00000004031 11524351224 027123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/rhnsd                     0000755 0000000 0000000 00000005522 11524351224 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/functions                 0000644 0000000 0000000 00000042767 11524351220 027525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/kdump                     0000755 0000000 0000000 00000027662 11524351221 026636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/postfix                   0000755 0000000 0000000 00000007414 11524351223 027205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/iptables                  0000755 0000000 0000000 00000020557 11524351221 027315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/rsyslog                   0000755 0000000 0000000 00000004326 11524351224 027213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/netconsole                0000755 0000000 0000000 00000005650 11524351222 027661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/rpcgssd                   0000755 0000000 0000000 00000006050 11524351224 027152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/abrtd                     0000755 0000000 0000000 00000003254 11524351217 026606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor              0000555 0000000 0000000 00000004612 11524351222 030050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/halt                      0000755 0000000 0000000 00000012723 11524351221 026436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/cgconfig                  0000755 0000000 0000000 00000012327 11524351220 027264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/single                    0000755 0000000 0000000 00000001207 11524351224 026765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/mdmonitor                 0000755 0000000 0000000 00000005013 11524351222 027511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/restorecond               0000755 0000000 0000000 00000003427 11524351224 030041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/cpuspeed                  0000755 0000000 0000000 00000025442 11524351220 027317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/netfs                     0000755 0000000 0000000 00000012432 11524351222 026623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                0000755 0000000 0000000 00000006014 11524351224 027666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/oddjobd                   0000755 0000000 0000000 00000004325 11524351223 027114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/ksmtuned                  0000755 0000000 0000000 00000003433 11524351221 027336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/sandbox                   0000755 0000000 0000000 00000003242 11524351224 027143  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/killall                   0000755 0000000 0000000 00000001214 11524351221 027123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/rdisc                     0000755 0000000 0000000 00000003027 11524351223 026611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/httpd                     0000755 0000000 0000000 00000006364 11524351221 026635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/ntpd                      0000755 0000000 0000000 00000003603 11524351223 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/smartd                    0000755 0000000 0000000 00000005672 11524351225 027011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/nslcd                     0000755 0000000 0000000 00000003213 11524351223 026605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/ntpdate                   0000755 0000000 0000000 00000003512 11524351223 027143  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile13/infraserver/VM_configuration/etc/rc.d/init.d/microcode_ctl             0000755 0000000 0000000 00000002221 11524351222 030305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/infraserver/VM_configuration/etc/hosts                                 0000644 0000000 0000000 00000000236 11524351216 024630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile13/infraserver/VM_configuration/etc/iproute2/                             0000777 0000000 0000000 00000000000 11524351217 025322  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/etc/iproute2/rt_dsfield                   0000644 0000000 0000000 00000000672 11524351216 027364  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile13/infraserver/VM_configuration/etc/iproute2/rt_realms                    0000644 0000000 0000000 00000000160 11524351217 027226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile13/infraserver/VM_configuration/etc/iproute2/rt_scopes                    0000644 0000000 0000000 00000000134 11524351217 027240  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile13/infraserver/VM_configuration/etc/iproute2/ematch_map                   0000644 0000000 0000000 00000000073 11524351216 027336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile13/infraserver/VM_configuration/etc/iproute2/rt_tables                    0000644 0000000 0000000 00000000127 11524351217 027220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile13/infraserver/VM_configuration/etc/iproute2/rt_protos                    0000644 0000000 0000000 00000000475 11524351217 027302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/etc/nsswitch.conf                         0000644 0000000 0000000 00000003230 11524351217 026254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile13/infraserver/VM_configuration/etc/fstab                                 0000644 0000000 0000000 00000001603 11524351216 024566  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile13/infraserver/VM_configuration/etc/sysctl.conf                           0000644 0000000 0000000 00000001466 11524351233 025742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile13/infraserver/VM_configuration/etc/inittab                               0000644 0000000 0000000 00000001564 11524351216 025127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile13/infraserver/VM_configuration/var/                                      0000777 0000000 0000000 00000000000 11524351234 023565  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/var/log/                                  0000777 0000000 0000000 00000000000 11524351234 024346  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/var/log/dmesg                             0000644 0000000 0000000 00000043364 11524351234 025376  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003fffd000 (usable)
 BIOS-e820: 000000003fffd000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x3fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000003fffd000
 0000000000 - 003fe00000 page 2M
 003fe00000 - 003fffd000 page 4k
kernel direct mapping tables up to 3fffd000 @ 8000-b000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000003fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000003ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000003fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000003ffffe00 00040
ACPI: SSDT 000000003fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000003fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000003fffd000
Bootmem setup node 0 0000000000000000-000000003fffd000
  NODE_DATA [0000000000009000 - 000000000003cfff]
  bootmap [000000000003d000 -  0000000000044fff] pages 8
(7 early reservations) ==> bootmem [0000000000 - 003fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0000dfffff] PMD -> [ffff880002200000-ffff880002ffffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0003fffd
On node 0 totalpages: 262038
  DMA zone: 56 pages used for memmap
  DMA zone: 105 pages reserved
  DMA zone: 3832 pages, LIFO batch:0
  DMA32 zone: 3528 pages used for memmap
  DMA32 zone: 254517 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 40000000 (gap: 40000000:bffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 258349
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 1007148k/1048564k available (4935k kernel code, 412k absent, 41004k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 10485760 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116129.295:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 1992
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:02:08 UTC (1297116128)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
ba:e9:e0:38:b4:13
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/infraserver/VM_configuration/boot/                                     0000777 0000000 0000000 00000000000 11524351216 023740  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/boot/grub/                                0000777 0000000 0000000 00000000000 11524351216 024677  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/VM_configuration/boot/grub/grub.conf                       0000644 0000000 0000000 00000002217 11524351216 026503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile13/infraserver/VM_configuration/rpmpkgs.txt                               0000644 0000000 0000000 00000067243 11524351234 025231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
hivex-1.2.2-1.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
fcgi-2.4.0-14.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
scrub-2.2-1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
fcgi-devel-2.4.0-14.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
libguestfs-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile13/infraserver/VM_configuration/ifconfig.txt                              0000644 0000000 0000000 00000002344 11524351233 025320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:4D  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:275 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:27047 (26.4 KiB)  TX bytes:920 (920.0 b)

eth1      Link encap:Ethernet  HWaddr BA:E9:E0:38:B4:13  
          inet addr:10.1.217.77  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::b8e9:e0ff:fe38:b413/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:62935720 errors:0 dropped:0 overruns:0 frame:0
          TX packets:117088088 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4429615276 (4.1 GiB)  TX bytes:168935593647 (157.3 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3713 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3713 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:381653 (372.7 KiB)  TX bytes:381653 (372.7 KiB)

                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile13/infraserver/VM_configuration/chkconfig.txt                             0000644 0000000 0000000 00000006531 11524351216 025472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                       Virtual_Configuration/tile13/infraserver/Software_Configuration/                                    0000777 0000000 0000000 00000000000 11524351214 024203  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/Software_Configuration/exports                             0000644 0000000 0000000 00000000101 11524351214 025616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /support-download *(rw,no_subtree_check,crossmnt,no_root_squash)
                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile13/infraserver/Software_Configuration/httpd/                              0000777 0000000 0000000 00000000000 11524351215 025327  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/Software_Configuration/httpd/conf.d/                       0000777 0000000 0000000 00000000000 11524351215 026476  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/Software_Configuration/httpd/conf.d/manual.conf            0000644 0000000 0000000 00000000447 11524351215 030623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This configuration file allows the manual to be accessed at 
# http://localhost/manual/
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"

<Directory "/var/www/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
                                                                                                                                                                                                                         Virtual_Configuration/tile13/infraserver/Software_Configuration/httpd/conf.d/php.conf               0000644 0000000 0000000 00000001242 11524351215 030127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile13/infraserver/Software_Configuration/httpd/conf.d/welcome.conf           0000644 0000000 0000000 00000000453 11524351215 030776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # 
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

                                                                                                                                                                                                                     Virtual_Configuration/tile13/infraserver/Software_Configuration/httpd/conf.d/README                 0000644 0000000 0000000 00000000610 11524351215 027347  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
This directory holds Apache 2.0 module-specific configuration files;
any files in this directory which have the ".conf" extension will be
processed as Apache configuration files.

Files are processed in alphabetical order, so if using configuration
directives which depend on, say, mod_perl being loaded, ensure that
these are placed in a filename later in the sort order than "perl.conf".

                                                                                                                        Virtual_Configuration/tile13/infraserver/Software_Configuration/httpd/conf/                         0000777 0000000 0000000 00000000000 11524351215 026254  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile13/infraserver/Software_Configuration/httpd/conf/httpd.conf               0000644 0000000 0000000 00000103212 11524351215 030241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# Don't give away too much information about all the subcomponents
# we are running.  Comment out this line if you don't mind remote sites
# finding out what major optional modules you are running
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.  Note the PIDFILE variable in
# /etc/sysconfig/httpd must be set appropriately if this location is
# changed.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 60

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive Off

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit 10240
MaxClients 10240
MaxRequestsPerChild  4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         4
MaxClients 10240
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 81

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

#
# The following modules are not loaded by default:
#
#LoadModule asis_module modules/mod_asis.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
#

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group #-1 on these systems!
#
User apache
Group apache

### Section 2: 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
#ServerName www.example.com:80

#
# UseCanonicalName: Determines how Apache constructs self-referencing 
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.  This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir disabled

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disabled" line above, and uncomment
    # the following line instead:
    # 
    #UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is 
# used to deliver files (assuming that the OS supports it). 
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
#
#EnableSendfile off

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
# requires the mod_logio module to be loaded.
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access_log common

#
# If you would like to have separate agent and referer logfiles, uncomment
# the following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# WebDAV module configuration section.
# 
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Directives controlling the display of server-generated directory listings.
#

#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes.  These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

#
# DefaultLanguage and AddLanguage allows you to specify the language of 
# a document. You can then use content negotiation to give a browser a 
# file in a language the user can understand.
#
# Specify a default language. This means that all data
# going out without a specific language tag (see below) will 
# be marked with this one. You probably do NOT want to set
# this unless you are sure it is correct for all cases.
#
# * It is generally better to not mark a page as 
# * being a certain language than marking it with the wrong
# * language!
#
# DefaultLanguage nl
#
# Note 1: The suffix does not have to be the same as the language
# keyword --- those with documents in Polish (whose net-standard
# language code is pl) may wish to use "AddLanguage pl .po" to
# avoid the ambiguity with the common suffix for perl scripts.
#
# Note 2: The example entries below illustrate that in some cases 
# the two character 'Language' abbreviation is not identical to 
# the two character 'Country' code for its country,
# E.g. 'Danmark/dk' versus 'Danish/da'.
#
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
# specifier. There is 'work in progress' to fix this and get
# the reference data for rfc1766 cleaned up.
#
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the 
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz

#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
#   MIME-types for downloading Certificates and CRLs
#
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
#  to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#    ErrorDocument 410 /error/HTTP_GONE.html.var
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Proxy>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
#   CacheEnable disk /
#   CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#

#</IfModule>
# End of proxy directives.

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>














Include conf/fcgi.conf
                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile13/infraserver/Software_Configuration/httpd/conf/fcgi.conf                0000644 0000000 0000000 00000000607 11524351214 030031  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   LoadModule fastcgi_module modules/mod_fastcgi.so
ScriptAlias /fcgi-bin/ "/var/www/fcgi-bin/"
FastCgiIpcDir /etc/httpd/fastcgi
<Directory "/var/www/fcgi-bin">
    AllowOverride None
    Options +ExecCGI -Includes
    SetHandler fastcgi-script
    Order allow,deny
    Allow from all
 </Directory>
 AddHandler fastcgi-script fcgi
 FastCgiServer /var/www/fcgi-bin/besim_fcgi.fcgi -processes 50
                                                                                                                         Virtual_Configuration/tile13/infraserver/Software_Configuration/httpd/conf/magic                    0000644 0000000 0000000 00000031523 11524351215 027257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Magic data for mod_mime_magic Apache module (originally for file(1) command)
# The module is described in /manual/mod/mod_mime_magic.html
#
# The format is 4-5 columns:
#    Column #1: byte number to begin checking from, ">" indicates continuation
#    Column #2: type of data to match
#    Column #3: contents of data to match
#    Column #4: MIME type of result
#    Column #5: MIME encoding of result (optional)

#------------------------------------------------------------------------------
# Localstuff:  file(1) magic for locally observed files
# Add any locally observed files here.

#------------------------------------------------------------------------------
# end local stuff
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Java

0	short		0xcafe
>2	short		0xbabe		application/java

#------------------------------------------------------------------------------
# audio:  file(1) magic for sound formats
#
# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
#

# Sun/NeXT audio data
0	string		.snd
>12	belong		1		audio/basic
>12	belong		2		audio/basic
>12	belong		3		audio/basic
>12	belong		4		audio/basic
>12	belong		5		audio/basic
>12	belong		6		audio/basic
>12	belong		7		audio/basic

>12	belong		23		audio/x-adpcm

# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
# (0x0064732E in little-endian encoding).
0	lelong		0x0064732E	
>12	lelong		1		audio/x-dec-basic
>12	lelong		2		audio/x-dec-basic
>12	lelong		3		audio/x-dec-basic
>12	lelong		4		audio/x-dec-basic
>12	lelong		5		audio/x-dec-basic
>12	lelong		6		audio/x-dec-basic
>12	lelong		7		audio/x-dec-basic
#                                       compressed (G.721 ADPCM)
>12	lelong		23		audio/x-dec-adpcm

# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
#					AIFF audio data
8	string		AIFF		audio/x-aiff	
#					AIFF-C audio data
8	string		AIFC		audio/x-aiff	
#					IFF/8SVX audio data
8	string		8SVX		audio/x-aiff	

# Creative Labs AUDIO stuff
#					Standard MIDI data
0	string	MThd			audio/unknown	
#>9 	byte	>0			(format %d)
#>11	byte	>1			using %d channels
#					Creative Music (CMF) data
0	string	CTMF			audio/unknown	
#					SoundBlaster instrument data
0	string	SBI			audio/unknown	
#					Creative Labs voice data
0	string	Creative\ Voice\ File	audio/unknown	
## is this next line right?  it came this way...
#>19	byte	0x1A
#>23	byte	>0			- version %d
#>22	byte	>0			\b.%d

# [GRR 950115:  is this also Creative Labs?  Guessing that first line
#  should be string instead of unknown-endian long...]
#0	long		0x4e54524b	MultiTrack sound data
#0	string		NTRK		MultiTrack sound data
#>4	long		x		- version %ld

# Microsoft WAVE format (*.wav)
# [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
#					Microsoft RIFF
0	string		RIFF		audio/unknown
#					- WAVE format
>8	string		WAVE		audio/x-wav
# MPEG audio.
0   beshort&0xfff0  0xfff0  audio/mpeg
# C64 SID Music files, from Linus Walleij <triad@df.lth.se>
0   string      PSID        audio/prs.sid

#------------------------------------------------------------------------------
# c-lang:  file(1) magic for C programs or various scripts
#

# XPM icons (Greg Roelofs, newt@uchicago.edu)
# ideally should go into "images", but entries below would tag XPM as C source
0	string		/*\ XPM		image/x-xbm	7bit

# this first will upset you if you're a PL/1 shop... (are there any left?)
# in which case rm it; ascmagic will catch real C programs
#					C or REXX program text
0	string		/*		text/plain
#					C++ program text
0	string		//		text/plain

#------------------------------------------------------------------------------
# compress:  file(1) magic for pure-compression formats (no archives)
#
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
#
# Formats for various forms of compressed data
# Formats for "compress" proper have been moved into "compress.c",
# because it tries to uncompress it to figure out what's inside.

# standard unix compress
0	string		\037\235	application/octet-stream	x-compress

# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
0       string          \037\213        application/octet-stream	x-gzip

# According to gzip.h, this is the correct byte order for packed data.
0	string		\037\036	application/octet-stream
#
# This magic number is byte-order-independent.
#
0	short		017437		application/octet-stream

# XXX - why *two* entries for "compacted data", one of which is
# byte-order independent, and one of which is byte-order dependent?
#
# compacted data
0	short		0x1fff		application/octet-stream
0	string		\377\037	application/octet-stream
# huf output
0	short		0145405		application/octet-stream

# Squeeze and Crunch...
# These numbers were gleaned from the Unix versions of the programs to
# handle these formats.  Note that I can only uncrunch, not crunch, and
# I didn't have a crunched file handy, so the crunch number is untested.
#				Keith Waclena <keith@cerberus.uchicago.edu>
#0	leshort		0x76FF		squeezed data (CP/M, DOS)
#0	leshort		0x76FE		crunched data (CP/M, DOS)

# Freeze
#0	string		\037\237	Frozen file 2.1
#0	string		\037\236	Frozen file 1.0 (or gzip 0.5)

# lzh?
#0	string		\037\240	LZH compressed data

#------------------------------------------------------------------------------
# frame:  file(1) magic for FrameMaker files
#
# This stuff came on a FrameMaker demo tape, most of which is
# copyright, but this file is "published" as witness the following:
#
0	string		\<MakerFile	application/x-frame
0	string		\<MIFFile	application/x-frame
0	string		\<MakerDictionary	application/x-frame
0	string		\<MakerScreenFon	application/x-frame
0	string		\<MML		application/x-frame
0	string		\<Book		application/x-frame
0	string		\<Maker		application/x-frame

#------------------------------------------------------------------------------
# html:  file(1) magic for HTML (HyperText Markup Language) docs
#
# from Daniel Quinlan <quinlan@yggdrasil.com>
# and Anna Shergold <anna@inext.co.uk>
#
0   string      \<!DOCTYPE\ HTML    text/html
0   string      \<!doctype\ html    text/html
0   string      \<HEAD      text/html
0   string      \<head      text/html
0   string      \<TITLE     text/html
0   string      \<title     text/html
0   string      \<html      text/html
0   string      \<HTML      text/html
0   string      \<!--       text/html
0   string      \<h1        text/html
0   string      \<H1        text/html

# XML eXtensible Markup Language, from Linus Walleij <triad@df.lth.se>
0   string      \<?xml      text/xml

#------------------------------------------------------------------------------
# images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
#
# originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
# additions by janl@ifi.uio.no as well as others. Jan also suggested
# merging several one- and two-line files into here.
#
# XXX - byte order for GIF and TIFF fields?
# [GRR:  TIFF allows both byte orders; GIF is probably little-endian]
#

# [GRR:  what the hell is this doing in here?]
#0	string		xbtoa		btoa'd file

# PBMPLUS
#					PBM file
0	string		P1		image/x-portable-bitmap	7bit
#					PGM file
0	string		P2		image/x-portable-greymap	7bit
#					PPM file
0	string		P3		image/x-portable-pixmap	7bit
#					PBM "rawbits" file
0	string		P4		image/x-portable-bitmap
#					PGM "rawbits" file
0	string		P5		image/x-portable-greymap
#					PPM "rawbits" file
0	string		P6		image/x-portable-pixmap

# NIFF (Navy Interchange File Format, a modification of TIFF)
# [GRR:  this *must* go before TIFF]
0	string		IIN1		image/x-niff

# TIFF and friends
#					TIFF file, big-endian
0	string		MM		image/tiff
#					TIFF file, little-endian
0	string		II		image/tiff

# possible GIF replacements; none yet released!
# (Greg Roelofs, newt@uchicago.edu)
#
# GRR 950115:  this was mine ("Zip GIF"):
#					ZIF image (GIF+deflate alpha)
0	string		GIF94z		image/unknown
#
# GRR 950115:  this is Jeremy Wohl's Free Graphics Format (better):
#					FGF image (GIF+deflate beta)
0	string		FGF95a		image/unknown
#
# GRR 950115:  this is Thomas Boutell's Portable Bitmap Format proposal
# (best; not yet implemented):
#					PBF image (deflate compression)
0	string		PBF		image/unknown

# GIF
0	string		GIF		image/gif

# JPEG images
0	beshort		0xffd8		image/jpeg

# PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
0	string		BM		image/bmp
#>14	byte		12		(OS/2 1.x format)
#>14	byte		64		(OS/2 2.x format)
#>14	byte		40		(Windows 3.x format)
#0	string		IC		icon
#0	string		PI		pointer
#0	string		CI		color icon
#0	string		CP		color pointer
#0	string		BA		bitmap array


#------------------------------------------------------------------------------
# lisp:  file(1) magic for lisp programs
#
# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
0	string	;;			text/plain	8bit
# Emacs 18 - this is always correct, but not very magical.
0	string	\012(			application/x-elc
# Emacs 19
0	string	;ELC\023\000\000\000	application/x-elc

#------------------------------------------------------------------------------
# mail.news:  file(1) magic for mail and news
#
# There are tests to ascmagic.c to cope with mail and news.
0	string		Relay-Version: 	message/rfc822	7bit
0	string		#!\ rnews	message/rfc822	7bit
0	string		N#!\ rnews	message/rfc822	7bit
0	string		Forward\ to 	message/rfc822	7bit
0	string		Pipe\ to 	message/rfc822	7bit
0	string		Return-Path:	message/rfc822	7bit
0	string		Path:		message/news	8bit
0	string		Xref:		message/news	8bit
0	string		From:		message/rfc822	7bit
0	string		Article 	message/news	8bit
#------------------------------------------------------------------------------
# msword: file(1) magic for MS Word files
#
# Contributor claims:
# Reversed-engineered MS Word magic numbers
#

0	string		\376\067\0\043			application/msword
0	string		\333\245-\0\0\0			application/msword

# disable this one because it applies also to other
# Office/OLE documents for which msword is not correct. See PR#2608.
#0	string		\320\317\021\340\241\261	application/msword



#------------------------------------------------------------------------------
# printer:  file(1) magic for printer-formatted files
#

# PostScript
0	string		%!		application/postscript
0	string		\004%!		application/postscript

# Acrobat
# (due to clamen@cs.cmu.edu)
0	string		%PDF-		application/pdf

#------------------------------------------------------------------------------
# sc:  file(1) magic for "sc" spreadsheet
#
38	string		Spreadsheet	application/x-sc

#------------------------------------------------------------------------------
# tex:  file(1) magic for TeX files
#
# XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
#
# From <conklin@talisman.kaleida.com>

# Although we may know the offset of certain text fields in TeX DVI
# and font files, we can't use them reliably because they are not
# zero terminated. [but we do anyway, christos]
0	string		\367\002	application/x-dvi
#0	string		\367\203	TeX generic font data
#0	string		\367\131	TeX packed font data
#0	string		\367\312	TeX virtual font data
#0	string		This\ is\ TeX,	TeX transcript text	
#0	string		This\ is\ METAFONT,	METAFONT transcript text

# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data.  The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
#2	string		\000\021	TeX font metric data
#2	string		\000\022	TeX font metric data
#>34	string		>\0		(%s)

# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
#0	string		\\input\ texinfo	Texinfo source text
#0	string		This\ is\ Info\ file	GNU Info text

# correct TeX magic for Linux (and maybe more)
# from Peter Tobias (tobias@server.et-inf.fho-emden.de)
#
0	leshort		0x02f7		application/x-dvi

# RTF - Rich Text Format
0	string		{\\rtf		application/rtf

#------------------------------------------------------------------------------
# animation:  file(1) magic for animation/movie formats
#
# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
#						MPEG file
0	string		\000\000\001\263	video/mpeg
#
# The contributor claims:
#   I couldn't find a real magic number for these, however, this
#   -appears- to work.  Note that it might catch other files, too,
#   so BE CAREFUL!
#
# Note that title and author appear in the two 20-byte chunks
# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
# 255 (hex FF)! DL format SUCKS BIG ROCKS.
#
#						DL file version 1 , medium format (160x100, 4 images/screen)
0	byte		1			video/unknown
0	byte		2			video/unknown
# Quicktime video, from Linus Walleij <triad@df.lth.se>
# from Apple quicktime file format documentation.
4   string      moov        video/quicktime
4   string      mdat        video/quicktime

# PNG [Portable Network Graphics, or "PNG's Not GIF"] images
#
# 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
0   string      \211PNG\015      image/png
                                                                                                                                                                             Virtual_Configuration/tile2/                                                                        0000755 0000000 0000000 00000000000 11524351550 015111  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/                                                             0000777 0000000 0000000 00000000000 11524351472 017264  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/                                            0000777 0000000 0000000 00000000000 11524351510 022526  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/proc/                                       0000777 0000000 0000000 00000000000 11524351510 023471  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/proc/cpuinfo                                0000644 0000000 0000000 00000001017 11524351507 025060  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/idleserver/VM_configuration/proc/mounts                                 0000644 0000000 0000000 00000001356 11524351510 024742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=503592k,nr_inodes=125898,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1268,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1268,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/idleserver/VM_configuration/proc/swaps                                  0000644 0000000 0000000 00000000144 11524351510 024544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/idleserver/VM_configuration/proc/devices                                0000644 0000000 0000000 00000000567 11524351507 025050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile2/idleserver/VM_configuration/proc/modules                                0000644 0000000 0000000 00000002547 11524351510 025070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02a5000
stp 2107 1 bridge, Live 0xffffffffa029f000
llc 5608 2 bridge,stp, Live 0xffffffffa0297000
autofs4 27683 3 - Live 0xffffffffa028a000
sunrpc 241630 1 - Live 0xffffffffa0237000
ipv6 321209 38 - Live 0xffffffffa01a2000
dm_mirror 14003 0 - Live 0xffffffffa0176000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa016d000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0164000
ppdev 8695 0 - Live 0xffffffffa0156000
parport_pc 22944 0 - Live 0xffffffffa0149000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa0137000
sg 30186 0 - Live 0xffffffffa0128000
virtio_net 15665 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Virtual_Configuration/tile2/idleserver/VM_configuration/proc/partitions                             0000644 0000000 0000000 00000000260 11524351510 025602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile2/idleserver/VM_configuration/proc/meminfo                                0000644 0000000 0000000 00000002222 11524351510 025040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        1021520 kB
MemFree:          782676 kB
Buffers:           16500 kB
Cached:            97612 kB
SwapCached:            0 kB
Active:            92984 kB
Inactive:          69292 kB
Active(anon):      48296 kB
Inactive(anon):        0 kB
Active(file):      44688 kB
Inactive(file):    69292 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               208 kB
Writeback:             0 kB
AnonPages:         48140 kB
Mapped:            18856 kB
Shmem:               160 kB
Slab:              61208 kB
SReclaimable:      24732 kB
SUnreclaim:        36476 kB
KernelStack:         984 kB
PageTables:         3016 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2558752 kB
Committed_AS:     152264 kB
VmallocTotal:   34359738367 kB
VmallocUsed:        7592 kB
VmallocChunk:   34359726760 kB
HardwareCorrupted:     0 kB
AnonHugePages:      6144 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     1040384 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/idleserver/VM_configuration/root/                                       0000777 0000000 0000000 00000000000 11524351510 023511  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/root/convert_to_vf.sh                       0000755 0000000 0000000 00000001135 11524351510 026721  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/lspci.txt                                   0000644 0000000 0000000 00000001046 11524351507 024404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile2/idleserver/VM_configuration/df.txt                                      0000644 0000000 0000000 00000000401 11524351473 023657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3617648   9163288  29% /
tmpfs                   510760         0    510760   0% /dev/shm
/dev/vdb1             20642412    176072  19417768   1% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/idleserver/VM_configuration/mount.txt                                   0000644 0000000 0000000 00000000612 11524351507 024432  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile2/idleserver/VM_configuration/etc/                                        0000777 0000000 0000000 00000000000 11524351507 023307  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/                                   0000777 0000000 0000000 00000000000 11524351501 024127  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/                             0000777 0000000 0000000 00000000000 11524351507 025046  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests            0000755 0000000 0000000 00000017172 11524351502 030233  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                   0000755 0000000 0000000 00000004325 11524351502 026651  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                0000755 0000000 0000000 00000006014 11524351503 027440  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                  0000755 0000000 0000000 00000012327 11524351504 027042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                 0000755 0000000 0000000 00000005222 11524351505 027226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                      0000755 0000000 0000000 00000010671 11524351506 026232  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                     0000755 0000000 0000000 00000006364 11524351502 026400  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                 0000755 0000000 0000000 00000020716 11524351504 027152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                      0000755 0000000 0000000 00000004731 11524351503 026230  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon              0000755 0000000 0000000 00000004754 11524351502 027603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                 0000755 0000000 0000000 00000001364 11524351506 027251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                     0000755 0000000 0000000 00000003027 11524351504 026367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                    0000755 0000000 0000000 00000006743 11524351506 026572  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                     0000755 0000000 0000000 00000010777 11524351503 026373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                0000755 0000000 0000000 00000004230 11524351505 027412  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                     0000755 0000000 0000000 00000006302 11524351503 026342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                       0000755 0000000 0000000 00000004236 11524351506 026065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                   0000755 0000000 0000000 00000004031 11524351505 026674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                0000755 0000000 0000000 00000003521 11524351505 027357  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                   0000755 0000000 0000000 00000006050 11524351505 026731  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                   0000755 0000000 0000000 00000002363 11524351504 027000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                0000755 0000000 0000000 00000004054 11524351502 027407  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                 0000755 0000000 0000000 00000005013 11524351505 027266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                     0000755 0000000 0000000 00000003213 11524351504 026362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                   0000755 0000000 0000000 00000003512 11524351503 026713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                      0000755 0000000 0000000 00000003603 11524351503 026221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                    0000755 0000000 0000000 00000011277 11524351503 026546  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S10network                   0000755 0000000 0000000 00000014466 11524351504 026755  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                   0000755 0000000 0000000 00000004326 11524351505 026763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                    0000755 0000000 0000000 00000006462 11524351504 026534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                     0000755 0000000 0000000 00000027662 11524351505 026410  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                      0000755 0000000 0000000 00000006445 11524351503 026124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                 0000755 0000000 0000000 00000003245 11524351506 027216  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K60crond                     0000755 0000000 0000000 00000005445 11524351503 026362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                     0000755 0000000 0000000 00000005522 11524351502 026363  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl             0000755 0000000 0000000 00000002221 11524351504 030053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                 0000755 0000000 0000000 00000004010 11524351502 027222  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                       0000755 0000000 0000000 00000013536 11524351503 026043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                      0000755 0000000 0000000 00000004723 11524351506 026212  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                    0000755 0000000 0000000 00000003024 11524351502 026513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                     0000755 0000000 0000000 00000003275 11524351506 026351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                  0000755 0000000 0000000 00000025442 11524351505 027074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                 0000755 0000000 0000000 00000004370 11524351506 027214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S99local                     0000755 0000000 0000000 00000000334 11524351507 026367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                   0000755 0000000 0000000 00000006675 11524351505 026733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                0000755 0000000 0000000 00000005650 11524351503 027423  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor              0000555 0000000 0000000 00000004612 11524351504 027620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                    0000755 0000000 0000000 00000007234 11524351506 026573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                  0000755 0000000 0000000 00000003433 11524351507 027125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                    0000755 0000000 0000000 00000005672 11524351502 026543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                     0000755 0000000 0000000 00000003254 11524351506 026364  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                 0000755 0000000 0000000 00000005063 11524351506 027240  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                     0000755 0000000 0000000 00000012432 11524351506 026402  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                   0000755 0000000 0000000 00000007414 11524351502 026743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                  0000755 0000000 0000000 00000020557 11524351504 027067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond               0000755 0000000 0000000 00000003427 11524351504 027614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/rc3.d/K05atd                       0000755 0000000 0000000 00000004112 11524351502 026011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/                            0000777 0000000 0000000 00000000000 11524351501 025314  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/network                     0000755 0000000 0000000 00000014466 11524351477 026756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/gfs2                        0000755 0000000 0000000 00000006445 11524351475 026122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/sysstat                     0000755 0000000 0000000 00000002363 11524351501 026754  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/saslauthd                   0000755 0000000 0000000 00000004010 11524351501 027221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/messagebus                  0000755 0000000 0000000 00000004230 11524351477 027407  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/autobench                   0000755 0000000 0000000 00000005063 11524351474 027223  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/atd                         0000755 0000000 0000000 00000004112 11524351474 026015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/mcelogd                     0000755 0000000 0000000 00000003535 11524351476 026671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/auditd                      0000755 0000000 0000000 00000006462 11524351474 026531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/certmonger                  0000755 0000000 0000000 00000004054 11524351474 027417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/irqbalance                  0000755 0000000 0000000 00000003521 11524351476 027353  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/acpid                       0000755 0000000 0000000 00000003275 11524351474 026336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/nscd                        0000755 0000000 0000000 00000004723 11524351477 026207  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                   0000755 0000000 0000000 00000005222 11524351500 027201  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/nfs                         0000755 0000000 0000000 00000013536 11524351477 026050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/sssd                        0000755 0000000 0000000 00000004731 11524351501 026217  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/crond                       0000755 0000000 0000000 00000005445 11524351475 026365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/ip6tables                   0000755 0000000 0000000 00000020716 11524351475 027147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/autofs                      0000755 0000000 0000000 00000007234 11524351474 026556  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/sshd                        0000755 0000000 0000000 00000010671 11524351501 026204  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/ksm                         0000755 0000000 0000000 00000004236 11524351476 026050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/libvirt-guests              0000755 0000000 0000000 00000017172 11524351476 030244  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                0000755 0000000 0000000 00000004754 11524351474 027612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/ypbind                      0000755 0000000 0000000 00000011277 11524351501 026533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/psacct                      0000755 0000000 0000000 00000003024 11524351500 026511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/xinetd                      0000755 0000000 0000000 00000006743 11524351501 026543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/nfslock                     0000755 0000000 0000000 00000006675 11524351477 026727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/cgred                       0000755 0000000 0000000 00000006302 11524351475 026335  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/migrateip                   0000755 0000000 0000000 00000001364 11524351477 027237  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/udev-post                   0000755 0000000 0000000 00000004370 11524351501 027170  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/haldaemon                   0000755 0000000 0000000 00000003245 11524351475 027204  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/ipsec                       0000755 0000000 0000000 00000010777 11524351475 026367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/rpcbind                     0000755 0000000 0000000 00000004031 11524351500 026654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/rhnsd                       0000755 0000000 0000000 00000005522 11524351500 026357  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/functions                   0000644 0000000 0000000 00000042767 11524351475 027275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/kdump                       0000755 0000000 0000000 00000027662 11524351476 026406  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/postfix                     0000755 0000000 0000000 00000007414 11524351500 026737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/iptables                    0000755 0000000 0000000 00000020557 11524351476 027065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/rsyslog                     0000755 0000000 0000000 00000004326 11524351500 026744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/netconsole                  0000755 0000000 0000000 00000005650 11524351477 027431  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/rpcgssd                     0000755 0000000 0000000 00000006050 11524351500 026703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/abrtd                       0000755 0000000 0000000 00000003254 11524351474 026347  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                0000555 0000000 0000000 00000004612 11524351476 027617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/halt                        0000755 0000000 0000000 00000012723 11524351475 026205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/cgconfig                    0000755 0000000 0000000 00000012327 11524351475 027034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/single                      0000755 0000000 0000000 00000001207 11524351501 026517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/mdmonitor                   0000755 0000000 0000000 00000005013 11524351476 027260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/restorecond                 0000755 0000000 0000000 00000003427 11524351500 027572  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/cpuspeed                    0000755 0000000 0000000 00000025442 11524351475 027067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/netfs                       0000755 0000000 0000000 00000012432 11524351477 026373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                  0000755 0000000 0000000 00000006014 11524351500 027417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/oddjobd                     0000755 0000000 0000000 00000004325 11524351500 026646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/ksmtuned                    0000755 0000000 0000000 00000003433 11524351476 027106  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/sandbox                     0000755 0000000 0000000 00000003242 11524351501 026675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/killall                     0000755 0000000 0000000 00000001214 11524351476 026673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/rdisc                       0000755 0000000 0000000 00000003027 11524351500 026343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/httpd                       0000755 0000000 0000000 00000006364 11524351475 026404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/ntpd                        0000755 0000000 0000000 00000003603 11524351477 026221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/smartd                      0000755 0000000 0000000 00000005672 11524351501 026542  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/nslcd                       0000755 0000000 0000000 00000003213 11524351477 026354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/ntpdate                     0000755 0000000 0000000 00000003512 11524351477 026712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile2/idleserver/VM_configuration/etc/rc.d/init.d/microcode_ctl               0000755 0000000 0000000 00000002221 11524351477 030055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/idleserver/VM_configuration/etc/hosts                                   0000644 0000000 0000000 00000000267 11524351473 024375  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/idleserver/VM_configuration/etc/iproute2/                               0000777 0000000 0000000 00000000000 11524351473 025062  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/etc/iproute2/rt_dsfield                     0000644 0000000 0000000 00000000672 11524351473 027125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile2/idleserver/VM_configuration/etc/iproute2/rt_realms                      0000644 0000000 0000000 00000000160 11524351473 026766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile2/idleserver/VM_configuration/etc/iproute2/rt_scopes                      0000644 0000000 0000000 00000000134 11524351473 027000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/idleserver/VM_configuration/etc/iproute2/ematch_map                     0000644 0000000 0000000 00000000073 11524351473 027077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/idleserver/VM_configuration/etc/iproute2/rt_tables                      0000644 0000000 0000000 00000000127 11524351473 026760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/idleserver/VM_configuration/etc/iproute2/rt_protos                      0000644 0000000 0000000 00000000475 11524351473 027042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/etc/nsswitch.conf                           0000644 0000000 0000000 00000003230 11524351474 026015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/idleserver/VM_configuration/etc/fstab                                   0000644 0000000 0000000 00000001603 11524351473 024327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile2/idleserver/VM_configuration/etc/sysctl.conf                             0000644 0000000 0000000 00000001466 11524351507 025502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile2/idleserver/VM_configuration/etc/inittab                                 0000644 0000000 0000000 00000001564 11524351473 024670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile2/idleserver/VM_configuration/var/                                        0000777 0000000 0000000 00000000000 11524351510 023316  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/var/log/                                    0000777 0000000 0000000 00000000000 11524351510 024077  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/var/log/dmesg                               0000644 0000000 0000000 00000041447 11524351511 025130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003fffd000 (usable)
 BIOS-e820: 000000003fffd000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x3fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000003fffd000
 0000000000 - 003fe00000 page 2M
 003fe00000 - 003fffd000 page 4k
kernel direct mapping tables up to 3fffd000 @ 8000-b000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000003fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000003ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000003fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000003ffffe00 00040
ACPI: SSDT 000000003fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000003fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000003fffd000
Bootmem setup node 0 0000000000000000-000000003fffd000
  NODE_DATA [0000000000009000 - 000000000003cfff]
  bootmap [000000000003d000 -  0000000000044fff] pages 8
(7 early reservations) ==> bootmem [0000000000 - 003fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0000dfffff] PMD -> [ffff880002200000-ffff880002ffffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0003fffd
On node 0 totalpages: 262038
  DMA zone: 56 pages used for memmap
  DMA zone: 105 pages reserved
  DMA zone: 3832 pages, LIFO batch:0
  DMA32 zone: 3528 pages used for memmap
  DMA32 zone: 254517 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 40000000 (gap: 40000000:bffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 258349
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 1007148k/1048564k available (4935k kernel code, 412k absent, 41004k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 10485760 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116197.315:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 1992
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:03:16 UTC (1297116196)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 30 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                         Virtual_Configuration/tile2/idleserver/VM_configuration/boot/                                       0000777 0000000 0000000 00000000000 11524351472 023500  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/boot/grub/                                  0000777 0000000 0000000 00000000000 11524351472 024437  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/VM_configuration/boot/grub/grub.conf                         0000644 0000000 0000000 00000002217 11524351472 026243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/idleserver/VM_configuration/rpmpkgs.txt                                 0000644 0000000 0000000 00000067153 11524351510 024762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/idleserver/VM_configuration/ifconfig.txt                                0000644 0000000 0000000 00000001572 11524351507 025062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:0A  
          inet addr:10.1.217.10  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe91:a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22563 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2586 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1907934 (1.8 MiB)  TX bytes:794134 (775.5 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:740 errors:0 dropped:0 overruns:0 frame:0
          TX packets:740 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:72548 (70.8 KiB)  TX bytes:72548 (70.8 KiB)

                                                                                                                                      Virtual_Configuration/tile2/idleserver/VM_configuration/chkconfig.txt                               0000644 0000000 0000000 00000006535 11524351472 025236  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile2/idleserver/Software_Configuration/                                      0000777 0000000 0000000 00000000000 11524351472 023745  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/                                                              0000777 0000000 0000000 00000000000 11524351433 017124  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/                                             0000777 0000000 0000000 00000000000 11524351452 022376  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/proc/                                        0000777 0000000 0000000 00000000000 11524351451 023340  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/proc/cpuinfo                                 0000644 0000000 0000000 00000002030 11524351451 024715  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/appserver/VM_configuration/proc/mounts                                  0000644 0000000 0000000 00000001357 11524351451 024612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1278676k,nr_inodes=319669,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1332,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1332,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/appserver/VM_configuration/proc/swaps                                   0000644 0000000 0000000 00000000144 11524351451 024413  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/appserver/VM_configuration/proc/devices                                 0000644 0000000 0000000 00000000567 11524351451 024711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile2/appserver/VM_configuration/proc/modules                                 0000644 0000000 0000000 00000002621 11524351451 024730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 61 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile2/appserver/VM_configuration/proc/partitions                              0000644 0000000 0000000 00000000260 11524351451 025451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile2/appserver/VM_configuration/proc/meminfo                                 0000644 0000000 0000000 00000002222 11524351451 024707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2571688 kB
MemFree:          479904 kB
Buffers:           37840 kB
Cached:           244800 kB
SwapCached:            0 kB
Active:          1766744 kB
Inactive:         189072 kB
Active(anon):    1673368 kB
Inactive(anon):        0 kB
Active(file):      93376 kB
Inactive(file):   189072 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               148 kB
Writeback:             0 kB
AnonPages:       1673048 kB
Mapped:            76172 kB
Shmem:               160 kB
Slab:             102096 kB
SReclaimable:      35300 kB
SUnreclaim:        66796 kB
KernelStack:        2688 kB
PageTables:         6888 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3333836 kB
Committed_AS:     383556 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19244 kB
VmallocChunk:   34359711668 kB
HardwareCorrupted:     0 kB
AnonHugePages:   1464320 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2613248 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/appserver/VM_configuration/root/                                        0000777 0000000 0000000 00000000000 11524351451 023360  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/root/convert_to_vf.sh                        0000755 0000000 0000000 00000001135 11524351451 026570  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/lspci.txt                                    0000644 0000000 0000000 00000001211 11524351451 024237  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile2/appserver/VM_configuration/df.txt                                       0000644 0000000 0000000 00000000401 11524351433 023516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8772648   4008288  69% /
tmpfs                  1285844         0   1285844   0% /dev/shm
/dev/vdb1             20642412   2027256  17566584  11% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/appserver/VM_configuration/mount.txt                                    0000644 0000000 0000000 00000000612 11524351451 024273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile2/appserver/VM_configuration/etc/                                         0000777 0000000 0000000 00000000000 11524351450 023147  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/                                    0000777 0000000 0000000 00000000000 11524351442 023776  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/                              0000777 0000000 0000000 00000000000 11524351450 024706  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests             0000755 0000000 0000000 00000017172 11524351443 030102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                    0000755 0000000 0000000 00000004325 11524351443 026520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524351444 027307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                   0000755 0000000 0000000 00000012327 11524351445 026711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                  0000755 0000000 0000000 00000005222 11524351446 027075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                       0000755 0000000 0000000 00000010671 11524351447 026101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                      0000755 0000000 0000000 00000006364 11524351443 026247  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                  0000755 0000000 0000000 00000020716 11524351445 027021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                       0000755 0000000 0000000 00000004731 11524351444 026077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon               0000755 0000000 0000000 00000004754 11524351443 027452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                  0000755 0000000 0000000 00000001364 11524351447 027120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                      0000755 0000000 0000000 00000003027 11524351445 026236  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                     0000755 0000000 0000000 00000006743 11524351450 026433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                      0000755 0000000 0000000 00000010777 11524351444 026242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                 0000755 0000000 0000000 00000004230 11524351447 027262  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                      0000755 0000000 0000000 00000006302 11524351444 026211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                        0000755 0000000 0000000 00000004236 11524351450 025726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                    0000755 0000000 0000000 00000004031 11524351446 026543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                 0000755 0000000 0000000 00000003521 11524351446 027226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                    0000755 0000000 0000000 00000006050 11524351446 026600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                    0000755 0000000 0000000 00000002363 11524351445 026647  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                 0000755 0000000 0000000 00000004054 11524351442 027255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                  0000755 0000000 0000000 00000005013 11524351446 027135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                      0000755 0000000 0000000 00000003213 11524351445 026231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                    0000755 0000000 0000000 00000003512 11524351444 026562  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                       0000755 0000000 0000000 00000003603 11524351444 026070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                     0000755 0000000 0000000 00000011277 11524351444 026415  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S10network                    0000755 0000000 0000000 00000014466 11524351446 026625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                    0000755 0000000 0000000 00000004326 11524351446 026632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                     0000755 0000000 0000000 00000006462 11524351446 026404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                      0000755 0000000 0000000 00000027662 11524351447 026260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                       0000755 0000000 0000000 00000006445 11524351444 025773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                  0000755 0000000 0000000 00000003245 11524351447 027065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K60crond                      0000755 0000000 0000000 00000005445 11524351444 026231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                      0000755 0000000 0000000 00000005522 11524351443 026232  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl              0000755 0000000 0000000 00000002221 11524351445 027722  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                  0000755 0000000 0000000 00000004010 11524351443 027071  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                        0000755 0000000 0000000 00000013536 11524351444 025712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                       0000755 0000000 0000000 00000004723 11524351447 026061  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                     0000755 0000000 0000000 00000003024 11524351443 026362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                      0000755 0000000 0000000 00000003275 11524351447 026220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                   0000755 0000000 0000000 00000025442 11524351446 026743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                  0000755 0000000 0000000 00000004370 11524351447 027063  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S99local                      0000755 0000000 0000000 00000000334 11524351450 026227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                    0000755 0000000 0000000 00000006675 11524351446 026602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                 0000755 0000000 0000000 00000005650 11524351443 027271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor               0000555 0000000 0000000 00000004612 11524351445 027467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                     0000755 0000000 0000000 00000007234 11524351447 026442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                   0000755 0000000 0000000 00000003433 11524351450 026765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                     0000755 0000000 0000000 00000005672 11524351443 026412  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                      0000755 0000000 0000000 00000003254 11524351450 026225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                  0000755 0000000 0000000 00000005063 11524351447 027107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                      0000755 0000000 0000000 00000012432 11524351447 026251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                    0000755 0000000 0000000 00000007414 11524351443 026612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                   0000755 0000000 0000000 00000020557 11524351445 026736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond                0000755 0000000 0000000 00000003427 11524351444 027462  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/rc3.d/K05atd                        0000755 0000000 0000000 00000004112 11524351443 025660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/                             0000777 0000000 0000000 00000000000 11524351442 025163  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/network                      0000755 0000000 0000000 00000014466 11524351440 026607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/gfs2                         0000755 0000000 0000000 00000006445 11524351436 025762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/sysstat                      0000755 0000000 0000000 00000002363 11524351442 026623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/saslauthd                    0000755 0000000 0000000 00000004010 11524351442 027070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/messagebus                   0000755 0000000 0000000 00000004230 11524351437 027246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/autobench                    0000755 0000000 0000000 00000005063 11524351435 027063  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/atd                          0000755 0000000 0000000 00000004112 11524351435 025655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/mcelogd                      0000755 0000000 0000000 00000003535 11524351437 026531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/auditd                       0000755 0000000 0000000 00000006462 11524351435 026371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/certmonger                   0000755 0000000 0000000 00000004054 11524351435 027257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/irqbalance                   0000755 0000000 0000000 00000003521 11524351437 027213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/acpid                        0000755 0000000 0000000 00000003275 11524351435 026176  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/nscd                         0000755 0000000 0000000 00000004723 11524351440 026040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                    0000755 0000000 0000000 00000005222 11524351441 027050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/nfs                          0000755 0000000 0000000 00000013536 11524351440 025701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/sssd                         0000755 0000000 0000000 00000004731 11524351442 026066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/crond                        0000755 0000000 0000000 00000005445 11524351436 026225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/ip6tables                    0000755 0000000 0000000 00000020716 11524351436 027007  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/autofs                       0000755 0000000 0000000 00000007234 11524351435 026416  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/sshd                         0000755 0000000 0000000 00000010671 11524351442 026053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/ksm                          0000755 0000000 0000000 00000004236 11524351437 025710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/libvirt-guests               0000755 0000000 0000000 00000017172 11524351437 030104  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                 0000755 0000000 0000000 00000004754 11524351435 027452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/ypbind                       0000755 0000000 0000000 00000011277 11524351442 026402  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/psacct                       0000755 0000000 0000000 00000003024 11524351441 026360  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/xinetd                       0000755 0000000 0000000 00000006743 11524351442 026412  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/nfslock                      0000755 0000000 0000000 00000006675 11524351440 026560  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/cgred                        0000755 0000000 0000000 00000006302 11524351435 026174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/migrateip                    0000755 0000000 0000000 00000001364 11524351440 027070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/udev-post                    0000755 0000000 0000000 00000004370 11524351442 027037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/haldaemon                    0000755 0000000 0000000 00000003245 11524351436 027044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/ipsec                        0000755 0000000 0000000 00000010777 11524351436 026227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/rpcbind                      0000755 0000000 0000000 00000004031 11524351441 026523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/rhnsd                        0000755 0000000 0000000 00000005522 11524351441 026226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/functions                    0000644 0000000 0000000 00000042767 11524351436 027135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/kdump                        0000755 0000000 0000000 00000027662 11524351437 026246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/postfix                      0000755 0000000 0000000 00000007414 11524351440 026605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/iptables                     0000755 0000000 0000000 00000020557 11524351436 026724  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/rsyslog                      0000755 0000000 0000000 00000004326 11524351441 026613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/netconsole                   0000755 0000000 0000000 00000005650 11524351440 027262  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/rpcgssd                      0000755 0000000 0000000 00000006050 11524351441 026552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/abrtd                        0000755 0000000 0000000 00000003254 11524351435 026207  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                 0000555 0000000 0000000 00000004612 11524351437 027457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/halt                         0000755 0000000 0000000 00000012723 11524351436 026045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/cgconfig                     0000755 0000000 0000000 00000012327 11524351435 026673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/single                       0000755 0000000 0000000 00000001207 11524351442 026366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/mdmonitor                    0000755 0000000 0000000 00000005013 11524351437 027120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/restorecond                  0000755 0000000 0000000 00000003427 11524351441 027441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/cpuspeed                     0000755 0000000 0000000 00000025442 11524351436 026727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/netfs                        0000755 0000000 0000000 00000012432 11524351440 026224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                   0000755 0000000 0000000 00000006014 11524351441 027266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/oddjobd                      0000755 0000000 0000000 00000004325 11524351440 026514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/ksmtuned                     0000755 0000000 0000000 00000003433 11524351437 026746  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/sandbox                      0000755 0000000 0000000 00000003242 11524351441 026543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/killall                      0000755 0000000 0000000 00000001214 11524351437 026533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/rdisc                        0000755 0000000 0000000 00000003027 11524351441 026212  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/httpd                        0000755 0000000 0000000 00000006364 11524351436 026244  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/ntpd                         0000755 0000000 0000000 00000003603 11524351440 026052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/smartd                       0000755 0000000 0000000 00000005672 11524351442 026411  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/nslcd                        0000755 0000000 0000000 00000003213 11524351440 026205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/ntpdate                      0000755 0000000 0000000 00000003512 11524351440 026543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile2/appserver/VM_configuration/etc/rc.d/init.d/microcode_ctl                0000755 0000000 0000000 00000002221 11524351437 027714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/appserver/VM_configuration/etc/hosts                                    0000644 0000000 0000000 00000000267 11524351434 024235  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/appserver/VM_configuration/etc/iproute2/                                0000777 0000000 0000000 00000000000 11524351434 024722  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/etc/iproute2/rt_dsfield                      0000644 0000000 0000000 00000000672 11524351434 026765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile2/appserver/VM_configuration/etc/iproute2/rt_realms                       0000644 0000000 0000000 00000000160 11524351434 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile2/appserver/VM_configuration/etc/iproute2/rt_scopes                       0000644 0000000 0000000 00000000134 11524351434 026640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/appserver/VM_configuration/etc/iproute2/ematch_map                      0000644 0000000 0000000 00000000073 11524351434 026737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/appserver/VM_configuration/etc/iproute2/rt_tables                       0000644 0000000 0000000 00000000127 11524351434 026620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/appserver/VM_configuration/etc/iproute2/rt_protos                       0000644 0000000 0000000 00000000475 11524351434 026702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/etc/nsswitch.conf                            0000644 0000000 0000000 00000003230 11524351435 025655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/appserver/VM_configuration/etc/fstab                                    0000644 0000000 0000000 00000001603 11524351434 024167  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile2/appserver/VM_configuration/etc/sysctl.conf                              0000644 0000000 0000000 00000001466 11524351450 025342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile2/appserver/VM_configuration/etc/inittab                                  0000644 0000000 0000000 00000001564 11524351434 024530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile2/appserver/VM_configuration/var/                                         0000777 0000000 0000000 00000000000 11524351452 023166  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/var/log/                                     0000777 0000000 0000000 00000000000 11524351452 023747  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/var/log/dmesg                                0000644 0000000 0000000 00000044274 11524351452 025000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000009fffd000 (usable)
 BIOS-e820: 000000009fffd000 - 00000000a0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x9fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000009fffd000
 0000000000 - 009fe00000 page 2M
 009fe00000 - 009fffd000 page 4k
kernel direct mapping tables up to 9fffd000 @ 8000-d000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 000000009fffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000009ffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000009fffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000009ffffdc0 00040
ACPI: SSDT 000000009fffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000009fffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000009fffd000
Bootmem setup node 0 0000000000000000-000000009fffd000
  NODE_DATA [000000000000b000 - 000000000003efff]
  bootmap [000000000003f000 -  0000000000052fff] pages 14
(7 early reservations) ==> bootmem [0000000000 - 009fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000b000]          PGTABLE ==> [0000008000 - 000000b000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00023fffff] PMD -> [ffff880002200000-ffff8800045fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0009fffd
On node 0 totalpages: 655254
  DMA zone: 56 pages used for memmap
  DMA zone: 107 pages reserved
  DMA zone: 3830 pages, LIFO batch:0
  DMA32 zone: 8904 pages used for memmap
  DMA32 zone: 642357 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at a0000000 (gap: a0000000:5ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 646187
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2557352k/2621428k available (4935k kernel code, 412k absent, 63664k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 26214400 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (13867.27 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116114.307:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 5020
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:53 UTC (1297116113)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
56:91:66:94:2f:b9
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/appserver/VM_configuration/boot/                                        0000777 0000000 0000000 00000000000 11524351433 023340  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/boot/grub/                                   0000777 0000000 0000000 00000000000 11524351433 024277  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/VM_configuration/boot/grub/grub.conf                          0000644 0000000 0000000 00000001352 11524351433 026102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/appserver/VM_configuration/rpmpkgs.txt                                  0000644 0000000 0000000 00000067153 11524351452 024632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/appserver/VM_configuration/ifconfig.txt                                 0000644 0000000 0000000 00000002352 11524351450 024717  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:08  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:269 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:24768 (24.1 KiB)  TX bytes:846 (846.0 b)

eth1      Link encap:Ethernet  HWaddr 56:91:66:94:2F:B9  
          inet addr:10.1.217.8  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::5491:66ff:fe94:2fb9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18093445 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38360866 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5087859265 (4.7 GiB)  TX bytes:42132865738 (39.2 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:652728 errors:0 dropped:0 overruns:0 frame:0
          TX packets:652728 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:106181216 (101.2 MiB)  TX bytes:106181216 (101.2 MiB)

                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/appserver/VM_configuration/chkconfig.txt                                0000644 0000000 0000000 00000006535 11524351433 025076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile2/appserver/Software_Configuration/                                       0000777 0000000 0000000 00000000000 11524351433 023605  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/Software_Configuration/AppSrv01/                              0000777 0000000 0000000 00000000000 11524351432 025160  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/Software_Configuration/AppSrv01/server.xml                    0000644 0000000 0000000 00000103647 11524351433 027220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   <?xml version="1.0" encoding="UTF-8"?>
<process:Server xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:adminservice="http://www.ibm.com/websphere/appserver/schemas/5.0/adminservice.xmi" xmlns:applicationserver="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.xmi" xmlns:applicationserver.ejbcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.xmi" xmlns:applicationserver.ejbcontainer.messagelistener="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.messagelistener.xmi" xmlns:applicationserver.sipcontainer="www.ibm.com/websphere/appserver/schemas/7.0/applicationserver.sipcontainer.xmi" xmlns:applicationserver.webcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.webcontainer.xmi" xmlns:channelservice="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.xmi" xmlns:channelservice.channels="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.channels.xmi" xmlns:coregroupbridgeservice="http://www.ibm.com/websphere/appserver/schemas/6.0/coregroupbridgeservice.xmi" xmlns:diagnosticproviderservice="http://www.ibm.com/websphere/appserver/schemas/5.0/diagnosticproviderservice.xmi" xmlns:loggingservice.http="http://www.ibm.com/websphere/appserver/schemas/6.0/loggingservice.http.xmi" xmlns:loggingservice.ras="http://www.ibm.com/websphere/appserver/schemas/5.0/loggingservice.ras.xmi" xmlns:namingserver="http://www.ibm.com/websphere/appserver/schemas/5.0/namingserver.xmi" xmlns:orb="http://www.ibm.com/websphere/appserver/schemas/5.0/orb.xmi" xmlns:pmiservice="http://www.ibm.com/websphere/appserver/schemas/5.0/pmiservice.xmi" xmlns:portletcontainer="http://www.ibm.com/websphere/appserver/schemas/6.0/portletcontainer.xmi" xmlns:process="http://www.ibm.com/websphere/appserver/schemas/5.0/process.xmi" xmlns:processexec="http://www.ibm.com/websphere/appserver/schemas/5.0/processexec.xmi" xmlns:sibresources="http://www.ibm.com/websphere/appserver/schemas/6.0/sibresources.xmi" xmlns:threadpoolmanager="http://www.ibm.com/websphere/appserver/schemas/6.0/threadpoolmanager.xmi" xmlns:tperfviewer="http://www.ibm.com/websphere/appserver/schemas/6.0/tperfviewer.xmi" xmlns:traceservice="http://www.ibm.com/websphere/appserver/schemas/5.0/traceservice.xmi" xmi:id="Server_1183122130078" name="server1" parallelStartEnabled="true">
  <stateManagement xmi:id="StateManageable_1183122130078" initialState="START"/>
  <statisticsProvider xmi:id="StatisticsProvider_1183122130078" specification="com.ibm.orb=enabled"/>
  <services xmi:type="pmiservice:PMIService" xmi:id="PMIService_1183122130078" enable="false" initialSpecLevel="" statisticSet="basic" synchronizedUpdate="false"/>
  <services xmi:type="adminservice:AdminService" xmi:id="AdminService_1183122130078" enable="true" standalone="true" localAdminProtocol="IPCConnector_1" remoteAdminProtocol="SOAPConnector_1">
    <connectors xmi:type="adminservice:SOAPConnector" xmi:id="SOAPConnector_1" enable="true">
      <properties xmi:id="Property_3" name="requestTimeout" value="600"/>
    </connectors>
    <connectors xmi:type="adminservice:RMIConnector" xmi:id="RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:JSR160RMIConnector" xmi:id="JSR160RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:IPCConnector" xmi:id="IPCConnector_1" enable="true">
      <properties xmi:id="Property_4" name="requestTimeout" value="600"/>
    </connectors>
    <configRepository xmi:id="RepositoryService_1183122130078"/>
    <pluginConfigService xmi:id="PluginConfigService_1183122130078" enable="true"/>
  </services>
  <services xmi:type="traceservice:TraceService" xmi:id="TraceService_1183122130078" enable="false" startupTraceSpecification="*=all=disabled" traceOutputType="SPECIFIED_FILE" traceFormat="BASIC" memoryBufferSize="8">
    <traceLog xmi:id="TraceLog_1183122130078" fileName="${SERVER_LOG_ROOT}/trace.log" rolloverSize="100" maxNumberOfBackupFiles="10"/>
  </services>
  <services xmi:type="diagnosticproviderservice:DiagnosticProviderService" xmi:id="DiagnosticProviderService_1183122130078" enable="true" startupStateCollectionSpec=".*:.*=0"/>
  <services xmi:type="loggingservice.ras:RASLoggingService" xmi:id="RASLoggingService_1183122130078" enable="true" messageFilterLevel="NONE" enableCorrelationId="true">
    <serviceLog xmi:id="ServiceLog_1183122130078" name="${LOG_ROOT}/activity.log" size="2" enabled="true"/>
  </services>
  <services xmi:type="coregroupbridgeservice:CoreGroupBridgeService" xmi:id="CoreGroupBridgeService_1183122130078" enable="true"/>
  <services xmi:type="tperfviewer:TPVService" xmi:id="TPVService_1183122130078" enable="true"/>
  <services xmi:type="orb:ObjectRequestBroker" xmi:id="ObjectRequestBroker_1183122130078" enable="true" requestTimeout="180" requestRetriesCount="1" requestRetriesDelay="0" connectionCacheMaximum="240" connectionCacheMinimum="100" commTraceEnabled="false" locateRequestTimeout="180" forceTunnel="never" noLocalCopies="false" useServerThreadPool="true">
    <properties xmi:id="Property_1183122130079" name="com.ibm.CORBA.enableLocateRequest" value="true"/>
    <properties xmi:id="Property_1183122130080" name="com.ibm.ws.orb.transport.WSSSLServerSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLServerSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130081" name="com.ibm.ws.orb.transport.WSSSLClientSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130082" name="com.ibm.CORBA.ConnectionInterceptorName" value="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor"/>
    <properties xmi:id="Property_1183122130083" name="com.ibm.CORBA.RasManager" value="com.ibm.websphere.ras.WsOrbRasManager"/>
    <properties xmi:id="Property_1183122130084" name="com.ibm.ws.orb.transport.useMultiHome" value="true"/>
    <properties xmi:id="Property_1183122130085" name="com.ibm.websphere.management.registerServerIORWithLSD" value="true"/>
    <interceptors xmi:id="Interceptor_1183122130078" name="com.ibm.ejs.ras.RasContextSupport"/>
    <interceptors xmi:id="Interceptor_1183122130079" name="com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRequestInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130080" name="com.ibm.ws.Transaction.JTS.TxInterceptorInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130081" name="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityComponentFactory"/>
    <interceptors xmi:id="Interceptor_1183122130082" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ServerRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130083" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ClientRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130084" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIClientRI"/>
    <interceptors xmi:id="Interceptor_1183122130085" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRI"/>
    <interceptors xmi:id="Interceptor_1183122130086" name="com.ibm.ws.wlm.client.WLMClientInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130087" name="com.ibm.ws.wlm.server.WLMServerInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130088" name="com.ibm.ws.activity.remote.cos.ActivityServiceServerInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130089" name="com.ibm.debug.DebugPortableInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130090" name="com.ibm.debug.olt.ivbtrjrt.OLT_RI"/>
    <plugins xmi:id="ORBPlugin_1183122130078" name="com.ibm.ws.orbimpl.transport.WSTransport"/>
    <plugins xmi:id="ORBPlugin_1183122130079" name="com.ibm.ISecurityUtilityImpl.SecurityPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130080" name="com.ibm.ws.orbimpl.WSORBPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130081" name="com.ibm.ws.wlm.client.WLMClient"/>
    <plugins xmi:id="ORBPlugin_1183122130082" name="com.ibm.ws.pmi.server.modules.OrbPerfModule"/>
    <plugins xmi:id="ORBPlugin_1183122130083" name="com.ibm.ws.csi.CORBAORBMethodAccessControl"/>
    <threadPool xmi:id="ThreadPool_1183122130078" minimumSize="13" maximumSize="13" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
  </services>
  <services xmi:type="channelservice:TransportChannelService" xmi:id="TransportChannelService_1183122130078" enable="true">
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130078" name="TCP_1" endPointName="WC_adminhost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130079" name="TCP_2" endPointName="WC_defaulthost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130080" name="TCP_3" endPointName="WC_adminhost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130081" name="TCP_4" endPointName="WC_defaulthost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130082" name="TCP_5" endPointName="DCS_UNICAST_ADDRESS" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130080"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130083" name="TCP_8" discriminationWeight="0" endPointName="SIP_DEFAULTHOST" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130084" name="TCP_9" discriminationWeight="0" endPointName="SIP_DEFAULTHOST_SECURE" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130078" name="SSL_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130079" name="SSL_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130080" name="SSL_3" discriminationWeight="2"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130081" name="SSL_5" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130078" name="HTTP_1" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130079" name="HTTP_2" discriminationWeight="1" maximumPersistentRequests="-1" keepAlive="true" readTimeout="6000" writeTimeout="6000" persistentTimeout="3000" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130080" name="HTTP_3" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130081" name="HTTP_4" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130078" name="HTTPQ_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130079" name="HTTPQ_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130078" name="WCC_1" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130079" name="WCC_2" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130080" name="WCC_3" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130081" name="WCC_4" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130082" name="WCC_5" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130083" name="WCC_6" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130078" name="DCS_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130079" name="DCS_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130078" name="SIP_1" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130079" name="SIP_2" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130080" name="SIP_3" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130078" name="SIPCC_1" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130079" name="SIPCC_2" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130080" name="SIPCC_3" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:UDPInboundChannel" xmi:id="UDPInboundChannel_1183122130078" name="UDP_1" discriminationWeight="0" endPointName="SIP_DEFAULTHOST"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130085" name="SIB_TCP_JFAP" endPointName="SIB_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130086" name="SIB_TCP_JFAP_SSL" endPointName="SIB_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130087" name="SIB_TCP_MQFAP" endPointName="SIB_MQ_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130088" name="SIB_TCP_MQFAP_SSL" endPointName="SIB_MQ_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130082" name="SIB_SSL_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130083" name="SIB_SSL_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130078" name="SIB_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130079" name="SIB_JFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130078" name="SIB_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130079" name="SIB_MQFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130078" name="SIB_TCP_JFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130079" name="SIB_TCP_JFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130080" name="SIB_TCP_JFAP_TUN_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130081" name="SIB_TCP_JFAP_TUN_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130082" name="SIB_TCP_MQFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130083" name="SIB_TCP_MQFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130078" name="SIB_SSL_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130079" name="SIB_SSL_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130080" name="SIB_SSL_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130078" name="SIB_HTTP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130079" name="SIB_HTTP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130078" name="SIB_HTC_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130079" name="SIB_HTC_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130078" name="SIB_JFAP_JFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130079" name="SIB_JFAP_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130080" name="SIB_JFAP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130081" name="SIB_JFAP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130078" name="SIB_MQFAP_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130079" name="SIB_MQFAP_MQFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130084" name="SIB_TCP_RMQ_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130085" name="SIB_TCP_RMQ_SSL_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130081" name="SIB_SSL_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130078" name="SIB_RMQ_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130079" name="SIB_RMQ_RMQ_OUT"/>
    <chains xmi:id="Chain_1183122130078" name="WCInboundAdmin" enable="true" transportChannels="TCPInboundChannel_1183122130078 HTTPInboundChannel_1183122130078 WebContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130079" name="WCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 WebContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130080" name="HttpQueueInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 HTTPQueueInboundChannel_1183122130078 WebContainerInboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130081" name="HttpQueueInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 HTTPQueueInboundChannel_1183122130079 WebContainerInboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130082" name="WCInboundAdminSecure" enable="true" transportChannels="TCPInboundChannel_1183122130080 SSLInboundChannel_1183122130078 HTTPInboundChannel_1183122130080 WebContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130083" name="WCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 WebContainerInboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130084" name="DCS" enable="true" transportChannels="TCPInboundChannel_1183122130082 DCSInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130085" name="DCS-Secure" enable="true" transportChannels="TCPInboundChannel_1183122130082 SSLInboundChannel_1183122130080 DCSInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130086" name="SIPCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130083 SIPInboundChannel_1183122130078 SIPContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130087" name="SIPCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130084 SSLInboundChannel_1183122130081 SIPInboundChannel_1183122130079 SIPContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130088" name="SIPCInboundDefaultUDP" enable="true" transportChannels="UDPInboundChannel_1183122130078 SIPInboundChannel_1183122130080 SIPContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130089" name="InboundBasicMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130085 JFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130090" name="InboundSecureMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130086 SSLInboundChannel_1183122130082 JFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130091" name="InboundBasicMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130087 MQFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130092" name="InboundSecureMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130088 SSLInboundChannel_1183122130083 MQFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130093" name="BootstrapBasicMessaging" transportChannels="JFAPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130094" name="BootstrapSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130079 TCPOutboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130095" name="BootstrapTunneledMessaging" transportChannels="JFAPOutboundChannel_1183122130080 HTTPTunnelOutboundChannel_1183122130078 HTTPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130096" name="BootstrapTunneledSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130081 HTTPTunnelOutboundChannel_1183122130079 HTTPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130080 TCPOutboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130097" name="OutboundBasicMQLink" transportChannels="MQFAPOutboundChannel_1183122130079 TCPOutboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130098" name="OutboundSecureMQLink" transportChannels="MQFAPOutboundChannel_1183122130078 SSLOutboundChannel_1183122130078 TCPOutboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130099" name="OutboundBasicWMQClient" transportChannels="RMQOutboundChannel_1183122130079 TCPOutboundChannel_1183122130084"/>
    <chains xmi:id="Chain_1183122130100" name="OutboundSecureWMQClient" transportChannels="RMQOutboundChannel_1183122130078 SSLOutboundChannel_1183122130081 TCPOutboundChannel_1183122130085"/>
  </services>
  <services xmi:type="threadpoolmanager:ThreadPoolManager" xmi:id="ThreadPoolManager_1183122130078" enable="true">
    <threadPools xmi:id="ThreadPool_1183122130083" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
    <threadPools xmi:id="ThreadPool_1183122130084" minimumSize="1" maximumSize="3" inactivityTimeout="30000" isGrowable="false" name="server.startup" description="This pool is used by WebSphere during server startup."/>
    <threadPools xmi:id="ThreadPool_1183122130085" minimumSize="15" maximumSize="15" inactivityTimeout="3500" name="Default"/>
    <threadPools xmi:id="ThreadPool_1183122130079" minimumSize="38" maximumSize="38" inactivityTimeout="3500" isGrowable="false" name="WebContainer"/>
    <threadPools xmi:id="ThreadPool_1183122130080" minimumSize="5" maximumSize="20" name="TCPChannel.DCS"/>
    <threadPools xmi:id="ThreadPool_1183122130081" minimumSize="4" maximumSize="50" name="SIBFAPInboundThreadPool" description="Service integration bus FAP inbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1183122130082" minimumSize="4" maximumSize="50" name="SIBFAPThreadPool" description="Service integration bus FAP outbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1265156361721" minimumSize="35" maximumSize="41" inactivityTimeout="3500" name="SIBJMSRAThreadPool" description="Service Integration Bus JMS Resource Adapter thread pool"/>
    <threadPools xmi:id="ThreadPool_1265156361827" minimumSize="1" maximumSize="40" name="WMQCommonServices" description="WebSphere MQ common services thread pool">
      <customProperties xmi:id="Property_1265156361829" name="com.ibm.websphere.threadpool.disableHungThreadDetection" value="true" required="false"/>
    </threadPools>
    <threadPools xmi:id="ThreadPool_1265156361831" minimumSize="5" maximumSize="25" name="WMQJCAResourceAdapter" description="wmqJcaRaThreadPoolDescription"/>
  </services>
  <services xmi:type="loggingservice.http:HTTPAccessLoggingService" xmi:id="HTTPAccessLoggingService_1183122130078" enable="false" enableErrorLogging="true" enableAccessLogging="true">
    <errorLog xmi:id="LogFile_1183122130078" filePath="${SERVER_LOG_ROOT}/http_error.log" maximumSize="500"/>
    <accessLog xmi:id="LogFile_1183122130079" filePath="${SERVER_LOG_ROOT}/http_access.log" maximumSize="500"/>
  </services>
  <errorStreamRedirect xmi:id="StreamRedirect_1183122130078" fileName="${SERVER_LOG_ROOT}/SystemErr.log" rolloverType="NONE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <outputStreamRedirect xmi:id="StreamRedirect_1183122130079" fileName="${SERVER_LOG_ROOT}/SystemOut.log" rolloverType="NONE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <components xmi:type="namingserver:NameServer" xmi:id="NameServer_1183122130078">
    <stateManagement xmi:id="StateManageable_1183122130079" initialState="START"/>
  </components>
  <components xmi:type="applicationserver:ApplicationServer" xmi:id="ApplicationServer_1183122130078" applicationClassLoaderPolicy="MULTIPLE">
    <stateManagement xmi:id="StateManageable_1183122130080" initialState="START"/>
    <services xmi:type="applicationserver:TransactionService" xmi:id="TransactionService_1183122130078" enable="true" totalTranLifetimeTimeout="0" clientInactivityTimeout="0" propogatedOrBMTTranLifetimeTimeout="300" httpProxyPrefix="" httpsProxyPrefix=""/>
    <services xmi:type="applicationserver:DynamicCache" xmi:id="DynamicCache_1183122130078" enable="true">
      <cacheGroups xmi:id="ExternalCacheGroup_1183122130078" name="EsiInvalidator">
        <members xmi:id="ExternalCacheGroupMember_1183122130078" address="localhost" adapterBeanName="com.ibm.websphere.servlet.cache.ESIInvalidatorServlet"/>
      </cacheGroups>
    </services>
    <components xmi:type="applicationserver.webcontainer:WebContainer" xmi:id="WebContainer_1183122130078" enableServletCaching="false" disablePooling="false">
      <stateManagement xmi:id="StateManageable_1183122130081" initialState="START"/>
      <services xmi:type="applicationserver.webcontainer:SessionManager" xmi:id="SessionManager_1183122130078" enable="true" enableUrlRewriting="false" enableCookies="true" enableSSLTracking="false" enableProtocolSwitchRewriting="false" sessionPersistenceMode="NONE" enableSecurityIntegration="false" allowSerializedSessionAccess="false" maxWaitTime="5" accessSessionOnTimeout="true">
        <defaultCookieSettings xmi:id="Cookie_1183122130078" domain="" maximumAge="-1" secure="false"/>
        <sessionDatabasePersistence xmi:id="SessionDatabasePersistence_1183122130078" datasourceJNDIName="jdbc/Sessions" userId="db2admin" password="{xor}Oz1tPjsyNjE=" db2RowSize="ROW_SIZE_4KB" tableSpaceName=""/>
        <tuningParams xmi:id="TuningParams_1183122130078" usingMultiRowSchema="false" maxInMemorySessionCount="1000" allowOverflow="true" scheduleInvalidation="false" writeFrequency="TIME_BASED_WRITE" writeInterval="10" writeContents="ONLY_UPDATED_ATTRIBUTES" invalidationTimeout="30">
          <invalidationSchedule xmi:id="InvalidationSchedule_1183122130078" firstHour="14" secondHour="2"/>
        </tuningParams>
      </services>
    </components>
    <components xmi:type="applicationserver.ejbcontainer:EJBContainer" xmi:id="EJBContainer_1183122130078" passivationDirectory="${USER_INSTALL_ROOT}/temp" inactivePoolCleanupInterval="30000">
      <stateManagement xmi:id="StateManageable_1183122130082" initialState="START"/>
      <services xmi:type="applicationserver.ejbcontainer.messagelistener:MessageListenerService" xmi:id="MessageListenerService_1183122130078">
        <threadPool xmi:id="ThreadPool_1183122130086" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="Message.Listener.Pool"/>
      </services>
      <cacheSettings xmi:id="EJBCache_1183122130078" cleanupInterval="3000" cacheSize="60000"/>
      <timerSettings xmi:id="EJBTimer_1183122130078" datasourceJNDIName="jdbc/DefaultEJBTimerDataSource" tablePrefix="EJBTIMER_" pollInterval="300" numAlarmThreads="1"/>
    </components>
    <components xmi:type="portletcontainer:PortletContainer" xmi:id="PortletContainer_1183122130078"/>
    <components xmi:type="applicationserver.sipcontainer:SIPContainer" xmi:id="SIPContainer_1183122130078" name="" maxAppSessions="120000" maxMessageRate="5000" maxDispatchQueueSize="3200" maxResponseTime="0" statAveragePeriod="1000" statUpdateRange="10000">
      <stack xmi:id="Stack_1183122130078">
        <timers xmi:id="Timers_1183122130078"/>
      </stack>
    </components>
    <webserverPluginSettings xmi:id="WebserverPluginSettings_1183122130078" WaitForContinue="false" ConnectTimeout="0" MaxConnections="-1" ExtendedHandshake="false" ServerIOTimeout="0"/>
  </components>
  <processDefinitions xmi:type="processexec:JavaProcessDef" xmi:id="JavaProcessDef_1183122130078" workingDirectory="${USER_INSTALL_ROOT}" executableTargetKind="JAVA_CLASS" executableTarget="com.ibm.ws.runtime.WsServer">
    <execution xmi:id="ProcessExecution_1183122130078" processPriority="20" runAsUser="" runAsGroup=""/>
    <ioRedirect xmi:id="OutputRedirect_1183122130078" stdoutFilename="${SERVER_LOG_ROOT}/native_stdout.log" stderrFilename="${SERVER_LOG_ROOT}/native_stderr.log"/>
    <monitoringPolicy xmi:id="MonitoringPolicy_1183122130078" maximumStartupAttempts="3" pingInterval="60" pingTimeout="300" autoRestart="true" nodeRestartState="STOPPED"/>
    <jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="true" verboseModeJNI="false" initialHeapSize="1280" maximumHeapSize="1280" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777" genericJvmArguments="-Dcom.ibm.CORBA.TransportMode=Pluggable -Dcom.ibm.ws.pm.batch=true -Dcom.ibm.ws.pm.deferredcreate=true -Dcom.ibm.CORBA.FragmentSize=3000 -Dcom.ibm.ws.pm.useLegacyCache=false -Dcom.ibm.ws.pm.grouppartialupdate=true -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XML11Configuration -noclassgc -Xss128k  -Xgcpolicy:gencon -Xmo320m -Xcodecache16m -Xgcthreads4 -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=0">
      <systemProperties xmi:id="Property_1" name="com.ibm.security.jgss.debug" value="off" required="false"/>
      <systemProperties xmi:id="Property_2" name="com.ibm.security.krb5.Krb5Debug" value="off" required="false"/>
    </jvmEntries>
  </processDefinitions>
</process:Server>
                                                                                         Virtual_Configuration/tile2/appserver/Software_Configuration/AppSrv02/                              0000777 0000000 0000000 00000000000 11524351433 025162  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/appserver/Software_Configuration/AppSrv02/server.xml                    0000644 0000000 0000000 00000102162 11524351433 027210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   <?xml version="1.0" encoding="UTF-8"?>
<process:Server xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:adminservice="http://www.ibm.com/websphere/appserver/schemas/5.0/adminservice.xmi" xmlns:applicationserver="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.xmi" xmlns:applicationserver.ejbcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.xmi" xmlns:applicationserver.ejbcontainer.messagelistener="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.messagelistener.xmi" xmlns:applicationserver.sipcontainer="www.ibm.com/websphere/appserver/schemas/7.0/applicationserver.sipcontainer.xmi" xmlns:applicationserver.webcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.webcontainer.xmi" xmlns:channelservice="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.xmi" xmlns:channelservice.channels="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.channels.xmi" xmlns:coregroupbridgeservice="http://www.ibm.com/websphere/appserver/schemas/6.0/coregroupbridgeservice.xmi" xmlns:diagnosticproviderservice="http://www.ibm.com/websphere/appserver/schemas/5.0/diagnosticproviderservice.xmi" xmlns:loggingservice.http="http://www.ibm.com/websphere/appserver/schemas/6.0/loggingservice.http.xmi" xmlns:loggingservice.ras="http://www.ibm.com/websphere/appserver/schemas/5.0/loggingservice.ras.xmi" xmlns:namingserver="http://www.ibm.com/websphere/appserver/schemas/5.0/namingserver.xmi" xmlns:orb="http://www.ibm.com/websphere/appserver/schemas/5.0/orb.xmi" xmlns:pmiservice="http://www.ibm.com/websphere/appserver/schemas/5.0/pmiservice.xmi" xmlns:portletcontainer="http://www.ibm.com/websphere/appserver/schemas/6.0/portletcontainer.xmi" xmlns:process="http://www.ibm.com/websphere/appserver/schemas/5.0/process.xmi" xmlns:processexec="http://www.ibm.com/websphere/appserver/schemas/5.0/processexec.xmi" xmlns:sibresources="http://www.ibm.com/websphere/appserver/schemas/6.0/sibresources.xmi" xmlns:threadpoolmanager="http://www.ibm.com/websphere/appserver/schemas/6.0/threadpoolmanager.xmi" xmlns:tperfviewer="http://www.ibm.com/websphere/appserver/schemas/6.0/tperfviewer.xmi" xmlns:traceservice="http://www.ibm.com/websphere/appserver/schemas/5.0/traceservice.xmi" xmi:id="Server_1183122130078" name="server1">
  <stateManagement xmi:id="StateManageable_1183122130078" initialState="START"/>
  <statisticsProvider xmi:id="StatisticsProvider_1183122130078" specification="com.ibm.orb=enabled"/>
  <services xmi:type="pmiservice:PMIService" xmi:id="PMIService_1183122130078" enable="true" initialSpecLevel="" statisticSet="basic" synchronizedUpdate="false"/>
  <services xmi:type="adminservice:AdminService" xmi:id="AdminService_1183122130078" enable="true" standalone="true" localAdminProtocol="IPCConnector_1" remoteAdminProtocol="SOAPConnector_1">
    <connectors xmi:type="adminservice:SOAPConnector" xmi:id="SOAPConnector_1" enable="true">
      <properties xmi:id="Property_3" name="requestTimeout" value="600"/>
    </connectors>
    <connectors xmi:type="adminservice:RMIConnector" xmi:id="RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:JSR160RMIConnector" xmi:id="JSR160RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:IPCConnector" xmi:id="IPCConnector_1" enable="true">
      <properties xmi:id="Property_4" name="requestTimeout" value="600"/>
    </connectors>
    <configRepository xmi:id="RepositoryService_1183122130078"/>
    <pluginConfigService xmi:id="PluginConfigService_1183122130078" enable="true"/>
  </services>
  <services xmi:type="traceservice:TraceService" xmi:id="TraceService_1183122130078" enable="true" startupTraceSpecification="*=info" traceOutputType="SPECIFIED_FILE" traceFormat="BASIC" memoryBufferSize="8">
    <traceLog xmi:id="TraceLog_1183122130078" fileName="${SERVER_LOG_ROOT}/trace.log" rolloverSize="20" maxNumberOfBackupFiles="1"/>
  </services>
  <services xmi:type="diagnosticproviderservice:DiagnosticProviderService" xmi:id="DiagnosticProviderService_1183122130078" enable="true" startupStateCollectionSpec=".*:.*=0"/>
  <services xmi:type="loggingservice.ras:RASLoggingService" xmi:id="RASLoggingService_1183122130078" enable="true" messageFilterLevel="NONE" enableCorrelationId="true">
    <serviceLog xmi:id="ServiceLog_1183122130078" name="${LOG_ROOT}/activity.log" size="2" enabled="true"/>
  </services>
  <services xmi:type="coregroupbridgeservice:CoreGroupBridgeService" xmi:id="CoreGroupBridgeService_1183122130078" enable="true"/>
  <services xmi:type="tperfviewer:TPVService" xmi:id="TPVService_1183122130078" enable="true"/>
  <services xmi:type="orb:ObjectRequestBroker" xmi:id="ObjectRequestBroker_1183122130078" enable="true" requestTimeout="180" requestRetriesCount="1" requestRetriesDelay="0" connectionCacheMaximum="240" connectionCacheMinimum="100" commTraceEnabled="false" locateRequestTimeout="180" forceTunnel="never" noLocalCopies="false" useServerThreadPool="false">
    <properties xmi:id="Property_1183122130079" name="com.ibm.CORBA.enableLocateRequest" value="true"/>
    <properties xmi:id="Property_1183122130080" name="com.ibm.ws.orb.transport.WSSSLServerSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLServerSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130081" name="com.ibm.ws.orb.transport.WSSSLClientSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130082" name="com.ibm.CORBA.ConnectionInterceptorName" value="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor"/>
    <properties xmi:id="Property_1183122130083" name="com.ibm.CORBA.RasManager" value="com.ibm.websphere.ras.WsOrbRasManager"/>
    <properties xmi:id="Property_1183122130084" name="com.ibm.ws.orb.transport.useMultiHome" value="true"/>
    <properties xmi:id="Property_1183122130085" name="com.ibm.websphere.management.registerServerIORWithLSD" value="true"/>
    <interceptors xmi:id="Interceptor_1183122130078" name="com.ibm.ejs.ras.RasContextSupport"/>
    <interceptors xmi:id="Interceptor_1183122130079" name="com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRequestInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130080" name="com.ibm.ws.Transaction.JTS.TxInterceptorInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130081" name="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityComponentFactory"/>
    <interceptors xmi:id="Interceptor_1183122130082" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ServerRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130083" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ClientRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130084" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIClientRI"/>
    <interceptors xmi:id="Interceptor_1183122130085" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRI"/>
    <interceptors xmi:id="Interceptor_1183122130086" name="com.ibm.ws.wlm.client.WLMClientInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130087" name="com.ibm.ws.wlm.server.WLMServerInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130088" name="com.ibm.ws.activity.remote.cos.ActivityServiceServerInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130089" name="com.ibm.debug.DebugPortableInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130090" name="com.ibm.debug.olt.ivbtrjrt.OLT_RI"/>
    <plugins xmi:id="ORBPlugin_1183122130078" name="com.ibm.ws.orbimpl.transport.WSTransport"/>
    <plugins xmi:id="ORBPlugin_1183122130079" name="com.ibm.ISecurityUtilityImpl.SecurityPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130080" name="com.ibm.ws.orbimpl.WSORBPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130081" name="com.ibm.ws.wlm.client.WLMClient"/>
    <plugins xmi:id="ORBPlugin_1183122130082" name="com.ibm.ws.pmi.server.modules.OrbPerfModule"/>
    <plugins xmi:id="ORBPlugin_1183122130083" name="com.ibm.ws.csi.CORBAORBMethodAccessControl"/>
    <threadPool xmi:id="ThreadPool_1183122130078" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
  </services>
  <services xmi:type="channelservice:TransportChannelService" xmi:id="TransportChannelService_1183122130078" enable="true">
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130078" name="TCP_1" endPointName="WC_adminhost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130079" name="TCP_2" endPointName="WC_defaulthost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130080" name="TCP_3" endPointName="WC_adminhost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130081" name="TCP_4" endPointName="WC_defaulthost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130082" name="TCP_5" endPointName="DCS_UNICAST_ADDRESS" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130080"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130083" name="TCP_8" discriminationWeight="0" endPointName="SIP_DEFAULTHOST" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130084" name="TCP_9" discriminationWeight="0" endPointName="SIP_DEFAULTHOST_SECURE" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130078" name="SSL_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130079" name="SSL_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130080" name="SSL_3" discriminationWeight="2"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130081" name="SSL_5" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130078" name="HTTP_1" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130079" name="HTTP_2" discriminationWeight="1" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130080" name="HTTP_3" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130081" name="HTTP_4" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130078" name="HTTPQ_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130079" name="HTTPQ_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130078" name="WCC_1" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130079" name="WCC_2" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130080" name="WCC_3" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130081" name="WCC_4" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130082" name="WCC_5" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130083" name="WCC_6" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130078" name="DCS_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130079" name="DCS_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130078" name="SIP_1" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130079" name="SIP_2" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130080" name="SIP_3" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130078" name="SIPCC_1" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130079" name="SIPCC_2" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130080" name="SIPCC_3" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:UDPInboundChannel" xmi:id="UDPInboundChannel_1183122130078" name="UDP_1" discriminationWeight="0" endPointName="SIP_DEFAULTHOST"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130085" name="SIB_TCP_JFAP" endPointName="SIB_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130086" name="SIB_TCP_JFAP_SSL" endPointName="SIB_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130087" name="SIB_TCP_MQFAP" endPointName="SIB_MQ_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130088" name="SIB_TCP_MQFAP_SSL" endPointName="SIB_MQ_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130082" name="SIB_SSL_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130083" name="SIB_SSL_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130078" name="SIB_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130079" name="SIB_JFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130078" name="SIB_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130079" name="SIB_MQFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130078" name="SIB_TCP_JFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130079" name="SIB_TCP_JFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130080" name="SIB_TCP_JFAP_TUN_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130081" name="SIB_TCP_JFAP_TUN_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130082" name="SIB_TCP_MQFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130083" name="SIB_TCP_MQFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130078" name="SIB_SSL_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130079" name="SIB_SSL_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130080" name="SIB_SSL_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130078" name="SIB_HTTP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130079" name="SIB_HTTP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130078" name="SIB_HTC_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130079" name="SIB_HTC_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130078" name="SIB_JFAP_JFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130079" name="SIB_JFAP_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130080" name="SIB_JFAP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130081" name="SIB_JFAP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130078" name="SIB_MQFAP_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130079" name="SIB_MQFAP_MQFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130084" name="SIB_TCP_RMQ_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130085" name="SIB_TCP_RMQ_SSL_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130081" name="SIB_SSL_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130078" name="SIB_RMQ_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130079" name="SIB_RMQ_RMQ_OUT"/>
    <chains xmi:id="Chain_1183122130078" name="WCInboundAdmin" enable="true" transportChannels="TCPInboundChannel_1183122130078 HTTPInboundChannel_1183122130078 WebContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130079" name="WCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 WebContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130080" name="HttpQueueInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 HTTPQueueInboundChannel_1183122130078 WebContainerInboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130081" name="HttpQueueInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 HTTPQueueInboundChannel_1183122130079 WebContainerInboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130082" name="WCInboundAdminSecure" enable="true" transportChannels="TCPInboundChannel_1183122130080 SSLInboundChannel_1183122130078 HTTPInboundChannel_1183122130080 WebContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130083" name="WCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 WebContainerInboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130084" name="DCS" enable="true" transportChannels="TCPInboundChannel_1183122130082 DCSInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130085" name="DCS-Secure" enable="true" transportChannels="TCPInboundChannel_1183122130082 SSLInboundChannel_1183122130080 DCSInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130086" name="SIPCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130083 SIPInboundChannel_1183122130078 SIPContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130087" name="SIPCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130084 SSLInboundChannel_1183122130081 SIPInboundChannel_1183122130079 SIPContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130088" name="SIPCInboundDefaultUDP" enable="true" transportChannels="UDPInboundChannel_1183122130078 SIPInboundChannel_1183122130080 SIPContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130089" name="InboundBasicMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130085 JFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130090" name="InboundSecureMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130086 SSLInboundChannel_1183122130082 JFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130091" name="InboundBasicMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130087 MQFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130092" name="InboundSecureMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130088 SSLInboundChannel_1183122130083 MQFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130093" name="BootstrapBasicMessaging" transportChannels="JFAPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130094" name="BootstrapSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130079 TCPOutboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130095" name="BootstrapTunneledMessaging" transportChannels="JFAPOutboundChannel_1183122130080 HTTPTunnelOutboundChannel_1183122130078 HTTPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130096" name="BootstrapTunneledSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130081 HTTPTunnelOutboundChannel_1183122130079 HTTPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130080 TCPOutboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130097" name="OutboundBasicMQLink" transportChannels="MQFAPOutboundChannel_1183122130079 TCPOutboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130098" name="OutboundSecureMQLink" transportChannels="MQFAPOutboundChannel_1183122130078 SSLOutboundChannel_1183122130078 TCPOutboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130099" name="OutboundBasicWMQClient" transportChannels="RMQOutboundChannel_1183122130079 TCPOutboundChannel_1183122130084"/>
    <chains xmi:id="Chain_1183122130100" name="OutboundSecureWMQClient" transportChannels="RMQOutboundChannel_1183122130078 SSLOutboundChannel_1183122130081 TCPOutboundChannel_1183122130085"/>
  </services>
  <services xmi:type="threadpoolmanager:ThreadPoolManager" xmi:id="ThreadPoolManager_1183122130078" enable="true">
    <threadPools xmi:id="ThreadPool_1183122130083" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
    <threadPools xmi:id="ThreadPool_1183122130084" minimumSize="1" maximumSize="3" inactivityTimeout="30000" isGrowable="false" name="server.startup" description="This pool is used by WebSphere during server startup."/>
    <threadPools xmi:id="ThreadPool_1183122130085" minimumSize="20" maximumSize="20" name="Default"/>
    <threadPools xmi:id="ThreadPool_1183122130079" minimumSize="50" maximumSize="50" inactivityTimeout="60000" isGrowable="false" name="WebContainer"/>
    <threadPools xmi:id="ThreadPool_1183122130080" minimumSize="5" maximumSize="20" name="TCPChannel.DCS"/>
    <threadPools xmi:id="ThreadPool_1183122130081" minimumSize="4" maximumSize="50" name="SIBFAPInboundThreadPool" description="Service integration bus FAP inbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1183122130082" minimumSize="4" maximumSize="50" name="SIBFAPThreadPool" description="Service integration bus FAP outbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1268079912035" minimumSize="35" maximumSize="41" inactivityTimeout="3500" name="SIBJMSRAThreadPool" description="Service Integration Bus JMS Resource Adapter thread pool"/>
    <threadPools xmi:id="ThreadPool_1268079912120" minimumSize="1" maximumSize="40" name="WMQCommonServices" description="WebSphere MQ common services thread pool">
      <customProperties xmi:id="Property_1268079912122" name="com.ibm.websphere.threadpool.disableHungThreadDetection" value="true" required="false"/>
    </threadPools>
    <threadPools xmi:id="ThreadPool_1268079912124" minimumSize="5" maximumSize="25" name="WMQJCAResourceAdapter" description="wmqJcaRaThreadPoolDescription"/>
  </services>
  <services xmi:type="loggingservice.http:HTTPAccessLoggingService" xmi:id="HTTPAccessLoggingService_1183122130078" enable="false" enableErrorLogging="true" enableAccessLogging="true">
    <errorLog xmi:id="LogFile_1183122130078" filePath="${SERVER_LOG_ROOT}/http_error.log" maximumSize="500"/>
    <accessLog xmi:id="LogFile_1183122130079" filePath="${SERVER_LOG_ROOT}/http_access.log" maximumSize="500"/>
  </services>
  <errorStreamRedirect xmi:id="StreamRedirect_1183122130078" fileName="${SERVER_LOG_ROOT}/SystemErr.log" rolloverType="SIZE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <outputStreamRedirect xmi:id="StreamRedirect_1183122130079" fileName="${SERVER_LOG_ROOT}/SystemOut.log" rolloverType="SIZE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <components xmi:type="namingserver:NameServer" xmi:id="NameServer_1183122130078">
    <stateManagement xmi:id="StateManageable_1183122130079" initialState="START"/>
  </components>
  <components xmi:type="applicationserver:ApplicationServer" xmi:id="ApplicationServer_1183122130078" applicationClassLoaderPolicy="MULTIPLE">
    <stateManagement xmi:id="StateManageable_1183122130080" initialState="START"/>
    <services xmi:type="applicationserver:TransactionService" xmi:id="TransactionService_1183122130078" enable="true" totalTranLifetimeTimeout="120" clientInactivityTimeout="60" propogatedOrBMTTranLifetimeTimeout="300" httpProxyPrefix="" httpsProxyPrefix=""/>
    <services xmi:type="applicationserver:DynamicCache" xmi:id="DynamicCache_1183122130078" enable="true">
      <cacheGroups xmi:id="ExternalCacheGroup_1183122130078" name="EsiInvalidator">
        <members xmi:id="ExternalCacheGroupMember_1183122130078" address="localhost" adapterBeanName="com.ibm.websphere.servlet.cache.ESIInvalidatorServlet"/>
      </cacheGroups>
    </services>
    <components xmi:type="applicationserver.webcontainer:WebContainer" xmi:id="WebContainer_1183122130078" enableServletCaching="false" disablePooling="false">
      <stateManagement xmi:id="StateManageable_1183122130081" initialState="START"/>
      <services xmi:type="applicationserver.webcontainer:SessionManager" xmi:id="SessionManager_1183122130078" enable="true" enableUrlRewriting="false" enableCookies="true" enableSSLTracking="false" enableProtocolSwitchRewriting="false" sessionPersistenceMode="NONE" enableSecurityIntegration="false" allowSerializedSessionAccess="false" maxWaitTime="5" accessSessionOnTimeout="true">
        <defaultCookieSettings xmi:id="Cookie_1183122130078" domain="" maximumAge="-1" secure="false"/>
        <sessionDatabasePersistence xmi:id="SessionDatabasePersistence_1183122130078" datasourceJNDIName="jdbc/Sessions" userId="db2admin" password="{xor}Oz1tPjsyNjE=" db2RowSize="ROW_SIZE_4KB" tableSpaceName=""/>
        <tuningParams xmi:id="TuningParams_1183122130078" usingMultiRowSchema="false" maxInMemorySessionCount="1000" allowOverflow="true" scheduleInvalidation="false" writeFrequency="TIME_BASED_WRITE" writeInterval="10" writeContents="ONLY_UPDATED_ATTRIBUTES" invalidationTimeout="30">
          <invalidationSchedule xmi:id="InvalidationSchedule_1183122130078" firstHour="14" secondHour="2"/>
        </tuningParams>
      </services>
    </components>
    <components xmi:type="applicationserver.ejbcontainer:EJBContainer" xmi:id="EJBContainer_1183122130078" passivationDirectory="${USER_INSTALL_ROOT}/temp" inactivePoolCleanupInterval="30000">
      <stateManagement xmi:id="StateManageable_1183122130082" initialState="START"/>
      <services xmi:type="applicationserver.ejbcontainer.messagelistener:MessageListenerService" xmi:id="MessageListenerService_1183122130078">
        <threadPool xmi:id="ThreadPool_1183122130086" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="Message.Listener.Pool"/>
      </services>
      <cacheSettings xmi:id="EJBCache_1183122130078" cleanupInterval="3000" cacheSize="2053"/>
      <timerSettings xmi:id="EJBTimer_1183122130078" datasourceJNDIName="jdbc/DefaultEJBTimerDataSource" tablePrefix="EJBTIMER_" pollInterval="300" numAlarmThreads="1"/>
    </components>
    <components xmi:type="portletcontainer:PortletContainer" xmi:id="PortletContainer_1183122130078"/>
    <components xmi:type="applicationserver.sipcontainer:SIPContainer" xmi:id="SIPContainer_1183122130078" name="" maxAppSessions="120000" maxMessageRate="5000" maxDispatchQueueSize="3200" maxResponseTime="0" statAveragePeriod="1000" statUpdateRange="10000">
      <stack xmi:id="Stack_1183122130078">
        <timers xmi:id="Timers_1183122130078"/>
      </stack>
    </components>
    <webserverPluginSettings xmi:id="WebserverPluginSettings_1183122130078" WaitForContinue="false" ConnectTimeout="0" MaxConnections="-1" ExtendedHandshake="false" ServerIOTimeout="0"/>
  </components>
  <processDefinitions xmi:type="processexec:JavaProcessDef" xmi:id="JavaProcessDef_1183122130078" workingDirectory="${USER_INSTALL_ROOT}" executableTargetKind="JAVA_CLASS" executableTarget="com.ibm.ws.runtime.WsServer">
    <execution xmi:id="ProcessExecution_1183122130078" processPriority="20" runAsUser="" runAsGroup=""/>
    <ioRedirect xmi:id="OutputRedirect_1183122130078" stdoutFilename="${SERVER_LOG_ROOT}/native_stdout.log" stderrFilename="${SERVER_LOG_ROOT}/native_stderr.log"/>
    <monitoringPolicy xmi:id="MonitoringPolicy_1183122130078" maximumStartupAttempts="3" pingInterval="60" pingTimeout="300" autoRestart="true" nodeRestartState="STOPPED"/>
    <jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7778" genericJvmArguments="">
      <systemProperties xmi:id="Property_1" name="com.ibm.security.jgss.debug" value="off" required="false"/>
      <systemProperties xmi:id="Property_2" name="com.ibm.security.krb5.Krb5Debug" value="off" required="false"/>
    </jvmEntries>
  </processDefinitions>
</process:Server>
                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/dbserver/                                                               0000777 0000000 0000000 00000000000 11524351453 016733  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/                                              0000777 0000000 0000000 00000000000 11524351472 022205  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/proc/                                         0000777 0000000 0000000 00000000000 11524351471 023147  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/proc/cpuinfo                                  0000644 0000000 0000000 00000001017 11524351471 024530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/dbserver/VM_configuration/proc/mounts                                   0000644 0000000 0000000 00000001357 11524351471 024421  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1020708k,nr_inodes=255177,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1253,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1253,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/dbserver/VM_configuration/proc/swaps                                    0000644 0000000 0000000 00000000150 11524351471 024217  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	30240	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/dbserver/VM_configuration/proc/devices                                  0000644 0000000 0000000 00000000567 11524351471 024520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile2/dbserver/VM_configuration/proc/modules                                  0000644 0000000 0000000 00000002621 11524351471 024537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 38 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile2/dbserver/VM_configuration/proc/partitions                               0000644 0000000 0000000 00000000260 11524351471 025260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile2/dbserver/VM_configuration/proc/meminfo                                  0000644 0000000 0000000 00000002222 11524351471 024516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2055756 kB
MemFree:           61844 kB
Buffers:           23844 kB
Cached:           146580 kB
SwapCached:         3132 kB
Active:           752024 kB
Inactive:         289328 kB
Active(anon):     695960 kB
Inactive(anon):   234316 kB
Active(file):      56064 kB
Inactive(file):    55012 kB
Unevictable:        3228 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2017968 kB
Dirty:               160 kB
Writeback:             0 kB
AnonPages:        872484 kB
Mapped:           104140 kB
Shmem:             54764 kB
Slab:              70256 kB
SReclaimable:      15280 kB
SUnreclaim:        54976 kB
KernelStack:        2144 kB
PageTables:         8908 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2649884 kB
Committed_AS:    3488052 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       11532 kB
VmallocChunk:   34359719476 kB
HardwareCorrupted:     0 kB
AnonHugePages:    567296 kB
HugePages_Total:     416
HugePages_Free:       74
HugePages_Rsvd:       49
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2088960 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/dbserver/VM_configuration/root/                                         0000777 0000000 0000000 00000000000 11524351471 023167  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/root/convert_to_vf.sh                         0000755 0000000 0000000 00000001135 11524351471 026377  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/lspci.txt                                     0000644 0000000 0000000 00000001211 11524351470 024045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile2/dbserver/VM_configuration/df.txt                                        0000644 0000000 0000000 00000000401 11524351453 023325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916  10354216   2426720  82% /
tmpfs                  1027876         0   1027876   0% /dev/shm
/dev/vdb1             20642412  11289524   8304316  58% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/dbserver/VM_configuration/mount.txt                                     0000644 0000000 0000000 00000000612 11524351471 024102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile2/dbserver/VM_configuration/etc/                                          0000777 0000000 0000000 00000000000 11524351470 022756  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/                                     0000777 0000000 0000000 00000000000 11524351462 023605  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/                               0000777 0000000 0000000 00000000000 11524351470 024515  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests              0000755 0000000 0000000 00000017172 11524351463 027711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                     0000755 0000000 0000000 00000004325 11524351463 026327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                  0000755 0000000 0000000 00000006014 11524351464 027116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                    0000755 0000000 0000000 00000012327 11524351465 026520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                   0000755 0000000 0000000 00000005222 11524351466 026704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S99firstboot                   0000755 0000000 0000000 00000005341 11524351470 026762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                        0000755 0000000 0000000 00000010671 11524351470 025702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                       0000755 0000000 0000000 00000006364 11524351464 026057  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                   0000755 0000000 0000000 00000020716 11524351465 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                        0000755 0000000 0000000 00000004731 11524351465 025707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon                0000755 0000000 0000000 00000004754 11524351463 027261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                   0000755 0000000 0000000 00000001364 11524351467 026727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                       0000755 0000000 0000000 00000003027 11524351465 026045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                      0000755 0000000 0000000 00000006743 11524351470 026242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                       0000755 0000000 0000000 00000010777 11524351464 026051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                  0000755 0000000 0000000 00000004230 11524351467 027071  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                       0000755 0000000 0000000 00000006302 11524351465 026021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                         0000755 0000000 0000000 00000004236 11524351470 025535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                     0000755 0000000 0000000 00000004031 11524351466 026352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                  0000755 0000000 0000000 00000003521 11524351466 027035  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                     0000755 0000000 0000000 00000006050 11524351466 026407  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                     0000755 0000000 0000000 00000002363 11524351465 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                  0000755 0000000 0000000 00000004054 11524351463 027065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                   0000755 0000000 0000000 00000005013 11524351466 026744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                       0000755 0000000 0000000 00000003213 11524351465 026040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                     0000755 0000000 0000000 00000003512 11524351464 026371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                        0000755 0000000 0000000 00000003603 11524351464 025677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                      0000755 0000000 0000000 00000011277 11524351464 026224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S10network                     0000755 0000000 0000000 00000014466 11524351466 026434  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                     0000755 0000000 0000000 00000004326 11524351466 026441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                      0000755 0000000 0000000 00000006462 11524351466 026213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                       0000755 0000000 0000000 00000027662 11524351467 026067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                        0000755 0000000 0000000 00000006445 11524351464 025602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                   0000755 0000000 0000000 00000003245 11524351467 026674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K60crond                       0000755 0000000 0000000 00000005445 11524351464 026040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                       0000755 0000000 0000000 00000005522 11524351463 026041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl               0000755 0000000 0000000 00000002221 11524351465 027531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                   0000755 0000000 0000000 00000004010 11524351463 026700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                         0000755 0000000 0000000 00000013536 11524351464 025521  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                        0000755 0000000 0000000 00000004723 11524351467 025670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                      0000755 0000000 0000000 00000003024 11524351463 026171  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                       0000755 0000000 0000000 00000003275 11524351467 026027  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                    0000755 0000000 0000000 00000025442 11524351466 026552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                   0000755 0000000 0000000 00000004370 11524351467 026672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S99local                       0000755 0000000 0000000 00000000334 11524351470 026036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                     0000755 0000000 0000000 00000006675 11524351466 026411  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                  0000755 0000000 0000000 00000005650 11524351464 027101  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor                0000555 0000000 0000000 00000004612 11524351466 027277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                      0000755 0000000 0000000 00000007234 11524351467 026251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                    0000755 0000000 0000000 00000003433 11524351470 026574  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                      0000755 0000000 0000000 00000005672 11524351463 026221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                       0000755 0000000 0000000 00000003254 11524351470 026034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                   0000755 0000000 0000000 00000005063 11524351467 026716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                       0000755 0000000 0000000 00000012432 11524351467 026060  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                     0000755 0000000 0000000 00000007414 11524351464 026422  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                    0000755 0000000 0000000 00000020557 11524351465 026545  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond                 0000755 0000000 0000000 00000003427 11524351465 027272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/rc3.d/K05atd                         0000755 0000000 0000000 00000004112 11524351463 025467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/                              0000777 0000000 0000000 00000000000 11524351462 024772  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/network                       0000755 0000000 0000000 00000014466 11524351460 026416  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/gfs2                          0000755 0000000 0000000 00000006445 11524351456 025571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/sysstat                       0000755 0000000 0000000 00000002363 11524351462 026432  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/saslauthd                     0000755 0000000 0000000 00000004010 11524351462 026677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/messagebus                    0000755 0000000 0000000 00000004230 11524351457 027055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/autobench                     0000755 0000000 0000000 00000005063 11524351455 026672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/atd                           0000755 0000000 0000000 00000004112 11524351454 025463  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/mcelogd                       0000755 0000000 0000000 00000003535 11524351457 026340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/auditd                        0000755 0000000 0000000 00000006462 11524351455 026200  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/certmonger                    0000755 0000000 0000000 00000004054 11524351455 027066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/irqbalance                    0000755 0000000 0000000 00000003521 11524351457 027022  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/acpid                         0000755 0000000 0000000 00000003275 11524351454 026004  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/nscd                          0000755 0000000 0000000 00000004723 11524351460 025647  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                     0000755 0000000 0000000 00000005222 11524351461 026657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/nfs                           0000755 0000000 0000000 00000013536 11524351460 025510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/sssd                          0000755 0000000 0000000 00000004731 11524351462 025675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/crond                         0000755 0000000 0000000 00000005445 11524351455 026033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/ip6tables                     0000755 0000000 0000000 00000020716 11524351456 026616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/firstboot                     0000755 0000000 0000000 00000005341 11524351455 026734  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/autofs                        0000755 0000000 0000000 00000007234 11524351455 026225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/sshd                          0000755 0000000 0000000 00000010671 11524351462 025662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/ksm                           0000755 0000000 0000000 00000004236 11524351457 025517  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/libvirt-guests                0000755 0000000 0000000 00000017172 11524351457 027713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                  0000755 0000000 0000000 00000004754 11524351455 027261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/ypbind                        0000755 0000000 0000000 00000011277 11524351462 026211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/psacct                        0000755 0000000 0000000 00000003024 11524351461 026167  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/xinetd                        0000755 0000000 0000000 00000006743 11524351462 026221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/nfslock                       0000755 0000000 0000000 00000006675 11524351460 026367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/cgred                         0000755 0000000 0000000 00000006302 11524351455 026003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/migrateip                     0000755 0000000 0000000 00000001364 11524351460 026677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/udev-post                     0000755 0000000 0000000 00000004370 11524351462 026646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/haldaemon                     0000755 0000000 0000000 00000003245 11524351456 026653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/ipsec                         0000755 0000000 0000000 00000010777 11524351456 026036  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/rpcbind                       0000755 0000000 0000000 00000004031 11524351461 026332  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/rhnsd                         0000755 0000000 0000000 00000005522 11524351461 026035  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/functions                     0000644 0000000 0000000 00000042767 11524351455 026743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/kdump                         0000755 0000000 0000000 00000027662 11524351457 026055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/postfix                       0000755 0000000 0000000 00000007414 11524351461 026415  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/iptables                      0000755 0000000 0000000 00000020557 11524351456 026533  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/rsyslog                       0000755 0000000 0000000 00000004326 11524351461 026422  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/netconsole                    0000755 0000000 0000000 00000005650 11524351460 027071  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/rpcgssd                       0000755 0000000 0000000 00000006050 11524351461 026361  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/abrtd                         0000755 0000000 0000000 00000003254 11524351454 026015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                  0000555 0000000 0000000 00000004612 11524351457 027266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/halt                          0000755 0000000 0000000 00000012723 11524351456 025654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/cgconfig                      0000755 0000000 0000000 00000012327 11524351455 026502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/single                        0000755 0000000 0000000 00000001207 11524351462 026175  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/mdmonitor                     0000755 0000000 0000000 00000005013 11524351457 026727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/restorecond                   0000755 0000000 0000000 00000003427 11524351461 027250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/cpuspeed                      0000755 0000000 0000000 00000025442 11524351455 026535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/netfs                         0000755 0000000 0000000 00000012432 11524351460 026033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                    0000755 0000000 0000000 00000006014 11524351461 027075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/oddjobd                       0000755 0000000 0000000 00000004325 11524351460 026323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/ksmtuned                      0000755 0000000 0000000 00000003433 11524351457 026555  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/sandbox                       0000755 0000000 0000000 00000003242 11524351461 026352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/killall                       0000755 0000000 0000000 00000001214 11524351457 026342  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/rdisc                         0000755 0000000 0000000 00000003027 11524351461 026021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/httpd                         0000755 0000000 0000000 00000006364 11524351456 026053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/ntpd                          0000755 0000000 0000000 00000003603 11524351460 025661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/smartd                        0000755 0000000 0000000 00000005672 11524351462 026220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/nslcd                         0000755 0000000 0000000 00000003213 11524351460 026014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/ntpdate                       0000755 0000000 0000000 00000003512 11524351460 026352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile2/dbserver/VM_configuration/etc/rc.d/init.d/microcode_ctl                 0000755 0000000 0000000 00000002221 11524351460 027515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/dbserver/VM_configuration/etc/hosts                                     0000644 0000000 0000000 00000000267 11524351453 024043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/dbserver/VM_configuration/etc/iproute2/                                 0000777 0000000 0000000 00000000000 11524351454 024531  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/etc/iproute2/rt_dsfield                       0000644 0000000 0000000 00000000672 11524351454 026574  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile2/dbserver/VM_configuration/etc/iproute2/rt_realms                        0000644 0000000 0000000 00000000160 11524351454 026435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile2/dbserver/VM_configuration/etc/iproute2/rt_scopes                        0000644 0000000 0000000 00000000134 11524351454 026447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/dbserver/VM_configuration/etc/iproute2/ematch_map                       0000644 0000000 0000000 00000000073 11524351454 026546  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/dbserver/VM_configuration/etc/iproute2/rt_tables                        0000644 0000000 0000000 00000000127 11524351454 026427  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/dbserver/VM_configuration/etc/iproute2/rt_protos                        0000644 0000000 0000000 00000000475 11524351454 026511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/etc/nsswitch.conf                             0000644 0000000 0000000 00000003230 11524351454 025463  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/dbserver/VM_configuration/etc/fstab                                     0000644 0000000 0000000 00000001603 11524351453 023775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile2/dbserver/VM_configuration/etc/sysctl.conf                               0000644 0000000 0000000 00000001466 11524351470 025151  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile2/dbserver/VM_configuration/etc/inittab                                   0000644 0000000 0000000 00000001714 11524351453 024333  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
fmc:2345:respawn:/data-disk/opt/ibm/db2/V9.7/bin/db2fmcd #DB2 Fault Monitor Coordinator
                                                    Virtual_Configuration/tile2/dbserver/VM_configuration/var/                                          0000777 0000000 0000000 00000000000 11524351472 022775  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/var/log/                                      0000777 0000000 0000000 00000000000 11524351472 023556  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/var/log/dmesg                                 0000644 0000000 0000000 00000043426 11524351472 024605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0 hugepages=416
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007fffd000 (usable)
 BIOS-e820: 000000007fffd000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x7fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007fffd000
 0000000000 - 007fe00000 page 2M
 007fe00000 - 007fffd000 page 4k
kernel direct mapping tables up to 7fffd000 @ 8000-c000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000007fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000007ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000007fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000007ffffe00 00040
ACPI: SSDT 000000007fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000007fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000007fffd000
Bootmem setup node 0 0000000000000000-000000007fffd000
  NODE_DATA [000000000000a000 - 000000000003dfff]
  bootmap [000000000003e000 -  000000000004dfff] pages 10
(7 early reservations) ==> bootmem [0000000000 - 007fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000a000]          PGTABLE ==> [0000008000 - 000000a000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0001bfffff] PMD -> [ffff880002200000-ffff880003dfffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0007fffd
On node 0 totalpages: 524182
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3831 pages, LIFO batch:0
  DMA32 zone: 7112 pages used for memmap
  DMA32 zone: 513077 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 80000000 (gap: 80000000:7ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 516908
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0 hugepages=416
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2041384k/2097140k available (4935k kernel code, 412k absent, 55344k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 20971520 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116128.312:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 416 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 4012
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:02:07 UTC (1297116127)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
b2:ee:68:d7:72:fe
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                          Virtual_Configuration/tile2/dbserver/VM_configuration/boot/                                         0000777 0000000 0000000 00000000000 11524351453 023147  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/boot/grub/                                    0000777 0000000 0000000 00000000000 11524351453 024106  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/VM_configuration/boot/grub/grub.conf                           0000644 0000000 0000000 00000001457 11524351453 025717  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0 hugepages=416
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                 Virtual_Configuration/tile2/dbserver/VM_configuration/rpmpkgs.txt                                   0000644 0000000 0000000 00000076554 11524351472 024446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
scrub-2.2-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
xvattr-1.3-18.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
python-slip-0.2.11-1.el6.noarch
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
python-meh-0.9-1.el6.noarch
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
libstdc++-4.4.4-13.el6.i686
vte-0.25.1-5.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
glx-utils-7.7-2.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
yelp-2.28.1-8.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
gnome-terminal-2.31.3-4.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
cracklib-python-2.8.16-2.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
system-config-users-docs-1.0.8-1.el6.noarch
report-gtk-0.18-7.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
xorg-x11-xkb-utils-7.4-6.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
report-newt-0.18-7.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
zenity-2.28.0-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
fuse-2.8.3-1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
seabios-0.5.1-3.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                    Virtual_Configuration/tile2/dbserver/VM_configuration/ifconfig.txt                                  0000644 0000000 0000000 00000002326 11524351470 024527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:09  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:259 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:25568 (24.9 KiB)  TX bytes:897 (897.0 b)

eth1      Link encap:Ethernet  HWaddr B2:EE:68:D7:72:FE  
          inet addr:10.1.217.9  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::b0ee:68ff:fed7:72fe/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9363686 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9087294 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1929454453 (1.7 GiB)  TX bytes:3713189394 (3.4 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:747 errors:0 dropped:0 overruns:0 frame:0
          TX packets:747 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:72910 (71.2 KiB)  TX bytes:72910 (71.2 KiB)

                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile2/dbserver/VM_configuration/chkconfig.txt                                 0000644 0000000 0000000 00000006625 11524351453 024705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
firstboot      	0:off	1:off	2:off	3:on	4:off	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                           Virtual_Configuration/tile2/dbserver/Software_Configuration/                                        0000777 0000000 0000000 00000000000 11524351452 023413  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/dbserver/Software_Configuration/profile.env                             0000644 0000000 0000000 00000000116 11524351452 025557  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   DB2_LARGE_PAGE_MEM='DB'
DB2_PINNED_BP='ON'
DB2COMM='TCPIP'
DB2AUTOSTART='YES'
                                                                                                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/dbserver/Software_Configuration/db2nodes.cfg                            0000444 0000000 0000000 00000000016 11524351452 025563  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0 tb3-dbt02 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/webserver/                                                              0000755 0000000 0000000 00000000000 11524351552 017117  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/VM_configuration/                                             0000755 0000000 0000000 00000000000 11524351553 022371  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/VM_configuration/df.txt                                       0000644 0000000 0000000 00000000570 11524351553 023525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3895456   8885480  31% /
tmpfs                  5581760         0   5581760   0% /dev/shm
/dev/vdb1             20641404    969916  18622964   5% /data-disk
tb3-infrat02:/support-download
                      61923456  33417216  25360768  57% /var/www/html/support/downloads
                                                                                                                                        Virtual_Configuration/tile2/webserver/VM_configuration/etc/                                         0000755 0000000 0000000 00000000000 11524351554 023145  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/                                    0000755 0000000 0000000 00000000000 11524351562 023772  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/                              0000755 0000000 0000000 00000000000 11524351564 024705  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests             0000755 0000000 0000000 00000017172 11524351563 030102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                    0000755 0000000 0000000 00000004325 11524351563 026520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524351563 027306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                      0000755 0000000 0000000 00000006364 11524351563 026247  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                  0000755 0000000 0000000 00000000000 11524351564 027000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                       0000755 0000000 0000000 00000004731 11524351564 026077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon               0000755 0000000 0000000 00000004754 11524351562 027451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                      0000755 0000000 0000000 00000003027 11524351564 026235  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                      0000755 0000000 0000000 00000010777 11524351564 026242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                      0000755 0000000 0000000 00000006302 11524351564 026211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                 0000755 0000000 0000000 00000004054 11524351562 027255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                      0000755 0000000 0000000 00000003213 11524351564 026230  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                    0000755 0000000 0000000 00000003512 11524351564 026562  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                       0000755 0000000 0000000 00000003603 11524351564 026070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                     0000755 0000000 0000000 00000011277 11524351564 026415  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                       0000755 0000000 0000000 00000006445 11524351564 025773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K60crond                      0000755 0000000 0000000 00000005445 11524351563 026230  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                      0000755 0000000 0000000 00000005522 11524351563 026232  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                  0000755 0000000 0000000 00000004010 11524351563 027071  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                        0000755 0000000 0000000 00000013536 11524351563 025711  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                     0000755 0000000 0000000 00000003024 11524351563 026362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                 0000755 0000000 0000000 00000005650 11524351563 027271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                     0000755 0000000 0000000 00000005672 11524351562 026411  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                    0000755 0000000 0000000 00000007414 11524351563 026612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond                0000755 0000000 0000000 00000003427 11524351564 027462  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/rc3.d/K05atd                        0000755 0000000 0000000 00000004112 11524351563 025660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/                             0000777 0000000 0000000 00000000000 11524351562 025163  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/network                      0000755 0000000 0000000 00000014466 11524351560 026607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/gfs2                         0000755 0000000 0000000 00000006445 11524351556 025762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/sysstat                      0000755 0000000 0000000 00000002363 11524351562 026623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/saslauthd                    0000755 0000000 0000000 00000004010 11524351561 027067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/messagebus                   0000755 0000000 0000000 00000004230 11524351557 027246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/autobench                    0000755 0000000 0000000 00000005063 11524351555 027063  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/atd                          0000755 0000000 0000000 00000004112 11524351555 025655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/mcelogd                      0000755 0000000 0000000 00000003535 11524351557 026531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/auditd                       0000755 0000000 0000000 00000006462 11524351555 026371  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/certmonger                   0000755 0000000 0000000 00000004054 11524351555 027257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/irqbalance                   0000755 0000000 0000000 00000003521 11524351556 027212  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/acpid                        0000755 0000000 0000000 00000003275 11524351554 026175  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/nscd                         0000755 0000000 0000000 00000004723 11524351560 026040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                    0000755 0000000 0000000 00000005222 11524351561 027050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/nfs                          0000755 0000000 0000000 00000013536 11524351560 025701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/sssd                         0000755 0000000 0000000 00000004731 11524351562 026066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/crond                        0000755 0000000 0000000 00000005445 11524351555 026224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/ip6tables                    0000755 0000000 0000000 00000020716 11524351556 027007  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/autofs                       0000755 0000000 0000000 00000007234 11524351555 026416  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/sshd                         0000755 0000000 0000000 00000010671 11524351562 026053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/ksm                          0000755 0000000 0000000 00000004236 11524351557 025710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/libvirt-guests               0000755 0000000 0000000 00000017172 11524351557 030104  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                 0000755 0000000 0000000 00000004754 11524351555 027452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/ypbind                       0000755 0000000 0000000 00000011277 11524351562 026402  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/psacct                       0000755 0000000 0000000 00000003024 11524351560 026357  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/xinetd                       0000755 0000000 0000000 00000006743 11524351562 026412  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/nfslock                      0000755 0000000 0000000 00000006675 11524351560 026560  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/cgred                        0000755 0000000 0000000 00000006302 11524351555 026174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/migrateip                    0000755 0000000 0000000 00000001364 11524351557 027076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/udev-post                    0000755 0000000 0000000 00000004370 11524351562 027037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/haldaemon                    0000755 0000000 0000000 00000003245 11524351556 027044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/ipsec                        0000755 0000000 0000000 00000010777 11524351556 026227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/rpcbind                      0000755 0000000 0000000 00000004031 11524351561 026523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/rhnsd                        0000755 0000000 0000000 00000005522 11524351561 026226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/functions                    0000644 0000000 0000000 00000042767 11524351556 027135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/kdump                        0000755 0000000 0000000 00000027662 11524351556 026245  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/postfix                      0000755 0000000 0000000 00000007414 11524351560 026605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/iptables                     0000755 0000000 0000000 00000020557 11524351556 026724  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/rsyslog                      0000755 0000000 0000000 00000004326 11524351561 026613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/netconsole                   0000755 0000000 0000000 00000005650 11524351557 027270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/rpcgssd                      0000755 0000000 0000000 00000006050 11524351561 026552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/abrtd                        0000755 0000000 0000000 00000003254 11524351554 026206  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                 0000555 0000000 0000000 00000004612 11524351557 027457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/halt                         0000755 0000000 0000000 00000012723 11524351556 026045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/cgconfig                     0000755 0000000 0000000 00000012327 11524351555 026673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/single                       0000755 0000000 0000000 00000001207 11524351561 026365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/mdmonitor                    0000755 0000000 0000000 00000005013 11524351557 027120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/restorecond                  0000755 0000000 0000000 00000003427 11524351561 027441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/cpuspeed                     0000755 0000000 0000000 00000025442 11524351555 026726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/netfs                        0000755 0000000 0000000 00000012432 11524351560 026224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                   0000755 0000000 0000000 00000006014 11524351561 027266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/oddjobd                      0000755 0000000 0000000 00000004325 11524351560 026514  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/ksmtuned                     0000755 0000000 0000000 00000003433 11524351557 026746  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/sandbox                      0000755 0000000 0000000 00000003242 11524351561 026543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/killall                      0000755 0000000 0000000 00000001214 11524351556 026532  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/rdisc                        0000755 0000000 0000000 00000003027 11524351560 026211  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/httpd                        0000755 0000000 0000000 00000006364 11524351556 026244  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/ntpd                         0000755 0000000 0000000 00000003603 11524351560 026052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/smartd                       0000755 0000000 0000000 00000005672 11524351561 026410  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/nslcd                        0000755 0000000 0000000 00000003213 11524351560 026205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/ntpdate                      0000755 0000000 0000000 00000003512 11524351560 026543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile2/webserver/VM_configuration/etc/rc.d/init.d/microcode_ctl                0000755 0000000 0000000 00000002221 11524351557 027714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/webserver/VM_configuration/etc/hosts                                    0000644 0000000 0000000 00000000236 11524351553 024230  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/webserver/VM_configuration/etc/iproute2/                                0000777 0000000 0000000 00000000000 11524351554 024722  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/VM_configuration/etc/iproute2/rt_dsfield                      0000644 0000000 0000000 00000000672 11524351553 026764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile2/webserver/VM_configuration/etc/iproute2/rt_realms                       0000644 0000000 0000000 00000000160 11524351554 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile2/webserver/VM_configuration/etc/iproute2/rt_scopes                       0000644 0000000 0000000 00000000134 11524351554 026640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/webserver/VM_configuration/etc/iproute2/ematch_map                      0000644 0000000 0000000 00000000073 11524351553 026736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/webserver/VM_configuration/etc/iproute2/rt_tables                       0000644 0000000 0000000 00000000127 11524351554 026620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/webserver/VM_configuration/etc/iproute2/rt_protos                       0000644 0000000 0000000 00000000475 11524351554 026702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/VM_configuration/etc/nsswitch.conf                            0000644 0000000 0000000 00000003230 11524351554 025654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/webserver/VM_configuration/etc/fstab                                    0000644 0000000 0000000 00000001603 11524351553 024166  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile2/webserver/VM_configuration/etc/inittab                                  0000644 0000000 0000000 00000001564 11524351553 024527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile2/webserver/VM_configuration/boot/                                        0000777 0000000 0000000 00000000000 11524351553 023340  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/VM_configuration/boot/grub/                                   0000777 0000000 0000000 00000000000 11524351553 024277  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/VM_configuration/boot/grub/grub.conf                          0000644 0000000 0000000 00000002217 11524351553 026103  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/webserver/VM_configuration/chkconfig.txt                                0000644 0000000 0000000 00000006535 11524351553 025076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile2/webserver/Software_Configuration/                                       0000777 0000000 0000000 00000000000 11524351551 023603  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/Software_Configuration/httpd/                                 0000777 0000000 0000000 00000000000 11524351551 024726  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/Software_Configuration/httpd/conf.d/                          0000777 0000000 0000000 00000000000 11524351551 026075  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/Software_Configuration/httpd/conf.d/manual.conf               0000644 0000000 0000000 00000000447 11524351551 030222  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This configuration file allows the manual to be accessed at 
# http://localhost/manual/
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"

<Directory "/var/www/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
                                                                                                                                                                                                                         Virtual_Configuration/tile2/webserver/Software_Configuration/httpd/conf.d/php.conf                  0000644 0000000 0000000 00000001242 11524351551 027526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/webserver/Software_Configuration/httpd/conf.d/welcome.conf              0000644 0000000 0000000 00000000453 11524351551 030375  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # 
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

                                                                                                                                                                                                                     Virtual_Configuration/tile2/webserver/Software_Configuration/httpd/conf.d/README                    0000644 0000000 0000000 00000000610 11524351551 026746  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
This directory holds Apache 2.0 module-specific configuration files;
any files in this directory which have the ".conf" extension will be
processed as Apache configuration files.

Files are processed in alphabetical order, so if using configuration
directives which depend on, say, mod_perl being loaded, ensure that
these are placed in a filename later in the sort order than "perl.conf".

                                                                                                                        Virtual_Configuration/tile2/webserver/Software_Configuration/httpd/conf/                            0000777 0000000 0000000 00000000000 11524351551 025653  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/Software_Configuration/httpd/conf/httpd.conf                  0000644 0000000 0000000 00000103142 11524351551 027642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# Don't give away too much information about all the subcomponents
# we are running.  Comment out this line if you don't mind remote sites
# finding out what major optional modules you are running
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.  Note the PIDFILE variable in
# /etc/sysconfig/httpd must be set appropriately if this location is
# changed.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 60

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 0

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 60

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit 10240
MaxClients 10240
MaxRequestsPerChild  4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         4
MaxClients 10240
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

#
# The following modules are not loaded by default:
#
#LoadModule asis_module modules/mod_asis.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
#

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group #-1 on these systems!
#
User apache
Group apache

### Section 2: 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
#ServerName www.example.com:80

#
# UseCanonicalName: Determines how Apache constructs self-referencing 
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.  This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir disabled

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disabled" line above, and uncomment
    # the following line instead:
    # 
    #UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is 
# used to deliver files (assuming that the OS supports it). 
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
#
#EnableSendfile off

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
# requires the mod_logio module to be loaded.
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access_log common

#
# If you would like to have separate agent and referer logfiles, uncomment
# the following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# WebDAV module configuration section.
# 
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Directives controlling the display of server-generated directory listings.
#

#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes.  These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

#
# DefaultLanguage and AddLanguage allows you to specify the language of 
# a document. You can then use content negotiation to give a browser a 
# file in a language the user can understand.
#
# Specify a default language. This means that all data
# going out without a specific language tag (see below) will 
# be marked with this one. You probably do NOT want to set
# this unless you are sure it is correct for all cases.
#
# * It is generally better to not mark a page as 
# * being a certain language than marking it with the wrong
# * language!
#
# DefaultLanguage nl
#
# Note 1: The suffix does not have to be the same as the language
# keyword --- those with documents in Polish (whose net-standard
# language code is pl) may wish to use "AddLanguage pl .po" to
# avoid the ambiguity with the common suffix for perl scripts.
#
# Note 2: The example entries below illustrate that in some cases 
# the two character 'Language' abbreviation is not identical to 
# the two character 'Country' code for its country,
# E.g. 'Danmark/dk' versus 'Danish/da'.
#
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
# specifier. There is 'work in progress' to fix this and get
# the reference data for rfc1766 cleaned up.
#
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the 
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz

#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
#   MIME-types for downloading Certificates and CRLs
#
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
#  to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#    ErrorDocument 410 /error/HTTP_GONE.html.var
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Proxy>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
#   CacheEnable disk /
#   CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#

#</IfModule>
# End of proxy directives.

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
                                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/webserver/Software_Configuration/httpd/conf/magic                       0000644 0000000 0000000 00000031523 11524351551 026656  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Magic data for mod_mime_magic Apache module (originally for file(1) command)
# The module is described in /manual/mod/mod_mime_magic.html
#
# The format is 4-5 columns:
#    Column #1: byte number to begin checking from, ">" indicates continuation
#    Column #2: type of data to match
#    Column #3: contents of data to match
#    Column #4: MIME type of result
#    Column #5: MIME encoding of result (optional)

#------------------------------------------------------------------------------
# Localstuff:  file(1) magic for locally observed files
# Add any locally observed files here.

#------------------------------------------------------------------------------
# end local stuff
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Java

0	short		0xcafe
>2	short		0xbabe		application/java

#------------------------------------------------------------------------------
# audio:  file(1) magic for sound formats
#
# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
#

# Sun/NeXT audio data
0	string		.snd
>12	belong		1		audio/basic
>12	belong		2		audio/basic
>12	belong		3		audio/basic
>12	belong		4		audio/basic
>12	belong		5		audio/basic
>12	belong		6		audio/basic
>12	belong		7		audio/basic

>12	belong		23		audio/x-adpcm

# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
# (0x0064732E in little-endian encoding).
0	lelong		0x0064732E	
>12	lelong		1		audio/x-dec-basic
>12	lelong		2		audio/x-dec-basic
>12	lelong		3		audio/x-dec-basic
>12	lelong		4		audio/x-dec-basic
>12	lelong		5		audio/x-dec-basic
>12	lelong		6		audio/x-dec-basic
>12	lelong		7		audio/x-dec-basic
#                                       compressed (G.721 ADPCM)
>12	lelong		23		audio/x-dec-adpcm

# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
#					AIFF audio data
8	string		AIFF		audio/x-aiff	
#					AIFF-C audio data
8	string		AIFC		audio/x-aiff	
#					IFF/8SVX audio data
8	string		8SVX		audio/x-aiff	

# Creative Labs AUDIO stuff
#					Standard MIDI data
0	string	MThd			audio/unknown	
#>9 	byte	>0			(format %d)
#>11	byte	>1			using %d channels
#					Creative Music (CMF) data
0	string	CTMF			audio/unknown	
#					SoundBlaster instrument data
0	string	SBI			audio/unknown	
#					Creative Labs voice data
0	string	Creative\ Voice\ File	audio/unknown	
## is this next line right?  it came this way...
#>19	byte	0x1A
#>23	byte	>0			- version %d
#>22	byte	>0			\b.%d

# [GRR 950115:  is this also Creative Labs?  Guessing that first line
#  should be string instead of unknown-endian long...]
#0	long		0x4e54524b	MultiTrack sound data
#0	string		NTRK		MultiTrack sound data
#>4	long		x		- version %ld

# Microsoft WAVE format (*.wav)
# [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
#					Microsoft RIFF
0	string		RIFF		audio/unknown
#					- WAVE format
>8	string		WAVE		audio/x-wav
# MPEG audio.
0   beshort&0xfff0  0xfff0  audio/mpeg
# C64 SID Music files, from Linus Walleij <triad@df.lth.se>
0   string      PSID        audio/prs.sid

#------------------------------------------------------------------------------
# c-lang:  file(1) magic for C programs or various scripts
#

# XPM icons (Greg Roelofs, newt@uchicago.edu)
# ideally should go into "images", but entries below would tag XPM as C source
0	string		/*\ XPM		image/x-xbm	7bit

# this first will upset you if you're a PL/1 shop... (are there any left?)
# in which case rm it; ascmagic will catch real C programs
#					C or REXX program text
0	string		/*		text/plain
#					C++ program text
0	string		//		text/plain

#------------------------------------------------------------------------------
# compress:  file(1) magic for pure-compression formats (no archives)
#
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
#
# Formats for various forms of compressed data
# Formats for "compress" proper have been moved into "compress.c",
# because it tries to uncompress it to figure out what's inside.

# standard unix compress
0	string		\037\235	application/octet-stream	x-compress

# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
0       string          \037\213        application/octet-stream	x-gzip

# According to gzip.h, this is the correct byte order for packed data.
0	string		\037\036	application/octet-stream
#
# This magic number is byte-order-independent.
#
0	short		017437		application/octet-stream

# XXX - why *two* entries for "compacted data", one of which is
# byte-order independent, and one of which is byte-order dependent?
#
# compacted data
0	short		0x1fff		application/octet-stream
0	string		\377\037	application/octet-stream
# huf output
0	short		0145405		application/octet-stream

# Squeeze and Crunch...
# These numbers were gleaned from the Unix versions of the programs to
# handle these formats.  Note that I can only uncrunch, not crunch, and
# I didn't have a crunched file handy, so the crunch number is untested.
#				Keith Waclena <keith@cerberus.uchicago.edu>
#0	leshort		0x76FF		squeezed data (CP/M, DOS)
#0	leshort		0x76FE		crunched data (CP/M, DOS)

# Freeze
#0	string		\037\237	Frozen file 2.1
#0	string		\037\236	Frozen file 1.0 (or gzip 0.5)

# lzh?
#0	string		\037\240	LZH compressed data

#------------------------------------------------------------------------------
# frame:  file(1) magic for FrameMaker files
#
# This stuff came on a FrameMaker demo tape, most of which is
# copyright, but this file is "published" as witness the following:
#
0	string		\<MakerFile	application/x-frame
0	string		\<MIFFile	application/x-frame
0	string		\<MakerDictionary	application/x-frame
0	string		\<MakerScreenFon	application/x-frame
0	string		\<MML		application/x-frame
0	string		\<Book		application/x-frame
0	string		\<Maker		application/x-frame

#------------------------------------------------------------------------------
# html:  file(1) magic for HTML (HyperText Markup Language) docs
#
# from Daniel Quinlan <quinlan@yggdrasil.com>
# and Anna Shergold <anna@inext.co.uk>
#
0   string      \<!DOCTYPE\ HTML    text/html
0   string      \<!doctype\ html    text/html
0   string      \<HEAD      text/html
0   string      \<head      text/html
0   string      \<TITLE     text/html
0   string      \<title     text/html
0   string      \<html      text/html
0   string      \<HTML      text/html
0   string      \<!--       text/html
0   string      \<h1        text/html
0   string      \<H1        text/html

# XML eXtensible Markup Language, from Linus Walleij <triad@df.lth.se>
0   string      \<?xml      text/xml

#------------------------------------------------------------------------------
# images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
#
# originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
# additions by janl@ifi.uio.no as well as others. Jan also suggested
# merging several one- and two-line files into here.
#
# XXX - byte order for GIF and TIFF fields?
# [GRR:  TIFF allows both byte orders; GIF is probably little-endian]
#

# [GRR:  what the hell is this doing in here?]
#0	string		xbtoa		btoa'd file

# PBMPLUS
#					PBM file
0	string		P1		image/x-portable-bitmap	7bit
#					PGM file
0	string		P2		image/x-portable-greymap	7bit
#					PPM file
0	string		P3		image/x-portable-pixmap	7bit
#					PBM "rawbits" file
0	string		P4		image/x-portable-bitmap
#					PGM "rawbits" file
0	string		P5		image/x-portable-greymap
#					PPM "rawbits" file
0	string		P6		image/x-portable-pixmap

# NIFF (Navy Interchange File Format, a modification of TIFF)
# [GRR:  this *must* go before TIFF]
0	string		IIN1		image/x-niff

# TIFF and friends
#					TIFF file, big-endian
0	string		MM		image/tiff
#					TIFF file, little-endian
0	string		II		image/tiff

# possible GIF replacements; none yet released!
# (Greg Roelofs, newt@uchicago.edu)
#
# GRR 950115:  this was mine ("Zip GIF"):
#					ZIF image (GIF+deflate alpha)
0	string		GIF94z		image/unknown
#
# GRR 950115:  this is Jeremy Wohl's Free Graphics Format (better):
#					FGF image (GIF+deflate beta)
0	string		FGF95a		image/unknown
#
# GRR 950115:  this is Thomas Boutell's Portable Bitmap Format proposal
# (best; not yet implemented):
#					PBF image (deflate compression)
0	string		PBF		image/unknown

# GIF
0	string		GIF		image/gif

# JPEG images
0	beshort		0xffd8		image/jpeg

# PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
0	string		BM		image/bmp
#>14	byte		12		(OS/2 1.x format)
#>14	byte		64		(OS/2 2.x format)
#>14	byte		40		(Windows 3.x format)
#0	string		IC		icon
#0	string		PI		pointer
#0	string		CI		color icon
#0	string		CP		color pointer
#0	string		BA		bitmap array


#------------------------------------------------------------------------------
# lisp:  file(1) magic for lisp programs
#
# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
0	string	;;			text/plain	8bit
# Emacs 18 - this is always correct, but not very magical.
0	string	\012(			application/x-elc
# Emacs 19
0	string	;ELC\023\000\000\000	application/x-elc

#------------------------------------------------------------------------------
# mail.news:  file(1) magic for mail and news
#
# There are tests to ascmagic.c to cope with mail and news.
0	string		Relay-Version: 	message/rfc822	7bit
0	string		#!\ rnews	message/rfc822	7bit
0	string		N#!\ rnews	message/rfc822	7bit
0	string		Forward\ to 	message/rfc822	7bit
0	string		Pipe\ to 	message/rfc822	7bit
0	string		Return-Path:	message/rfc822	7bit
0	string		Path:		message/news	8bit
0	string		Xref:		message/news	8bit
0	string		From:		message/rfc822	7bit
0	string		Article 	message/news	8bit
#------------------------------------------------------------------------------
# msword: file(1) magic for MS Word files
#
# Contributor claims:
# Reversed-engineered MS Word magic numbers
#

0	string		\376\067\0\043			application/msword
0	string		\333\245-\0\0\0			application/msword

# disable this one because it applies also to other
# Office/OLE documents for which msword is not correct. See PR#2608.
#0	string		\320\317\021\340\241\261	application/msword



#------------------------------------------------------------------------------
# printer:  file(1) magic for printer-formatted files
#

# PostScript
0	string		%!		application/postscript
0	string		\004%!		application/postscript

# Acrobat
# (due to clamen@cs.cmu.edu)
0	string		%PDF-		application/pdf

#------------------------------------------------------------------------------
# sc:  file(1) magic for "sc" spreadsheet
#
38	string		Spreadsheet	application/x-sc

#------------------------------------------------------------------------------
# tex:  file(1) magic for TeX files
#
# XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
#
# From <conklin@talisman.kaleida.com>

# Although we may know the offset of certain text fields in TeX DVI
# and font files, we can't use them reliably because they are not
# zero terminated. [but we do anyway, christos]
0	string		\367\002	application/x-dvi
#0	string		\367\203	TeX generic font data
#0	string		\367\131	TeX packed font data
#0	string		\367\312	TeX virtual font data
#0	string		This\ is\ TeX,	TeX transcript text	
#0	string		This\ is\ METAFONT,	METAFONT transcript text

# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data.  The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
#2	string		\000\021	TeX font metric data
#2	string		\000\022	TeX font metric data
#>34	string		>\0		(%s)

# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
#0	string		\\input\ texinfo	Texinfo source text
#0	string		This\ is\ Info\ file	GNU Info text

# correct TeX magic for Linux (and maybe more)
# from Peter Tobias (tobias@server.et-inf.fho-emden.de)
#
0	leshort		0x02f7		application/x-dvi

# RTF - Rich Text Format
0	string		{\\rtf		application/rtf

#------------------------------------------------------------------------------
# animation:  file(1) magic for animation/movie formats
#
# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
#						MPEG file
0	string		\000\000\001\263	video/mpeg
#
# The contributor claims:
#   I couldn't find a real magic number for these, however, this
#   -appears- to work.  Note that it might catch other files, too,
#   so BE CAREFUL!
#
# Note that title and author appear in the two 20-byte chunks
# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
# 255 (hex FF)! DL format SUCKS BIG ROCKS.
#
#						DL file version 1 , medium format (160x100, 4 images/screen)
0	byte		1			video/unknown
0	byte		2			video/unknown
# Quicktime video, from Linus Walleij <triad@df.lth.se>
# from Apple quicktime file format documentation.
4   string      moov        video/quicktime
4   string      mdat        video/quicktime

# PNG [Portable Network Graphics, or "PNG's Not GIF"] images
#
# 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
0   string      \211PNG\015      image/png
                                                                                                                                                                             Virtual_Configuration/tile2/webserver/Software_Configuration/php/                                   0000777 0000000 0000000 00000000000 11524351552 024373  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/Software_Configuration/php/php.ini                            0000644 0000000 0000000 00000206751 11524351552 025672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   [PHP]

;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.

; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
; 1. SAPI module specific location.
; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; 4. Current working directory (except CLI)
; 5. The web server's directory (for SAPI modules), or directory of PHP
; (otherwise in Windows)
; 6. The directory from the --with-config-file-path compile time option, or the
; Windows directory (C:\windows or C:\winnt)
; See the PHP docs for more specific information.
; http://www.php.net/manual/en/configuration.file.php

; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future. 

; Directives following the section heading [PATH=/www/mysite] only
; apply to PHP files in the /www/mysite directory.  Directives
; following the section heading [HOST=www.example.com] only apply to
; PHP files served from www.example.com.  Directives set in these
; special sections cannot be overridden by user-defined INI files or
; at runtime. Currently, [PATH=] and [HOST=] sections only work under
; CGI/FastCGI.
; http://www.php.net/manual/en/ini.sections.php

; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
; Directives are variables used to configure PHP or PHP extensions.
; There is no name validation.  If PHP can't find an expected
; directive because it is not set or is mistyped, a default value will be used.

; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
; previously set variable or directive (e.g. ${foo})

; Expressions in the INI file are limited to bitwise operators and parentheses:
; |  bitwise OR
; ^  bitwise XOR
; &  bitwise AND
; ~  bitwise NOT
; !  boolean NOT

; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.

; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:

;  foo =         ; sets foo to an empty string
;  foo = None    ; sets foo to an empty string
;  foo = "None"  ; sets foo to the string 'None'

; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.

;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; PHP comes packaged with two INI files. One that is recommended to be used
; in production environments and one that is recommended to be used in
; development environments.

; php.ini-production contains settings which hold security, performance and
; best practices at its core. But please be aware, these settings may break
; compatibility with older or less security conscience applications. We
; recommending using the production ini in production and testing environments.

; php.ini-development is very similar to its production variant, except it's
; much more verbose when it comes to errors. We recommending using the
; development version only in development environments as errors shown to
; application users can inadvertently leak otherwise secure information.

; This 2 files are provided, by RPM, in /usr/share/doc/php-common-*/
; File used by RPM (the /etc/php.ini) is mainly the php.ini-production

;;;;;;;;;;;;;;;;;;;
; Quick Reference ;
;;;;;;;;;;;;;;;;;;;
; The following are all the settings which are different in either the production
; or development versions of the INIs with respect to PHP's default behavior.
; Please see the actual settings later in the document for more details as to why
; we recommend these changes in PHP's behavior.

; allow_call_time_pass_reference
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; display_errors
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; display_startup_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; error_reporting
;   Default Value: E_ALL & ~E_NOTICE
;   Development Value: E_ALL | E_STRICT
;   Production Value: E_ALL & ~E_DEPRECATED

; html_errors
;   Default Value: On
;   Development Value: On
;   Production value: Off

; log_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: On

; magic_quotes_gpc
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; max_input_time
;   Default Value: -1 (Unlimited)
;   Development Value: 60 (60 seconds)
;   Production Value: 60 (60 seconds)

; output_buffering
;   Default Value: Off
;   Development Value: 4096
;   Production Value: 4096

; register_argc_argv
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; register_long_arrays
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; request_order
;   Default Value: None
;   Development Value: "GP"
;   Production Value: "GP"

; session.bug_compat_42
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; session.bug_compat_warn
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; session.gc_divisor
;   Default Value: 100
;   Development Value: 1000
;   Production Value: 1000

; session.hash_bits_per_character
;   Default Value: 4
;   Development Value: 5
;   Production Value: 5

; short_open_tag
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; track_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; url_rewriter.tags
;   Default Value: "a=href,area=href,frame=src,form=,fieldset="
;   Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
;   Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"

; variables_order
;   Default Value: "EGPCS"
;   Development Value: "GPCS"
;   Production Value: "GPCS"

;;;;;;;;;;;;;;;;;;;;
; php.ini Options  ;
;;;;;;;;;;;;;;;;;;;;
; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
;user_ini.filename = ".user.ini"

; To disable this feature set this option to empty value
;user_ini.filename =

; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
;user_ini.cache_ttl = 300

;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
; http://www.php.net/manual/en/apache.configuration.php#ini.engine
engine = On

; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.short-open-tag
short_open_tag = Off

; Allow ASP-style <% %> tags.
; http://www.php.net/manual/en/ini.core.php#ini.asp-tags
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
; http://www.php.net/manual/en/ini.core.php#ini.precision
precision = 14

; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
; http://www.php.net/manual/en/ini.core.php#ini.y2k-compliance
y2k_compliance = On

; Output buffering is a mechanism for controlling how much output data
; (excluding headers and cookies) PHP should keep internally before pushing that
; data to the client. If your application's output exceeds this setting, PHP
; will send that data in chunks of roughly the size you specify.
; Turning on this setting and managing its maximum buffer size can yield some
; interesting side-effects depending on your application and web server.
; You may be able to send headers and cookies after you've already sent output
; through print or echo. You also may see performance benefits if your server is
; emitting less packets due to buffered output versus PHP streaming the output
; as it gets it. On production servers, 4096 bytes is a good setting for performance
; reasons.
; Note: Output buffering can also be controlled via Output Buffering Control
;   functions.
; Possible Values:
;   On = Enabled and buffer is unlimited. (Use with caution)
;   Off = Disabled
;   Integer = Enables the buffer and sets its maximum size in bytes.
; Default Value: Off
; Development Value: 4096
; Production Value: 4096
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-buffering
output_buffering = 4096

; You can redirect all of the output of your scripts to a function.  For
; example, if you set output_handler to "mb_output_handler", character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
;   directive. Instead, explicitly set the output handler using ob_start().
;   Using this ini directive may cause problems unless you know what script
;   is doing.
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
;   and you cannot use both "ob_gzhandler" and "zlib.output_compression".
; Note: output_handler must be empty if this is set 'On' !!!!
;   Instead you must use zlib.output_handler.
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-handler
;output_handler =

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
; Note: Resulting chunk size may vary due to nature of compression. PHP
;   outputs chunks that are few hundreds bytes each as a result of
;   compression. If you prefer a larger chunk size for better
;   performance, enable output_buffering in addition.
; Note: You need to use zlib.output_handler instead of the standard
;   output_handler, or otherwise the output will be corrupted.
; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression
zlib.output_compression = Off

; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression-level
;zlib.output_compression_level = -1

; You cannot specify additional output handlers if zlib.output_compression
; is activated here. This setting does the same as output_handler but in
; a different order.
; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-handler
;zlib.output_handler =

; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block.  This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block.  Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.implicit-flush
implicit_flush = Off

; The unserialize callback function will be called (with the undefined class'
; name as parameter), if the unserializer finds an undefined class
; which should be instantiated. A warning appears if the specified function is
; not defined, or if the function doesn't include/implement the missing class.
; So only set this entry, if you really want to implement such a
; callback-function.
unserialize_callback_func =

; When floats & doubles are serialized store serialize_precision significant
; digits after the floating point. The default value ensures that when floats
; are decoded with unserialize, the data will remain the same.
serialize_precision = 100

; This directive allows you to enable and disable warnings which PHP will issue
; if you pass a value by reference at function call time. Passing values by
; reference at function call time is a deprecated feature which will be removed
; from PHP at some point in the near future. The acceptable method for passing a
; value by reference to a function is by declaring the reference in the functions
; definition, not at call time. This directive does not disable this feature, it
; only determines whether PHP will warn you about it or not. These warnings
; should enabled in development environments only.
; Default Value: On (Suppress warnings)
; Development Value: Off (Issue warnings)
; Production Value: Off (Issue warnings)
; http://www.php.net/manual/en/ini.core.php#ini.allow-call-time-pass-reference
allow_call_time_pass_reference = Off

; Safe Mode
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode
safe_mode = Off

; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-gid
safe_mode_gid = Off

; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-include-dir
safe_mode_include_dir =

; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-exec-dir
safe_mode_exec_dir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here.  By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
; Note:  If this directive is empty, PHP will let the user modify ANY
;   environment variable!
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-allowed-env-vars
safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv().  These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-protected-env-vars
safe_mode_protected_env_vars = LD_LIBRARY_PATH

; open_basedir, if set, limits all file operations to the defined directory
; and below.  This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.open-basedir
;open_basedir =

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.disable-functions
disable_functions =

; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.disable-classes
disable_classes =

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; <span style="color: ???????"> would work.
; http://www.php.net/manual/en/misc.configuration.php#ini.syntax-highlighting
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg      = #FFFFFF
;highlight.default = #0000BB
;highlight.html    = #000000

; If enabled, the request will be allowed to complete even if the user aborts
; the request. Consider enabling it if executing long requests, which may end up
; being interrupted by the user or a browser timing out. PHP's default behavior
; is to disable this feature.
; http://www.php.net/manual/en/misc.configuration.php#ini.ignore-user-abort
;ignore_user_abort = On

; Determines the size of the realpath cache to be used by PHP. This value should
; be increased on systems where PHP opens many files to reflect the quantity of
; the file operations performed.
; http://www.php.net/manual/en/ini.core.php#ini.realpath-cache-size
;realpath_cache_size = 16k

; Duration of time, in seconds for which to cache realpath information for a given
; file or directory. For systems with rarely changing files, consider increasing this
; value.
; http://www.php.net/manual/en/ini.core.php#ini.realpath-cache-ttl
;realpath_cache_ttl = 120

;;;;;;;;;;;;;;;;;
; Miscellaneous ;
;;;;;;;;;;;;;;;;;

; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header).  It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
; http://www.php.net/manual/en/ini.core.php#ini.expose-php
expose_php = On

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time
max_execution_time = 30     

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts. 
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://www.php.net/manual/en/info.configuration.php#ini.max-input-time
max_input_time = 60

; Maximum input variable nesting level
; http://www.php.net/manual/en/info.configuration.php#ini.max-input-nesting-level
;max_input_nesting_level = 64

; Maximum amount of memory a script may consume (128MB)
; http://www.php.net/manual/en/ini.core.php#ini.memory-limit
memory_limit = 128M

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; This directive informs PHP of which errors, warnings and notices you would like
; it to take action for. The recommended way of setting values for this
; directive is through the use of the error level constants and bitwise
; operators. The error level constants are below here for convenience as well as
; some common settings and their meanings.
; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
; those related to E_NOTICE and E_STRICT, which together cover best practices and
; recommended coding standards in PHP. For performance reasons, this is the
; recommend error reporting setting. Your production server shouldn't be wasting
; resources complaining about best practices and coding standards. That's what
; development servers and development settings are for.
; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This
; means it pretty much reports everything which is exactly what you want during
; development and early testing.
;
; Error Level Constants:
; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
; E_ERROR           - fatal run-time errors
; E_RECOVERABLE_ERROR  - almost fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_STRICT          - run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
; E_DEPRECATED      - warn about code that will not work in future versions
;                     of PHP
; E_USER_DEPRECATED - user-generated deprecation warnings
;
; Common Values:
;   E_ALL & ~E_NOTICE  (Show all errors, except for notices and coding standards warnings.)
;   E_ALL & ~E_NOTICE | E_STRICT  (Show all errors, except for notices)
;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
;   E_ALL | E_STRICT  (Show all errors, warnings and notices including coding standards.)
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
error_reporting = E_ALL & ~E_DEPRECATED

; This directive controls whether or not and where PHP will output errors,
; notices and warnings too. Error output is very useful during development, but
; it could be very dangerous in production environments. Depending on the code
; which is triggering the error, sensitive information could potentially leak
; out of your application such as database usernames and passwords or worse.
; It's recommended that errors be logged on production servers rather than
; having the errors sent to STDOUT.
; Possible Values:
;   Off = Do not display any errors 
;   stderr = Display errors to STDERR (affects only CGI/CLI binaries!)   
;   On or stdout = Display errors to STDOUT
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors
display_errors = Off

; The display of errors which occur during PHP's startup sequence are handled
; separately from display_errors. PHP's default behavior is to suppress those
; errors from clients. Turning the display of startup errors on can be useful in
; debugging configuration problems. But, it's strongly recommended that you
; leave this setting off on production servers.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-startup-errors
display_startup_errors = Off

; Besides displaying errors, PHP can also log errors to locations such as a
; server-specific log, STDERR, or a location specified by the error_log
; directive found below. While errors should not be displayed on productions
; servers they should still be monitored and logging is a great way to do that.
; Default Value: Off
; Development Value: On
; Production Value: On
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors
log_errors = On

; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors-max-len
log_errors_max_len = 1024

; Do not log repeated messages. Repeated errors must occur in same file on same
; line unless ignore_repeated_source is set true.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.ignore-repeated-errors
ignore_repeated_errors = Off

; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; source lines.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.ignore-repeated-source
ignore_repeated_source = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.report-memleaks
report_memleaks = On

; This setting is on by default.
;report_zend_debug = 0

; Store the last error/warning message in $php_errormsg (boolean). Setting this value
; to On can assist in debugging and is appropriate for development servers. It should
; however be disabled on production servers.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors
track_errors = Off

; Turn off normal error reporting and emit XML-RPC error XML
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.xmlrpc-errors
;xmlrpc_errors = 0

; An XML-RPC faultCode
;xmlrpc_error_number = 0

; When PHP displays or logs an error, it has the capability of inserting html
; links to documentation related to that error. This directive controls whether
; those HTML links appear in error messages or not. For performance and security
; reasons, it's recommended you disable this on production servers.
; Default Value: On
; Development Value: On
; Production value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.html-errors
html_errors = Off

; If html_errors is set On PHP produces clickable error messages that direct
; to a page describing the error or function causing the error in detail.
; You can download a copy of the PHP manual from http://www.php.net/docs.php
; and change docref_root to the base URL of your local copy including the
; leading '/'. You must also specify the file extension being used including
; the dot. PHP's default behavior is to leave these settings empty.
; Note: Never use this feature for production boxes.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.docref-root
; Examples
;docref_root = "/phpmanual/"

; http://www.php.net/manual/en/errorfunc.configuration.php#ini.docref-ext
;docref_ext = .html

; String to output before an error message. PHP's default behavior is to leave
; this setting blank.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-prepend-string
; Example:
;error_prepend_string = "<font color=#ff0000>"

; String to output after an error message. PHP's default behavior is to leave
; this setting blank.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-append-string
; Example:
;error_append_string = "</font>"

; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-log
; Example:
;error_log = php_errors.log
; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog

;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;

; Note - track_vars is ALWAYS enabled as of PHP 4.0.3

; The separator used in PHP generated URLs to separate arguments.
; PHP's default setting is "&".
; http://www.php.net/manual/en/ini.core.php#ini.arg-separator.output
; Example:
;arg_separator.output = "&amp;"

; List of separator(s) used by PHP to parse input URLs into variables.
; PHP's default setting is "&".
; NOTE: Every character in this directive is considered as separator!
; http://www.php.net/manual/en/ini.core.php#ini.arg-separator.input
; Example:
;arg_separator.input = ";&"

; This directive determines which super global arrays are registered when PHP
; starts up. If the register_globals directive is enabled, it also determines
; what order variables are populated into the global space. G,P,C,E & S are
; abbreviations for the following respective super globals: GET, POST, COOKIE,
; ENV and SERVER. There is a performance penalty paid for the registration of
; these arrays and because ENV is not as commonly used as the others, ENV is
; is not recommended on productions servers. You can still get access to
; the environment variables through getenv() should you need to.
; Default Value: "EGPCS"
; Development Value: "GPCS"
; Production Value: "GPCS";
; http://www.php.net/manual/en/ini.core.php#ini.variables-order
variables_order = "GPCS"

; This directive determines which super global data (G,P,C,E & S) should
; be registered into the super global array REQUEST. If so, it also determines
; the order in which that data is registered. The values for this directive are
; specified in the same manner as the variables_order directive, EXCEPT one.
; Leaving this value empty will cause PHP to use the value set in the 
; variables_order directive. It does not mean it will leave the super globals
; array REQUEST empty.
; Default Value: None
; Development Value: "GP"
; Production Value: "GP"
; http://www.php.net/manual/en/ini.core.php#ini.request-order
request_order = "GP"

; Whether or not to register the EGPCS variables as global variables.  You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data.  This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARS[],
; variables.
; You should do your best to write your scripts so that they do not require
; register_globals to be on;  Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
; http://www.php.net/manual/en/ini.core.php#ini.register-globals
register_globals = Off

; Determines whether the deprecated long $HTTP_*_VARS type predefined variables
; are registered by PHP or not. As they are deprecated, we obviously don't
; recommend you use them. They are on by default for compatibility reasons but
; they are not recommended on production servers.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.register-long-arrays
register_long_arrays = Off

; This directive determines whether PHP registers $argv & $argc each time it
; runs. $argv contains an array of all the arguments passed to PHP when a script
; is invoked. $argc contains an integer representing the number of arguments
; that were passed when the script was invoked. These arrays are extremely
; useful when running scripts from the command line. When this directive is
; enabled, registering these variables consumes CPU cycles and memory each time
; a script is executed. For performance reasons, this feature should be disabled
; on production servers.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.register-argc-argv
register_argc_argv = Off

; When enabled, the SERVER and ENV variables are created when they're first
; used (Just In Time) instead of when the script starts. If these variables
; are not used within a script, having this directive on will result in a
; performance gain. The PHP directives register_globals, register_long_arrays,
; and register_argc_argv must be disabled for this directive to have any affect.
; http://www.php.net/manual/en/ini.core.php#ini.auto-globals-jit
auto_globals_jit = On

; Maximum size of POST data that PHP will accept.
; http://www.php.net/manual/en/ini.core.php#ini.post-max-size
post_max_size = 8M

; Magic quotes are a preprocessing feature of PHP where PHP will attempt to
; escape any character sequences in GET, POST, COOKIE and ENV data which might
; otherwise corrupt data being placed in resources such as databases before
; making that data available to you. Because of character encoding issues and
; non-standard SQL implementations across many databases, it's not currently
; possible for this feature to be 100% accurate. PHP's default behavior is to
; enable the feature. We strongly recommend you use the escaping mechanisms
; designed specifically for the database your using instead of relying on this
; feature. Also note, this feature has been deprecated as of PHP 5.3.0 and is
; scheduled for removal in PHP 6.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
; http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-runtime
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
; http://www.php.net/manual/en/sybase.configuration.php#ini.magic-quotes-sybase
magic_quotes_sybase = Off

; Automatically add files before PHP document.
; http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file
auto_prepend_file =

; Automatically add files after PHP document.
; http://www.php.net/manual/en/ini.core.php#ini.auto-append-file
auto_append_file =

; As of 4.0b4, PHP always outputs a character encoding by default in
; the Content-type: header.  To disable sending of the charset, simply
; set it to be empty.
;
; PHP's built-in default is text/html
; http://www.php.net/manual/en/ini.core.php#ini.default-mimetype
default_mimetype = "text/html"

; PHP's default character set is set to empty.
; http://www.php.net/manual/en/ini.core.php#ini.default-charset
;default_charset = "iso-8859-1"

; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
; to disable this feature.
; http://www.php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data
;always_populate_raw_post_data = On

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
;
; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://www.php.net/manual/en/ini.core.php#ini.include-path

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
; http://www.php.net/manual/en/ini.core.php#ini.doc-root
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
; http://www.php.net/manual/en/ini.core.php#ini.user-dir
user_dir =

; Directory in which the loadable extensions (modules) reside.
; http://www.php.net/manual/en/ini.core.php#ini.extension-dir
; extension_dir = "./"

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
; http://www.php.net/manual/en/info.configuration.php#ini.enable-dl
enable_dl = Off

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers.  Left undefined, PHP turns this on by default.  You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; http://www.php.net/manual/en/ini.core.php#ini.cgi.force-redirect
;cgi.force_redirect = 1

; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
; every request. PHP's default behavior is to disable this feature.
;cgi.nph = 1

; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution.  Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.redirect-status-env
;cgi.redirect_status_env = ;

; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
; this to 1 will cause PHP CGI to fix its paths to conform to the spec.  A setting
; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.fix-pathinfo
;cgi.fix_pathinfo=1

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; security tokens of the calling client.  This allows IIS to define the
; security context that the request runs under.  mod_fastcgi under Apache
; does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS.  Default is zero.
; http://www.php.net/manual/en/ini.core.php#ini.fastcgi.impersonate
;fastcgi.impersonate = 1;

; Disable logging through FastCGI connection. PHP's default behavior is to enable
; this feature.
;fastcgi.logging = 0

; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
; is supported by Apache. When this option is set to 1 PHP will send
; RFC2616 compliant header.
; Default is zero.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.rfc2616-headers
;cgi.rfc2616_headers = 0

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
; http://www.php.net/manual/en/ini.core.php#ini.file-uploads
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://www.php.net/manual/en/ini.core.php#ini.upload-tmp-dir
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
; http://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize
upload_max_filesize = 2M

;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen
allow_url_fopen = On

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-include
allow_url_include = Off

; Define the anonymous ftp password (your email address). PHP's default setting
; for this is empty.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.from
;from="john@doe.com"

; Define the User-Agent string. PHP's default setting for this is empty.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.user-agent
;user_agent="PHP"

; Default timeout for socket based streams (seconds)
; http://www.php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout
default_socket_timeout = 60

; If your scripts have to deal with files from Macintosh systems,
; or you are running on a Mac and need to deal with files from
; unix or win32 systems, setting this flag will cause PHP to
; automatically detect the EOL character in those files so that
; fgets() and file() will work regardless of the source of the file.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.auto-detect-line-endings
;auto_detect_line_endings = Off

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example
;
;   extension=msql.so
;
; ... or with a path:
;
;   extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.

;;;;
; Note: packaged extension modules are now loaded via the .ini files
; found in the directory /etc/php.d; these are loaded by default.
;;;;


;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
;date.timezone =

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.default-latitude
;date.default_latitude = 31.7667

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.default-longitude
;date.default_longitude = 35.2333

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.sunrise-zenith
;date.sunrise_zenith = 90.583333

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.sunset-zenith
;date.sunset_zenith = 90.583333

[filter]
; http://www.php.net/manual/en/filter.configuration.php#ini.filter.default
;filter.default = unsafe_raw

; http://www.php.net/manual/en/filter.configuration.php#ini.filter.default-flags
;filter.default_flags =

[iconv]
;iconv.input_encoding = ISO-8859-1
;iconv.internal_encoding = ISO-8859-1
;iconv.output_encoding = ISO-8859-1

[intl]
;intl.default_locale = 

[sqlite]
; http://www.php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case
;sqlite.assoc_case = 0

[sqlite3]
;sqlite3.extension_dir =

[Pcre]
;PCRE library backtracking limit.
; http://www.php.net/manual/en/pcre.configuration.php#ini.pcre.backtrack-limit
;pcre.backtrack_limit=100000

;PCRE library recursion limit. 
;Please note that if you set this value to a high number you may consume all 
;the available process stack and eventually crash PHP (due to reaching the 
;stack size limit imposed by the Operating System).
; http://www.php.net/manual/en/pcre.configuration.php#ini.pcre.recursion-limit
;pcre.recursion_limit=100000

[Pdo]
; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
; http://www.php.net/manual/en/ref.pdo-odbc.php#ini.pdo-odbc.connection-pooling
;pdo_odbc.connection_pooling=strict

[Phar]
; http://www.php.net/manual/en/phar.configuration.php#ini.phar.readonly
;phar.readonly = On

; http://www.php.net/manual/en/phar.configuration.php#ini.phar.require-hash
;phar.require_hash = On

;phar.cache_list =

[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.).  Turning it off is a good idea performance-wise.  In
; runtime, you can define these variables by calling define_syslog_variables().
; http://www.php.net/manual/en/network.configuration.php#ini.define-syslog-variables
define_syslog_variables  = Off

[mail function]
; For Win32 only.
; http://www.php.net/manual/en/mail.configuration.php#ini.smtp
SMTP = localhost
; http://www.php.net/manual/en/mail.configuration.php#ini.smtp-port
smtp_port = 25

; For Win32 only.
; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-from
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-path
sendmail_path = /usr/sbin/sendmail -t -i

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originaiting-Script: that will include uid of the script followed by the filename
mail.add_x_header = On

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log =

[SQL]
; http://www.php.net/manual/en/ini.core.php#ini.sql.safe-mode
sql.safe_mode = Off

[ODBC]
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-db
;odbc.default_db    =  Not yet implemented

; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-user
;odbc.default_user  =  Not yet implemented

; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-pw
;odbc.default_pw    =  Not yet implemented

; Allow or prevent persistent links.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.allow-persistent
odbc.allow_persistent = On

; Check that a connection is still valid before reuse.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.check-persistent
odbc.check_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.max-persistent
odbc.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.max-links
odbc.max_links = -1

; Handling of LONG fields.  Returns number of bytes to variables.  0 means
; passthru.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.defaultlrl
odbc.defaultlrl = 4096

; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of uodbc.defaultlrl and uodbc.defaultbinmode
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.defaultbinmode
odbc.defaultbinmode = 1

;birdstep.max_links = -1

[MySQL]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.allow-persistent
mysql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.max-persistent
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.max-links
mysql.max_links = -1

; Default port number for mysql_connect().  If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-port
mysql.default_port =

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-socket
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-host
mysql.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-user
mysql.default_user =

; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-password
mysql.default_password =

; Maximum time (in seconds) for connect timeout. -1 means no limit
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.connect-timeout
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.trace-mode
mysql.trace_mode = Off

[MySQLi]

; Maximum number of links.  -1 means no limit.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.max-links
mysqli.max_links = -1

; Default port number for mysqli_connect().  If unset, mysqli_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-port
mysqli.default_port = 3306

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-socket
mysqli.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-host
mysqli.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-user
mysqli.default_user =

; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-pw
mysqli.default_pw =

; Allow or prevent reconnect
mysqli.reconnect = Off

[PostgresSQL]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.allow-persistent
pgsql.allow_persistent = On

; Detect broken persistent links always with pg_pconnect().
; Auto reset feature requires a little overheads.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.auto-reset-persistent
pgsql.auto_reset_persistent = Off

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-persistent
pgsql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-links
pgsql.max_links = -1

; Ignore PostgreSQL backends Notice message or not.
; Notice message logging require a little overheads.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.ignore-notice
pgsql.ignore_notice = 0

; Log PostgreSQL backends Noitce message or not.
; Unless pgsql.ignore_notice=0, module cannot log notice message.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.log-notice
pgsql.log_notice = 0

[Sybase-CT]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.allow-persistent
sybct.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.max-persistent
sybct.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.max-links
sybct.max_links = -1

; Minimum server message severity to display.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.min-server-severity
sybct.min_server_severity = 10

; Minimum client message severity to display.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.min-client-severity
sybct.min_client_severity = 10

; Set per-context timeout
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.timeout
;sybct.timeout=

;sybct.packet_size

[bcmath]
; Number of decimal digits for all bcmath functions.
; http://www.php.net/manual/en/bc.configuration.php#ini.bcmath.scale
bcmath.scale = 0

[browscap]
; http://www.php.net/manual/en/misc.configuration.php#ini.browscap
;browscap = extra/browscap.ini

[Session]
; Handler used to store/retrieve data.
; http://www.php.net/manual/en/session.configuration.php#ini.session.save-handler
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
;
; As of PHP 4.0.1, you can define the path as:
;
;     session.save_path = "N;/path"
;
; where N is an integer.  Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories.  This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
;         You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
;         use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
;     session.save_path = "N;MODE;/path"
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
; http://www.php.net/manual/en/session.configuration.php#ini.session.save-path
session.save_path = "/var/lib/php/session"

; Whether to use cookies.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-cookies
session.use_cookies = 1

; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-secure
;session.cookie_secure =

; This option forces PHP to fetch and use a cookie for storing and maintaining
; the session id. We encourage this operation as it's very helpful in combatting
; session hijacking when not specifying and managing your own session id. It is
; not the end all be all of session hijacking defense, but it's a good start.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-only-cookies
session.use_only_cookies = 1

; Name of the session (used as cookie name).
; http://www.php.net/manual/en/session.configuration.php#ini.session.name
session.name = PHPSESSID

; Initialize session on request startup.
; http://www.php.net/manual/en/session.configuration.php#ini.session.auto-start
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime
session.cookie_lifetime = 0

; The path for which the cookie is valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-path
session.cookie_path = /

; The domain for which the cookie is valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-domain
session.cookie_domain =

; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-httponly
session.cookie_httponly = 

; Handler used to serialize data.  php is the standard serializer of PHP.
; http://www.php.net/manual/en/session.configuration.php#ini.session.serialize-handler
session.serialize_handler = php

; Defines the probability that the 'garbage collection' process is started
; on every session initialization. The probability is calculated by using
; gc_probability/gc_divisor. Where session.gc_probability is the numerator
; and gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request.
; Default Value: 1
; Development Value: 1
; Production Value: 1
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-probability
session.gc_probability = 1

; Defines the probability that the 'garbage collection' process is started on every
; session initialization. The probability is calculated by using the following equation: 
; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
; session.gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request. Increasing this value to 1000 will give you
; a 0.1% chance the gc will run on any give request. For high volume production servers,
; this is a more efficient approach.
; Default Value: 100
; Development Value: 1000
; Production Value: 1000
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-divisor
session.gc_divisor = 1000

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime
session.gc_maxlifetime = 1440

; NOTE: If you are using the subdirectory option for storing session files
;       (see session.save_path above), then garbage collection does *not*
;       happen automatically.  You will need to do your own garbage
;       collection through a shell script, cron entry, or some other method.
;       For example, the following script would is the equivalent of
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
;          cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, even when register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled. This feature
; introduces some serious security problems if not handled correctly. It's
; recommended that you do not use this feature on production servers. But you
; should enable this on development servers and enable the warning as well. If you
; do not enable the feature on development servers, you won't be warned when it's
; used and debugging errors caused by this can be difficult to track down.
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/session.configuration.php#ini.session.bug-compat-42
session.bug_compat_42 = Off

; This setting controls whether or not you are warned by PHP when initializing a
; session value into the global space. session.bug_compat_42 must be enabled before
; these warnings can be issued by PHP. See the directive above for more information.
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/session.configuration.php#ini.session.bug-compat-warn
session.bug_compat_warn = Off

; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.referer-check
session.referer_check =

; How many bytes to read from the file.
; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-length
session.entropy_length = 0

; Specified here to create the session id.
; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-file
;session.entropy_file = /dev/urandom
session.entropy_file =

; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-length
;session.entropy_length = 16

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cache-limiter
session.cache_limiter = nocache

; Document expires after n minutes.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cache-expire
session.cache_expire = 180

; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
;   to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
;   in publically accessible computer.
; - User may access your site with the same session ID
;   always using URL stored in browser's history or bookmarks.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-trans-sid
session.use_trans_sid = 0

; Select a hash function for use in generating session ids.
; Possible Values 
;   0  (MD5 128 bits)
;   1  (SHA-1 160 bits)
; http://www.php.net/manual/en/session.configuration.php#ini.session.hash-function
session.hash_function = 0

; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
; Possible values:
;   4  (4 bits: 0-9, a-f)
;   5  (5 bits: 0-9, a-v)
;   6  (6 bits: 0-9, a-z, A-Z, "-", ",")
; Default Value: 4
; Development Value: 5
; Production Value: 5
; http://www.php.net/manual/en/session.configuration.php#ini.session.hash-bits-per-character
session.hash_bits_per_character = 5

; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden <input> field with the info which is otherwise appended
; to URLs.  If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a "=", even if no value follows.
; Default Value: "a=href,area=href,frame=src,form=,fieldset="
; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; http://www.php.net/manual/en/session.configuration.php#ini.url-rewriter.tags
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
mssql.max_links = -1

; Minimum error severity to display.
mssql.min_error_severity = 10

; Minimum message severity to display.
mssql.min_message_severity = 10

; Compatibility mode with old versions of PHP 3.0.
mssql.compatability_mode = Off

; Connect timeout
;mssql.connect_timeout = 5

; Query timeout
;mssql.timeout = 60

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textsize = 4096

; Limits the number of records in each batch.  0 = all records in one batch.
;mssql.batchsize = 0

; Specify how datetime and datetim4 columns are returned
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server
mssql.secure_connection = Off

; Specify max number of processes. -1 = library default
; msdlib defaults to 25
; FreeTDS defaults to 4096
;mssql.max_procs = -1

; Specify client character set. 
; If empty or not set the client charset from freetds.comf is used
; This is only used when compiled with FreeTDS
;mssql.charset = "ISO-8859-1"

[Assertion]
; Assert(expr); active by default.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.active
;assert.active = On

; Issue a PHP warning for each failed assertion.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.warning
;assert.warning = On

; Don't bail out by default.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.bail
;assert.bail = Off

; User-function to be called if an assertion fails.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.callback
;assert.callback = 0

; Eval the expression with current error_reporting().  Set to true if you want
; error_reporting(0) around the eval().
; http://www.php.net/manual/en/info.configuration.php#ini.assert.quiet-eval
;assert.quiet_eval = 0

[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
; http://www.php.net/manual/en/com.configuration.php#ini.com.typelib-file
;com.typelib_file =

; allow Distributed-COM calls
; http://www.php.net/manual/en/com.configuration.php#ini.com.allow-dcom
;com.allow_dcom = true

; autoregister constants of a components typlib on com_load()
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-typelib
;com.autoregister_typelib = true

; register constants casesensitive
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-casesensitive
;com.autoregister_casesensitive = false

; show warnings on duplicate constant registrations
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-verbose
;com.autoregister_verbose = true

[mbstring]
; language for internal character representation.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.language
;mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.internal-encoding
;mbstring.internal_encoding = EUC-JP

; http input encoding.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-input
;mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-output
;mbstring.http_output = SJIS

; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.encoding-translation
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; auto means
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.detect-order
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.substitute-character
;mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.func-overload
;mbstring.func_overload = 0

; enable strict encoding detection.
;mbstring.strict_detection = Off

; This directive specifies the regex pattern of content types for which mb_output_handler()
; is activated.
; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
;mbstring.http_output_conv_mimetype=

[gd]
; Tell the jpeg decode to ignore warnings and try to create
; a gd image. The warning will then be displayed as notices
; disabled by default
; http://www.php.net/manual/en/image.configuration.php#ini.image.jpeg-ignore-warning
;gd.jpeg_ignore_warning = 0

[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-unicode
;exif.encode_unicode = ISO-8859-15

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-motorola
;exif.decode_unicode_motorola = UCS-2BE

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-intel
;exif.decode_unicode_intel    = UCS-2LE

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-jis
;exif.encode_jis =

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-motorola
;exif.decode_jis_motorola = JIS

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-intel
;exif.decode_jis_intel    = JIS

[Tidy]
; The path to a default tidy configuration file to use when using tidy
; http://www.php.net/manual/en/tidy.configuration.php#ini.tidy.default-config
;tidy.default_config = /usr/local/lib/php/default.tcfg

; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
; http://www.php.net/manual/en/tidy.configuration.php#ini.tidy.clean-output
tidy.clean_output = Off

[soap]
; Enables or disables WSDL caching feature.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-enabled
soap.wsdl_cache_enabled=1

; Sets the directory name where SOAP extension will put cache files.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-dir
soap.wsdl_cache_dir="/tmp"

; (time to live) Sets the number of second while cached file will be used 
; instead of original one.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-ttl
soap.wsdl_cache_ttl=86400

[sysvshm]
; A default size of the shared memory segment
;sysvshm.init_mem = 10000


; Local Variables:
; tab-width: 4
; End:
                       Virtual_Configuration/tile2/webserver/Software_Configuration/php/php.d/                             0000777 0000000 0000000 00000000000 11524351552 025404  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/webserver/Software_Configuration/php/php.d/phar.ini                     0000644 0000000 0000000 00000000061 11524351552 027030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable phar extension module
extension=phar.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/webserver/Software_Configuration/php/php.d/zip.ini                      0000644 0000000 0000000 00000000057 11524351552 026705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable zip extension module
extension=zip.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/webserver/Software_Configuration/php/php.d/json.ini                     0000644 0000000 0000000 00000000061 11524351552 027047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable json extension module
extension=json.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/webserver/Software_Configuration/php/php.d/apc.ini                      0000644 0000000 0000000 00000005340 11524351552 026646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable apc extension module
extension = apc.so

; Options for the APC module version >= 3.1.3

; This can be set to 0 to disable APC. 
apc.enabled=1
; The number of shared memory segments to allocate for the compiler cache. 
apc.shm_segments=1
; The size of each shared memory segment in MB.
apc.shm_size=64
; A "hint" about the number of distinct source files that will be included or 
; requested on your web server. Set to zero or omit if you're not sure;
apc.num_files_hint=1024
; Just like num_files_hint, a "hint" about the number of distinct user cache
; variables to store.  Set to zero or omit if you're not sure;
apc.user_entries_hint=4096
; The number of seconds a cache entry is allowed to idle in a slot in case this
; cache entry slot is needed by another entry.
apc.ttl=7200
; use the SAPI request start time for TTL
apc.use_request_time=1
; The number of seconds a user cache entry is allowed to idle in a slot in case
; this cache entry slot is needed by another entry.
apc.user_ttl=7200
; The number of seconds that a cache entry may remain on the garbage-collection list. 
apc.gc_ttl=3600
; On by default, but can be set to off and used in conjunction with positive
; apc.filters so that files are only cached if matched by a positive filter.
apc.cache_by_default=1
; A comma-separated list of POSIX extended regular expressions.
apc.filters
; The mktemp-style file_mask to pass to the mmap module 
apc.mmap_file_mask=/tmp/apc.XXXXXX
; This file_update_protection setting puts a delay on caching brand new files.
apc.file_update_protection=2
; Setting this enables APC for the CLI version of PHP (Mostly for testing and debugging).
apc.enable_cli=0
; Prevents large files from being cached
apc.max_file_size=1M
; Whether to stat the main script file and the fullpath includes.
apc.stat=1
; Vertification with ctime will avoid problems caused by programs such as svn or rsync by making 
; sure inodes havn't changed since the last stat. APC will normally only check mtime.
apc.stat_ctime=0
; Whether to canonicalize paths in stat=0 mode or fall back to stat behaviour
apc.canonicalize=0
; With write_lock enabled, only one process at a time will try to compile an 
; uncached script while the other processes will run uncached
apc.write_lock=1
; Logs any scripts that were automatically excluded from being cached due to early/late binding issues.
apc.report_autofilter=0
; RFC1867 File Upload Progress hook handler
apc.rfc1867=0
apc.rfc1867_prefix =upload_
apc.rfc1867_name=APC_UPLOAD_PROGRESS
apc.rfc1867_freq=0
apc.rfc1867_ttl=3600
; Optimize include_once and require_once calls and avoid the expensive system calls used.
apc.include_once_override=0
apc.lazy_classes=00
apc.lazy_functions=0
; not documented
apc.coredump_unmap=0
apc.file_md5=0
apc.preload_path
                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile2/webserver/Software_Configuration/php/php.d/curl.ini                     0000644 0000000 0000000 00000000061 11524351552 027043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable curl extension module
extension=curl.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/webserver/Software_Configuration/php/php.d/fileinfo.ini                 0000644 0000000 0000000 00000000071 11524351552 027672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable fileinfo extension module
extension=fileinfo.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile2/mailserver/                                                             0000777 0000000 0000000 00000000000 11524351531 017265  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/                                            0000777 0000000 0000000 00000000000 11524351550 022537  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/proc/                                       0000777 0000000 0000000 00000000000 11524351547 023510  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/proc/cpuinfo                                0000644 0000000 0000000 00000001017 11524351547 025071  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/mailserver/VM_configuration/proc/mounts                                 0000644 0000000 0000000 00000001357 11524351547 024762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1020708k,nr_inodes=255177,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1296,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1296,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/mailserver/VM_configuration/proc/swaps                                  0000644 0000000 0000000 00000000146 11524351547 024565  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	124	-1
                                                                                                                                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile2/mailserver/VM_configuration/proc/devices                                0000644 0000000 0000000 00000000567 11524351547 025061  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile2/mailserver/VM_configuration/proc/modules                                0000644 0000000 0000000 00000002621 11524351547 025100  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 38 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile2/mailserver/VM_configuration/proc/partitions                             0000644 0000000 0000000 00000000260 11524351547 025621  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   41943040 vdb
 252       17   41943024 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile2/mailserver/VM_configuration/proc/meminfo                                0000644 0000000 0000000 00000002222 11524351547 025057  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2055756 kB
MemFree:          361772 kB
Buffers:          370896 kB
Cached:           903592 kB
SwapCached:          124 kB
Active:           899788 kB
Inactive:         446612 kB
Active(anon):      16016 kB
Inactive(anon):    56044 kB
Active(file):     883772 kB
Inactive(file):   390568 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047868 kB
Dirty:               272 kB
Writeback:             0 kB
AnonPages:         71816 kB
Mapped:             9540 kB
Shmem:               164 kB
Slab:             326916 kB
SReclaimable:     255908 kB
SUnreclaim:        71008 kB
KernelStack:        1072 kB
PageTables:         3896 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3075868 kB
Committed_AS:     176988 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       11532 kB
VmallocChunk:   34359719476 kB
HardwareCorrupted:     0 kB
AnonHugePages:     24576 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2088960 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/mailserver/VM_configuration/root/                                       0000777 0000000 0000000 00000000000 11524351550 023522  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/root/convert_to_vf.sh                       0000755 0000000 0000000 00000001135 11524351550 026732  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/lspci.txt                                   0000644 0000000 0000000 00000001211 11524351546 024406  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile2/mailserver/VM_configuration/df.txt                                      0000644 0000000 0000000 00000000401 11524351531 023657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3827964   8952972  30% /
tmpfs                  1027876         0   1027876   0% /dev/shm
/dev/vdb1             41284912  24788444  14399320  64% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/mailserver/VM_configuration/mount.txt                                   0000644 0000000 0000000 00000000612 11524351546 024442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile2/mailserver/VM_configuration/etc/                                        0000777 0000000 0000000 00000000000 11524351546 023317  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/                                   0000777 0000000 0000000 00000000000 11524351541 024140  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/                             0000777 0000000 0000000 00000000000 11524351546 025056  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests            0000755 0000000 0000000 00000017172 11524351541 030243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                   0000755 0000000 0000000 00000004325 11524351541 026661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                0000755 0000000 0000000 00000006014 11524351542 027450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                  0000755 0000000 0000000 00000012327 11524351543 027052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                 0000755 0000000 0000000 00000005222 11524351544 027236  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                      0000755 0000000 0000000 00000010671 11524351546 026243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                     0000755 0000000 0000000 00000006364 11524351541 026410  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                 0000755 0000000 0000000 00000020716 11524351543 027162  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                      0000755 0000000 0000000 00000004731 11524351542 026240  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon              0000755 0000000 0000000 00000004754 11524351541 027613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                 0000755 0000000 0000000 00000001364 11524351545 027261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                     0000755 0000000 0000000 00000003027 11524351543 026377  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                    0000755 0000000 0000000 00000006743 11524351546 026603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                     0000755 0000000 0000000 00000010777 11524351542 026403  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                0000755 0000000 0000000 00000004230 11524351545 027423  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                     0000755 0000000 0000000 00000006302 11524351542 026352  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                       0000755 0000000 0000000 00000004236 11524351546 026076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                   0000755 0000000 0000000 00000004031 11524351544 026704  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                0000755 0000000 0000000 00000003521 11524351544 027367  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                   0000755 0000000 0000000 00000006050 11524351544 026741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                   0000755 0000000 0000000 00000002363 11524351543 027010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                0000755 0000000 0000000 00000004054 11524351541 027417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                 0000755 0000000 0000000 00000005013 11524351544 027276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                     0000755 0000000 0000000 00000003213 11524351543 026372  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                   0000755 0000000 0000000 00000003512 11524351542 026723  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                      0000755 0000000 0000000 00000003603 11524351542 026231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                    0000755 0000000 0000000 00000011277 11524351542 026556  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S10network                   0000755 0000000 0000000 00000014466 11524351543 026765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                   0000755 0000000 0000000 00000004326 11524351544 026773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                    0000755 0000000 0000000 00000006462 11524351544 026545  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                     0000755 0000000 0000000 00000027662 11524351545 026421  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                      0000755 0000000 0000000 00000006445 11524351542 026134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                 0000755 0000000 0000000 00000003245 11524351545 027226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K60crond                     0000755 0000000 0000000 00000005445 11524351542 026372  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                     0000755 0000000 0000000 00000005522 11524351541 026373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl             0000755 0000000 0000000 00000002221 11524351543 030063  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                 0000755 0000000 0000000 00000004010 11524351541 027232  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                       0000755 0000000 0000000 00000013536 11524351542 026053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                      0000755 0000000 0000000 00000004723 11524351545 026222  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                    0000755 0000000 0000000 00000003024 11524351541 026523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                     0000755 0000000 0000000 00000003275 11524351545 026361  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                  0000755 0000000 0000000 00000025442 11524351544 027104  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                 0000755 0000000 0000000 00000004370 11524351545 027224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S99local                     0000755 0000000 0000000 00000000334 11524351546 026377  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                   0000755 0000000 0000000 00000006675 11524351544 026743  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                0000755 0000000 0000000 00000005650 11524351542 027433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor              0000555 0000000 0000000 00000004612 11524351543 027630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                    0000755 0000000 0000000 00000007234 11524351545 026603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                  0000755 0000000 0000000 00000003433 11524351546 027135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                    0000755 0000000 0000000 00000005672 11524351541 026553  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                     0000755 0000000 0000000 00000003254 11524351546 026375  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                 0000755 0000000 0000000 00000005063 11524351545 027250  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                     0000755 0000000 0000000 00000012432 11524351545 026412  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                   0000755 0000000 0000000 00000007414 11524351541 026753  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                  0000755 0000000 0000000 00000020557 11524351543 027077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond               0000755 0000000 0000000 00000003427 11524351543 027624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/rc3.d/K05atd                       0000755 0000000 0000000 00000004112 11524351541 026021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/                            0000777 0000000 0000000 00000000000 11524351540 025324  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/network                     0000755 0000000 0000000 00000014466 11524351536 026757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/gfs2                        0000755 0000000 0000000 00000006445 11524351534 026123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/sysstat                     0000755 0000000 0000000 00000002363 11524351540 026764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/saslauthd                   0000755 0000000 0000000 00000004010 11524351540 027231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/messagebus                  0000755 0000000 0000000 00000004230 11524351535 027407  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/autobench                   0000755 0000000 0000000 00000005063 11524351533 027224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/atd                         0000755 0000000 0000000 00000004112 11524351533 026016  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/mcelogd                     0000755 0000000 0000000 00000003535 11524351535 026672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/auditd                      0000755 0000000 0000000 00000006462 11524351533 026532  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/certmonger                  0000755 0000000 0000000 00000004054 11524351533 027420  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/irqbalance                  0000755 0000000 0000000 00000003521 11524351535 027354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/acpid                       0000755 0000000 0000000 00000003275 11524351533 026337  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/nscd                        0000755 0000000 0000000 00000004723 11524351536 026210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                   0000755 0000000 0000000 00000005222 11524351537 027220  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/nfs                         0000755 0000000 0000000 00000013536 11524351536 026051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/sssd                        0000755 0000000 0000000 00000004731 11524351540 026227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/crond                       0000755 0000000 0000000 00000005445 11524351534 026366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/ip6tables                   0000755 0000000 0000000 00000020716 11524351534 027150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/autofs                      0000755 0000000 0000000 00000007234 11524351533 026557  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/sshd                        0000755 0000000 0000000 00000010671 11524351540 026214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/ksm                         0000755 0000000 0000000 00000004236 11524351535 026051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/libvirt-guests              0000755 0000000 0000000 00000017172 11524351535 030245  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                0000755 0000000 0000000 00000004754 11524351533 027613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/ypbind                      0000755 0000000 0000000 00000011277 11524351540 026543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/psacct                      0000755 0000000 0000000 00000003024 11524351537 026530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/xinetd                      0000755 0000000 0000000 00000006743 11524351540 026553  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/nfslock                     0000755 0000000 0000000 00000006675 11524351536 026730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/cgred                       0000755 0000000 0000000 00000006302 11524351534 026336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/migrateip                   0000755 0000000 0000000 00000001364 11524351536 027240  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/udev-post                   0000755 0000000 0000000 00000004370 11524351540 027200  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/haldaemon                   0000755 0000000 0000000 00000003245 11524351534 027205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/ipsec                       0000755 0000000 0000000 00000010777 11524351534 026370  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/rpcbind                     0000755 0000000 0000000 00000004031 11524351537 026673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/rhnsd                       0000755 0000000 0000000 00000005522 11524351537 026376  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/functions                   0000644 0000000 0000000 00000042767 11524351534 027276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/kdump                       0000755 0000000 0000000 00000027662 11524351535 026407  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/postfix                     0000755 0000000 0000000 00000007414 11524351537 026756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/iptables                    0000755 0000000 0000000 00000020557 11524351535 027066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/rsyslog                     0000755 0000000 0000000 00000004326 11524351537 026763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/netconsole                  0000755 0000000 0000000 00000005650 11524351536 027432  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/rpcgssd                     0000755 0000000 0000000 00000006050 11524351537 026722  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/abrtd                       0000755 0000000 0000000 00000003254 11524351533 026350  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                0000555 0000000 0000000 00000004612 11524351535 027620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/halt                        0000755 0000000 0000000 00000012723 11524351534 026206  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/cgconfig                    0000755 0000000 0000000 00000012327 11524351533 027034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/single                      0000755 0000000 0000000 00000001207 11524351540 026527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/mdmonitor                   0000755 0000000 0000000 00000005013 11524351535 027261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/restorecond                 0000755 0000000 0000000 00000003427 11524351537 027611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/cpuspeed                    0000755 0000000 0000000 00000025442 11524351534 027070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/netfs                       0000755 0000000 0000000 00000012432 11524351536 026374  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                  0000755 0000000 0000000 00000006014 11524351537 027436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/oddjobd                     0000755 0000000 0000000 00000004325 11524351537 026665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/ksmtuned                    0000755 0000000 0000000 00000003433 11524351535 027107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/sandbox                     0000755 0000000 0000000 00000003242 11524351540 026705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/killall                     0000755 0000000 0000000 00000001214 11524351535 026674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/rdisc                       0000755 0000000 0000000 00000003027 11524351537 026362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/httpd                       0000755 0000000 0000000 00000006364 11524351534 026405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/ntpd                        0000755 0000000 0000000 00000003603 11524351536 026222  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/smartd                      0000755 0000000 0000000 00000005672 11524351540 026552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/nslcd                       0000755 0000000 0000000 00000003213 11524351536 026355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/ntpdate                     0000755 0000000 0000000 00000003512 11524351537 026714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile2/mailserver/VM_configuration/etc/rc.d/init.d/microcode_ctl               0000755 0000000 0000000 00000002221 11524351536 030056  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/mailserver/VM_configuration/etc/hosts                                   0000644 0000000 0000000 00000000267 11524351532 024376  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/mailserver/VM_configuration/etc/iproute2/                               0000777 0000000 0000000 00000000000 11524351532 025063  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/etc/iproute2/rt_dsfield                     0000644 0000000 0000000 00000000672 11524351532 027126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile2/mailserver/VM_configuration/etc/iproute2/rt_realms                      0000644 0000000 0000000 00000000160 11524351532 026767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile2/mailserver/VM_configuration/etc/iproute2/rt_scopes                      0000644 0000000 0000000 00000000134 11524351532 027001  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/mailserver/VM_configuration/etc/iproute2/ematch_map                     0000644 0000000 0000000 00000000073 11524351532 027100  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/mailserver/VM_configuration/etc/iproute2/rt_tables                      0000644 0000000 0000000 00000000127 11524351532 026761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/mailserver/VM_configuration/etc/iproute2/rt_protos                      0000644 0000000 0000000 00000000475 11524351532 027043  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/etc/nsswitch.conf                           0000644 0000000 0000000 00000003230 11524351533 026016  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/mailserver/VM_configuration/etc/fstab                                   0000644 0000000 0000000 00000001603 11524351532 024330  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile2/mailserver/VM_configuration/etc/sysctl.conf                             0000644 0000000 0000000 00000001466 11524351546 025512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile2/mailserver/VM_configuration/etc/inittab                                 0000644 0000000 0000000 00000001564 11524351532 024671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile2/mailserver/VM_configuration/var/                                        0000777 0000000 0000000 00000000000 11524351550 023327  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/var/log/                                    0000777 0000000 0000000 00000000000 11524351550 024110  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/var/log/dmesg                               0000644 0000000 0000000 00000043370 11524351550 025135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007fffd000 (usable)
 BIOS-e820: 000000007fffd000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x7fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007fffd000
 0000000000 - 007fe00000 page 2M
 007fe00000 - 007fffd000 page 4k
kernel direct mapping tables up to 7fffd000 @ 8000-c000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000007fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000007ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000007fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000007ffffe00 00040
ACPI: SSDT 000000007fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000007fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000007fffd000
Bootmem setup node 0 0000000000000000-000000007fffd000
  NODE_DATA [000000000000a000 - 000000000003dfff]
  bootmap [000000000003e000 -  000000000004dfff] pages 10
(7 early reservations) ==> bootmem [0000000000 - 007fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000a000]          PGTABLE ==> [0000008000 - 000000a000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0001bfffff] PMD -> [ffff880002200000-ffff880003dfffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0007fffd
On node 0 totalpages: 524182
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3831 pages, LIFO batch:0
  DMA32 zone: 7112 pages used for memmap
  DMA32 zone: 513077 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 80000000 (gap: 80000000:7ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 516908
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2041384k/2097140k available (4935k kernel code, 412k absent, 55344k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 20971520 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116098.313:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 4012
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:37 UTC (1297116097)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
4a:87:d3:ba:60:36
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/mailserver/VM_configuration/boot/                                       0000777 0000000 0000000 00000000000 11524351531 023501  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/boot/grub/                                  0000777 0000000 0000000 00000000000 11524351531 024440  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/VM_configuration/boot/grub/grub.conf                         0000644 0000000 0000000 00000002217 11524351531 026244  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/mailserver/VM_configuration/rpmpkgs.txt                                 0000644 0000000 0000000 00000067153 11524351550 024773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/mailserver/VM_configuration/ifconfig.txt                                0000644 0000000 0000000 00000002330 11524351546 025063  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:0C  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:178 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:17526 (17.1 KiB)  TX bytes:848 (848.0 b)

eth1      Link encap:Ethernet  HWaddr 4A:87:D3:BA:60:36  
          inet addr:10.1.217.12  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::4887:d3ff:feba:6036/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3987744 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4163511 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:674890369 (643.6 MiB)  TX bytes:4608911962 (4.2 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:738 errors:0 dropped:0 overruns:0 frame:0
          TX packets:738 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:72288 (70.5 KiB)  TX bytes:72288 (70.5 KiB)

                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/mailserver/VM_configuration/chkconfig.txt                               0000644 0000000 0000000 00000006535 11524351531 025237  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/Software_Configuration/                                      0000777 0000000 0000000 00000000000 11524351531 023746  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/mailserver/Software_Configuration/dovecot.conf                          0000644 0000000 0000000 00000000654 11524351531 026261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   base_dir = /var/run/dovecot/
ssl = no
disable_plaintext_auth = no
listen = *
log_path = /var/log/dovecot
mail_debug = yes
mail_location = dbox:/mailstore/dovecot/maildir/%u
mdbox_rotate_size = 2048
passdb {
  args = /etc/passwd.dovecot
  driver = passwd-file
}
protocols = imap
service auth {
  user = root
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  process_min_avail = 10
}
userdb {
  driver = passwd
}
                                                                                    Virtual_Configuration/tile2/infraserver/                                                            0000777 0000000 0000000 00000000000 11524351512 017441  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/                                           0000777 0000000 0000000 00000000000 11524351530 022712  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/proc/                                      0000777 0000000 0000000 00000000000 11524351530 023655  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/proc/cpuinfo                               0000644 0000000 0000000 00000001017 11524351527 025244  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/infraserver/VM_configuration/proc/mounts                                0000644 0000000 0000000 00000001426 11524351530 025124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=503592k,nr_inodes=125898,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1282,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1282,timeout=300,minproto=5,maxproto=5,indirect 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
                                                                                                                                                                                                                                          Virtual_Configuration/tile2/infraserver/VM_configuration/proc/swaps                                 0000644 0000000 0000000 00000000144 11524351530 024730  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/infraserver/VM_configuration/proc/devices                               0000644 0000000 0000000 00000000567 11524351527 025234  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile2/infraserver/VM_configuration/proc/modules                               0000644 0000000 0000000 00000003222 11524351530 025243  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa034e000
stp 2107 1 bridge, Live 0xffffffffa0348000
llc 5608 2 bridge,stp, Live 0xffffffffa0340000
nfsd 302737 13 - Live 0xffffffffa02e7000
lockd 73984 1 nfsd, Live 0xffffffffa02cb000
nfs_acl 2677 1 nfsd, Live 0xffffffffa02c5000
auth_rpcgss 44862 1 nfsd, Live 0xffffffffa02b2000
exportfs 4202 1 nfsd, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 16 nfsd,lockd,nfs_acl,auth_rpcgss, Live 0xffffffffa024b000
ipv6 321209 56 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
sr_mod 16162 0 - Live 0xffffffffa0064000
cdrom 39769 1 sr_mod, Live 0xffffffffa0053000
virtio_blk 5087 5 - Live 0xffffffffa004c000
pata_acpi 3667 0 - Live 0xffffffffa0046000
ata_generic 3611 0 - Live 0xffffffffa0040000
ata_piix 22588 0 - Live 0xffffffffa0034000
virtio_pci 6733 0 - Live 0xffffffffa002c000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0025000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/infraserver/VM_configuration/proc/partitions                            0000644 0000000 0000000 00000000260 11524351530 025766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   62914560 vdb
 252       17   62910508 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile2/infraserver/VM_configuration/proc/meminfo                               0000644 0000000 0000000 00000002222 11524351530 025224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        1021520 kB
MemFree:           71748 kB
Buffers:            7724 kB
Cached:           772776 kB
SwapCached:            0 kB
Active:           174632 kB
Inactive:         687024 kB
Active(anon):      41624 kB
Inactive(anon):    42516 kB
Active(file):     133008 kB
Inactive(file):   644508 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               160 kB
Writeback:             0 kB
AnonPages:         81180 kB
Mapped:            20616 kB
Shmem:              2988 kB
Slab:              61256 kB
SReclaimable:      19920 kB
SUnreclaim:        41336 kB
KernelStack:        1536 kB
PageTables:        10788 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2558752 kB
Committed_AS:     259016 kB
VmallocTotal:   34359738367 kB
VmallocUsed:        7680 kB
VmallocChunk:   34359722660 kB
HardwareCorrupted:     0 kB
AnonHugePages:     24576 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     1040384 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/infraserver/VM_configuration/root/                                      0000777 0000000 0000000 00000000000 11524351530 023675  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/root/convert_to_vf.sh                      0000755 0000000 0000000 00000001135 11524351530 027105  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/lspci.txt                                  0000644 0000000 0000000 00000001211 11524351527 024562  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile2/infraserver/VM_configuration/df.txt                                     0000644 0000000 0000000 00000000401 11524351513 024034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3482404   9298532  28% /
tmpfs                   510760         0    510760   0% /dev/shm
/dev/vdb1             61923368  33417152  25360692  57% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/infraserver/VM_configuration/mount.txt                                  0000644 0000000 0000000 00000000657 11524351527 024627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
                                                                                 Virtual_Configuration/tile2/infraserver/VM_configuration/etc/                                       0000777 0000000 0000000 00000000000 11524351527 023473  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/                                  0000777 0000000 0000000 00000000000 11524351521 024313  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/                            0000777 0000000 0000000 00000000000 11524351526 025231  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests           0000755 0000000 0000000 00000017172 11524351522 030417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                  0000755 0000000 0000000 00000004325 11524351522 027035  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd               0000755 0000000 0000000 00000006014 11524351523 027624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                 0000755 0000000 0000000 00000012327 11524351524 027226  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                0000755 0000000 0000000 00000005222 11524351525 027412  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                     0000755 0000000 0000000 00000010671 11524351526 026416  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                    0000755 0000000 0000000 00000006364 11524351522 026564  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                0000755 0000000 0000000 00000020716 11524351524 027336  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                     0000755 0000000 0000000 00000004731 11524351523 026414  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S30nfs                      0000755 0000000 0000000 00000013536 11524351526 026237  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon             0000755 0000000 0000000 00000004754 11524351522 027767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                0000755 0000000 0000000 00000001364 11524351526 027435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                    0000755 0000000 0000000 00000003027 11524351523 026552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                   0000755 0000000 0000000 00000006743 11524351526 026756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                    0000755 0000000 0000000 00000010777 11524351523 026557  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus               0000755 0000000 0000000 00000004230 11524351525 027576  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                    0000755 0000000 0000000 00000006302 11524351523 026526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                      0000755 0000000 0000000 00000004236 11524351526 026251  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                  0000755 0000000 0000000 00000004031 11524351525 027060  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance               0000755 0000000 0000000 00000003521 11524351524 027542  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                  0000755 0000000 0000000 00000006050 11524351525 027115  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                  0000755 0000000 0000000 00000002363 11524351524 027164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger               0000755 0000000 0000000 00000004054 11524351521 027572  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                0000755 0000000 0000000 00000005013 11524351525 027452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                    0000755 0000000 0000000 00000003213 11524351523 026545  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                  0000755 0000000 0000000 00000003512 11524351523 027077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                     0000755 0000000 0000000 00000003603 11524351523 026405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                   0000755 0000000 0000000 00000011277 11524351523 026732  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S10network                  0000755 0000000 0000000 00000014466 11524351524 027141  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                  0000755 0000000 0000000 00000004326 11524351524 027146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                   0000755 0000000 0000000 00000006462 11524351524 026720  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                    0000755 0000000 0000000 00000027662 11524351525 026574  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                     0000755 0000000 0000000 00000006445 11524351523 026310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                0000755 0000000 0000000 00000003245 11524351525 027401  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K60crond                    0000755 0000000 0000000 00000005445 11524351522 026545  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                    0000755 0000000 0000000 00000005522 11524351522 026547  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl            0000755 0000000 0000000 00000002221 11524351524 030237  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                0000755 0000000 0000000 00000004010 11524351522 027406  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                     0000755 0000000 0000000 00000004723 11524351526 026376  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                   0000755 0000000 0000000 00000003024 11524351522 026677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                    0000755 0000000 0000000 00000003275 11524351525 026534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                 0000755 0000000 0000000 00000025442 11524351524 027257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                0000755 0000000 0000000 00000004370 11524351525 027377  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S99local                    0000755 0000000 0000000 00000000334 11524351526 026552  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                  0000755 0000000 0000000 00000006675 11524351525 027117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole               0000755 0000000 0000000 00000005650 11524351522 027606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor             0000555 0000000 0000000 00000004612 11524351524 030004  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                   0000755 0000000 0000000 00000007234 11524351526 026757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                 0000755 0000000 0000000 00000003433 11524351526 027310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                   0000755 0000000 0000000 00000005672 11524351521 026726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                    0000755 0000000 0000000 00000003254 11524351526 026550  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                0000755 0000000 0000000 00000005063 11524351526 027424  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                    0000755 0000000 0000000 00000012432 11524351525 026565  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                  0000755 0000000 0000000 00000007414 11524351522 027127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                 0000755 0000000 0000000 00000020557 11524351524 027253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond              0000755 0000000 0000000 00000003427 11524351523 027777  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/rc3.d/K05atd                      0000755 0000000 0000000 00000004112 11524351522 026175  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/                           0000777 0000000 0000000 00000000000 11524351521 025500  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/network                    0000755 0000000 0000000 00000014466 11524351517 027133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/gfs2                       0000755 0000000 0000000 00000006445 11524351515 026277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/sysstat                    0000755 0000000 0000000 00000002363 11524351521 027140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/saslauthd                  0000755 0000000 0000000 00000004010 11524351521 027405  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/messagebus                 0000755 0000000 0000000 00000004230 11524351516 027563  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/autobench                  0000755 0000000 0000000 00000005063 11524351514 027400  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/atd                        0000755 0000000 0000000 00000004112 11524351514 026172  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/mcelogd                    0000755 0000000 0000000 00000003535 11524351516 027046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/auditd                     0000755 0000000 0000000 00000006462 11524351514 026706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/certmonger                 0000755 0000000 0000000 00000004054 11524351514 027574  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/irqbalance                 0000755 0000000 0000000 00000003521 11524351516 027530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/acpid                      0000755 0000000 0000000 00000003275 11524351514 026513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/nscd                       0000755 0000000 0000000 00000004723 11524351517 026364  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                  0000755 0000000 0000000 00000005222 11524351520 027365  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/nfs                        0000755 0000000 0000000 00000013536 11524351517 026225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/sssd                       0000755 0000000 0000000 00000004731 11524351521 026403  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/crond                      0000755 0000000 0000000 00000005445 11524351515 026542  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/ip6tables                  0000755 0000000 0000000 00000020716 11524351515 027324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/autofs                     0000755 0000000 0000000 00000007234 11524351514 026733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/sshd                       0000755 0000000 0000000 00000010671 11524351521 026370  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/ksm                        0000755 0000000 0000000 00000004236 11524351516 026225  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/libvirt-guests             0000755 0000000 0000000 00000017172 11524351516 030421  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/avahi-daemon               0000755 0000000 0000000 00000004754 11524351514 027767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/ypbind                     0000755 0000000 0000000 00000011277 11524351521 026717  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/psacct                     0000755 0000000 0000000 00000003024 11524351520 026675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/xinetd                     0000755 0000000 0000000 00000006743 11524351521 026727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/nfslock                    0000755 0000000 0000000 00000006675 11524351517 027104  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/cgred                      0000755 0000000 0000000 00000006302 11524351515 026512  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/migrateip                  0000755 0000000 0000000 00000001364 11524351517 027414  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/udev-post                  0000755 0000000 0000000 00000004370 11524351521 027354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/haldaemon                  0000755 0000000 0000000 00000003245 11524351515 027361  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/ipsec                      0000755 0000000 0000000 00000010777 11524351515 026544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/rpcbind                    0000755 0000000 0000000 00000004031 11524351520 027040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/rhnsd                      0000755 0000000 0000000 00000005522 11524351520 026543  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/functions                  0000644 0000000 0000000 00000042767 11524351515 027452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/kdump                      0000755 0000000 0000000 00000027662 11524351516 026563  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/postfix                    0000755 0000000 0000000 00000007414 11524351517 027131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/iptables                   0000755 0000000 0000000 00000020557 11524351515 027241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/rsyslog                    0000755 0000000 0000000 00000004326 11524351520 027130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/netconsole                 0000755 0000000 0000000 00000005650 11524351517 027606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/rpcgssd                    0000755 0000000 0000000 00000006050 11524351520 027067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/abrtd                      0000755 0000000 0000000 00000003254 11524351514 026524  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor               0000555 0000000 0000000 00000004612 11524351516 027774  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/halt                       0000755 0000000 0000000 00000012723 11524351515 026362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/cgconfig                   0000755 0000000 0000000 00000012327 11524351514 027210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/single                     0000755 0000000 0000000 00000001207 11524351521 026703  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/mdmonitor                  0000755 0000000 0000000 00000005013 11524351516 027435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/restorecond                0000755 0000000 0000000 00000003427 11524351520 027756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/cpuspeed                   0000755 0000000 0000000 00000025442 11524351515 027244  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/netfs                      0000755 0000000 0000000 00000012432 11524351517 026550  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524351520 027603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/oddjobd                    0000755 0000000 0000000 00000004325 11524351517 027040  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/ksmtuned                   0000755 0000000 0000000 00000003433 11524351516 027263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/sandbox                    0000755 0000000 0000000 00000003242 11524351520 027060  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/killall                    0000755 0000000 0000000 00000001214 11524351516 027050  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/rdisc                      0000755 0000000 0000000 00000003027 11524351520 026527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/httpd                      0000755 0000000 0000000 00000006364 11524351515 026561  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/ntpd                       0000755 0000000 0000000 00000003603 11524351517 026376  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/smartd                     0000755 0000000 0000000 00000005672 11524351521 026726  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/nslcd                      0000755 0000000 0000000 00000003213 11524351517 026531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/ntpdate                    0000755 0000000 0000000 00000003512 11524351517 027067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile2/infraserver/VM_configuration/etc/rc.d/init.d/microcode_ctl              0000755 0000000 0000000 00000002221 11524351516 030231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/infraserver/VM_configuration/etc/hosts                                  0000644 0000000 0000000 00000000236 11524351513 024546  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/infraserver/VM_configuration/etc/iproute2/                              0000777 0000000 0000000 00000000000 11524351513 025237  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/etc/iproute2/rt_dsfield                    0000644 0000000 0000000 00000000672 11524351513 027302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile2/infraserver/VM_configuration/etc/iproute2/rt_realms                     0000644 0000000 0000000 00000000160 11524351513 027143  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile2/infraserver/VM_configuration/etc/iproute2/rt_scopes                     0000644 0000000 0000000 00000000134 11524351513 027155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile2/infraserver/VM_configuration/etc/iproute2/ematch_map                    0000644 0000000 0000000 00000000073 11524351513 027254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile2/infraserver/VM_configuration/etc/iproute2/rt_tables                     0000644 0000000 0000000 00000000127 11524351513 027135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile2/infraserver/VM_configuration/etc/iproute2/rt_protos                     0000644 0000000 0000000 00000000475 11524351513 027217  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/etc/nsswitch.conf                          0000644 0000000 0000000 00000003230 11524351514 026172  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile2/infraserver/VM_configuration/etc/fstab                                  0000644 0000000 0000000 00000001603 11524351513 024504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile2/infraserver/VM_configuration/etc/sysctl.conf                            0000644 0000000 0000000 00000001466 11524351527 025666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile2/infraserver/VM_configuration/etc/inittab                                0000644 0000000 0000000 00000001564 11524351513 025045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile2/infraserver/VM_configuration/var/                                       0000777 0000000 0000000 00000000000 11524351530 023502  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/var/log/                                   0000777 0000000 0000000 00000000000 11524351530 024263  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/var/log/dmesg                              0000644 0000000 0000000 00000043364 11524351531 025314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003fffd000 (usable)
 BIOS-e820: 000000003fffd000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x3fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000003fffd000
 0000000000 - 003fe00000 page 2M
 003fe00000 - 003fffd000 page 4k
kernel direct mapping tables up to 3fffd000 @ 8000-b000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000003fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000003ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000003fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000003ffffe00 00040
ACPI: SSDT 000000003fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000003fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000003fffd000
Bootmem setup node 0 0000000000000000-000000003fffd000
  NODE_DATA [0000000000009000 - 000000000003cfff]
  bootmap [000000000003d000 -  0000000000044fff] pages 8
(7 early reservations) ==> bootmem [0000000000 - 003fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0000dfffff] PMD -> [ffff880002200000-ffff880002ffffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0003fffd
On node 0 totalpages: 262038
  DMA zone: 56 pages used for memmap
  DMA zone: 105 pages reserved
  DMA zone: 3832 pages, LIFO batch:0
  DMA32 zone: 3528 pages used for memmap
  DMA32 zone: 254517 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 40000000 (gap: 40000000:bffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 258349
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 1007148k/1048564k available (4935k kernel code, 412k absent, 41004k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 10485760 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116136.295:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 1992
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:02:15 UTC (1297116135)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
6a:74:fc:31:4a:e6
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile2/infraserver/VM_configuration/boot/                                      0000777 0000000 0000000 00000000000 11524351512 023655  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/boot/grub/                                 0000777 0000000 0000000 00000000000 11524351512 024614  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/VM_configuration/boot/grub/grub.conf                        0000644 0000000 0000000 00000002217 11524351512 026420  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile2/infraserver/VM_configuration/rpmpkgs.txt                                0000644 0000000 0000000 00000067243 11524351530 025146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
hivex-1.2.2-1.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
fcgi-2.4.0-14.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
scrub-2.2-1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
fcgi-devel-2.4.0-14.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
libguestfs-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile2/infraserver/VM_configuration/ifconfig.txt                               0000644 0000000 0000000 00000002336 11524351527 025245  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:0B  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:292 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:28169 (27.5 KiB)  TX bytes:850 (850.0 b)

eth1      Link encap:Ethernet  HWaddr 6A:74:FC:31:4A:E6  
          inet addr:10.1.217.11  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::6874:fcff:fe31:4ae6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:63477079 errors:0 dropped:0 overruns:0 frame:0
          TX packets:118176903 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4467069726 (4.1 GiB)  TX bytes:170523710547 (158.8 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:930 errors:0 dropped:0 overruns:0 frame:0
          TX packets:930 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:92565 (90.3 KiB)  TX bytes:92565 (90.3 KiB)

                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile2/infraserver/VM_configuration/chkconfig.txt                              0000644 0000000 0000000 00000006531 11524351512 025407  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                       Virtual_Configuration/tile2/infraserver/Software_Configuration/                                     0000777 0000000 0000000 00000000000 11524351511 024121  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/Software_Configuration/exports                              0000644 0000000 0000000 00000000101 11524351511 025534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /support-download *(rw,no_subtree_check,crossmnt,no_root_squash)
                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile2/infraserver/Software_Configuration/httpd/                               0000777 0000000 0000000 00000000000 11524351511 025244  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/Software_Configuration/httpd/conf.d/                        0000777 0000000 0000000 00000000000 11524351512 026414  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/Software_Configuration/httpd/conf.d/manual.conf             0000644 0000000 0000000 00000000447 11524351512 030541  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This configuration file allows the manual to be accessed at 
# http://localhost/manual/
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"

<Directory "/var/www/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
                                                                                                                                                                                                                         Virtual_Configuration/tile2/infraserver/Software_Configuration/httpd/conf.d/php.conf                0000644 0000000 0000000 00000001242 11524351512 030045  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile2/infraserver/Software_Configuration/httpd/conf.d/welcome.conf            0000644 0000000 0000000 00000000453 11524351512 030714  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # 
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

                                                                                                                                                                                                                     Virtual_Configuration/tile2/infraserver/Software_Configuration/httpd/conf.d/README                  0000644 0000000 0000000 00000000610 11524351512 027265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
This directory holds Apache 2.0 module-specific configuration files;
any files in this directory which have the ".conf" extension will be
processed as Apache configuration files.

Files are processed in alphabetical order, so if using configuration
directives which depend on, say, mod_perl being loaded, ensure that
these are placed in a filename later in the sort order than "perl.conf".

                                                                                                                        Virtual_Configuration/tile2/infraserver/Software_Configuration/httpd/conf/                          0000777 0000000 0000000 00000000000 11524351511 026171  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile2/infraserver/Software_Configuration/httpd/conf/httpd.conf                0000644 0000000 0000000 00000103212 11524351511 030156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# Don't give away too much information about all the subcomponents
# we are running.  Comment out this line if you don't mind remote sites
# finding out what major optional modules you are running
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.  Note the PIDFILE variable in
# /etc/sysconfig/httpd must be set appropriately if this location is
# changed.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 60

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive Off

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit 10240
MaxClients 10240
MaxRequestsPerChild  4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         4
MaxClients 10240
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 81

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

#
# The following modules are not loaded by default:
#
#LoadModule asis_module modules/mod_asis.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
#

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group #-1 on these systems!
#
User apache
Group apache

### Section 2: 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
#ServerName www.example.com:80

#
# UseCanonicalName: Determines how Apache constructs self-referencing 
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.  This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir disabled

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disabled" line above, and uncomment
    # the following line instead:
    # 
    #UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is 
# used to deliver files (assuming that the OS supports it). 
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
#
#EnableSendfile off

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
# requires the mod_logio module to be loaded.
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access_log common

#
# If you would like to have separate agent and referer logfiles, uncomment
# the following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# WebDAV module configuration section.
# 
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Directives controlling the display of server-generated directory listings.
#

#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes.  These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

#
# DefaultLanguage and AddLanguage allows you to specify the language of 
# a document. You can then use content negotiation to give a browser a 
# file in a language the user can understand.
#
# Specify a default language. This means that all data
# going out without a specific language tag (see below) will 
# be marked with this one. You probably do NOT want to set
# this unless you are sure it is correct for all cases.
#
# * It is generally better to not mark a page as 
# * being a certain language than marking it with the wrong
# * language!
#
# DefaultLanguage nl
#
# Note 1: The suffix does not have to be the same as the language
# keyword --- those with documents in Polish (whose net-standard
# language code is pl) may wish to use "AddLanguage pl .po" to
# avoid the ambiguity with the common suffix for perl scripts.
#
# Note 2: The example entries below illustrate that in some cases 
# the two character 'Language' abbreviation is not identical to 
# the two character 'Country' code for its country,
# E.g. 'Danmark/dk' versus 'Danish/da'.
#
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
# specifier. There is 'work in progress' to fix this and get
# the reference data for rfc1766 cleaned up.
#
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the 
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz

#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
#   MIME-types for downloading Certificates and CRLs
#
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
#  to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#    ErrorDocument 410 /error/HTTP_GONE.html.var
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Proxy>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
#   CacheEnable disk /
#   CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#

#</IfModule>
# End of proxy directives.

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>














Include conf/fcgi.conf
                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile2/infraserver/Software_Configuration/httpd/conf/fcgi.conf                 0000644 0000000 0000000 00000000607 11524351511 027747  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   LoadModule fastcgi_module modules/mod_fastcgi.so
ScriptAlias /fcgi-bin/ "/var/www/fcgi-bin/"
FastCgiIpcDir /etc/httpd/fastcgi
<Directory "/var/www/fcgi-bin">
    AllowOverride None
    Options +ExecCGI -Includes
    SetHandler fastcgi-script
    Order allow,deny
    Allow from all
 </Directory>
 AddHandler fastcgi-script fcgi
 FastCgiServer /var/www/fcgi-bin/besim_fcgi.fcgi -processes 50
                                                                                                                         Virtual_Configuration/tile2/infraserver/Software_Configuration/httpd/conf/magic                     0000644 0000000 0000000 00000031523 11524351511 027174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Magic data for mod_mime_magic Apache module (originally for file(1) command)
# The module is described in /manual/mod/mod_mime_magic.html
#
# The format is 4-5 columns:
#    Column #1: byte number to begin checking from, ">" indicates continuation
#    Column #2: type of data to match
#    Column #3: contents of data to match
#    Column #4: MIME type of result
#    Column #5: MIME encoding of result (optional)

#------------------------------------------------------------------------------
# Localstuff:  file(1) magic for locally observed files
# Add any locally observed files here.

#------------------------------------------------------------------------------
# end local stuff
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Java

0	short		0xcafe
>2	short		0xbabe		application/java

#------------------------------------------------------------------------------
# audio:  file(1) magic for sound formats
#
# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
#

# Sun/NeXT audio data
0	string		.snd
>12	belong		1		audio/basic
>12	belong		2		audio/basic
>12	belong		3		audio/basic
>12	belong		4		audio/basic
>12	belong		5		audio/basic
>12	belong		6		audio/basic
>12	belong		7		audio/basic

>12	belong		23		audio/x-adpcm

# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
# (0x0064732E in little-endian encoding).
0	lelong		0x0064732E	
>12	lelong		1		audio/x-dec-basic
>12	lelong		2		audio/x-dec-basic
>12	lelong		3		audio/x-dec-basic
>12	lelong		4		audio/x-dec-basic
>12	lelong		5		audio/x-dec-basic
>12	lelong		6		audio/x-dec-basic
>12	lelong		7		audio/x-dec-basic
#                                       compressed (G.721 ADPCM)
>12	lelong		23		audio/x-dec-adpcm

# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
#					AIFF audio data
8	string		AIFF		audio/x-aiff	
#					AIFF-C audio data
8	string		AIFC		audio/x-aiff	
#					IFF/8SVX audio data
8	string		8SVX		audio/x-aiff	

# Creative Labs AUDIO stuff
#					Standard MIDI data
0	string	MThd			audio/unknown	
#>9 	byte	>0			(format %d)
#>11	byte	>1			using %d channels
#					Creative Music (CMF) data
0	string	CTMF			audio/unknown	
#					SoundBlaster instrument data
0	string	SBI			audio/unknown	
#					Creative Labs voice data
0	string	Creative\ Voice\ File	audio/unknown	
## is this next line right?  it came this way...
#>19	byte	0x1A
#>23	byte	>0			- version %d
#>22	byte	>0			\b.%d

# [GRR 950115:  is this also Creative Labs?  Guessing that first line
#  should be string instead of unknown-endian long...]
#0	long		0x4e54524b	MultiTrack sound data
#0	string		NTRK		MultiTrack sound data
#>4	long		x		- version %ld

# Microsoft WAVE format (*.wav)
# [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
#					Microsoft RIFF
0	string		RIFF		audio/unknown
#					- WAVE format
>8	string		WAVE		audio/x-wav
# MPEG audio.
0   beshort&0xfff0  0xfff0  audio/mpeg
# C64 SID Music files, from Linus Walleij <triad@df.lth.se>
0   string      PSID        audio/prs.sid

#------------------------------------------------------------------------------
# c-lang:  file(1) magic for C programs or various scripts
#

# XPM icons (Greg Roelofs, newt@uchicago.edu)
# ideally should go into "images", but entries below would tag XPM as C source
0	string		/*\ XPM		image/x-xbm	7bit

# this first will upset you if you're a PL/1 shop... (are there any left?)
# in which case rm it; ascmagic will catch real C programs
#					C or REXX program text
0	string		/*		text/plain
#					C++ program text
0	string		//		text/plain

#------------------------------------------------------------------------------
# compress:  file(1) magic for pure-compression formats (no archives)
#
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
#
# Formats for various forms of compressed data
# Formats for "compress" proper have been moved into "compress.c",
# because it tries to uncompress it to figure out what's inside.

# standard unix compress
0	string		\037\235	application/octet-stream	x-compress

# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
0       string          \037\213        application/octet-stream	x-gzip

# According to gzip.h, this is the correct byte order for packed data.
0	string		\037\036	application/octet-stream
#
# This magic number is byte-order-independent.
#
0	short		017437		application/octet-stream

# XXX - why *two* entries for "compacted data", one of which is
# byte-order independent, and one of which is byte-order dependent?
#
# compacted data
0	short		0x1fff		application/octet-stream
0	string		\377\037	application/octet-stream
# huf output
0	short		0145405		application/octet-stream

# Squeeze and Crunch...
# These numbers were gleaned from the Unix versions of the programs to
# handle these formats.  Note that I can only uncrunch, not crunch, and
# I didn't have a crunched file handy, so the crunch number is untested.
#				Keith Waclena <keith@cerberus.uchicago.edu>
#0	leshort		0x76FF		squeezed data (CP/M, DOS)
#0	leshort		0x76FE		crunched data (CP/M, DOS)

# Freeze
#0	string		\037\237	Frozen file 2.1
#0	string		\037\236	Frozen file 1.0 (or gzip 0.5)

# lzh?
#0	string		\037\240	LZH compressed data

#------------------------------------------------------------------------------
# frame:  file(1) magic for FrameMaker files
#
# This stuff came on a FrameMaker demo tape, most of which is
# copyright, but this file is "published" as witness the following:
#
0	string		\<MakerFile	application/x-frame
0	string		\<MIFFile	application/x-frame
0	string		\<MakerDictionary	application/x-frame
0	string		\<MakerScreenFon	application/x-frame
0	string		\<MML		application/x-frame
0	string		\<Book		application/x-frame
0	string		\<Maker		application/x-frame

#------------------------------------------------------------------------------
# html:  file(1) magic for HTML (HyperText Markup Language) docs
#
# from Daniel Quinlan <quinlan@yggdrasil.com>
# and Anna Shergold <anna@inext.co.uk>
#
0   string      \<!DOCTYPE\ HTML    text/html
0   string      \<!doctype\ html    text/html
0   string      \<HEAD      text/html
0   string      \<head      text/html
0   string      \<TITLE     text/html
0   string      \<title     text/html
0   string      \<html      text/html
0   string      \<HTML      text/html
0   string      \<!--       text/html
0   string      \<h1        text/html
0   string      \<H1        text/html

# XML eXtensible Markup Language, from Linus Walleij <triad@df.lth.se>
0   string      \<?xml      text/xml

#------------------------------------------------------------------------------
# images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
#
# originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
# additions by janl@ifi.uio.no as well as others. Jan also suggested
# merging several one- and two-line files into here.
#
# XXX - byte order for GIF and TIFF fields?
# [GRR:  TIFF allows both byte orders; GIF is probably little-endian]
#

# [GRR:  what the hell is this doing in here?]
#0	string		xbtoa		btoa'd file

# PBMPLUS
#					PBM file
0	string		P1		image/x-portable-bitmap	7bit
#					PGM file
0	string		P2		image/x-portable-greymap	7bit
#					PPM file
0	string		P3		image/x-portable-pixmap	7bit
#					PBM "rawbits" file
0	string		P4		image/x-portable-bitmap
#					PGM "rawbits" file
0	string		P5		image/x-portable-greymap
#					PPM "rawbits" file
0	string		P6		image/x-portable-pixmap

# NIFF (Navy Interchange File Format, a modification of TIFF)
# [GRR:  this *must* go before TIFF]
0	string		IIN1		image/x-niff

# TIFF and friends
#					TIFF file, big-endian
0	string		MM		image/tiff
#					TIFF file, little-endian
0	string		II		image/tiff

# possible GIF replacements; none yet released!
# (Greg Roelofs, newt@uchicago.edu)
#
# GRR 950115:  this was mine ("Zip GIF"):
#					ZIF image (GIF+deflate alpha)
0	string		GIF94z		image/unknown
#
# GRR 950115:  this is Jeremy Wohl's Free Graphics Format (better):
#					FGF image (GIF+deflate beta)
0	string		FGF95a		image/unknown
#
# GRR 950115:  this is Thomas Boutell's Portable Bitmap Format proposal
# (best; not yet implemented):
#					PBF image (deflate compression)
0	string		PBF		image/unknown

# GIF
0	string		GIF		image/gif

# JPEG images
0	beshort		0xffd8		image/jpeg

# PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
0	string		BM		image/bmp
#>14	byte		12		(OS/2 1.x format)
#>14	byte		64		(OS/2 2.x format)
#>14	byte		40		(Windows 3.x format)
#0	string		IC		icon
#0	string		PI		pointer
#0	string		CI		color icon
#0	string		CP		color pointer
#0	string		BA		bitmap array


#------------------------------------------------------------------------------
# lisp:  file(1) magic for lisp programs
#
# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
0	string	;;			text/plain	8bit
# Emacs 18 - this is always correct, but not very magical.
0	string	\012(			application/x-elc
# Emacs 19
0	string	;ELC\023\000\000\000	application/x-elc

#------------------------------------------------------------------------------
# mail.news:  file(1) magic for mail and news
#
# There are tests to ascmagic.c to cope with mail and news.
0	string		Relay-Version: 	message/rfc822	7bit
0	string		#!\ rnews	message/rfc822	7bit
0	string		N#!\ rnews	message/rfc822	7bit
0	string		Forward\ to 	message/rfc822	7bit
0	string		Pipe\ to 	message/rfc822	7bit
0	string		Return-Path:	message/rfc822	7bit
0	string		Path:		message/news	8bit
0	string		Xref:		message/news	8bit
0	string		From:		message/rfc822	7bit
0	string		Article 	message/news	8bit
#------------------------------------------------------------------------------
# msword: file(1) magic for MS Word files
#
# Contributor claims:
# Reversed-engineered MS Word magic numbers
#

0	string		\376\067\0\043			application/msword
0	string		\333\245-\0\0\0			application/msword

# disable this one because it applies also to other
# Office/OLE documents for which msword is not correct. See PR#2608.
#0	string		\320\317\021\340\241\261	application/msword



#------------------------------------------------------------------------------
# printer:  file(1) magic for printer-formatted files
#

# PostScript
0	string		%!		application/postscript
0	string		\004%!		application/postscript

# Acrobat
# (due to clamen@cs.cmu.edu)
0	string		%PDF-		application/pdf

#------------------------------------------------------------------------------
# sc:  file(1) magic for "sc" spreadsheet
#
38	string		Spreadsheet	application/x-sc

#------------------------------------------------------------------------------
# tex:  file(1) magic for TeX files
#
# XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
#
# From <conklin@talisman.kaleida.com>

# Although we may know the offset of certain text fields in TeX DVI
# and font files, we can't use them reliably because they are not
# zero terminated. [but we do anyway, christos]
0	string		\367\002	application/x-dvi
#0	string		\367\203	TeX generic font data
#0	string		\367\131	TeX packed font data
#0	string		\367\312	TeX virtual font data
#0	string		This\ is\ TeX,	TeX transcript text	
#0	string		This\ is\ METAFONT,	METAFONT transcript text

# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data.  The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
#2	string		\000\021	TeX font metric data
#2	string		\000\022	TeX font metric data
#>34	string		>\0		(%s)

# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
#0	string		\\input\ texinfo	Texinfo source text
#0	string		This\ is\ Info\ file	GNU Info text

# correct TeX magic for Linux (and maybe more)
# from Peter Tobias (tobias@server.et-inf.fho-emden.de)
#
0	leshort		0x02f7		application/x-dvi

# RTF - Rich Text Format
0	string		{\\rtf		application/rtf

#------------------------------------------------------------------------------
# animation:  file(1) magic for animation/movie formats
#
# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
#						MPEG file
0	string		\000\000\001\263	video/mpeg
#
# The contributor claims:
#   I couldn't find a real magic number for these, however, this
#   -appears- to work.  Note that it might catch other files, too,
#   so BE CAREFUL!
#
# Note that title and author appear in the two 20-byte chunks
# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
# 255 (hex FF)! DL format SUCKS BIG ROCKS.
#
#						DL file version 1 , medium format (160x100, 4 images/screen)
0	byte		1			video/unknown
0	byte		2			video/unknown
# Quicktime video, from Linus Walleij <triad@df.lth.se>
# from Apple quicktime file format documentation.
4   string      moov        video/quicktime
4   string      mdat        video/quicktime

# PNG [Portable Network Graphics, or "PNG's Not GIF"] images
#
# 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
0   string      \211PNG\015      image/png
                                                                                                                                                                             Virtual_Configuration/tile12/                                                                       0000777 0000000 0000000 00000000000 11524351115 015173  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/                                                            0000777 0000000 0000000 00000000000 11524351031 017334  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/                                           0000777 0000000 0000000 00000000000 11524351054 022612  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/proc/                                      0000777 0000000 0000000 00000000000 11524351054 023555  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/proc/cpuinfo                               0000644 0000000 0000000 00000001017 11524351053 025135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/idleserver/VM_configuration/proc/mounts                                0000644 0000000 0000000 00000001356 11524351053 025025  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=503592k,nr_inodes=125898,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1266,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1266,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/idleserver/VM_configuration/proc/swaps                                 0000644 0000000 0000000 00000000144 11524351054 024630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/idleserver/VM_configuration/proc/devices                               0000644 0000000 0000000 00000000567 11524351053 025125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile12/idleserver/VM_configuration/proc/modules                               0000644 0000000 0000000 00000002547 11524351053 025153  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02a5000
stp 2107 1 bridge, Live 0xffffffffa029f000
llc 5608 2 bridge,stp, Live 0xffffffffa0297000
autofs4 27683 3 - Live 0xffffffffa028a000
sunrpc 241630 1 - Live 0xffffffffa0237000
ipv6 321209 39 - Live 0xffffffffa01a2000
dm_mirror 14003 0 - Live 0xffffffffa0176000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa016d000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0164000
ppdev 8695 0 - Live 0xffffffffa0156000
parport_pc 22944 0 - Live 0xffffffffa0149000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa0137000
sg 30186 0 - Live 0xffffffffa0128000
virtio_net 15665 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
sr_mod 16162 0 - Live 0xffffffffa0064000
cdrom 39769 1 sr_mod, Live 0xffffffffa0053000
virtio_blk 5087 5 - Live 0xffffffffa004c000
pata_acpi 3667 0 - Live 0xffffffffa0046000
ata_generic 3611 0 - Live 0xffffffffa0040000
ata_piix 22588 0 - Live 0xffffffffa0034000
virtio_pci 6733 0 - Live 0xffffffffa002c000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0025000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                         Virtual_Configuration/tile12/idleserver/VM_configuration/proc/partitions                            0000644 0000000 0000000 00000000260 11524351054 025666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile12/idleserver/VM_configuration/proc/meminfo                               0000644 0000000 0000000 00000002222 11524351053 025123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        1021520 kB
MemFree:          783528 kB
Buffers:           16772 kB
Cached:            97600 kB
SwapCached:            0 kB
Active:            86052 kB
Inactive:          75452 kB
Active(anon):      47280 kB
Inactive(anon):        4 kB
Active(file):      38772 kB
Inactive(file):    75448 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               176 kB
Writeback:             0 kB
AnonPages:         47168 kB
Mapped:            18828 kB
Shmem:               164 kB
Slab:              61196 kB
SReclaimable:      24748 kB
SUnreclaim:        36448 kB
KernelStack:         944 kB
PageTables:         3056 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2558752 kB
Committed_AS:     151208 kB
VmallocTotal:   34359738367 kB
VmallocUsed:        7592 kB
VmallocChunk:   34359726760 kB
HardwareCorrupted:     0 kB
AnonHugePages:      6144 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     1040384 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/idleserver/VM_configuration/root/                                      0000777 0000000 0000000 00000000000 11524351054 023575  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/root/convert_to_vf.sh                      0000755 0000000 0000000 00000001135 11524351054 027005  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/lspci.txt                                  0000644 0000000 0000000 00000001046 11524351053 024461  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile12/idleserver/VM_configuration/df.txt                                     0000644 0000000 0000000 00000000401 11524351032 023727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3617028   9163908  29% /
tmpfs                   510760         0    510760   0% /dev/shm
/dev/vdb1             20642412    176072  19417768   1% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/idleserver/VM_configuration/mount.txt                                  0000644 0000000 0000000 00000000612 11524351053 024507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile12/idleserver/VM_configuration/etc/                                       0000777 0000000 0000000 00000000000 11524351053 023364  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/                                  0000777 0000000 0000000 00000000000 11524351045 024213  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/                            0000777 0000000 0000000 00000000000 11524351052 025122  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests           0000755 0000000 0000000 00000017172 11524351045 030316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                  0000755 0000000 0000000 00000004325 11524351045 026734  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd               0000755 0000000 0000000 00000006014 11524351046 027523  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                 0000755 0000000 0000000 00000012327 11524351050 027117  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                0000755 0000000 0000000 00000005222 11524351051 027303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                     0000755 0000000 0000000 00000010671 11524351052 026307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                    0000755 0000000 0000000 00000006364 11524351046 026464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                0000755 0000000 0000000 00000020716 11524351047 027235  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                     0000755 0000000 0000000 00000004731 11524351047 026314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon             0000755 0000000 0000000 00000004754 11524351045 027666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                0000755 0000000 0000000 00000001364 11524351052 027326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                    0000755 0000000 0000000 00000003027 11524351047 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                   0000755 0000000 0000000 00000006743 11524351052 026647  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                    0000755 0000000 0000000 00000010777 11524351047 026457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus               0000755 0000000 0000000 00000004230 11524351051 027467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                    0000755 0000000 0000000 00000006302 11524351047 026426  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                      0000755 0000000 0000000 00000004236 11524351052 026142  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                  0000755 0000000 0000000 00000004031 11524351050 026750  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance               0000755 0000000 0000000 00000003521 11524351050 027433  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                  0000755 0000000 0000000 00000006050 11524351051 027006  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                  0000755 0000000 0000000 00000002363 11524351050 027055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger               0000755 0000000 0000000 00000004054 11524351045 027472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                0000755 0000000 0000000 00000005013 11524351051 027343  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                    0000755 0000000 0000000 00000003213 11524351047 026445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                  0000755 0000000 0000000 00000003512 11524351047 026777  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                     0000755 0000000 0000000 00000003603 11524351047 026305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                   0000755 0000000 0000000 00000011277 11524351046 026631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S10network                  0000755 0000000 0000000 00000014466 11524351050 027032  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                  0000755 0000000 0000000 00000004326 11524351050 027037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                   0000755 0000000 0000000 00000006462 11524351050 026611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                    0000755 0000000 0000000 00000027662 11524351051 026465  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                     0000755 0000000 0000000 00000006445 11524351047 026210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                0000755 0000000 0000000 00000003245 11524351051 027272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K60crond                    0000755 0000000 0000000 00000005445 11524351046 026445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                    0000755 0000000 0000000 00000005522 11524351045 026446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl            0000755 0000000 0000000 00000002221 11524351050 030130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                0000755 0000000 0000000 00000004010 11524351046 027306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                      0000755 0000000 0000000 00000013536 11524351046 026126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                     0000755 0000000 0000000 00000004723 11524351052 026267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                   0000755 0000000 0000000 00000003024 11524351046 026577  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                    0000755 0000000 0000000 00000003275 11524351051 026425  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                 0000755 0000000 0000000 00000025442 11524351050 027150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                0000755 0000000 0000000 00000004370 11524351051 027270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S99local                    0000755 0000000 0000000 00000000334 11524351052 026443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                  0000755 0000000 0000000 00000006675 11524351051 027010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole               0000755 0000000 0000000 00000005650 11524351046 027506  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor             0000555 0000000 0000000 00000004612 11524351050 027675  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                   0000755 0000000 0000000 00000007234 11524351052 026650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                 0000755 0000000 0000000 00000003433 11524351052 027201  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                   0000755 0000000 0000000 00000005672 11524351045 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                    0000755 0000000 0000000 00000003254 11524351052 026441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                0000755 0000000 0000000 00000005063 11524351052 027315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                    0000755 0000000 0000000 00000012432 11524351051 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                  0000755 0000000 0000000 00000007414 11524351046 027027  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                 0000755 0000000 0000000 00000020557 11524351047 027152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond              0000755 0000000 0000000 00000003427 11524351047 027677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/rc3.d/K05atd                      0000755 0000000 0000000 00000004112 11524351046 026075  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/                           0000777 0000000 0000000 00000000000 11524351044 025377  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/network                    0000755 0000000 0000000 00000014466 11524351041 027022  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/gfs2                       0000755 0000000 0000000 00000006445 11524351035 026173  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/sysstat                    0000755 0000000 0000000 00000002363 11524351044 027037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/saslauthd                  0000755 0000000 0000000 00000004010 11524351043 027303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/messagebus                 0000755 0000000 0000000 00000004230 11524351040 027452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/autobench                  0000755 0000000 0000000 00000005063 11524351034 027274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/atd                        0000755 0000000 0000000 00000004112 11524351034 026066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/mcelogd                    0000755 0000000 0000000 00000003535 11524351040 026735  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/auditd                     0000755 0000000 0000000 00000006462 11524351034 026602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/certmonger                 0000755 0000000 0000000 00000004054 11524351035 027471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/irqbalance                 0000755 0000000 0000000 00000003521 11524351036 027424  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/acpid                      0000755 0000000 0000000 00000003275 11524351034 026407  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/nscd                       0000755 0000000 0000000 00000004723 11524351041 026253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                  0000755 0000000 0000000 00000005222 11524351043 027264  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/nfs                        0000755 0000000 0000000 00000013536 11524351041 026114  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/sssd                       0000755 0000000 0000000 00000004731 11524351044 026302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/crond                      0000755 0000000 0000000 00000005445 11524351035 026436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/ip6tables                  0000755 0000000 0000000 00000020716 11524351036 027221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/autofs                     0000755 0000000 0000000 00000007234 11524351034 026627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/sshd                       0000755 0000000 0000000 00000010671 11524351044 026267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/ksm                        0000755 0000000 0000000 00000004236 11524351037 026122  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/libvirt-guests             0000755 0000000 0000000 00000017172 11524351037 030316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/avahi-daemon               0000755 0000000 0000000 00000004754 11524351034 027663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/ypbind                     0000755 0000000 0000000 00000011277 11524351044 026616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/psacct                     0000755 0000000 0000000 00000003024 11524351042 026573  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/xinetd                     0000755 0000000 0000000 00000006743 11524351044 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/nfslock                    0000755 0000000 0000000 00000006675 11524351041 026773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/cgred                      0000755 0000000 0000000 00000006302 11524351035 026406  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/migrateip                  0000755 0000000 0000000 00000001364 11524351040 027302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/udev-post                  0000755 0000000 0000000 00000004370 11524351044 027253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/haldaemon                  0000755 0000000 0000000 00000003245 11524351036 027256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/ipsec                      0000755 0000000 0000000 00000010777 11524351036 026441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/rpcbind                    0000755 0000000 0000000 00000004031 11524351042 026736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/rhnsd                      0000755 0000000 0000000 00000005522 11524351042 026441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/functions                  0000644 0000000 0000000 00000042767 11524351035 027346  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/kdump                      0000755 0000000 0000000 00000027662 11524351037 026460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/postfix                    0000755 0000000 0000000 00000007414 11524351042 027021  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/iptables                   0000755 0000000 0000000 00000020557 11524351036 027136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/rsyslog                    0000755 0000000 0000000 00000004326 11524351043 027027  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/netconsole                 0000755 0000000 0000000 00000005650 11524351040 027474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/rpcgssd                    0000755 0000000 0000000 00000006050 11524351042 026765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/abrtd                      0000755 0000000 0000000 00000003254 11524351034 026420  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor               0000555 0000000 0000000 00000004612 11524351037 027671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/halt                       0000755 0000000 0000000 00000012723 11524351036 026257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/cgconfig                   0000755 0000000 0000000 00000012327 11524351035 027105  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/single                     0000755 0000000 0000000 00000001207 11524351043 026601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/mdmonitor                  0000755 0000000 0000000 00000005013 11524351040 027324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/restorecond                0000755 0000000 0000000 00000003427 11524351042 027654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/cpuspeed                   0000755 0000000 0000000 00000025442 11524351035 027140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/netfs                      0000755 0000000 0000000 00000012432 11524351040 026436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524351043 027502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/oddjobd                    0000755 0000000 0000000 00000004325 11524351041 026727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/ksmtuned                   0000755 0000000 0000000 00000003433 11524351037 027160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/sandbox                    0000755 0000000 0000000 00000003242 11524351043 026757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/killall                    0000755 0000000 0000000 00000001214 11524351037 026745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/rdisc                      0000755 0000000 0000000 00000003027 11524351042 026425  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/httpd                      0000755 0000000 0000000 00000006364 11524351036 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/ntpd                       0000755 0000000 0000000 00000003603 11524351041 026265  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/smartd                     0000755 0000000 0000000 00000005672 11524351043 026624  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/nslcd                      0000755 0000000 0000000 00000003213 11524351041 026420  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/ntpdate                    0000755 0000000 0000000 00000003512 11524351041 026756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile12/idleserver/VM_configuration/etc/rc.d/init.d/microcode_ctl              0000755 0000000 0000000 00000002221 11524351040 030120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/idleserver/VM_configuration/etc/hosts                                  0000644 0000000 0000000 00000000267 11524351033 024446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/idleserver/VM_configuration/etc/iproute2/                              0000777 0000000 0000000 00000000000 11524351033 025133  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/etc/iproute2/rt_dsfield                    0000644 0000000 0000000 00000000672 11524351033 027176  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile12/idleserver/VM_configuration/etc/iproute2/rt_realms                     0000644 0000000 0000000 00000000160 11524351033 027037  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile12/idleserver/VM_configuration/etc/iproute2/rt_scopes                     0000644 0000000 0000000 00000000134 11524351033 027051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/idleserver/VM_configuration/etc/iproute2/ematch_map                    0000644 0000000 0000000 00000000073 11524351033 027150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/idleserver/VM_configuration/etc/iproute2/rt_tables                     0000644 0000000 0000000 00000000127 11524351033 027031  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/idleserver/VM_configuration/etc/iproute2/rt_protos                     0000644 0000000 0000000 00000000475 11524351033 027113  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/etc/nsswitch.conf                          0000644 0000000 0000000 00000003230 11524351033 026065  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/idleserver/VM_configuration/etc/fstab                                  0000644 0000000 0000000 00000001603 11524351032 024377  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile12/idleserver/VM_configuration/etc/sysctl.conf                            0000644 0000000 0000000 00000001466 11524351053 025557  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile12/idleserver/VM_configuration/etc/inittab                                0000644 0000000 0000000 00000001564 11524351033 024741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile12/idleserver/VM_configuration/var/                                       0000777 0000000 0000000 00000000000 11524351054 023402  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/var/log/                                   0000777 0000000 0000000 00000000000 11524351054 024163  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/var/log/dmesg                              0000644 0000000 0000000 00000041447 11524351054 025213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003fffd000 (usable)
 BIOS-e820: 000000003fffd000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x3fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000003fffd000
 0000000000 - 003fe00000 page 2M
 003fe00000 - 003fffd000 page 4k
kernel direct mapping tables up to 3fffd000 @ 8000-b000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000003fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000003ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000003fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000003ffffe00 00040
ACPI: SSDT 000000003fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000003fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000003fffd000
Bootmem setup node 0 0000000000000000-000000003fffd000
  NODE_DATA [0000000000009000 - 000000000003cfff]
  bootmap [000000000003d000 -  0000000000044fff] pages 8
(7 early reservations) ==> bootmem [0000000000 - 003fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0000dfffff] PMD -> [ffff880002200000-ffff880002ffffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0003fffd
On node 0 totalpages: 262038
  DMA zone: 56 pages used for memmap
  DMA zone: 105 pages reserved
  DMA zone: 3832 pages, LIFO batch:0
  DMA32 zone: 3528 pages used for memmap
  DMA32 zone: 254517 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 40000000 (gap: 40000000:bffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 258349
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 1007148k/1048564k available (4935k kernel code, 412k absent, 41004k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 10485760 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116196.301:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 1992
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:03:15 UTC (1297116195)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 30 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                         Virtual_Configuration/tile12/idleserver/VM_configuration/boot/                                      0000777 0000000 0000000 00000000000 11524351032 023551  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/boot/grub/                                 0000777 0000000 0000000 00000000000 11524351032 024510  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/VM_configuration/boot/grub/grub.conf                        0000644 0000000 0000000 00000002217 11524351032 026314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/idleserver/VM_configuration/rpmpkgs.txt                                0000644 0000000 0000000 00000067153 11524351054 025046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/idleserver/VM_configuration/ifconfig.txt                               0000644 0000000 0000000 00000001573 11524351053 025140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:46  
          inet addr:10.1.217.70  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::250:56ff:fe91:46/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22915 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2756 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1936595 (1.8 MiB)  TX bytes:808660 (789.7 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:749 errors:0 dropped:0 overruns:0 frame:0
          TX packets:749 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:73567 (71.8 KiB)  TX bytes:73567 (71.8 KiB)

                                                                                                                                     Virtual_Configuration/tile12/idleserver/VM_configuration/chkconfig.txt                              0000644 0000000 0000000 00000006535 11524351032 025307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile12/idleserver/Software_Configuration/                                     0000777 0000000 0000000 00000000000 11524351031 024015  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/                                                             0000777 0000000 0000000 00000000000 11524350771 017211  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/                                            0000777 0000000 0000000 00000000000 11524351007 022453  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/proc/                                       0000777 0000000 0000000 00000000000 11524351007 023416  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/proc/cpuinfo                                0000644 0000000 0000000 00000002030 11524351006 024772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/appserver/VM_configuration/proc/mounts                                 0000644 0000000 0000000 00000001357 11524351007 024670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1278676k,nr_inodes=319669,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1367,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1367,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/appserver/VM_configuration/proc/swaps                                  0000644 0000000 0000000 00000000144 11524351007 024471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/appserver/VM_configuration/proc/devices                                0000644 0000000 0000000 00000000567 11524351006 024766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile12/appserver/VM_configuration/proc/modules                                0000644 0000000 0000000 00000002621 11524351006 025005  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 63 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
i2c_piix4 12574 0 - Live 0xffffffffa0133000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0123000
virtio_net 15665 0 - Live 0xffffffffa0119000
ixgbevf 47200 0 - Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
sr_mod 16162 0 - Live 0xffffffffa0064000
cdrom 39769 1 sr_mod, Live 0xffffffffa0053000
virtio_blk 5087 5 - Live 0xffffffffa004c000
pata_acpi 3667 0 - Live 0xffffffffa0046000
ata_generic 3611 0 - Live 0xffffffffa0040000
ata_piix 22588 0 - Live 0xffffffffa0034000
virtio_pci 6733 0 - Live 0xffffffffa002c000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0025000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile12/appserver/VM_configuration/proc/partitions                             0000644 0000000 0000000 00000000260 11524351007 025527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile12/appserver/VM_configuration/proc/meminfo                                0000644 0000000 0000000 00000002222 11524351006 024764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2571688 kB
MemFree:          495664 kB
Buffers:           37612 kB
Cached:           244960 kB
SwapCached:            0 kB
Active:          1750720 kB
Inactive:         189092 kB
Active(anon):    1657440 kB
Inactive(anon):        0 kB
Active(file):      93280 kB
Inactive(file):   189092 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               152 kB
Writeback:             0 kB
AnonPages:       1657288 kB
Mapped:            76164 kB
Shmem:               160 kB
Slab:             102328 kB
SReclaimable:      35396 kB
SUnreclaim:        66932 kB
KernelStack:        2696 kB
PageTables:         6960 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3333836 kB
Committed_AS:     346744 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       19244 kB
VmallocChunk:   34359711684 kB
HardwareCorrupted:     0 kB
AnonHugePages:   1437696 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2613248 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/appserver/VM_configuration/root/                                       0000777 0000000 0000000 00000000000 11524351007 023436  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/root/convert_to_vf.sh                       0000755 0000000 0000000 00000001135 11524351007 026646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/lspci.txt                                   0000644 0000000 0000000 00000001211 11524351006 024314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/appserver/VM_configuration/df.txt                                      0000644 0000000 0000000 00000000401 11524350771 023603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   8771312   4009624  69% /
tmpfs                  1285844         0   1285844   0% /dev/shm
/dev/vdb1             20642412   2027048  17566792  11% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/appserver/VM_configuration/mount.txt                                   0000644 0000000 0000000 00000000612 11524351006 024350  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile12/appserver/VM_configuration/etc/                                        0000777 0000000 0000000 00000000000 11524351006 023225  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/                                   0000777 0000000 0000000 00000000000 11524351000 024045  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/                             0000777 0000000 0000000 00000000000 11524351006 024764  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests            0000755 0000000 0000000 00000017172 11524351000 030150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                   0000755 0000000 0000000 00000004325 11524351000 026566  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                0000755 0000000 0000000 00000006014 11524351001 027355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                  0000755 0000000 0000000 00000012327 11524351003 026760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                 0000755 0000000 0000000 00000005222 11524351004 027144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                      0000755 0000000 0000000 00000010671 11524351005 026150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                     0000755 0000000 0000000 00000006364 11524351001 026316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                 0000755 0000000 0000000 00000020716 11524351003 027070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                      0000755 0000000 0000000 00000004731 11524351002 026146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon              0000755 0000000 0000000 00000004754 11524351000 027520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                 0000755 0000000 0000000 00000001364 11524351005 027167  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                     0000755 0000000 0000000 00000003027 11524351002 026304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                    0000755 0000000 0000000 00000006743 11524351005 026510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                     0000755 0000000 0000000 00000010777 11524351002 026311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                0000755 0000000 0000000 00000004230 11524351004 027330  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                     0000755 0000000 0000000 00000006302 11524351002 026260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                       0000755 0000000 0000000 00000004236 11524351005 026003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                   0000755 0000000 0000000 00000004031 11524351004 026612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                0000755 0000000 0000000 00000003521 11524351004 027275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                   0000755 0000000 0000000 00000006050 11524351004 026647  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                   0000755 0000000 0000000 00000002363 11524351003 026716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                0000755 0000000 0000000 00000004054 11524351000 027324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                 0000755 0000000 0000000 00000005013 11524351004 027204  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                     0000755 0000000 0000000 00000003213 11524351002 026277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                   0000755 0000000 0000000 00000003512 11524351002 026631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                      0000755 0000000 0000000 00000003603 11524351002 026137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                    0000755 0000000 0000000 00000011277 11524351002 026464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S10network                   0000755 0000000 0000000 00000014466 11524351003 026673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                   0000755 0000000 0000000 00000004326 11524351003 026700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                    0000755 0000000 0000000 00000006462 11524351003 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                     0000755 0000000 0000000 00000027662 11524351004 026326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                      0000755 0000000 0000000 00000006445 11524351002 026042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                 0000755 0000000 0000000 00000003245 11524351005 027134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K60crond                     0000755 0000000 0000000 00000005445 11524351001 026277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                     0000755 0000000 0000000 00000005522 11524351001 026301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl             0000755 0000000 0000000 00000002221 11524351003 027771  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                 0000755 0000000 0000000 00000004010 11524351001 027140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                       0000755 0000000 0000000 00000013536 11524351001 025760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                      0000755 0000000 0000000 00000004723 11524351005 026130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                    0000755 0000000 0000000 00000003024 11524351001 026431  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                     0000755 0000000 0000000 00000003275 11524351004 026266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                  0000755 0000000 0000000 00000025442 11524351003 027011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                 0000755 0000000 0000000 00000004370 11524351005 027132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S99local                     0000755 0000000 0000000 00000000334 11524351006 026305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                   0000755 0000000 0000000 00000006675 11524351004 026651  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                0000755 0000000 0000000 00000005650 11524351001 027340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor              0000555 0000000 0000000 00000004612 11524351003 027536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                    0000755 0000000 0000000 00000007234 11524351005 026511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                  0000755 0000000 0000000 00000003433 11524351005 027042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                    0000755 0000000 0000000 00000005672 11524351000 026460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                     0000755 0000000 0000000 00000003254 11524351005 026302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                 0000755 0000000 0000000 00000005063 11524351005 027156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                     0000755 0000000 0000000 00000012432 11524351004 026317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                   0000755 0000000 0000000 00000007414 11524351001 026661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                  0000755 0000000 0000000 00000020557 11524351003 027005  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond               0000755 0000000 0000000 00000003427 11524351002 027531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/rc3.d/K05atd                       0000755 0000000 0000000 00000004112 11524351001 025727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/                            0000777 0000000 0000000 00000000000 11524351000 025232  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/network                     0000755 0000000 0000000 00000014466 11524350775 026702  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/gfs2                        0000755 0000000 0000000 00000006445 11524350774 026047  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/sysstat                     0000755 0000000 0000000 00000002363 11524351000 026672  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/saslauthd                   0000755 0000000 0000000 00000004010 11524350777 027163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/messagebus                  0000755 0000000 0000000 00000004230 11524350775 027333  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/autobench                   0000755 0000000 0000000 00000005063 11524350773 027150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/atd                         0000755 0000000 0000000 00000004112 11524350772 025741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/mcelogd                     0000755 0000000 0000000 00000003535 11524350775 026616  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/auditd                      0000755 0000000 0000000 00000006462 11524350773 026456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/certmonger                  0000755 0000000 0000000 00000004054 11524350773 027344  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/irqbalance                  0000755 0000000 0000000 00000003521 11524350774 027277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/acpid                       0000755 0000000 0000000 00000003275 11524350772 026262  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/nscd                        0000755 0000000 0000000 00000004723 11524350776 026134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                   0000755 0000000 0000000 00000005222 11524350777 027144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/nfs                         0000755 0000000 0000000 00000013536 11524350775 025774  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/sssd                        0000755 0000000 0000000 00000004731 11524351000 026135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/crond                       0000755 0000000 0000000 00000005445 11524350773 026311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/ip6tables                   0000755 0000000 0000000 00000020716 11524350774 027074  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/autofs                      0000755 0000000 0000000 00000007234 11524350773 026503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/sshd                        0000755 0000000 0000000 00000010671 11524350777 026146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/ksm                         0000755 0000000 0000000 00000004236 11524350774 025774  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/libvirt-guests              0000755 0000000 0000000 00000017172 11524350775 030171  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                0000755 0000000 0000000 00000004754 11524350773 027537  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/ypbind                      0000755 0000000 0000000 00000011277 11524351000 026451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/psacct                      0000755 0000000 0000000 00000003024 11524350776 026453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/xinetd                      0000755 0000000 0000000 00000006743 11524351000 026461  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/nfslock                     0000755 0000000 0000000 00000006675 11524350776 026654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/cgred                       0000755 0000000 0000000 00000006302 11524350773 026261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/migrateip                   0000755 0000000 0000000 00000001364 11524350775 027163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/udev-post                   0000755 0000000 0000000 00000004370 11524351000 027106  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/haldaemon                   0000755 0000000 0000000 00000003245 11524350774 027131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/ipsec                       0000755 0000000 0000000 00000010777 11524350774 026314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/rpcbind                     0000755 0000000 0000000 00000004031 11524350777 026617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/rhnsd                       0000755 0000000 0000000 00000005522 11524350777 026322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/functions                   0000644 0000000 0000000 00000042767 11524350773 027221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/kdump                       0000755 0000000 0000000 00000027662 11524350774 026332  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/postfix                     0000755 0000000 0000000 00000007414 11524350776 026701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/iptables                    0000755 0000000 0000000 00000020557 11524350774 027011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/rsyslog                     0000755 0000000 0000000 00000004326 11524350777 026707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/netconsole                  0000755 0000000 0000000 00000005650 11524350775 027355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/rpcgssd                     0000755 0000000 0000000 00000006050 11524350777 026646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/abrtd                       0000755 0000000 0000000 00000003254 11524350772 026273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                0000555 0000000 0000000 00000004612 11524350775 027544  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/halt                        0000755 0000000 0000000 00000012723 11524350774 026132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/cgconfig                    0000755 0000000 0000000 00000012327 11524350773 026760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/single                      0000755 0000000 0000000 00000001207 11524350777 026461  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/mdmonitor                   0000755 0000000 0000000 00000005013 11524350775 027205  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/restorecond                 0000755 0000000 0000000 00000003427 11524350776 027534  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/cpuspeed                    0000755 0000000 0000000 00000025442 11524350773 027013  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/netfs                       0000755 0000000 0000000 00000012432 11524350775 026317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                  0000755 0000000 0000000 00000006014 11524350777 027362  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/oddjobd                     0000755 0000000 0000000 00000004325 11524350776 026610  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/ksmtuned                    0000755 0000000 0000000 00000003433 11524350775 027033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/sandbox                     0000755 0000000 0000000 00000003242 11524350777 026637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/killall                     0000755 0000000 0000000 00000001214 11524350774 026617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/rdisc                       0000755 0000000 0000000 00000003027 11524350776 026305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/httpd                       0000755 0000000 0000000 00000006364 11524350774 026331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/ntpd                        0000755 0000000 0000000 00000003603 11524350776 026146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/smartd                      0000755 0000000 0000000 00000005672 11524350777 026504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/nslcd                       0000755 0000000 0000000 00000003213 11524350776 026301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/ntpdate                     0000755 0000000 0000000 00000003512 11524350776 026637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile12/appserver/VM_configuration/etc/rc.d/init.d/microcode_ctl               0000755 0000000 0000000 00000002221 11524350775 030001  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/appserver/VM_configuration/etc/hosts                                   0000644 0000000 0000000 00000000267 11524350771 024321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/appserver/VM_configuration/etc/iproute2/                               0000777 0000000 0000000 00000000000 11524350772 025007  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/etc/iproute2/rt_dsfield                     0000644 0000000 0000000 00000000672 11524350772 027052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile12/appserver/VM_configuration/etc/iproute2/rt_realms                      0000644 0000000 0000000 00000000160 11524350772 026713  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile12/appserver/VM_configuration/etc/iproute2/rt_scopes                      0000644 0000000 0000000 00000000134 11524350772 026725  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/appserver/VM_configuration/etc/iproute2/ematch_map                     0000644 0000000 0000000 00000000073 11524350772 027024  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/appserver/VM_configuration/etc/iproute2/rt_tables                      0000644 0000000 0000000 00000000127 11524350772 026705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/appserver/VM_configuration/etc/iproute2/rt_protos                      0000644 0000000 0000000 00000000475 11524350772 026767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/etc/nsswitch.conf                           0000644 0000000 0000000 00000003230 11524350772 025741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/appserver/VM_configuration/etc/fstab                                   0000644 0000000 0000000 00000001603 11524350771 024253  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile12/appserver/VM_configuration/etc/sysctl.conf                             0000644 0000000 0000000 00000001466 11524351006 025420  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile12/appserver/VM_configuration/etc/inittab                                 0000644 0000000 0000000 00000001564 11524350771 024614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile12/appserver/VM_configuration/var/                                        0000777 0000000 0000000 00000000000 11524351007 023243  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/var/log/                                    0000777 0000000 0000000 00000000000 11524351007 024024  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/var/log/dmesg                               0000644 0000000 0000000 00000044275 11524351007 025056  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000009fffd000 (usable)
 BIOS-e820: 000000009fffd000 - 00000000a0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x9fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000009fffd000
 0000000000 - 009fe00000 page 2M
 009fe00000 - 009fffd000 page 4k
kernel direct mapping tables up to 9fffd000 @ 8000-d000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 000000009fffde00 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000009ffffe20 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000009fffdf70 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000009ffffdc0 00040
ACPI: SSDT 000000009fffdf20 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000009fffde30 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000009fffd000
Bootmem setup node 0 0000000000000000-000000009fffd000
  NODE_DATA [000000000000b000 - 000000000003efff]
  bootmap [000000000003f000 -  0000000000052fff] pages 14
(7 early reservations) ==> bootmem [0000000000 - 009fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000b000]          PGTABLE ==> [0000008000 - 000000b000]
found SMP MP-table at [ffff8800000f8120] f8120
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea00023fffff] PMD -> [ffff880002200000-ffff8800045fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0009fffd
On node 0 totalpages: 655254
  DMA zone: 56 pages used for memmap
  DMA zone: 107 pages reserved
  DMA zone: 3830 pages, LIFO batch:0
  DMA32 zone: 8904 pages used for memmap
  DMA32 zone: 642357 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at a0000000 (gap: a0000000:5ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 646187
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2557352k/2621428k available (4935k kernel code, 412k absent, 63664k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 26214400 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:1f16901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (13867.27 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116102.308:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 5020
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:41 UTC (1297116101)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb:
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vdb1
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
ba:27:48:17:ce:74
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/boot/                                       0000777 0000000 0000000 00000000000 11524350771 023425  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/boot/grub/                                  0000777 0000000 0000000 00000000000 11524350771 024364  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/VM_configuration/boot/grub/grub.conf                         0000644 0000000 0000000 00000001352 11524350771 026167  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/appserver/VM_configuration/rpmpkgs.txt                                 0000644 0000000 0000000 00000067153 11524351007 024707  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/appserver/VM_configuration/ifconfig.txt                                0000644 0000000 0000000 00000002353 11524351006 024776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:44  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:247 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:23847 (23.2 KiB)  TX bytes:916 (916.0 b)

eth1      Link encap:Ethernet  HWaddr BA:27:48:17:CE:74  
          inet addr:10.1.217.68  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::b827:48ff:fe17:ce74/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18499466 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38362132 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5126760414 (4.7 GiB)  TX bytes:41839471589 (38.9 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:659756 errors:0 dropped:0 overruns:0 frame:0
          TX packets:659756 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:107286419 (102.3 MiB)  TX bytes:107286419 (102.3 MiB)

                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/appserver/VM_configuration/chkconfig.txt                               0000644 0000000 0000000 00000006535 11524350771 025163  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile12/appserver/Software_Configuration/                                      0000777 0000000 0000000 00000000000 11524350770 023671  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/Software_Configuration/AppSrv01/                             0000777 0000000 0000000 00000000000 11524350770 025245  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/Software_Configuration/AppSrv01/server.xml                   0000644 0000000 0000000 00000103647 11524350770 027304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   <?xml version="1.0" encoding="UTF-8"?>
<process:Server xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:adminservice="http://www.ibm.com/websphere/appserver/schemas/5.0/adminservice.xmi" xmlns:applicationserver="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.xmi" xmlns:applicationserver.ejbcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.xmi" xmlns:applicationserver.ejbcontainer.messagelistener="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.messagelistener.xmi" xmlns:applicationserver.sipcontainer="www.ibm.com/websphere/appserver/schemas/7.0/applicationserver.sipcontainer.xmi" xmlns:applicationserver.webcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.webcontainer.xmi" xmlns:channelservice="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.xmi" xmlns:channelservice.channels="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.channels.xmi" xmlns:coregroupbridgeservice="http://www.ibm.com/websphere/appserver/schemas/6.0/coregroupbridgeservice.xmi" xmlns:diagnosticproviderservice="http://www.ibm.com/websphere/appserver/schemas/5.0/diagnosticproviderservice.xmi" xmlns:loggingservice.http="http://www.ibm.com/websphere/appserver/schemas/6.0/loggingservice.http.xmi" xmlns:loggingservice.ras="http://www.ibm.com/websphere/appserver/schemas/5.0/loggingservice.ras.xmi" xmlns:namingserver="http://www.ibm.com/websphere/appserver/schemas/5.0/namingserver.xmi" xmlns:orb="http://www.ibm.com/websphere/appserver/schemas/5.0/orb.xmi" xmlns:pmiservice="http://www.ibm.com/websphere/appserver/schemas/5.0/pmiservice.xmi" xmlns:portletcontainer="http://www.ibm.com/websphere/appserver/schemas/6.0/portletcontainer.xmi" xmlns:process="http://www.ibm.com/websphere/appserver/schemas/5.0/process.xmi" xmlns:processexec="http://www.ibm.com/websphere/appserver/schemas/5.0/processexec.xmi" xmlns:sibresources="http://www.ibm.com/websphere/appserver/schemas/6.0/sibresources.xmi" xmlns:threadpoolmanager="http://www.ibm.com/websphere/appserver/schemas/6.0/threadpoolmanager.xmi" xmlns:tperfviewer="http://www.ibm.com/websphere/appserver/schemas/6.0/tperfviewer.xmi" xmlns:traceservice="http://www.ibm.com/websphere/appserver/schemas/5.0/traceservice.xmi" xmi:id="Server_1183122130078" name="server1" parallelStartEnabled="true">
  <stateManagement xmi:id="StateManageable_1183122130078" initialState="START"/>
  <statisticsProvider xmi:id="StatisticsProvider_1183122130078" specification="com.ibm.orb=enabled"/>
  <services xmi:type="pmiservice:PMIService" xmi:id="PMIService_1183122130078" enable="false" initialSpecLevel="" statisticSet="basic" synchronizedUpdate="false"/>
  <services xmi:type="adminservice:AdminService" xmi:id="AdminService_1183122130078" enable="true" standalone="true" localAdminProtocol="IPCConnector_1" remoteAdminProtocol="SOAPConnector_1">
    <connectors xmi:type="adminservice:SOAPConnector" xmi:id="SOAPConnector_1" enable="true">
      <properties xmi:id="Property_3" name="requestTimeout" value="600"/>
    </connectors>
    <connectors xmi:type="adminservice:RMIConnector" xmi:id="RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:JSR160RMIConnector" xmi:id="JSR160RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:IPCConnector" xmi:id="IPCConnector_1" enable="true">
      <properties xmi:id="Property_4" name="requestTimeout" value="600"/>
    </connectors>
    <configRepository xmi:id="RepositoryService_1183122130078"/>
    <pluginConfigService xmi:id="PluginConfigService_1183122130078" enable="true"/>
  </services>
  <services xmi:type="traceservice:TraceService" xmi:id="TraceService_1183122130078" enable="false" startupTraceSpecification="*=all=disabled" traceOutputType="SPECIFIED_FILE" traceFormat="BASIC" memoryBufferSize="8">
    <traceLog xmi:id="TraceLog_1183122130078" fileName="${SERVER_LOG_ROOT}/trace.log" rolloverSize="100" maxNumberOfBackupFiles="10"/>
  </services>
  <services xmi:type="diagnosticproviderservice:DiagnosticProviderService" xmi:id="DiagnosticProviderService_1183122130078" enable="true" startupStateCollectionSpec=".*:.*=0"/>
  <services xmi:type="loggingservice.ras:RASLoggingService" xmi:id="RASLoggingService_1183122130078" enable="true" messageFilterLevel="NONE" enableCorrelationId="true">
    <serviceLog xmi:id="ServiceLog_1183122130078" name="${LOG_ROOT}/activity.log" size="2" enabled="true"/>
  </services>
  <services xmi:type="coregroupbridgeservice:CoreGroupBridgeService" xmi:id="CoreGroupBridgeService_1183122130078" enable="true"/>
  <services xmi:type="tperfviewer:TPVService" xmi:id="TPVService_1183122130078" enable="true"/>
  <services xmi:type="orb:ObjectRequestBroker" xmi:id="ObjectRequestBroker_1183122130078" enable="true" requestTimeout="180" requestRetriesCount="1" requestRetriesDelay="0" connectionCacheMaximum="240" connectionCacheMinimum="100" commTraceEnabled="false" locateRequestTimeout="180" forceTunnel="never" noLocalCopies="false" useServerThreadPool="true">
    <properties xmi:id="Property_1183122130079" name="com.ibm.CORBA.enableLocateRequest" value="true"/>
    <properties xmi:id="Property_1183122130080" name="com.ibm.ws.orb.transport.WSSSLServerSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLServerSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130081" name="com.ibm.ws.orb.transport.WSSSLClientSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130082" name="com.ibm.CORBA.ConnectionInterceptorName" value="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor"/>
    <properties xmi:id="Property_1183122130083" name="com.ibm.CORBA.RasManager" value="com.ibm.websphere.ras.WsOrbRasManager"/>
    <properties xmi:id="Property_1183122130084" name="com.ibm.ws.orb.transport.useMultiHome" value="true"/>
    <properties xmi:id="Property_1183122130085" name="com.ibm.websphere.management.registerServerIORWithLSD" value="true"/>
    <interceptors xmi:id="Interceptor_1183122130078" name="com.ibm.ejs.ras.RasContextSupport"/>
    <interceptors xmi:id="Interceptor_1183122130079" name="com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRequestInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130080" name="com.ibm.ws.Transaction.JTS.TxInterceptorInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130081" name="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityComponentFactory"/>
    <interceptors xmi:id="Interceptor_1183122130082" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ServerRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130083" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ClientRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130084" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIClientRI"/>
    <interceptors xmi:id="Interceptor_1183122130085" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRI"/>
    <interceptors xmi:id="Interceptor_1183122130086" name="com.ibm.ws.wlm.client.WLMClientInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130087" name="com.ibm.ws.wlm.server.WLMServerInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130088" name="com.ibm.ws.activity.remote.cos.ActivityServiceServerInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130089" name="com.ibm.debug.DebugPortableInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130090" name="com.ibm.debug.olt.ivbtrjrt.OLT_RI"/>
    <plugins xmi:id="ORBPlugin_1183122130078" name="com.ibm.ws.orbimpl.transport.WSTransport"/>
    <plugins xmi:id="ORBPlugin_1183122130079" name="com.ibm.ISecurityUtilityImpl.SecurityPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130080" name="com.ibm.ws.orbimpl.WSORBPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130081" name="com.ibm.ws.wlm.client.WLMClient"/>
    <plugins xmi:id="ORBPlugin_1183122130082" name="com.ibm.ws.pmi.server.modules.OrbPerfModule"/>
    <plugins xmi:id="ORBPlugin_1183122130083" name="com.ibm.ws.csi.CORBAORBMethodAccessControl"/>
    <threadPool xmi:id="ThreadPool_1183122130078" minimumSize="13" maximumSize="13" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
  </services>
  <services xmi:type="channelservice:TransportChannelService" xmi:id="TransportChannelService_1183122130078" enable="true">
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130078" name="TCP_1" endPointName="WC_adminhost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130079" name="TCP_2" endPointName="WC_defaulthost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130080" name="TCP_3" endPointName="WC_adminhost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130081" name="TCP_4" endPointName="WC_defaulthost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130082" name="TCP_5" endPointName="DCS_UNICAST_ADDRESS" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130080"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130083" name="TCP_8" discriminationWeight="0" endPointName="SIP_DEFAULTHOST" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130084" name="TCP_9" discriminationWeight="0" endPointName="SIP_DEFAULTHOST_SECURE" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130078" name="SSL_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130079" name="SSL_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130080" name="SSL_3" discriminationWeight="2"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130081" name="SSL_5" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130078" name="HTTP_1" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130079" name="HTTP_2" discriminationWeight="1" maximumPersistentRequests="-1" keepAlive="true" readTimeout="6000" writeTimeout="6000" persistentTimeout="3000" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130080" name="HTTP_3" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130081" name="HTTP_4" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130078" name="HTTPQ_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130079" name="HTTPQ_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130078" name="WCC_1" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130079" name="WCC_2" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130080" name="WCC_3" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130081" name="WCC_4" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130082" name="WCC_5" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130083" name="WCC_6" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130078" name="DCS_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130079" name="DCS_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130078" name="SIP_1" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130079" name="SIP_2" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130080" name="SIP_3" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130078" name="SIPCC_1" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130079" name="SIPCC_2" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130080" name="SIPCC_3" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:UDPInboundChannel" xmi:id="UDPInboundChannel_1183122130078" name="UDP_1" discriminationWeight="0" endPointName="SIP_DEFAULTHOST"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130085" name="SIB_TCP_JFAP" endPointName="SIB_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130086" name="SIB_TCP_JFAP_SSL" endPointName="SIB_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130087" name="SIB_TCP_MQFAP" endPointName="SIB_MQ_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130088" name="SIB_TCP_MQFAP_SSL" endPointName="SIB_MQ_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130082" name="SIB_SSL_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130083" name="SIB_SSL_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130078" name="SIB_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130079" name="SIB_JFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130078" name="SIB_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130079" name="SIB_MQFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130078" name="SIB_TCP_JFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130079" name="SIB_TCP_JFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130080" name="SIB_TCP_JFAP_TUN_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130081" name="SIB_TCP_JFAP_TUN_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130082" name="SIB_TCP_MQFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130083" name="SIB_TCP_MQFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130078" name="SIB_SSL_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130079" name="SIB_SSL_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130080" name="SIB_SSL_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130078" name="SIB_HTTP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130079" name="SIB_HTTP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130078" name="SIB_HTC_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130079" name="SIB_HTC_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130078" name="SIB_JFAP_JFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130079" name="SIB_JFAP_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130080" name="SIB_JFAP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130081" name="SIB_JFAP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130078" name="SIB_MQFAP_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130079" name="SIB_MQFAP_MQFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130084" name="SIB_TCP_RMQ_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130085" name="SIB_TCP_RMQ_SSL_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130081" name="SIB_SSL_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130078" name="SIB_RMQ_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130079" name="SIB_RMQ_RMQ_OUT"/>
    <chains xmi:id="Chain_1183122130078" name="WCInboundAdmin" enable="true" transportChannels="TCPInboundChannel_1183122130078 HTTPInboundChannel_1183122130078 WebContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130079" name="WCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 WebContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130080" name="HttpQueueInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 HTTPQueueInboundChannel_1183122130078 WebContainerInboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130081" name="HttpQueueInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 HTTPQueueInboundChannel_1183122130079 WebContainerInboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130082" name="WCInboundAdminSecure" enable="true" transportChannels="TCPInboundChannel_1183122130080 SSLInboundChannel_1183122130078 HTTPInboundChannel_1183122130080 WebContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130083" name="WCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 WebContainerInboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130084" name="DCS" enable="true" transportChannels="TCPInboundChannel_1183122130082 DCSInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130085" name="DCS-Secure" enable="true" transportChannels="TCPInboundChannel_1183122130082 SSLInboundChannel_1183122130080 DCSInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130086" name="SIPCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130083 SIPInboundChannel_1183122130078 SIPContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130087" name="SIPCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130084 SSLInboundChannel_1183122130081 SIPInboundChannel_1183122130079 SIPContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130088" name="SIPCInboundDefaultUDP" enable="true" transportChannels="UDPInboundChannel_1183122130078 SIPInboundChannel_1183122130080 SIPContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130089" name="InboundBasicMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130085 JFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130090" name="InboundSecureMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130086 SSLInboundChannel_1183122130082 JFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130091" name="InboundBasicMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130087 MQFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130092" name="InboundSecureMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130088 SSLInboundChannel_1183122130083 MQFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130093" name="BootstrapBasicMessaging" transportChannels="JFAPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130094" name="BootstrapSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130079 TCPOutboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130095" name="BootstrapTunneledMessaging" transportChannels="JFAPOutboundChannel_1183122130080 HTTPTunnelOutboundChannel_1183122130078 HTTPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130096" name="BootstrapTunneledSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130081 HTTPTunnelOutboundChannel_1183122130079 HTTPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130080 TCPOutboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130097" name="OutboundBasicMQLink" transportChannels="MQFAPOutboundChannel_1183122130079 TCPOutboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130098" name="OutboundSecureMQLink" transportChannels="MQFAPOutboundChannel_1183122130078 SSLOutboundChannel_1183122130078 TCPOutboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130099" name="OutboundBasicWMQClient" transportChannels="RMQOutboundChannel_1183122130079 TCPOutboundChannel_1183122130084"/>
    <chains xmi:id="Chain_1183122130100" name="OutboundSecureWMQClient" transportChannels="RMQOutboundChannel_1183122130078 SSLOutboundChannel_1183122130081 TCPOutboundChannel_1183122130085"/>
  </services>
  <services xmi:type="threadpoolmanager:ThreadPoolManager" xmi:id="ThreadPoolManager_1183122130078" enable="true">
    <threadPools xmi:id="ThreadPool_1183122130083" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
    <threadPools xmi:id="ThreadPool_1183122130084" minimumSize="1" maximumSize="3" inactivityTimeout="30000" isGrowable="false" name="server.startup" description="This pool is used by WebSphere during server startup."/>
    <threadPools xmi:id="ThreadPool_1183122130085" minimumSize="15" maximumSize="15" inactivityTimeout="3500" name="Default"/>
    <threadPools xmi:id="ThreadPool_1183122130079" minimumSize="38" maximumSize="38" inactivityTimeout="3500" isGrowable="false" name="WebContainer"/>
    <threadPools xmi:id="ThreadPool_1183122130080" minimumSize="5" maximumSize="20" name="TCPChannel.DCS"/>
    <threadPools xmi:id="ThreadPool_1183122130081" minimumSize="4" maximumSize="50" name="SIBFAPInboundThreadPool" description="Service integration bus FAP inbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1183122130082" minimumSize="4" maximumSize="50" name="SIBFAPThreadPool" description="Service integration bus FAP outbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1265156361721" minimumSize="35" maximumSize="41" inactivityTimeout="3500" name="SIBJMSRAThreadPool" description="Service Integration Bus JMS Resource Adapter thread pool"/>
    <threadPools xmi:id="ThreadPool_1265156361827" minimumSize="1" maximumSize="40" name="WMQCommonServices" description="WebSphere MQ common services thread pool">
      <customProperties xmi:id="Property_1265156361829" name="com.ibm.websphere.threadpool.disableHungThreadDetection" value="true" required="false"/>
    </threadPools>
    <threadPools xmi:id="ThreadPool_1265156361831" minimumSize="5" maximumSize="25" name="WMQJCAResourceAdapter" description="wmqJcaRaThreadPoolDescription"/>
  </services>
  <services xmi:type="loggingservice.http:HTTPAccessLoggingService" xmi:id="HTTPAccessLoggingService_1183122130078" enable="false" enableErrorLogging="true" enableAccessLogging="true">
    <errorLog xmi:id="LogFile_1183122130078" filePath="${SERVER_LOG_ROOT}/http_error.log" maximumSize="500"/>
    <accessLog xmi:id="LogFile_1183122130079" filePath="${SERVER_LOG_ROOT}/http_access.log" maximumSize="500"/>
  </services>
  <errorStreamRedirect xmi:id="StreamRedirect_1183122130078" fileName="${SERVER_LOG_ROOT}/SystemErr.log" rolloverType="NONE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <outputStreamRedirect xmi:id="StreamRedirect_1183122130079" fileName="${SERVER_LOG_ROOT}/SystemOut.log" rolloverType="NONE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <components xmi:type="namingserver:NameServer" xmi:id="NameServer_1183122130078">
    <stateManagement xmi:id="StateManageable_1183122130079" initialState="START"/>
  </components>
  <components xmi:type="applicationserver:ApplicationServer" xmi:id="ApplicationServer_1183122130078" applicationClassLoaderPolicy="MULTIPLE">
    <stateManagement xmi:id="StateManageable_1183122130080" initialState="START"/>
    <services xmi:type="applicationserver:TransactionService" xmi:id="TransactionService_1183122130078" enable="true" totalTranLifetimeTimeout="0" clientInactivityTimeout="0" propogatedOrBMTTranLifetimeTimeout="300" httpProxyPrefix="" httpsProxyPrefix=""/>
    <services xmi:type="applicationserver:DynamicCache" xmi:id="DynamicCache_1183122130078" enable="true">
      <cacheGroups xmi:id="ExternalCacheGroup_1183122130078" name="EsiInvalidator">
        <members xmi:id="ExternalCacheGroupMember_1183122130078" address="localhost" adapterBeanName="com.ibm.websphere.servlet.cache.ESIInvalidatorServlet"/>
      </cacheGroups>
    </services>
    <components xmi:type="applicationserver.webcontainer:WebContainer" xmi:id="WebContainer_1183122130078" enableServletCaching="false" disablePooling="false">
      <stateManagement xmi:id="StateManageable_1183122130081" initialState="START"/>
      <services xmi:type="applicationserver.webcontainer:SessionManager" xmi:id="SessionManager_1183122130078" enable="true" enableUrlRewriting="false" enableCookies="true" enableSSLTracking="false" enableProtocolSwitchRewriting="false" sessionPersistenceMode="NONE" enableSecurityIntegration="false" allowSerializedSessionAccess="false" maxWaitTime="5" accessSessionOnTimeout="true">
        <defaultCookieSettings xmi:id="Cookie_1183122130078" domain="" maximumAge="-1" secure="false"/>
        <sessionDatabasePersistence xmi:id="SessionDatabasePersistence_1183122130078" datasourceJNDIName="jdbc/Sessions" userId="db2admin" password="{xor}Oz1tPjsyNjE=" db2RowSize="ROW_SIZE_4KB" tableSpaceName=""/>
        <tuningParams xmi:id="TuningParams_1183122130078" usingMultiRowSchema="false" maxInMemorySessionCount="1000" allowOverflow="true" scheduleInvalidation="false" writeFrequency="TIME_BASED_WRITE" writeInterval="10" writeContents="ONLY_UPDATED_ATTRIBUTES" invalidationTimeout="30">
          <invalidationSchedule xmi:id="InvalidationSchedule_1183122130078" firstHour="14" secondHour="2"/>
        </tuningParams>
      </services>
    </components>
    <components xmi:type="applicationserver.ejbcontainer:EJBContainer" xmi:id="EJBContainer_1183122130078" passivationDirectory="${USER_INSTALL_ROOT}/temp" inactivePoolCleanupInterval="30000">
      <stateManagement xmi:id="StateManageable_1183122130082" initialState="START"/>
      <services xmi:type="applicationserver.ejbcontainer.messagelistener:MessageListenerService" xmi:id="MessageListenerService_1183122130078">
        <threadPool xmi:id="ThreadPool_1183122130086" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="Message.Listener.Pool"/>
      </services>
      <cacheSettings xmi:id="EJBCache_1183122130078" cleanupInterval="3000" cacheSize="60000"/>
      <timerSettings xmi:id="EJBTimer_1183122130078" datasourceJNDIName="jdbc/DefaultEJBTimerDataSource" tablePrefix="EJBTIMER_" pollInterval="300" numAlarmThreads="1"/>
    </components>
    <components xmi:type="portletcontainer:PortletContainer" xmi:id="PortletContainer_1183122130078"/>
    <components xmi:type="applicationserver.sipcontainer:SIPContainer" xmi:id="SIPContainer_1183122130078" name="" maxAppSessions="120000" maxMessageRate="5000" maxDispatchQueueSize="3200" maxResponseTime="0" statAveragePeriod="1000" statUpdateRange="10000">
      <stack xmi:id="Stack_1183122130078">
        <timers xmi:id="Timers_1183122130078"/>
      </stack>
    </components>
    <webserverPluginSettings xmi:id="WebserverPluginSettings_1183122130078" WaitForContinue="false" ConnectTimeout="0" MaxConnections="-1" ExtendedHandshake="false" ServerIOTimeout="0"/>
  </components>
  <processDefinitions xmi:type="processexec:JavaProcessDef" xmi:id="JavaProcessDef_1183122130078" workingDirectory="${USER_INSTALL_ROOT}" executableTargetKind="JAVA_CLASS" executableTarget="com.ibm.ws.runtime.WsServer">
    <execution xmi:id="ProcessExecution_1183122130078" processPriority="20" runAsUser="" runAsGroup=""/>
    <ioRedirect xmi:id="OutputRedirect_1183122130078" stdoutFilename="${SERVER_LOG_ROOT}/native_stdout.log" stderrFilename="${SERVER_LOG_ROOT}/native_stderr.log"/>
    <monitoringPolicy xmi:id="MonitoringPolicy_1183122130078" maximumStartupAttempts="3" pingInterval="60" pingTimeout="300" autoRestart="true" nodeRestartState="STOPPED"/>
    <jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="true" verboseModeJNI="false" initialHeapSize="1280" maximumHeapSize="1280" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777" genericJvmArguments="-Dcom.ibm.CORBA.TransportMode=Pluggable -Dcom.ibm.ws.pm.batch=true -Dcom.ibm.ws.pm.deferredcreate=true -Dcom.ibm.CORBA.FragmentSize=3000 -Dcom.ibm.ws.pm.useLegacyCache=false -Dcom.ibm.ws.pm.grouppartialupdate=true -Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XML11Configuration -noclassgc -Xss128k  -Xgcpolicy:gencon -Xmo320m -Xcodecache16m -Xgcthreads4 -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=0">
      <systemProperties xmi:id="Property_1" name="com.ibm.security.jgss.debug" value="off" required="false"/>
      <systemProperties xmi:id="Property_2" name="com.ibm.security.krb5.Krb5Debug" value="off" required="false"/>
    </jvmEntries>
  </processDefinitions>
</process:Server>
                                                                                         Virtual_Configuration/tile12/appserver/Software_Configuration/AppSrv02/                             0000777 0000000 0000000 00000000000 11524350770 025246  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/appserver/Software_Configuration/AppSrv02/server.xml                   0000644 0000000 0000000 00000102162 11524350770 027274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   <?xml version="1.0" encoding="UTF-8"?>
<process:Server xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:adminservice="http://www.ibm.com/websphere/appserver/schemas/5.0/adminservice.xmi" xmlns:applicationserver="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.xmi" xmlns:applicationserver.ejbcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.xmi" xmlns:applicationserver.ejbcontainer.messagelistener="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.ejbcontainer.messagelistener.xmi" xmlns:applicationserver.sipcontainer="www.ibm.com/websphere/appserver/schemas/7.0/applicationserver.sipcontainer.xmi" xmlns:applicationserver.webcontainer="http://www.ibm.com/websphere/appserver/schemas/5.0/applicationserver.webcontainer.xmi" xmlns:channelservice="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.xmi" xmlns:channelservice.channels="http://www.ibm.com/websphere/appserver/schemas/6.0/channelservice.channels.xmi" xmlns:coregroupbridgeservice="http://www.ibm.com/websphere/appserver/schemas/6.0/coregroupbridgeservice.xmi" xmlns:diagnosticproviderservice="http://www.ibm.com/websphere/appserver/schemas/5.0/diagnosticproviderservice.xmi" xmlns:loggingservice.http="http://www.ibm.com/websphere/appserver/schemas/6.0/loggingservice.http.xmi" xmlns:loggingservice.ras="http://www.ibm.com/websphere/appserver/schemas/5.0/loggingservice.ras.xmi" xmlns:namingserver="http://www.ibm.com/websphere/appserver/schemas/5.0/namingserver.xmi" xmlns:orb="http://www.ibm.com/websphere/appserver/schemas/5.0/orb.xmi" xmlns:pmiservice="http://www.ibm.com/websphere/appserver/schemas/5.0/pmiservice.xmi" xmlns:portletcontainer="http://www.ibm.com/websphere/appserver/schemas/6.0/portletcontainer.xmi" xmlns:process="http://www.ibm.com/websphere/appserver/schemas/5.0/process.xmi" xmlns:processexec="http://www.ibm.com/websphere/appserver/schemas/5.0/processexec.xmi" xmlns:sibresources="http://www.ibm.com/websphere/appserver/schemas/6.0/sibresources.xmi" xmlns:threadpoolmanager="http://www.ibm.com/websphere/appserver/schemas/6.0/threadpoolmanager.xmi" xmlns:tperfviewer="http://www.ibm.com/websphere/appserver/schemas/6.0/tperfviewer.xmi" xmlns:traceservice="http://www.ibm.com/websphere/appserver/schemas/5.0/traceservice.xmi" xmi:id="Server_1183122130078" name="server1">
  <stateManagement xmi:id="StateManageable_1183122130078" initialState="START"/>
  <statisticsProvider xmi:id="StatisticsProvider_1183122130078" specification="com.ibm.orb=enabled"/>
  <services xmi:type="pmiservice:PMIService" xmi:id="PMIService_1183122130078" enable="true" initialSpecLevel="" statisticSet="basic" synchronizedUpdate="false"/>
  <services xmi:type="adminservice:AdminService" xmi:id="AdminService_1183122130078" enable="true" standalone="true" localAdminProtocol="IPCConnector_1" remoteAdminProtocol="SOAPConnector_1">
    <connectors xmi:type="adminservice:SOAPConnector" xmi:id="SOAPConnector_1" enable="true">
      <properties xmi:id="Property_3" name="requestTimeout" value="600"/>
    </connectors>
    <connectors xmi:type="adminservice:RMIConnector" xmi:id="RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:JSR160RMIConnector" xmi:id="JSR160RMIConnector_1" enable="true"/>
    <connectors xmi:type="adminservice:IPCConnector" xmi:id="IPCConnector_1" enable="true">
      <properties xmi:id="Property_4" name="requestTimeout" value="600"/>
    </connectors>
    <configRepository xmi:id="RepositoryService_1183122130078"/>
    <pluginConfigService xmi:id="PluginConfigService_1183122130078" enable="true"/>
  </services>
  <services xmi:type="traceservice:TraceService" xmi:id="TraceService_1183122130078" enable="true" startupTraceSpecification="*=info" traceOutputType="SPECIFIED_FILE" traceFormat="BASIC" memoryBufferSize="8">
    <traceLog xmi:id="TraceLog_1183122130078" fileName="${SERVER_LOG_ROOT}/trace.log" rolloverSize="20" maxNumberOfBackupFiles="1"/>
  </services>
  <services xmi:type="diagnosticproviderservice:DiagnosticProviderService" xmi:id="DiagnosticProviderService_1183122130078" enable="true" startupStateCollectionSpec=".*:.*=0"/>
  <services xmi:type="loggingservice.ras:RASLoggingService" xmi:id="RASLoggingService_1183122130078" enable="true" messageFilterLevel="NONE" enableCorrelationId="true">
    <serviceLog xmi:id="ServiceLog_1183122130078" name="${LOG_ROOT}/activity.log" size="2" enabled="true"/>
  </services>
  <services xmi:type="coregroupbridgeservice:CoreGroupBridgeService" xmi:id="CoreGroupBridgeService_1183122130078" enable="true"/>
  <services xmi:type="tperfviewer:TPVService" xmi:id="TPVService_1183122130078" enable="true"/>
  <services xmi:type="orb:ObjectRequestBroker" xmi:id="ObjectRequestBroker_1183122130078" enable="true" requestTimeout="180" requestRetriesCount="1" requestRetriesDelay="0" connectionCacheMaximum="240" connectionCacheMinimum="100" commTraceEnabled="false" locateRequestTimeout="180" forceTunnel="never" noLocalCopies="false" useServerThreadPool="false">
    <properties xmi:id="Property_1183122130079" name="com.ibm.CORBA.enableLocateRequest" value="true"/>
    <properties xmi:id="Property_1183122130080" name="com.ibm.ws.orb.transport.WSSSLServerSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLServerSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130081" name="com.ibm.ws.orb.transport.WSSSLClientSocketFactoryName" value="com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl"/>
    <properties xmi:id="Property_1183122130082" name="com.ibm.CORBA.ConnectionInterceptorName" value="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor"/>
    <properties xmi:id="Property_1183122130083" name="com.ibm.CORBA.RasManager" value="com.ibm.websphere.ras.WsOrbRasManager"/>
    <properties xmi:id="Property_1183122130084" name="com.ibm.ws.orb.transport.useMultiHome" value="true"/>
    <properties xmi:id="Property_1183122130085" name="com.ibm.websphere.management.registerServerIORWithLSD" value="true"/>
    <interceptors xmi:id="Interceptor_1183122130078" name="com.ibm.ejs.ras.RasContextSupport"/>
    <interceptors xmi:id="Interceptor_1183122130079" name="com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRequestInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130080" name="com.ibm.ws.Transaction.JTS.TxInterceptorInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130081" name="com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityComponentFactory"/>
    <interceptors xmi:id="Interceptor_1183122130082" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ServerRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130083" name="com.ibm.ISecurityLocalObjectBaseL13Impl.ClientRIWrapper"/>
    <interceptors xmi:id="Interceptor_1183122130084" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIClientRI"/>
    <interceptors xmi:id="Interceptor_1183122130085" name="com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRI"/>
    <interceptors xmi:id="Interceptor_1183122130086" name="com.ibm.ws.wlm.client.WLMClientInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130087" name="com.ibm.ws.wlm.server.WLMServerInitializer"/>
    <interceptors xmi:id="Interceptor_1183122130088" name="com.ibm.ws.activity.remote.cos.ActivityServiceServerInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130089" name="com.ibm.debug.DebugPortableInterceptor"/>
    <interceptors xmi:id="Interceptor_1183122130090" name="com.ibm.debug.olt.ivbtrjrt.OLT_RI"/>
    <plugins xmi:id="ORBPlugin_1183122130078" name="com.ibm.ws.orbimpl.transport.WSTransport"/>
    <plugins xmi:id="ORBPlugin_1183122130079" name="com.ibm.ISecurityUtilityImpl.SecurityPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130080" name="com.ibm.ws.orbimpl.WSORBPropertyManager"/>
    <plugins xmi:id="ORBPlugin_1183122130081" name="com.ibm.ws.wlm.client.WLMClient"/>
    <plugins xmi:id="ORBPlugin_1183122130082" name="com.ibm.ws.pmi.server.modules.OrbPerfModule"/>
    <plugins xmi:id="ORBPlugin_1183122130083" name="com.ibm.ws.csi.CORBAORBMethodAccessControl"/>
    <threadPool xmi:id="ThreadPool_1183122130078" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
  </services>
  <services xmi:type="channelservice:TransportChannelService" xmi:id="TransportChannelService_1183122130078" enable="true">
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130078" name="TCP_1" endPointName="WC_adminhost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130079" name="TCP_2" endPointName="WC_defaulthost" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130080" name="TCP_3" endPointName="WC_adminhost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130081" name="TCP_4" endPointName="WC_defaulthost_secure" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130079"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130082" name="TCP_5" endPointName="DCS_UNICAST_ADDRESS" maxOpenConnections="20000" inactivityTimeout="60" threadPool="ThreadPool_1183122130080"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130083" name="TCP_8" discriminationWeight="0" endPointName="SIP_DEFAULTHOST" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130084" name="TCP_9" discriminationWeight="0" endPointName="SIP_DEFAULTHOST_SECURE" maxOpenConnections="20000" inactivityTimeout="60"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130078" name="SSL_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130079" name="SSL_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130080" name="SSL_3" discriminationWeight="2"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130081" name="SSL_5" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130078" name="HTTP_1" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130079" name="HTTP_2" discriminationWeight="1" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130080" name="HTTP_3" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPInboundChannel" xmi:id="HTTPInboundChannel_1183122130081" name="HTTP_4" discriminationWeight="10" maximumPersistentRequests="100" keepAlive="true" readTimeout="60" writeTimeout="60" persistentTimeout="30" enableLogging="false"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130078" name="HTTPQ_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:HTTPQueueInboundChannel" xmi:id="HTTPQueueInboundChannel_1183122130079" name="HTTPQ_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130078" name="WCC_1" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130079" name="WCC_2" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130080" name="WCC_3" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130081" name="WCC_4" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130082" name="WCC_5" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:WebContainerInboundChannel" xmi:id="WebContainerInboundChannel_1183122130083" name="WCC_6" discriminationWeight="10" writeBufferSize="32768"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130078" name="DCS_1" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:DCSInboundChannel" xmi:id="DCSInboundChannel_1183122130079" name="DCS_2" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130078" name="SIP_1" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130079" name="SIP_2" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPInboundChannel" xmi:id="SIPInboundChannel_1183122130080" name="SIP_3" discriminationWeight="10"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130078" name="SIPCC_1" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130079" name="SIPCC_2" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:SIPContainerInboundChannel" xmi:id="SIPContainerInboundChannel_1183122130080" name="SIPCC_3" discriminationWeight="100"/>
    <transportChannels xmi:type="channelservice.channels:UDPInboundChannel" xmi:id="UDPInboundChannel_1183122130078" name="UDP_1" discriminationWeight="0" endPointName="SIP_DEFAULTHOST"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130085" name="SIB_TCP_JFAP" endPointName="SIB_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130086" name="SIB_TCP_JFAP_SSL" endPointName="SIB_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130087" name="SIB_TCP_MQFAP" endPointName="SIB_MQ_ENDPOINT_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:TCPInboundChannel" xmi:id="TCPInboundChannel_1183122130088" name="SIB_TCP_MQFAP_SSL" endPointName="SIB_MQ_ENDPOINT_SECURE_ADDRESS" threadPool="ThreadPool_1183122130081"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130082" name="SIB_SSL_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:SSLInboundChannel" xmi:id="SSLInboundChannel_1183122130083" name="SIB_SSL_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130078" name="SIB_JFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:JFAPInboundChannel" xmi:id="JFAPInboundChannel_1183122130079" name="SIB_JFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130078" name="SIB_MQFAP" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPInboundChannel" xmi:id="MQFAPInboundChannel_1183122130079" name="SIB_MQFAP_SSL" discriminationWeight="1"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130078" name="SIB_TCP_JFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130079" name="SIB_TCP_JFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130080" name="SIB_TCP_JFAP_TUN_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130081" name="SIB_TCP_JFAP_TUN_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130082" name="SIB_TCP_MQFAP_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130083" name="SIB_TCP_MQFAP_SSL_OUT" inactivityTimeout="60" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130078" name="SIB_SSL_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130079" name="SIB_SSL_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130080" name="SIB_SSL_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130078" name="SIB_HTTP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPOutboundChannel" xmi:id="HTTPOutboundChannel_1183122130079" name="SIB_HTTP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130078" name="SIB_HTC_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:HTTPTunnelOutboundChannel" xmi:id="HTTPTunnelOutboundChannel_1183122130079" name="SIB_HTC_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130078" name="SIB_JFAP_JFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130079" name="SIB_JFAP_JFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130080" name="SIB_JFAP_JFAP_TUN_OUT"/>
    <transportChannels xmi:type="channelservice.channels:JFAPOutboundChannel" xmi:id="JFAPOutboundChannel_1183122130081" name="SIB_JFAP_JFAP_TUN_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130078" name="SIB_MQFAP_MQFAP_SSL_OUT"/>
    <transportChannels xmi:type="channelservice.channels:MQFAPOutboundChannel" xmi:id="MQFAPOutboundChannel_1183122130079" name="SIB_MQFAP_MQFAP_OUT"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130084" name="SIB_TCP_RMQ_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:TCPOutboundChannel" xmi:id="TCPOutboundChannel_1183122130085" name="SIB_TCP_RMQ_SSL_OUT" threadPool="ThreadPool_1183122130082"/>
    <transportChannels xmi:type="channelservice.channels:SSLOutboundChannel" xmi:id="SSLOutboundChannel_1183122130081" name="SIB_SSL_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130078" name="SIB_RMQ_RMQ_SSL_OUT"/>
    <transportChannels xmi:type="sibresources:RMQOutboundChannel" xmi:id="RMQOutboundChannel_1183122130079" name="SIB_RMQ_RMQ_OUT"/>
    <chains xmi:id="Chain_1183122130078" name="WCInboundAdmin" enable="true" transportChannels="TCPInboundChannel_1183122130078 HTTPInboundChannel_1183122130078 WebContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130079" name="WCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 WebContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130080" name="HttpQueueInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130079 HTTPInboundChannel_1183122130079 HTTPQueueInboundChannel_1183122130078 WebContainerInboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130081" name="HttpQueueInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 HTTPQueueInboundChannel_1183122130079 WebContainerInboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130082" name="WCInboundAdminSecure" enable="true" transportChannels="TCPInboundChannel_1183122130080 SSLInboundChannel_1183122130078 HTTPInboundChannel_1183122130080 WebContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130083" name="WCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130081 SSLInboundChannel_1183122130079 HTTPInboundChannel_1183122130081 WebContainerInboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130084" name="DCS" enable="true" transportChannels="TCPInboundChannel_1183122130082 DCSInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130085" name="DCS-Secure" enable="true" transportChannels="TCPInboundChannel_1183122130082 SSLInboundChannel_1183122130080 DCSInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130086" name="SIPCInboundDefault" enable="true" transportChannels="TCPInboundChannel_1183122130083 SIPInboundChannel_1183122130078 SIPContainerInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130087" name="SIPCInboundDefaultSecure" enable="true" transportChannels="TCPInboundChannel_1183122130084 SSLInboundChannel_1183122130081 SIPInboundChannel_1183122130079 SIPContainerInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130088" name="SIPCInboundDefaultUDP" enable="true" transportChannels="UDPInboundChannel_1183122130078 SIPInboundChannel_1183122130080 SIPContainerInboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130089" name="InboundBasicMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130085 JFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130090" name="InboundSecureMessaging" enable="true" transportChannels="TCPInboundChannel_1183122130086 SSLInboundChannel_1183122130082 JFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130091" name="InboundBasicMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130087 MQFAPInboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130092" name="InboundSecureMQLink" enable="true" transportChannels="TCPInboundChannel_1183122130088 SSLInboundChannel_1183122130083 MQFAPInboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130093" name="BootstrapBasicMessaging" transportChannels="JFAPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130078"/>
    <chains xmi:id="Chain_1183122130094" name="BootstrapSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130079 TCPOutboundChannel_1183122130079"/>
    <chains xmi:id="Chain_1183122130095" name="BootstrapTunneledMessaging" transportChannels="JFAPOutboundChannel_1183122130080 HTTPTunnelOutboundChannel_1183122130078 HTTPOutboundChannel_1183122130078 TCPOutboundChannel_1183122130080"/>
    <chains xmi:id="Chain_1183122130096" name="BootstrapTunneledSecureMessaging" transportChannels="JFAPOutboundChannel_1183122130081 HTTPTunnelOutboundChannel_1183122130079 HTTPOutboundChannel_1183122130079 SSLOutboundChannel_1183122130080 TCPOutboundChannel_1183122130081"/>
    <chains xmi:id="Chain_1183122130097" name="OutboundBasicMQLink" transportChannels="MQFAPOutboundChannel_1183122130079 TCPOutboundChannel_1183122130082"/>
    <chains xmi:id="Chain_1183122130098" name="OutboundSecureMQLink" transportChannels="MQFAPOutboundChannel_1183122130078 SSLOutboundChannel_1183122130078 TCPOutboundChannel_1183122130083"/>
    <chains xmi:id="Chain_1183122130099" name="OutboundBasicWMQClient" transportChannels="RMQOutboundChannel_1183122130079 TCPOutboundChannel_1183122130084"/>
    <chains xmi:id="Chain_1183122130100" name="OutboundSecureWMQClient" transportChannels="RMQOutboundChannel_1183122130078 SSLOutboundChannel_1183122130081 TCPOutboundChannel_1183122130085"/>
  </services>
  <services xmi:type="threadpoolmanager:ThreadPoolManager" xmi:id="ThreadPoolManager_1183122130078" enable="true">
    <threadPools xmi:id="ThreadPool_1183122130083" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="ORB.thread.pool"/>
    <threadPools xmi:id="ThreadPool_1183122130084" minimumSize="1" maximumSize="3" inactivityTimeout="30000" isGrowable="false" name="server.startup" description="This pool is used by WebSphere during server startup."/>
    <threadPools xmi:id="ThreadPool_1183122130085" minimumSize="20" maximumSize="20" name="Default"/>
    <threadPools xmi:id="ThreadPool_1183122130079" minimumSize="50" maximumSize="50" inactivityTimeout="60000" isGrowable="false" name="WebContainer"/>
    <threadPools xmi:id="ThreadPool_1183122130080" minimumSize="5" maximumSize="20" name="TCPChannel.DCS"/>
    <threadPools xmi:id="ThreadPool_1183122130081" minimumSize="4" maximumSize="50" name="SIBFAPInboundThreadPool" description="Service integration bus FAP inbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1183122130082" minimumSize="4" maximumSize="50" name="SIBFAPThreadPool" description="Service integration bus FAP outbound channel thread pool"/>
    <threadPools xmi:id="ThreadPool_1268079912035" minimumSize="35" maximumSize="41" inactivityTimeout="3500" name="SIBJMSRAThreadPool" description="Service Integration Bus JMS Resource Adapter thread pool"/>
    <threadPools xmi:id="ThreadPool_1268079912120" minimumSize="1" maximumSize="40" name="WMQCommonServices" description="WebSphere MQ common services thread pool">
      <customProperties xmi:id="Property_1268079912122" name="com.ibm.websphere.threadpool.disableHungThreadDetection" value="true" required="false"/>
    </threadPools>
    <threadPools xmi:id="ThreadPool_1268079912124" minimumSize="5" maximumSize="25" name="WMQJCAResourceAdapter" description="wmqJcaRaThreadPoolDescription"/>
  </services>
  <services xmi:type="loggingservice.http:HTTPAccessLoggingService" xmi:id="HTTPAccessLoggingService_1183122130078" enable="false" enableErrorLogging="true" enableAccessLogging="true">
    <errorLog xmi:id="LogFile_1183122130078" filePath="${SERVER_LOG_ROOT}/http_error.log" maximumSize="500"/>
    <accessLog xmi:id="LogFile_1183122130079" filePath="${SERVER_LOG_ROOT}/http_access.log" maximumSize="500"/>
  </services>
  <errorStreamRedirect xmi:id="StreamRedirect_1183122130078" fileName="${SERVER_LOG_ROOT}/SystemErr.log" rolloverType="SIZE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <outputStreamRedirect xmi:id="StreamRedirect_1183122130079" fileName="${SERVER_LOG_ROOT}/SystemOut.log" rolloverType="SIZE" maxNumberOfBackupFiles="1" rolloverSize="1" baseHour="24" rolloverPeriod="24" formatWrites="true" messageFormatKind="BASIC" suppressWrites="false" suppressStackTrace="false"/>
  <components xmi:type="namingserver:NameServer" xmi:id="NameServer_1183122130078">
    <stateManagement xmi:id="StateManageable_1183122130079" initialState="START"/>
  </components>
  <components xmi:type="applicationserver:ApplicationServer" xmi:id="ApplicationServer_1183122130078" applicationClassLoaderPolicy="MULTIPLE">
    <stateManagement xmi:id="StateManageable_1183122130080" initialState="START"/>
    <services xmi:type="applicationserver:TransactionService" xmi:id="TransactionService_1183122130078" enable="true" totalTranLifetimeTimeout="120" clientInactivityTimeout="60" propogatedOrBMTTranLifetimeTimeout="300" httpProxyPrefix="" httpsProxyPrefix=""/>
    <services xmi:type="applicationserver:DynamicCache" xmi:id="DynamicCache_1183122130078" enable="true">
      <cacheGroups xmi:id="ExternalCacheGroup_1183122130078" name="EsiInvalidator">
        <members xmi:id="ExternalCacheGroupMember_1183122130078" address="localhost" adapterBeanName="com.ibm.websphere.servlet.cache.ESIInvalidatorServlet"/>
      </cacheGroups>
    </services>
    <components xmi:type="applicationserver.webcontainer:WebContainer" xmi:id="WebContainer_1183122130078" enableServletCaching="false" disablePooling="false">
      <stateManagement xmi:id="StateManageable_1183122130081" initialState="START"/>
      <services xmi:type="applicationserver.webcontainer:SessionManager" xmi:id="SessionManager_1183122130078" enable="true" enableUrlRewriting="false" enableCookies="true" enableSSLTracking="false" enableProtocolSwitchRewriting="false" sessionPersistenceMode="NONE" enableSecurityIntegration="false" allowSerializedSessionAccess="false" maxWaitTime="5" accessSessionOnTimeout="true">
        <defaultCookieSettings xmi:id="Cookie_1183122130078" domain="" maximumAge="-1" secure="false"/>
        <sessionDatabasePersistence xmi:id="SessionDatabasePersistence_1183122130078" datasourceJNDIName="jdbc/Sessions" userId="db2admin" password="{xor}Oz1tPjsyNjE=" db2RowSize="ROW_SIZE_4KB" tableSpaceName=""/>
        <tuningParams xmi:id="TuningParams_1183122130078" usingMultiRowSchema="false" maxInMemorySessionCount="1000" allowOverflow="true" scheduleInvalidation="false" writeFrequency="TIME_BASED_WRITE" writeInterval="10" writeContents="ONLY_UPDATED_ATTRIBUTES" invalidationTimeout="30">
          <invalidationSchedule xmi:id="InvalidationSchedule_1183122130078" firstHour="14" secondHour="2"/>
        </tuningParams>
      </services>
    </components>
    <components xmi:type="applicationserver.ejbcontainer:EJBContainer" xmi:id="EJBContainer_1183122130078" passivationDirectory="${USER_INSTALL_ROOT}/temp" inactivePoolCleanupInterval="30000">
      <stateManagement xmi:id="StateManageable_1183122130082" initialState="START"/>
      <services xmi:type="applicationserver.ejbcontainer.messagelistener:MessageListenerService" xmi:id="MessageListenerService_1183122130078">
        <threadPool xmi:id="ThreadPool_1183122130086" minimumSize="10" maximumSize="50" inactivityTimeout="3500" isGrowable="false" name="Message.Listener.Pool"/>
      </services>
      <cacheSettings xmi:id="EJBCache_1183122130078" cleanupInterval="3000" cacheSize="2053"/>
      <timerSettings xmi:id="EJBTimer_1183122130078" datasourceJNDIName="jdbc/DefaultEJBTimerDataSource" tablePrefix="EJBTIMER_" pollInterval="300" numAlarmThreads="1"/>
    </components>
    <components xmi:type="portletcontainer:PortletContainer" xmi:id="PortletContainer_1183122130078"/>
    <components xmi:type="applicationserver.sipcontainer:SIPContainer" xmi:id="SIPContainer_1183122130078" name="" maxAppSessions="120000" maxMessageRate="5000" maxDispatchQueueSize="3200" maxResponseTime="0" statAveragePeriod="1000" statUpdateRange="10000">
      <stack xmi:id="Stack_1183122130078">
        <timers xmi:id="Timers_1183122130078"/>
      </stack>
    </components>
    <webserverPluginSettings xmi:id="WebserverPluginSettings_1183122130078" WaitForContinue="false" ConnectTimeout="0" MaxConnections="-1" ExtendedHandshake="false" ServerIOTimeout="0"/>
  </components>
  <processDefinitions xmi:type="processexec:JavaProcessDef" xmi:id="JavaProcessDef_1183122130078" workingDirectory="${USER_INSTALL_ROOT}" executableTargetKind="JAVA_CLASS" executableTarget="com.ibm.ws.runtime.WsServer">
    <execution xmi:id="ProcessExecution_1183122130078" processPriority="20" runAsUser="" runAsGroup=""/>
    <ioRedirect xmi:id="OutputRedirect_1183122130078" stdoutFilename="${SERVER_LOG_ROOT}/native_stdout.log" stderrFilename="${SERVER_LOG_ROOT}/native_stderr.log"/>
    <monitoringPolicy xmi:id="MonitoringPolicy_1183122130078" maximumStartupAttempts="3" pingInterval="60" pingTimeout="300" autoRestart="true" nodeRestartState="STOPPED"/>
    <jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7778" genericJvmArguments="">
      <systemProperties xmi:id="Property_1" name="com.ibm.security.jgss.debug" value="off" required="false"/>
      <systemProperties xmi:id="Property_2" name="com.ibm.security.krb5.Krb5Debug" value="off" required="false"/>
    </jvmEntries>
  </processDefinitions>
</process:Server>
                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/dbserver/                                                              0000777 0000000 0000000 00000000000 11524351010 017001  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/                                             0000777 0000000 0000000 00000000000 11524351031 022255  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/proc/                                        0000777 0000000 0000000 00000000000 11524351030 023217  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/proc/cpuinfo                                 0000644 0000000 0000000 00000001017 11524351030 024600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/dbserver/VM_configuration/proc/mounts                                  0000644 0000000 0000000 00000001357 11524351030 024471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1020708k,nr_inodes=255177,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1280,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1280,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/dbserver/VM_configuration/proc/swaps                                   0000644 0000000 0000000 00000000150 11524351030 024267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	28516	-1
                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/dbserver/VM_configuration/proc/devices                                 0000644 0000000 0000000 00000000567 11524351030 024570  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile12/dbserver/VM_configuration/proc/modules                                 0000644 0000000 0000000 00000002621 11524351030 024607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 39 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile12/dbserver/VM_configuration/proc/partitions                              0000644 0000000 0000000 00000000260 11524351030 025330  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20971504 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile12/dbserver/VM_configuration/proc/meminfo                                 0000644 0000000 0000000 00000002222 11524351030 024566  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2055756 kB
MemFree:           69192 kB
Buffers:           31684 kB
Cached:           172012 kB
SwapCached:         2900 kB
Active:           733180 kB
Inactive:         298864 kB
Active(anon):     662416 kB
Inactive(anon):   224164 kB
Active(file):      70764 kB
Inactive(file):    74700 kB
Unevictable:        3228 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2019476 kB
Dirty:               268 kB
Writeback:             0 kB
AnonPages:        830136 kB
Mapped:           110308 kB
Shmem:             53616 kB
Slab:              72152 kB
SReclaimable:      17144 kB
SUnreclaim:        55008 kB
KernelStack:        2128 kB
PageTables:         8884 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2649884 kB
Committed_AS:    3484452 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       11532 kB
VmallocChunk:   34359719476 kB
HardwareCorrupted:     0 kB
AnonHugePages:    526336 kB
HugePages_Total:     416
HugePages_Free:       74
HugePages_Rsvd:       49
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2088960 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/dbserver/VM_configuration/root/                                        0000777 0000000 0000000 00000000000 11524351030 023237  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/root/convert_to_vf.sh                        0000755 0000000 0000000 00000001135 11524351030 026447  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/lspci.txt                                    0000644 0000000 0000000 00000001211 11524351027 024124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/dbserver/VM_configuration/df.txt                                       0000644 0000000 0000000 00000000401 11524351010 023373  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916  10354820   2426116  82% /
tmpfs                  1027876         0   1027876   0% /dev/shm
/dev/vdb1             20642412  11291316   8302524  58% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/dbserver/VM_configuration/mount.txt                                    0000644 0000000 0000000 00000000612 11524351027 024160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile12/dbserver/VM_configuration/etc/                                         0000777 0000000 0000000 00000000000 11524351027 023035  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/                                    0000777 0000000 0000000 00000000000 11524351020 023654  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/                              0000777 0000000 0000000 00000000000 11524351027 024574  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests             0000755 0000000 0000000 00000017172 11524351020 027757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                    0000755 0000000 0000000 00000004325 11524351020 026375  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524351021 027164  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                   0000755 0000000 0000000 00000012327 11524351023 026567  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                  0000755 0000000 0000000 00000005222 11524351025 026754  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S99firstboot                  0000755 0000000 0000000 00000005341 11524351027 027041  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                       0000755 0000000 0000000 00000010671 11524351026 025760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                      0000755 0000000 0000000 00000006364 11524351021 026125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                  0000755 0000000 0000000 00000020716 11524351023 026677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                       0000755 0000000 0000000 00000004731 11524351022 025755  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon               0000755 0000000 0000000 00000004754 11524351020 027327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                  0000755 0000000 0000000 00000001364 11524351026 026777  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                      0000755 0000000 0000000 00000003027 11524351022 026113  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                     0000755 0000000 0000000 00000006743 11524351026 026320  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                      0000755 0000000 0000000 00000010777 11524351022 026120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                 0000755 0000000 0000000 00000004230 11524351025 027140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                      0000755 0000000 0000000 00000006302 11524351022 026067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                        0000755 0000000 0000000 00000004236 11524351027 025614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                    0000755 0000000 0000000 00000004031 11524351024 026421  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                 0000755 0000000 0000000 00000003521 11524351024 027104  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                    0000755 0000000 0000000 00000006050 11524351025 026457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                    0000755 0000000 0000000 00000002363 11524351023 026525  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                 0000755 0000000 0000000 00000004054 11524351020 027133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                  0000755 0000000 0000000 00000005013 11524351025 027014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                      0000755 0000000 0000000 00000003213 11524351022 026106  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                    0000755 0000000 0000000 00000003512 11524351022 026440  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                       0000755 0000000 0000000 00000003603 11524351021 025745  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                     0000755 0000000 0000000 00000011277 11524351021 026272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S10network                    0000755 0000000 0000000 00000014466 11524351023 026502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                    0000755 0000000 0000000 00000004326 11524351023 026507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                     0000755 0000000 0000000 00000006462 11524351023 026261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                      0000755 0000000 0000000 00000027662 11524351025 026136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                       0000755 0000000 0000000 00000006445 11524351021 025650  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                  0000755 0000000 0000000 00000003245 11524351026 026744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K60crond                      0000755 0000000 0000000 00000005445 11524351021 026106  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                      0000755 0000000 0000000 00000005522 11524351020 026107  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl              0000755 0000000 0000000 00000002221 11524351023 027600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                  0000755 0000000 0000000 00000004010 11524351021 026747  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                        0000755 0000000 0000000 00000013536 11524351021 025567  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                       0000755 0000000 0000000 00000004723 11524351026 025740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                     0000755 0000000 0000000 00000003024 11524351020 026237  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                      0000755 0000000 0000000 00000003275 11524351026 026077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                   0000755 0000000 0000000 00000025442 11524351024 026621  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                  0000755 0000000 0000000 00000004370 11524351026 026742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S99local                      0000755 0000000 0000000 00000000334 11524351027 026115  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                    0000755 0000000 0000000 00000006675 11524351024 026460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                 0000755 0000000 0000000 00000005650 11524351021 027147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor               0000555 0000000 0000000 00000004612 11524351023 027345  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                     0000755 0000000 0000000 00000007234 11524351026 026321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                   0000755 0000000 0000000 00000003433 11524351027 026653  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                     0000755 0000000 0000000 00000005672 11524351020 026267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                      0000755 0000000 0000000 00000003254 11524351027 026113  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                  0000755 0000000 0000000 00000005063 11524351026 026766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                      0000755 0000000 0000000 00000012432 11524351025 026127  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                    0000755 0000000 0000000 00000007414 11524351021 026470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                   0000755 0000000 0000000 00000020557 11524351023 026614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond                0000755 0000000 0000000 00000003427 11524351022 027340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/rc3.d/K05atd                        0000755 0000000 0000000 00000004112 11524351020 025535  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/                             0000777 0000000 0000000 00000000000 11524351020 025041  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/network                      0000755 0000000 0000000 00000014466 11524351015 026473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/gfs2                         0000755 0000000 0000000 00000006445 11524351013 025637  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/sysstat                      0000755 0000000 0000000 00000002363 11524351017 026507  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/saslauthd                    0000755 0000000 0000000 00000004010 11524351017 026754  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/messagebus                   0000755 0000000 0000000 00000004230 11524351014 027123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/autobench                    0000755 0000000 0000000 00000005063 11524351012 026740  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/atd                          0000755 0000000 0000000 00000004112 11524351012 025532  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/mcelogd                      0000755 0000000 0000000 00000003535 11524351014 026406  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/auditd                       0000755 0000000 0000000 00000006462 11524351012 026246  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/certmonger                   0000755 0000000 0000000 00000004054 11524351012 027134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/irqbalance                   0000755 0000000 0000000 00000003521 11524351014 027070  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/acpid                        0000755 0000000 0000000 00000003275 11524351012 026053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/nscd                         0000755 0000000 0000000 00000004723 11524351015 025724  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                    0000755 0000000 0000000 00000005222 11524351016 026734  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/nfs                          0000755 0000000 0000000 00000013536 11524351015 025565  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/sssd                         0000755 0000000 0000000 00000004731 11524351017 025752  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/crond                        0000755 0000000 0000000 00000005445 11524351013 026102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/ip6tables                    0000755 0000000 0000000 00000020716 11524351013 026664  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/firstboot                    0000755 0000000 0000000 00000005341 11524351013 027003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
### BEGIN INIT INFO
# Provides: firstboot
# Default-Start: 3 5
# Default-Stop: 0 1 2 4 6
# Required-Start:
# Should-Start: $network
# Short-Description: Starts the firstboot configuration program
# Description: Firstboot runs the first time a machine is booted after
#              installation.  It checks for the existance of an
#              /etc/sysconfig/firstboot file.  If the file exists and
#              contains RUN_FIRSTBOOT=NO, firstboot will not run.  Otherwise
#              firstboot will be run.  If /etc/reconfigSys exists or if
#              "reconfig" is provided in the kernel boot arguments,
#              firstboot will run in reconfiguration mode.
### END INIT INFO

#
# firstboot: Starts the firstboot druid if it hasn't been run before
#
# chkconfig: 35 99 95
#
# description: Firstboot is a druid style program that runs on the first \
#              time a machine is booted after install.  It checks for \
#              the existence of an /etc/sysconfig/firstboot file.  If \
#              the file exists and contains RUN_FIRSTBOOT=NO, firstboot \
#              will not run.  Otherwise, firstboot will be run.  \
#              If /etc/reconfigSys exists or if "reconfig" is provided \
#              in the kernel boot arguments, firstboot will run in \
#              reconfiguration mode.
#

# Source function library.
. /etc/init.d/functions

FILENAME=/etc/sysconfig/firstboot

[ -z "$HOME" ] && export HOME=/

usage() {
    echo $"Usage: $0 {start|stop}"
}

case "$1" in
    start)
        if [ `/usr/bin/id -u` -ne 0 ]; then
            echo $"ERROR: Only root can run firstboot"
            exit 4
        fi

        if [ ! -f /usr/sbin/firstboot ]; then
            echo $"ERROR: Program /usr/sbin/firstboot is not installed"
            exit 5
        fi

        args=""

        if [ -f $FILENAME ] && [ ! -z "$(grep 'RUN_FIRSTBOOT=NO' $FILENAME)" ]; then
            exit 0
        fi

        if grep -i "reconfig" /proc/cmdline >/dev/null || [ -f /etc/reconfigSys ]; then
            args="--reconfig"
        fi

        . /etc/profile.d/lang.sh

        /usr/bin/plymouth --hide-splash

        /usr/sbin/firstboot $args
        RETVAL=$?

        /usr/bin/plymouth --show-splash

        # If firstboot succeeded, chkconfig it off so we don't see the message
        # every time about starting up firstboot.
        if [ "$RETVAL" -eq 0 ]; then
            action "" /bin/true
            /sbin/chkconfig firstboot off
        else
            action "" /bin/false
        fi

        exit $RETVAL
        ;;

    stop)
        exit 0
        ;;

    restart | reload | force-reload | status | condrestart | try-restart)
        usage
        exit 3
        ;;

    *)
        usage
        exit 2
        ;;
esac
                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/autofs                       0000755 0000000 0000000 00000007234 11524351012 026273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/sshd                         0000755 0000000 0000000 00000010671 11524351017 025737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/ksm                          0000755 0000000 0000000 00000004236 11524351014 025565  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/libvirt-guests               0000755 0000000 0000000 00000017172 11524351014 027761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                 0000755 0000000 0000000 00000004754 11524351012 027327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/ypbind                       0000755 0000000 0000000 00000011277 11524351020 026260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/psacct                       0000755 0000000 0000000 00000003024 11524351016 026244  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/xinetd                       0000755 0000000 0000000 00000006743 11524351020 026270  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/nfslock                      0000755 0000000 0000000 00000006675 11524351015 026444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/cgred                        0000755 0000000 0000000 00000006302 11524351012 026051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/migrateip                    0000755 0000000 0000000 00000001364 11524351015 026754  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/udev-post                    0000755 0000000 0000000 00000004370 11524351017 026723  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/haldaemon                    0000755 0000000 0000000 00000003245 11524351013 026721  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/ipsec                        0000755 0000000 0000000 00000010777 11524351013 026104  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/rpcbind                      0000755 0000000 0000000 00000004031 11524351016 026407  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/rhnsd                        0000755 0000000 0000000 00000005522 11524351016 026112  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/functions                    0000644 0000000 0000000 00000042767 11524351013 027012  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/kdump                        0000755 0000000 0000000 00000027662 11524351014 026123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/postfix                      0000755 0000000 0000000 00000007414 11524351016 026472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/iptables                     0000755 0000000 0000000 00000020557 11524351014 026602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/rsyslog                      0000755 0000000 0000000 00000004326 11524351016 026477  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/netconsole                   0000755 0000000 0000000 00000005650 11524351015 027146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/rpcgssd                      0000755 0000000 0000000 00000006050 11524351016 026436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/abrtd                        0000755 0000000 0000000 00000003254 11524351012 026064  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                 0000555 0000000 0000000 00000004612 11524351014 027334  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/halt                         0000755 0000000 0000000 00000012723 11524351013 025722  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/cgconfig                     0000755 0000000 0000000 00000012327 11524351012 026550  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/single                       0000755 0000000 0000000 00000001207 11524351017 026252  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/mdmonitor                    0000755 0000000 0000000 00000005013 11524351014 026775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/restorecond                  0000755 0000000 0000000 00000003427 11524351016 027325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/cpuspeed                     0000755 0000000 0000000 00000025442 11524351012 026603  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/netfs                        0000755 0000000 0000000 00000012432 11524351015 026110  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                   0000755 0000000 0000000 00000006014 11524351016 027152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/oddjobd                      0000755 0000000 0000000 00000004325 11524351015 026400  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/ksmtuned                     0000755 0000000 0000000 00000003433 11524351014 026623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/sandbox                      0000755 0000000 0000000 00000003242 11524351017 026430  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/killall                      0000755 0000000 0000000 00000001214 11524351014 026410  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/rdisc                        0000755 0000000 0000000 00000003027 11524351016 026076  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/httpd                        0000755 0000000 0000000 00000006364 11524351013 026121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/ntpd                         0000755 0000000 0000000 00000003603 11524351015 025736  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/smartd                       0000755 0000000 0000000 00000005672 11524351017 026275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/nslcd                        0000755 0000000 0000000 00000003213 11524351015 026071  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/ntpdate                      0000755 0000000 0000000 00000003512 11524351015 026427  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile12/dbserver/VM_configuration/etc/rc.d/init.d/microcode_ctl                0000755 0000000 0000000 00000002221 11524351014 027571  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/dbserver/VM_configuration/etc/hosts                                    0000644 0000000 0000000 00000000267 11524351011 024112  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/dbserver/VM_configuration/etc/iproute2/                                0000777 0000000 0000000 00000000000 11524351011 024577  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/etc/iproute2/rt_dsfield                      0000644 0000000 0000000 00000000672 11524351011 026642  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile12/dbserver/VM_configuration/etc/iproute2/rt_realms                       0000644 0000000 0000000 00000000160 11524351011 026503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile12/dbserver/VM_configuration/etc/iproute2/rt_scopes                       0000644 0000000 0000000 00000000134 11524351011 026515  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/dbserver/VM_configuration/etc/iproute2/ematch_map                      0000644 0000000 0000000 00000000073 11524351011 026614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/dbserver/VM_configuration/etc/iproute2/rt_tables                       0000644 0000000 0000000 00000000127 11524351011 026475  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/dbserver/VM_configuration/etc/iproute2/rt_protos                       0000644 0000000 0000000 00000000475 11524351011 026557  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/etc/nsswitch.conf                            0000644 0000000 0000000 00000003230 11524351011 025531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/dbserver/VM_configuration/etc/fstab                                    0000644 0000000 0000000 00000001603 11524351011 024044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile12/dbserver/VM_configuration/etc/sysctl.conf                              0000644 0000000 0000000 00000001466 11524351027 025230  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile12/dbserver/VM_configuration/etc/inittab                                  0000644 0000000 0000000 00000001714 11524351011 024402  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
fmc:2345:respawn:/data-disk/opt/ibm/db2/V9.7/bin/db2fmcd #DB2 Fault Monitor Coordinator
                                                    Virtual_Configuration/tile12/dbserver/VM_configuration/var/                                         0000777 0000000 0000000 00000000000 11524351031 023045  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/var/log/                                     0000777 0000000 0000000 00000000000 11524351031 023626  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/var/log/dmesg                                0000644 0000000 0000000 00000043426 11524351031 024655  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0 hugepages=416
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007fffd000 (usable)
 BIOS-e820: 000000007fffd000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x7fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007fffd000
 0000000000 - 007fe00000 page 2M
 007fe00000 - 007fffd000 page 4k
kernel direct mapping tables up to 7fffd000 @ 8000-c000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000007fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000007ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000007fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000007ffffe00 00040
ACPI: SSDT 000000007fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000007fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000007fffd000
Bootmem setup node 0 0000000000000000-000000007fffd000
  NODE_DATA [000000000000a000 - 000000000003dfff]
  bootmap [000000000003e000 -  000000000004dfff] pages 10
(7 early reservations) ==> bootmem [0000000000 - 007fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000a000]          PGTABLE ==> [0000008000 - 000000a000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0001bfffff] PMD -> [ffff880002200000-ffff880003dfffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0007fffd
On node 0 totalpages: 524182
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3831 pages, LIFO batch:0
  DMA32 zone: 7112 pages used for memmap
  DMA32 zone: 513077 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 80000000 (gap: 80000000:7ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 516908
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0 hugepages=416
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2041384k/2097140k available (4935k kernel code, 412k absent, 55344k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 20971520 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116118.295:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 416 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 4012
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:57 UTC (1297116117)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
46:2f:eb:6f:96:8d
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                          Virtual_Configuration/tile12/dbserver/VM_configuration/boot/                                        0000777 0000000 0000000 00000000000 11524351010 023215  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/boot/grub/                                   0000777 0000000 0000000 00000000000 11524351010 024154  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/VM_configuration/boot/grub/grub.conf                          0000644 0000000 0000000 00000001457 11524351010 025765  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0 hugepages=416
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                 Virtual_Configuration/tile12/dbserver/VM_configuration/rpmpkgs.txt                                  0000644 0000000 0000000 00000076554 11524351031 024516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
pygtk2-libglade-2.16.0-3.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
plymouth-plugin-label-0.8.3-17.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
libXfont-1.4.1-1.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libdmx-1.1.0-1.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
xorg-x11-server-common-1.7.7-26.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
xorg-x11-drv-mga-1.4.12-2.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
xorg-x11-drv-i128-1.3.3-1.1.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
xorg-x11-drv-vmmouse-12.6.5-3.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
xorg-x11-drv-elographics-1.2.3-5.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
xorg-x11-drv-apm-1.2.2-1.1.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
control-center-filesystem-2.28.1-25.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
system-config-users-1.2.104-1.el6.noarch
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
plymouth-system-theme-0.8.3-17.el6.noarch
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
scrub-2.2-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
libstdc++-docs-4.4.4-13.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
libXxf86misc-1.0.2-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
mcpp-2.7.2-4.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
libXxf86dga-1.1.1-1.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
xvattr-1.3-18.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
xorg-x11-drv-vmware-10.16.7-2.1.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
xorg-x11-drv-i740-1.3.2-1.1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
xorg-x11-drv-savage-2.3.1-1.1.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
xorg-x11-drv-intel-2.11.0-7.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
python-slip-0.2.11-1.el6.noarch
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
gnome-user-docs-2.28.0-4.el6.noarch
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
python-meh-0.9-1.el6.noarch
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
libstdc++-4.4.4-13.el6.i686
vte-0.25.1-5.el6.x86_64
libXmu-1.0.5-1.el6.x86_64
plymouth-graphics-libs-0.8.3-17.el6.x86_64
xorg-x11-xauth-1.0.2-7.1.el6.x86_64
xorg-x11-server-utils-7.4-15.el6.x86_64
libselinux-python-2.0.94-2.el6.x86_64
system-setup-keyboard-0.7-4.el6.x86_64
gnome-python2-canvas-2.28.0-3.el6.x86_64
glx-utils-7.7-2.el6.x86_64
xorg-x11-drv-evdev-2.3.2-8.el6.x86_64
xorg-x11-drv-mouse-1.5.0-4.el6.x86_64
xorg-x11-drv-sisusb-0.9.3-1.1.el6.x86_64
xorg-x11-drv-mutouch-1.2.1-5.el6.x86_64
xorg-x11-drv-nouveau-0.0.16-8.20100423git13c1043.el6.x86_64
xorg-x11-drv-ati-6.13.0-6.el6.x86_64
xorg-x11-drv-hyperpen-1.3.0-4.el6.x86_64
xorg-x11-drv-v4l-0.2.0-3.el6.3.x86_64
xorg-x11-drv-penmount-1.4.0-5.el6.x86_64
xorg-x11-drv-s3virge-1.10.4-1.1.el6.x86_64
xorg-x11-drv-mach64-6.8.2-1.1.el6.x86_64
plymouth-theme-rings-0.8.3-17.el6.noarch
mozilla-filesystem-1.9-5.1.el6.x86_64
yelp-2.28.1-8.el6.x86_64
system-config-date-1.9.60-1.el6.noarch
system-config-keyboard-1.3.1-3.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.i686
gnome-terminal-2.31.3-4.el6.x86_64
usermode-gtk-1.102-3.el6.x86_64
libXvMC-1.0.4-8.1.el6.x86_64
ConsoleKit-x11-0.4.1-3.el6.x86_64
libfontenc-1.0.5-2.el6.x86_64
libxkbfile-1.0.6-1.1.el6.x86_64
cracklib-python-2.8.16-2.el6.x86_64
xorg-x11-utils-7.4-8.el6.x86_64
xkeyboard-config-1.6-7.el6.noarch
xorg-x11-drv-void-1.3.0-4.el6.x86_64
xorg-x11-drv-openchrome-0.2.904-1.el6.x86_64
xorg-x11-drv-keyboard-1.4.0-3.el6.x86_64
xorg-x11-drv-trident-1.3.3-1.1.el6.x86_64
xorg-x11-drv-aiptek-1.3.0-2.el6.x86_64
xorg-x11-drv-rendition-4.2.2-4.1.el6.x86_64
xorg-x11-drv-acecad-1.4.0-2.el6.x86_64
xorg-x11-drv-sis-0.10.2-1.1.el6.x86_64
xorg-x11-drv-siliconmotion-1.7.3-1.1.el6.x86_64
xorg-x11-drv-ast-0.89.9-1.1.el6.x86_64
xorg-x11-drv-voodoo-1.2.3-1.1.el6.x86_64
authconfig-gtk-6.1.4-6.el6.x86_64
xulrunner-1.9.2.9-1.el6.x86_64
system-config-users-docs-1.0.8-1.el6.noarch
report-gtk-0.18-7.el6.x86_64
firstboot-1.110.8-1.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
libstdc++-devel-4.4.4-13.el6.i686
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
libuser-python-0.56.13-4.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
libmcpp-2.7.2-4.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
xorg-x11-xkb-utils-7.4-6.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
xorg-x11-xinit-1.0.9-13.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
xorg-x11-drv-qxl-0.0.12-2.1.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
xorg-x11-drv-tdfx-1.4.3-1.1.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
xorg-x11-drv-cirrus-1.3.2-1.1.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
xorg-x11-drv-glint-1.2.4-1.1.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
xorg-x11-drv-nv-2.1.15-4.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
report-newt-0.18-7.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
libpciaccess-0.10.9-2.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
plymouth-plugin-two-step-0.8.3-17.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
zenity-2.28.0-1.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
pyxf86config-0.3.37-7.1.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
xorg-x11-drv-vesa-2.3.0-1.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
xorg-x11-drv-dummy-0.3.3-1.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
xorg-x11-drv-r128-6.8.1-2.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
xorg-x11-drv-fbdev-0.4.2-1.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
xorg-x11-drv-fpit-1.3.0-5.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
xorg-x11-drv-synaptics-1.2.1-5.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
metacity-2.28.0-20.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
system-config-date-docs-1.0.9-1.el6.noarch
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
xorg-x11-drivers-7.3-13.2.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
fuse-2.8.3-1.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
seabios-0.5.1-3.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                    Virtual_Configuration/tile12/dbserver/VM_configuration/ifconfig.txt                                 0000644 0000000 0000000 00000002327 11524351027 024607  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:45  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:269 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:25389 (24.7 KiB)  TX bytes:914 (914.0 b)

eth1      Link encap:Ethernet  HWaddr 46:2F:EB:6F:96:8D  
          inet addr:10.1.217.69  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::442f:ebff:fe6f:968d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9455137 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9250481 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1941017093 (1.8 GiB)  TX bytes:3735864768 (3.4 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:764 errors:0 dropped:0 overruns:0 frame:0
          TX packets:764 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:74598 (72.8 KiB)  TX bytes:74598 (72.8 KiB)

                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/dbserver/VM_configuration/chkconfig.txt                                0000644 0000000 0000000 00000006625 11524351010 024753  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
firstboot      	0:off	1:off	2:off	3:on	4:off	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                           Virtual_Configuration/tile12/dbserver/Software_Configuration/                                       0000777 0000000 0000000 00000000000 11524351010 023462  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/dbserver/Software_Configuration/profile.env                            0000644 0000000 0000000 00000000116 11524351010 025626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   DB2_LARGE_PAGE_MEM='DB'
DB2_PINNED_BP='ON'
DB2COMM='TCPIP'
DB2AUTOSTART='YES'
                                                                                                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/dbserver/Software_Configuration/db2nodes.cfg                           0000444 0000000 0000000 00000000016 11524351010 025632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0 tb3-dbt12 0
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/webserver/                                                             0000777 0000000 0000000 00000000000 11524351117 017201  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/                                            0000777 0000000 0000000 00000000000 11524351136 022453  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/proc/                                       0000777 0000000 0000000 00000000000 11524351135 023415  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/proc/cpuinfo                                0000644 0000000 0000000 00000002030 11524351135 024772  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/webserver/VM_configuration/proc/mounts                                 0000644 0000000 0000000 00000001754 11524351135 024670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=5574592k,nr_inodes=1393648,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1406,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1406,timeout=300,minproto=5,maxproto=5,indirect 0 0
tb3-infrat12:/support-download /var/www/html/support/downloads nfs rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.1.217.71,mountvers=3,mountport=42549,mountproto=udp,addr=10.1.217.71 0 0
                    Virtual_Configuration/tile12/webserver/VM_configuration/proc/swaps                                  0000644 0000000 0000000 00000000144 11524351135 024470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/webserver/VM_configuration/proc/devices                                0000644 0000000 0000000 00000000567 11524351135 024766  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile12/webserver/VM_configuration/proc/modules                                0000644 0000000 0000000 00000003214 11524351135 025004  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   nfs 348522 1 - Live 0xffffffffa026d000
lockd 73984 1 nfs, Live 0xffffffffa01a9000
fscache 46761 1 nfs, Live 0xffffffffa013f000
nfs_acl 2677 1 nfs, Live 0xffffffffa001b000
auth_rpcgss 44862 1 nfs, Live 0xffffffffa0132000
bridge 74113 0 - Live 0xffffffffa0258000
stp 2107 1 bridge, Live 0xffffffffa0252000
llc 5608 2 bridge,stp, Live 0xffffffffa024a000
autofs4 27683 3 - Live 0xffffffffa023d000
sunrpc 241630 16 nfs,lockd,nfs_acl,auth_rpcgss, Live 0xffffffffa01ea000
ipv6 321209 185 - Live 0xffffffffa0158000
dm_mirror 14003 0 - Live 0xffffffffa012c000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0127000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0122000
ppdev 8695 0 - Live 0xffffffffa011d000
parport_pc 22944 0 - Live 0xffffffffa00e9000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa0111000
sg 30186 0 - Live 0xffffffffa00df000
virtio_net 15665 0 - Live 0xffffffffa0015000
ixgbevf 47200 0 - Live 0xffffffffa0103000
i2c_piix4 12574 0 - Live 0xffffffffa00fd000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa00f3000
ext4 353979 2 - Live 0xffffffffa0086000
mbcache 7918 1 ext4, Live 0xffffffffa0026000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/webserver/VM_configuration/proc/partitions                             0000644 0000000 0000000 00000000260 11524351135 025526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   20971520 vdb
 252       17   20970496 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile12/webserver/VM_configuration/proc/meminfo                                0000644 0000000 0000000 00000002222 11524351135 024764  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:       11163520 kB
MemFree:         1285120 kB
Buffers:            6556 kB
Cached:          9113904 kB
SwapCached:            0 kB
Active:          1610228 kB
Inactive:        7828904 kB
Active(anon):     240912 kB
Inactive(anon):    80824 kB
Active(file):    1369316 kB
Inactive(file):  7748080 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               204 kB
Writeback:             0 kB
AnonPages:        318684 kB
Mapped:            21948 kB
Shmem:              2988 kB
Slab:             321248 kB
SReclaimable:      87068 kB
SUnreclaim:       234180 kB
KernelStack:        2240 kB
PageTables:        66568 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     7629752 kB
Committed_AS:    1091488 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       40792 kB
VmallocChunk:   34359693584 kB
HardwareCorrupted:     0 kB
AnonHugePages:     26624 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:    11526144 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/webserver/VM_configuration/root/                                       0000777 0000000 0000000 00000000000 11524351136 023436  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/root/convert_to_vf.sh                       0000755 0000000 0000000 00000001135 11524351136 026646  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/lspci.txt                                   0000644 0000000 0000000 00000001211 11524351135 024314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/webserver/VM_configuration/df.txt                                      0000644 0000000 0000000 00000000570 11524351117 023602  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3890328   8890608  31% /
tmpfs                  5581760         0   5581760   0% /dev/shm
/dev/vdb1             20641404    969724  18623156   5% /data-disk
tb3-infrat12:/support-download
                      61923456  33417216  25360768  57% /var/www/html/support/downloads
                                                                                                                                        Virtual_Configuration/tile12/webserver/VM_configuration/mount.txt                                   0000644 0000000 0000000 00000000753 11524351135 024356  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
tb3-infrat12:/support-download on /var/www/html/support/downloads type nfs (rw,addr=10.1.217.71)
                     Virtual_Configuration/tile12/webserver/VM_configuration/etc/                                        0000777 0000000 0000000 00000000000 11524351134 023224  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/                                   0000777 0000000 0000000 00000000000 11524351127 024054  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/                             0000777 0000000 0000000 00000000000 11524351134 024763  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests            0000755 0000000 0000000 00000017172 11524351127 030157  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                   0000755 0000000 0000000 00000004325 11524351130 026567  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd                0000755 0000000 0000000 00000006014 11524351130 027355  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                  0000755 0000000 0000000 00000012327 11524351132 026760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                 0000755 0000000 0000000 00000005222 11524351133 027144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                      0000755 0000000 0000000 00000010671 11524351134 026150  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                     0000755 0000000 0000000 00000006364 11524351130 026316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                 0000755 0000000 0000000 00000020716 11524351131 027067  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                      0000755 0000000 0000000 00000004731 11524351131 026146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon              0000755 0000000 0000000 00000004754 11524351127 027527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                 0000755 0000000 0000000 00000001364 11524351134 027167  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                     0000755 0000000 0000000 00000003027 11524351131 026304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                    0000755 0000000 0000000 00000006743 11524351134 026510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                     0000755 0000000 0000000 00000010777 11524351131 026311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus                0000755 0000000 0000000 00000004230 11524351133 027330  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                     0000755 0000000 0000000 00000006302 11524351131 026260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                       0000755 0000000 0000000 00000004236 11524351134 026003  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                   0000755 0000000 0000000 00000004031 11524351132 026611  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance                0000755 0000000 0000000 00000003521 11524351132 027274  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                   0000755 0000000 0000000 00000006050 11524351133 026647  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                   0000755 0000000 0000000 00000002363 11524351132 026716  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger                0000755 0000000 0000000 00000004054 11524351127 027333  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                 0000755 0000000 0000000 00000005013 11524351133 027204  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                     0000755 0000000 0000000 00000003213 11524351131 026277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                   0000755 0000000 0000000 00000003512 11524351131 026631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                      0000755 0000000 0000000 00000003603 11524351131 026137  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                    0000755 0000000 0000000 00000011277 11524351131 026464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S10network                   0000755 0000000 0000000 00000014466 11524351132 026673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                   0000755 0000000 0000000 00000004326 11524351132 026700  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                    0000755 0000000 0000000 00000006462 11524351132 026452  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                     0000755 0000000 0000000 00000027662 11524351133 026326  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                      0000755 0000000 0000000 00000006445 11524351131 026042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                 0000755 0000000 0000000 00000003245 11524351133 027133  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K60crond                     0000755 0000000 0000000 00000005445 11524351130 026277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                     0000755 0000000 0000000 00000005522 11524351130 026301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl             0000755 0000000 0000000 00000002221 11524351132 027771  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                 0000755 0000000 0000000 00000004010 11524351130 027140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                       0000755 0000000 0000000 00000013536 11524351130 025760  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                      0000755 0000000 0000000 00000004723 11524351134 026130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                    0000755 0000000 0000000 00000003024 11524351130 026431  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                     0000755 0000000 0000000 00000003275 11524351133 026266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                  0000755 0000000 0000000 00000025442 11524351132 027011  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                 0000755 0000000 0000000 00000004370 11524351133 027131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S99local                     0000755 0000000 0000000 00000000334 11524351134 026304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                   0000755 0000000 0000000 00000006675 11524351133 026651  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole                0000755 0000000 0000000 00000005650 11524351130 027340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor              0000555 0000000 0000000 00000004612 11524351132 027536  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                    0000755 0000000 0000000 00000007234 11524351133 026510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                  0000755 0000000 0000000 00000003433 11524351134 027042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                    0000755 0000000 0000000 00000005672 11524351127 026467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                     0000755 0000000 0000000 00000003254 11524351134 026302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                 0000755 0000000 0000000 00000005063 11524351134 027156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                     0000755 0000000 0000000 00000012432 11524351133 026317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                   0000755 0000000 0000000 00000007414 11524351130 026661  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                  0000755 0000000 0000000 00000020557 11524351132 027005  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond               0000755 0000000 0000000 00000003427 11524351131 027531  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/rc3.d/K05atd                       0000755 0000000 0000000 00000004112 11524351130 025727  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/                            0000777 0000000 0000000 00000000000 11524351127 025241  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/network                     0000755 0000000 0000000 00000014466 11524351125 026665  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/gfs2                        0000755 0000000 0000000 00000006445 11524351122 026030  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/sysstat                     0000755 0000000 0000000 00000002363 11524351127 026701  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/saslauthd                   0000755 0000000 0000000 00000004010 11524351126 027145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/messagebus                  0000755 0000000 0000000 00000004230 11524351124 027315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/autobench                   0000755 0000000 0000000 00000005063 11524351121 027131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/atd                         0000755 0000000 0000000 00000004112 11524351121 025723  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/mcelogd                     0000755 0000000 0000000 00000003535 11524351124 026600  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/auditd                      0000755 0000000 0000000 00000006462 11524351121 026437  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/certmonger                  0000755 0000000 0000000 00000004054 11524351121 027325  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/irqbalance                  0000755 0000000 0000000 00000003521 11524351123 027261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/acpid                       0000755 0000000 0000000 00000003275 11524351121 026244  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/nscd                        0000755 0000000 0000000 00000004723 11524351125 026116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                   0000755 0000000 0000000 00000005222 11524351126 027126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/nfs                         0000755 0000000 0000000 00000013536 11524351125 025757  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/sssd                        0000755 0000000 0000000 00000004731 11524351127 026144  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/crond                       0000755 0000000 0000000 00000005445 11524351122 026273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/ip6tables                   0000755 0000000 0000000 00000020716 11524351123 027056  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/autofs                      0000755 0000000 0000000 00000007234 11524351121 026464  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/sshd                        0000755 0000000 0000000 00000010671 11524351126 026130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/ksm                         0000755 0000000 0000000 00000004236 11524351123 025756  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/libvirt-guests              0000755 0000000 0000000 00000017172 11524351123 030152  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/avahi-daemon                0000755 0000000 0000000 00000004754 11524351121 027520  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/ypbind                      0000755 0000000 0000000 00000011277 11524351127 026460  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/psacct                      0000755 0000000 0000000 00000003024 11524351125 026435  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/xinetd                      0000755 0000000 0000000 00000006743 11524351127 026470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/nfslock                     0000755 0000000 0000000 00000006675 11524351125 026636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/cgred                       0000755 0000000 0000000 00000006302 11524351121 026242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/migrateip                   0000755 0000000 0000000 00000001364 11524351124 027145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/udev-post                   0000755 0000000 0000000 00000004370 11524351127 027115  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/haldaemon                   0000755 0000000 0000000 00000003245 11524351122 027112  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/ipsec                       0000755 0000000 0000000 00000010777 11524351123 026276  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/rpcbind                     0000755 0000000 0000000 00000004031 11524351126 026601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/rhnsd                       0000755 0000000 0000000 00000005522 11524351126 026304  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/functions                   0000644 0000000 0000000 00000042767 11524351122 027203  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/kdump                       0000755 0000000 0000000 00000027662 11524351123 026314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/postfix                     0000755 0000000 0000000 00000007414 11524351125 026663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/iptables                    0000755 0000000 0000000 00000020557 11524351123 026773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/rsyslog                     0000755 0000000 0000000 00000004326 11524351126 026671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/netconsole                  0000755 0000000 0000000 00000005650 11524351124 027337  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/rpcgssd                     0000755 0000000 0000000 00000006050 11524351126 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/abrtd                       0000755 0000000 0000000 00000003254 11524351121 026255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor                0000555 0000000 0000000 00000004612 11524351124 027526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/halt                        0000755 0000000 0000000 00000012723 11524351122 026113  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/cgconfig                    0000755 0000000 0000000 00000012327 11524351121 026741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/single                      0000755 0000000 0000000 00000001207 11524351126 026443  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/mdmonitor                   0000755 0000000 0000000 00000005013 11524351124 027167  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/restorecond                 0000755 0000000 0000000 00000003427 11524351125 027516  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/cpuspeed                    0000755 0000000 0000000 00000025442 11524351122 026775  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/netfs                       0000755 0000000 0000000 00000012432 11524351124 026301  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                  0000755 0000000 0000000 00000006014 11524351126 027344  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/oddjobd                     0000755 0000000 0000000 00000004325 11524351125 026572  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/ksmtuned                    0000755 0000000 0000000 00000003433 11524351123 027014  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/sandbox                     0000755 0000000 0000000 00000003242 11524351126 026621  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/killall                     0000755 0000000 0000000 00000001214 11524351123 026601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/rdisc                       0000755 0000000 0000000 00000003027 11524351125 026267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/httpd                       0000755 0000000 0000000 00000006364 11524351122 026312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/ntpd                        0000755 0000000 0000000 00000003603 11524351125 026130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/smartd                      0000755 0000000 0000000 00000005672 11524351126 026466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/nslcd                       0000755 0000000 0000000 00000003213 11524351125 026263  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/ntpdate                     0000755 0000000 0000000 00000003512 11524351125 026621  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile12/webserver/VM_configuration/etc/rc.d/init.d/microcode_ctl               0000755 0000000 0000000 00000002221 11524351124 027763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/webserver/VM_configuration/etc/hosts                                   0000644 0000000 0000000 00000000236 11524351120 024277  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/webserver/VM_configuration/etc/iproute2/                               0000777 0000000 0000000 00000000000 11524351120 024770  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/etc/iproute2/rt_dsfield                     0000644 0000000 0000000 00000000672 11524351120 027033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile12/webserver/VM_configuration/etc/iproute2/rt_realms                      0000644 0000000 0000000 00000000160 11524351120 026674  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile12/webserver/VM_configuration/etc/iproute2/rt_scopes                      0000644 0000000 0000000 00000000134 11524351120 026706  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/webserver/VM_configuration/etc/iproute2/ematch_map                     0000644 0000000 0000000 00000000073 11524351120 027005  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/webserver/VM_configuration/etc/iproute2/rt_tables                      0000644 0000000 0000000 00000000127 11524351120 026666  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/webserver/VM_configuration/etc/iproute2/rt_protos                      0000644 0000000 0000000 00000000475 11524351120 026750  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/etc/nsswitch.conf                           0000644 0000000 0000000 00000003230 11524351120 025722  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/webserver/VM_configuration/etc/fstab                                   0000644 0000000 0000000 00000001603 11524351120 024235  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile12/webserver/VM_configuration/etc/sysctl.conf                             0000644 0000000 0000000 00000001466 11524351134 025417  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile12/webserver/VM_configuration/etc/inittab                                 0000644 0000000 0000000 00000001564 11524351120 024576  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile12/webserver/VM_configuration/var/                                        0000777 0000000 0000000 00000000000 11524351136 023243  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/var/log/                                    0000777 0000000 0000000 00000000000 11524351136 024024  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/var/log/dmesg                               0000644 0000000 0000000 00000046142 11524351136 025051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 00000000dfffd000 (usable)
 BIOS-e820: 00000000dfffd000 - 00000000e0000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
 BIOS-e820: 0000000100000000 - 00000002e0000000 (usable)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x2e0000 max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
last_pfn = 0xdfffd max_arch_pfn = 0x400000000
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-00000000dfffd000
 0000000000 - 00dfe00000 page 2M
 00dfe00000 - 00dfffd000 page 4k
kernel direct mapping tables up to dfffd000 @ 8000-e000
init_memory_mapping: 0000000100000000-00000002e0000000
 0100000000 - 02e0000000 page 2M
kernel direct mapping tables up to 2e0000000 @ c000-19000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80d0 00014 (v00 BOCHS )
ACPI: RSDT 00000000dfffddc0 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 00000000dffffdf0 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 00000000dfffdf30 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 00000000dffffd80 00040
ACPI: SSDT 00000000dfffdee0 00044 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 00000000dfffddf0 0007A (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-00000002e0000000
Bootmem setup node 0 0000000000000000-00000002e0000000
  NODE_DATA [0000000000014000 - 0000000000047fff]
  bootmap [0000000000100000 -  000000000015bfff] pages 5c
(8 early reservations) ==> bootmem [0000000000 - 02e0000000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000c000]          PGTABLE ==> [0000008000 - 000000c000]
  #7 [000000c000 - 0000014000]          PGTABLE ==> [000000c000 - 0000014000]
found SMP MP-table at [ffff8800000f8120] f8120
Reserving 129MB of memory at 32MB for crashkernel (System RAM: 11776MB)
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea000a1fffff] PMD -> [ffff880028600000-ffff8800321fffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x002e0000
Movable zone start PFN for each node
early_node_map[3] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x000dfffd
    0: 0x00100000 -> 0x002e0000
On node 0 totalpages: 2883478
  DMA zone: 56 pages used for memmap
  DMA zone: 116 pages reserved
  DMA zone: 3821 pages, LIFO batch:0
  DMA32 zone: 14280 pages used for memmap
  DMA32 zone: 899125 pages, LIFO batch:31
  Normal zone: 26880 pages used for memmap
  Normal zone: 1939200 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 2 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
PM: Registered nosave memory: 00000000dfffd000 - 00000000e0000000
PM: Registered nosave memory: 00000000e0000000 - 00000000fffbc000
PM: Registered nosave memory: 00000000fffbc000 - 0000000100000000
Allocating PCI resources starting at e0000000 (gap: e0000000:1ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880028200000 s95064 r8192 d23720 u1048576
pcpu-alloc: s95064 r8192 d23720 u1048576 alloc=1*2097152
pcpu-alloc: [0] 0 1 
kvm-clock: cpu 0, msr 0:28216901, primary cpu clock
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 2842146
Policy zone: Normal
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=129M@0M elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing 64MB software IO TLB between ffff880020000000 - ffff880024000000
software IO TLB at phys 0x20000000 - 0x24000000
Memory: 11149184k/12058624k available (4935k kernel code, 524712k absent, 384728k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:424
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 115343360 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes)
Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Booting Node   0, Processors  #1 Ok.
kvm-clock: cpu 1, msr 0:28316901, secondary cpu clock
Brought up 2 CPUs
Total of 2 processors activated (13867.27 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.

WARNING: CPU#1: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
mtrr: your CPUs had inconsistent variable MTRR settings
mtrr: your CPUs had inconsistent MTRRdefType settings
mtrr: probably your BIOS does not setup all CPUs.
mtrr: corrected configuration.
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 524288 (order: 10, 4194304 bytes)
TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 524288 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116150.300:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 21801
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
processor LNXCPU:01: registered as cooling_device1
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:02:29 UTC (1297116149)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
26:61:02:3a:ee:0b
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/webserver/VM_configuration/boot/                                       0000777 0000000 0000000 00000000000 11524351117 023415  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/boot/grub/                                  0000777 0000000 0000000 00000000000 11524351117 024354  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/boot/grub/grub.conf                         0000644 0000000 0000000 00000002217 11524351117 026160  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/webserver/VM_configuration/rpmpkgs.txt                                 0000644 0000000 0000000 00000067255 11524351136 024712  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
php-pecl-apc-3.1.3p1-1.2.el6.1.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
php-pear-1.9.0-2.el6.noarch
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/VM_configuration/ifconfig.txt                                0000644 0000000 0000000 00000002350 11524351135 024773  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:43  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:281 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:25341 (24.7 KiB)  TX bytes:846 (846.0 b)

eth1      Link encap:Ethernet  HWaddr 26:61:02:3A:EE:0B  
          inet addr:10.1.217.67  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::2461:2ff:fe3a:ee0b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:194210670 errors:0 dropped:0 overruns:0 frame:0
          TX packets:288019855 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:179544762361 (167.2 GiB)  TX bytes:325425607659 (303.0 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:15565 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15565 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1615635 (1.5 MiB)  TX bytes:1615635 (1.5 MiB)

                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/webserver/VM_configuration/chkconfig.txt                               0000644 0000000 0000000 00000006535 11524351117 025153  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile12/webserver/Software_Configuration/                                      0000777 0000000 0000000 00000000000 11524351116 023661  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/Software_Configuration/httpd/                                0000777 0000000 0000000 00000000000 11524351116 025004  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/Software_Configuration/httpd/conf.d/                         0000777 0000000 0000000 00000000000 11524351116 026153  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/Software_Configuration/httpd/conf.d/manual.conf              0000644 0000000 0000000 00000000447 11524351116 030300  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This configuration file allows the manual to be accessed at 
# http://localhost/manual/
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"

<Directory "/var/www/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
                                                                                                                                                                                                                         Virtual_Configuration/tile12/webserver/Software_Configuration/httpd/conf.d/php.conf                 0000644 0000000 0000000 00000001242 11524351116 027604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/webserver/Software_Configuration/httpd/conf.d/welcome.conf             0000644 0000000 0000000 00000000453 11524351116 030453  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # 
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

                                                                                                                                                                                                                     Virtual_Configuration/tile12/webserver/Software_Configuration/httpd/conf.d/README                   0000644 0000000 0000000 00000000610 11524351116 027024  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
This directory holds Apache 2.0 module-specific configuration files;
any files in this directory which have the ".conf" extension will be
processed as Apache configuration files.

Files are processed in alphabetical order, so if using configuration
directives which depend on, say, mod_perl being loaded, ensure that
these are placed in a filename later in the sort order than "perl.conf".

                                                                                                                        Virtual_Configuration/tile12/webserver/Software_Configuration/httpd/conf/                           0000777 0000000 0000000 00000000000 11524351115 025730  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/Software_Configuration/httpd/conf/httpd.conf                 0000644 0000000 0000000 00000103142 11524351115 027717  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# Don't give away too much information about all the subcomponents
# we are running.  Comment out this line if you don't mind remote sites
# finding out what major optional modules you are running
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.  Note the PIDFILE variable in
# /etc/sysconfig/httpd must be set appropriately if this location is
# changed.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 60

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 0

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 60

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit 10240
MaxClients 10240
MaxRequestsPerChild  4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         4
MaxClients 10240
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

#
# The following modules are not loaded by default:
#
#LoadModule asis_module modules/mod_asis.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
#

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group #-1 on these systems!
#
User apache
Group apache

### Section 2: 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
#ServerName www.example.com:80

#
# UseCanonicalName: Determines how Apache constructs self-referencing 
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.  This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir disabled

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disabled" line above, and uncomment
    # the following line instead:
    # 
    #UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is 
# used to deliver files (assuming that the OS supports it). 
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
#
#EnableSendfile off

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
# requires the mod_logio module to be loaded.
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access_log common

#
# If you would like to have separate agent and referer logfiles, uncomment
# the following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# WebDAV module configuration section.
# 
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Directives controlling the display of server-generated directory listings.
#

#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes.  These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

#
# DefaultLanguage and AddLanguage allows you to specify the language of 
# a document. You can then use content negotiation to give a browser a 
# file in a language the user can understand.
#
# Specify a default language. This means that all data
# going out without a specific language tag (see below) will 
# be marked with this one. You probably do NOT want to set
# this unless you are sure it is correct for all cases.
#
# * It is generally better to not mark a page as 
# * being a certain language than marking it with the wrong
# * language!
#
# DefaultLanguage nl
#
# Note 1: The suffix does not have to be the same as the language
# keyword --- those with documents in Polish (whose net-standard
# language code is pl) may wish to use "AddLanguage pl .po" to
# avoid the ambiguity with the common suffix for perl scripts.
#
# Note 2: The example entries below illustrate that in some cases 
# the two character 'Language' abbreviation is not identical to 
# the two character 'Country' code for its country,
# E.g. 'Danmark/dk' versus 'Danish/da'.
#
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
# specifier. There is 'work in progress' to fix this and get
# the reference data for rfc1766 cleaned up.
#
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the 
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz

#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
#   MIME-types for downloading Certificates and CRLs
#
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
#  to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#    ErrorDocument 410 /error/HTTP_GONE.html.var
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Proxy>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
#   CacheEnable disk /
#   CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#

#</IfModule>
# End of proxy directives.

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
                                                                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/webserver/Software_Configuration/httpd/conf/magic                      0000644 0000000 0000000 00000031523 11524351115 026733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Magic data for mod_mime_magic Apache module (originally for file(1) command)
# The module is described in /manual/mod/mod_mime_magic.html
#
# The format is 4-5 columns:
#    Column #1: byte number to begin checking from, ">" indicates continuation
#    Column #2: type of data to match
#    Column #3: contents of data to match
#    Column #4: MIME type of result
#    Column #5: MIME encoding of result (optional)

#------------------------------------------------------------------------------
# Localstuff:  file(1) magic for locally observed files
# Add any locally observed files here.

#------------------------------------------------------------------------------
# end local stuff
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Java

0	short		0xcafe
>2	short		0xbabe		application/java

#------------------------------------------------------------------------------
# audio:  file(1) magic for sound formats
#
# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
#

# Sun/NeXT audio data
0	string		.snd
>12	belong		1		audio/basic
>12	belong		2		audio/basic
>12	belong		3		audio/basic
>12	belong		4		audio/basic
>12	belong		5		audio/basic
>12	belong		6		audio/basic
>12	belong		7		audio/basic

>12	belong		23		audio/x-adpcm

# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
# (0x0064732E in little-endian encoding).
0	lelong		0x0064732E	
>12	lelong		1		audio/x-dec-basic
>12	lelong		2		audio/x-dec-basic
>12	lelong		3		audio/x-dec-basic
>12	lelong		4		audio/x-dec-basic
>12	lelong		5		audio/x-dec-basic
>12	lelong		6		audio/x-dec-basic
>12	lelong		7		audio/x-dec-basic
#                                       compressed (G.721 ADPCM)
>12	lelong		23		audio/x-dec-adpcm

# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
#					AIFF audio data
8	string		AIFF		audio/x-aiff	
#					AIFF-C audio data
8	string		AIFC		audio/x-aiff	
#					IFF/8SVX audio data
8	string		8SVX		audio/x-aiff	

# Creative Labs AUDIO stuff
#					Standard MIDI data
0	string	MThd			audio/unknown	
#>9 	byte	>0			(format %d)
#>11	byte	>1			using %d channels
#					Creative Music (CMF) data
0	string	CTMF			audio/unknown	
#					SoundBlaster instrument data
0	string	SBI			audio/unknown	
#					Creative Labs voice data
0	string	Creative\ Voice\ File	audio/unknown	
## is this next line right?  it came this way...
#>19	byte	0x1A
#>23	byte	>0			- version %d
#>22	byte	>0			\b.%d

# [GRR 950115:  is this also Creative Labs?  Guessing that first line
#  should be string instead of unknown-endian long...]
#0	long		0x4e54524b	MultiTrack sound data
#0	string		NTRK		MultiTrack sound data
#>4	long		x		- version %ld

# Microsoft WAVE format (*.wav)
# [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
#					Microsoft RIFF
0	string		RIFF		audio/unknown
#					- WAVE format
>8	string		WAVE		audio/x-wav
# MPEG audio.
0   beshort&0xfff0  0xfff0  audio/mpeg
# C64 SID Music files, from Linus Walleij <triad@df.lth.se>
0   string      PSID        audio/prs.sid

#------------------------------------------------------------------------------
# c-lang:  file(1) magic for C programs or various scripts
#

# XPM icons (Greg Roelofs, newt@uchicago.edu)
# ideally should go into "images", but entries below would tag XPM as C source
0	string		/*\ XPM		image/x-xbm	7bit

# this first will upset you if you're a PL/1 shop... (are there any left?)
# in which case rm it; ascmagic will catch real C programs
#					C or REXX program text
0	string		/*		text/plain
#					C++ program text
0	string		//		text/plain

#------------------------------------------------------------------------------
# compress:  file(1) magic for pure-compression formats (no archives)
#
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
#
# Formats for various forms of compressed data
# Formats for "compress" proper have been moved into "compress.c",
# because it tries to uncompress it to figure out what's inside.

# standard unix compress
0	string		\037\235	application/octet-stream	x-compress

# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
0       string          \037\213        application/octet-stream	x-gzip

# According to gzip.h, this is the correct byte order for packed data.
0	string		\037\036	application/octet-stream
#
# This magic number is byte-order-independent.
#
0	short		017437		application/octet-stream

# XXX - why *two* entries for "compacted data", one of which is
# byte-order independent, and one of which is byte-order dependent?
#
# compacted data
0	short		0x1fff		application/octet-stream
0	string		\377\037	application/octet-stream
# huf output
0	short		0145405		application/octet-stream

# Squeeze and Crunch...
# These numbers were gleaned from the Unix versions of the programs to
# handle these formats.  Note that I can only uncrunch, not crunch, and
# I didn't have a crunched file handy, so the crunch number is untested.
#				Keith Waclena <keith@cerberus.uchicago.edu>
#0	leshort		0x76FF		squeezed data (CP/M, DOS)
#0	leshort		0x76FE		crunched data (CP/M, DOS)

# Freeze
#0	string		\037\237	Frozen file 2.1
#0	string		\037\236	Frozen file 1.0 (or gzip 0.5)

# lzh?
#0	string		\037\240	LZH compressed data

#------------------------------------------------------------------------------
# frame:  file(1) magic for FrameMaker files
#
# This stuff came on a FrameMaker demo tape, most of which is
# copyright, but this file is "published" as witness the following:
#
0	string		\<MakerFile	application/x-frame
0	string		\<MIFFile	application/x-frame
0	string		\<MakerDictionary	application/x-frame
0	string		\<MakerScreenFon	application/x-frame
0	string		\<MML		application/x-frame
0	string		\<Book		application/x-frame
0	string		\<Maker		application/x-frame

#------------------------------------------------------------------------------
# html:  file(1) magic for HTML (HyperText Markup Language) docs
#
# from Daniel Quinlan <quinlan@yggdrasil.com>
# and Anna Shergold <anna@inext.co.uk>
#
0   string      \<!DOCTYPE\ HTML    text/html
0   string      \<!doctype\ html    text/html
0   string      \<HEAD      text/html
0   string      \<head      text/html
0   string      \<TITLE     text/html
0   string      \<title     text/html
0   string      \<html      text/html
0   string      \<HTML      text/html
0   string      \<!--       text/html
0   string      \<h1        text/html
0   string      \<H1        text/html

# XML eXtensible Markup Language, from Linus Walleij <triad@df.lth.se>
0   string      \<?xml      text/xml

#------------------------------------------------------------------------------
# images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
#
# originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
# additions by janl@ifi.uio.no as well as others. Jan also suggested
# merging several one- and two-line files into here.
#
# XXX - byte order for GIF and TIFF fields?
# [GRR:  TIFF allows both byte orders; GIF is probably little-endian]
#

# [GRR:  what the hell is this doing in here?]
#0	string		xbtoa		btoa'd file

# PBMPLUS
#					PBM file
0	string		P1		image/x-portable-bitmap	7bit
#					PGM file
0	string		P2		image/x-portable-greymap	7bit
#					PPM file
0	string		P3		image/x-portable-pixmap	7bit
#					PBM "rawbits" file
0	string		P4		image/x-portable-bitmap
#					PGM "rawbits" file
0	string		P5		image/x-portable-greymap
#					PPM "rawbits" file
0	string		P6		image/x-portable-pixmap

# NIFF (Navy Interchange File Format, a modification of TIFF)
# [GRR:  this *must* go before TIFF]
0	string		IIN1		image/x-niff

# TIFF and friends
#					TIFF file, big-endian
0	string		MM		image/tiff
#					TIFF file, little-endian
0	string		II		image/tiff

# possible GIF replacements; none yet released!
# (Greg Roelofs, newt@uchicago.edu)
#
# GRR 950115:  this was mine ("Zip GIF"):
#					ZIF image (GIF+deflate alpha)
0	string		GIF94z		image/unknown
#
# GRR 950115:  this is Jeremy Wohl's Free Graphics Format (better):
#					FGF image (GIF+deflate beta)
0	string		FGF95a		image/unknown
#
# GRR 950115:  this is Thomas Boutell's Portable Bitmap Format proposal
# (best; not yet implemented):
#					PBF image (deflate compression)
0	string		PBF		image/unknown

# GIF
0	string		GIF		image/gif

# JPEG images
0	beshort		0xffd8		image/jpeg

# PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
0	string		BM		image/bmp
#>14	byte		12		(OS/2 1.x format)
#>14	byte		64		(OS/2 2.x format)
#>14	byte		40		(Windows 3.x format)
#0	string		IC		icon
#0	string		PI		pointer
#0	string		CI		color icon
#0	string		CP		color pointer
#0	string		BA		bitmap array


#------------------------------------------------------------------------------
# lisp:  file(1) magic for lisp programs
#
# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
0	string	;;			text/plain	8bit
# Emacs 18 - this is always correct, but not very magical.
0	string	\012(			application/x-elc
# Emacs 19
0	string	;ELC\023\000\000\000	application/x-elc

#------------------------------------------------------------------------------
# mail.news:  file(1) magic for mail and news
#
# There are tests to ascmagic.c to cope with mail and news.
0	string		Relay-Version: 	message/rfc822	7bit
0	string		#!\ rnews	message/rfc822	7bit
0	string		N#!\ rnews	message/rfc822	7bit
0	string		Forward\ to 	message/rfc822	7bit
0	string		Pipe\ to 	message/rfc822	7bit
0	string		Return-Path:	message/rfc822	7bit
0	string		Path:		message/news	8bit
0	string		Xref:		message/news	8bit
0	string		From:		message/rfc822	7bit
0	string		Article 	message/news	8bit
#------------------------------------------------------------------------------
# msword: file(1) magic for MS Word files
#
# Contributor claims:
# Reversed-engineered MS Word magic numbers
#

0	string		\376\067\0\043			application/msword
0	string		\333\245-\0\0\0			application/msword

# disable this one because it applies also to other
# Office/OLE documents for which msword is not correct. See PR#2608.
#0	string		\320\317\021\340\241\261	application/msword



#------------------------------------------------------------------------------
# printer:  file(1) magic for printer-formatted files
#

# PostScript
0	string		%!		application/postscript
0	string		\004%!		application/postscript

# Acrobat
# (due to clamen@cs.cmu.edu)
0	string		%PDF-		application/pdf

#------------------------------------------------------------------------------
# sc:  file(1) magic for "sc" spreadsheet
#
38	string		Spreadsheet	application/x-sc

#------------------------------------------------------------------------------
# tex:  file(1) magic for TeX files
#
# XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
#
# From <conklin@talisman.kaleida.com>

# Although we may know the offset of certain text fields in TeX DVI
# and font files, we can't use them reliably because they are not
# zero terminated. [but we do anyway, christos]
0	string		\367\002	application/x-dvi
#0	string		\367\203	TeX generic font data
#0	string		\367\131	TeX packed font data
#0	string		\367\312	TeX virtual font data
#0	string		This\ is\ TeX,	TeX transcript text	
#0	string		This\ is\ METAFONT,	METAFONT transcript text

# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data.  The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
#2	string		\000\021	TeX font metric data
#2	string		\000\022	TeX font metric data
#>34	string		>\0		(%s)

# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
#0	string		\\input\ texinfo	Texinfo source text
#0	string		This\ is\ Info\ file	GNU Info text

# correct TeX magic for Linux (and maybe more)
# from Peter Tobias (tobias@server.et-inf.fho-emden.de)
#
0	leshort		0x02f7		application/x-dvi

# RTF - Rich Text Format
0	string		{\\rtf		application/rtf

#------------------------------------------------------------------------------
# animation:  file(1) magic for animation/movie formats
#
# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
#						MPEG file
0	string		\000\000\001\263	video/mpeg
#
# The contributor claims:
#   I couldn't find a real magic number for these, however, this
#   -appears- to work.  Note that it might catch other files, too,
#   so BE CAREFUL!
#
# Note that title and author appear in the two 20-byte chunks
# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
# 255 (hex FF)! DL format SUCKS BIG ROCKS.
#
#						DL file version 1 , medium format (160x100, 4 images/screen)
0	byte		1			video/unknown
0	byte		2			video/unknown
# Quicktime video, from Linus Walleij <triad@df.lth.se>
# from Apple quicktime file format documentation.
4   string      moov        video/quicktime
4   string      mdat        video/quicktime

# PNG [Portable Network Graphics, or "PNG's Not GIF"] images
#
# 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
0   string      \211PNG\015      image/png
                                                                                                                                                                             Virtual_Configuration/tile12/webserver/Software_Configuration/php/                                  0000777 0000000 0000000 00000000000 11524351117 024451  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/Software_Configuration/php/php.ini                           0000644 0000000 0000000 00000206751 11524351117 025750  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   [PHP]

;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.

; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
; 1. SAPI module specific location.
; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; 4. Current working directory (except CLI)
; 5. The web server's directory (for SAPI modules), or directory of PHP
; (otherwise in Windows)
; 6. The directory from the --with-config-file-path compile time option, or the
; Windows directory (C:\windows or C:\winnt)
; See the PHP docs for more specific information.
; http://www.php.net/manual/en/configuration.file.php

; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future. 

; Directives following the section heading [PATH=/www/mysite] only
; apply to PHP files in the /www/mysite directory.  Directives
; following the section heading [HOST=www.example.com] only apply to
; PHP files served from www.example.com.  Directives set in these
; special sections cannot be overridden by user-defined INI files or
; at runtime. Currently, [PATH=] and [HOST=] sections only work under
; CGI/FastCGI.
; http://www.php.net/manual/en/ini.sections.php

; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
; Directives are variables used to configure PHP or PHP extensions.
; There is no name validation.  If PHP can't find an expected
; directive because it is not set or is mistyped, a default value will be used.

; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
; previously set variable or directive (e.g. ${foo})

; Expressions in the INI file are limited to bitwise operators and parentheses:
; |  bitwise OR
; ^  bitwise XOR
; &  bitwise AND
; ~  bitwise NOT
; !  boolean NOT

; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.

; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:

;  foo =         ; sets foo to an empty string
;  foo = None    ; sets foo to an empty string
;  foo = "None"  ; sets foo to the string 'None'

; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.

;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; PHP comes packaged with two INI files. One that is recommended to be used
; in production environments and one that is recommended to be used in
; development environments.

; php.ini-production contains settings which hold security, performance and
; best practices at its core. But please be aware, these settings may break
; compatibility with older or less security conscience applications. We
; recommending using the production ini in production and testing environments.

; php.ini-development is very similar to its production variant, except it's
; much more verbose when it comes to errors. We recommending using the
; development version only in development environments as errors shown to
; application users can inadvertently leak otherwise secure information.

; This 2 files are provided, by RPM, in /usr/share/doc/php-common-*/
; File used by RPM (the /etc/php.ini) is mainly the php.ini-production

;;;;;;;;;;;;;;;;;;;
; Quick Reference ;
;;;;;;;;;;;;;;;;;;;
; The following are all the settings which are different in either the production
; or development versions of the INIs with respect to PHP's default behavior.
; Please see the actual settings later in the document for more details as to why
; we recommend these changes in PHP's behavior.

; allow_call_time_pass_reference
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; display_errors
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; display_startup_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; error_reporting
;   Default Value: E_ALL & ~E_NOTICE
;   Development Value: E_ALL | E_STRICT
;   Production Value: E_ALL & ~E_DEPRECATED

; html_errors
;   Default Value: On
;   Development Value: On
;   Production value: Off

; log_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: On

; magic_quotes_gpc
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; max_input_time
;   Default Value: -1 (Unlimited)
;   Development Value: 60 (60 seconds)
;   Production Value: 60 (60 seconds)

; output_buffering
;   Default Value: Off
;   Development Value: 4096
;   Production Value: 4096

; register_argc_argv
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; register_long_arrays
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; request_order
;   Default Value: None
;   Development Value: "GP"
;   Production Value: "GP"

; session.bug_compat_42
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; session.bug_compat_warn
;   Default Value: On
;   Development Value: On
;   Production Value: Off

; session.gc_divisor
;   Default Value: 100
;   Development Value: 1000
;   Production Value: 1000

; session.hash_bits_per_character
;   Default Value: 4
;   Development Value: 5
;   Production Value: 5

; short_open_tag
;   Default Value: On
;   Development Value: Off
;   Production Value: Off

; track_errors
;   Default Value: Off
;   Development Value: On
;   Production Value: Off

; url_rewriter.tags
;   Default Value: "a=href,area=href,frame=src,form=,fieldset="
;   Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
;   Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"

; variables_order
;   Default Value: "EGPCS"
;   Development Value: "GPCS"
;   Production Value: "GPCS"

;;;;;;;;;;;;;;;;;;;;
; php.ini Options  ;
;;;;;;;;;;;;;;;;;;;;
; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
;user_ini.filename = ".user.ini"

; To disable this feature set this option to empty value
;user_ini.filename =

; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
;user_ini.cache_ttl = 300

;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
; http://www.php.net/manual/en/apache.configuration.php#ini.engine
engine = On

; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.short-open-tag
short_open_tag = Off

; Allow ASP-style <% %> tags.
; http://www.php.net/manual/en/ini.core.php#ini.asp-tags
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
; http://www.php.net/manual/en/ini.core.php#ini.precision
precision = 14

; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
; http://www.php.net/manual/en/ini.core.php#ini.y2k-compliance
y2k_compliance = On

; Output buffering is a mechanism for controlling how much output data
; (excluding headers and cookies) PHP should keep internally before pushing that
; data to the client. If your application's output exceeds this setting, PHP
; will send that data in chunks of roughly the size you specify.
; Turning on this setting and managing its maximum buffer size can yield some
; interesting side-effects depending on your application and web server.
; You may be able to send headers and cookies after you've already sent output
; through print or echo. You also may see performance benefits if your server is
; emitting less packets due to buffered output versus PHP streaming the output
; as it gets it. On production servers, 4096 bytes is a good setting for performance
; reasons.
; Note: Output buffering can also be controlled via Output Buffering Control
;   functions.
; Possible Values:
;   On = Enabled and buffer is unlimited. (Use with caution)
;   Off = Disabled
;   Integer = Enables the buffer and sets its maximum size in bytes.
; Default Value: Off
; Development Value: 4096
; Production Value: 4096
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-buffering
output_buffering = 4096

; You can redirect all of the output of your scripts to a function.  For
; example, if you set output_handler to "mb_output_handler", character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
;   directive. Instead, explicitly set the output handler using ob_start().
;   Using this ini directive may cause problems unless you know what script
;   is doing.
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
;   and you cannot use both "ob_gzhandler" and "zlib.output_compression".
; Note: output_handler must be empty if this is set 'On' !!!!
;   Instead you must use zlib.output_handler.
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.output-handler
;output_handler =

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
; Note: Resulting chunk size may vary due to nature of compression. PHP
;   outputs chunks that are few hundreds bytes each as a result of
;   compression. If you prefer a larger chunk size for better
;   performance, enable output_buffering in addition.
; Note: You need to use zlib.output_handler instead of the standard
;   output_handler, or otherwise the output will be corrupted.
; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression
zlib.output_compression = Off

; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression-level
;zlib.output_compression_level = -1

; You cannot specify additional output handlers if zlib.output_compression
; is activated here. This setting does the same as output_handler but in
; a different order.
; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-handler
;zlib.output_handler =

; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block.  This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block.  Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
; http://www.php.net/manual/en/outcontrol.configuration.php#ini.implicit-flush
implicit_flush = Off

; The unserialize callback function will be called (with the undefined class'
; name as parameter), if the unserializer finds an undefined class
; which should be instantiated. A warning appears if the specified function is
; not defined, or if the function doesn't include/implement the missing class.
; So only set this entry, if you really want to implement such a
; callback-function.
unserialize_callback_func =

; When floats & doubles are serialized store serialize_precision significant
; digits after the floating point. The default value ensures that when floats
; are decoded with unserialize, the data will remain the same.
serialize_precision = 100

; This directive allows you to enable and disable warnings which PHP will issue
; if you pass a value by reference at function call time. Passing values by
; reference at function call time is a deprecated feature which will be removed
; from PHP at some point in the near future. The acceptable method for passing a
; value by reference to a function is by declaring the reference in the functions
; definition, not at call time. This directive does not disable this feature, it
; only determines whether PHP will warn you about it or not. These warnings
; should enabled in development environments only.
; Default Value: On (Suppress warnings)
; Development Value: Off (Issue warnings)
; Production Value: Off (Issue warnings)
; http://www.php.net/manual/en/ini.core.php#ini.allow-call-time-pass-reference
allow_call_time_pass_reference = Off

; Safe Mode
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode
safe_mode = Off

; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-gid
safe_mode_gid = Off

; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-include-dir
safe_mode_include_dir =

; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-exec-dir
safe_mode_exec_dir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here.  By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
; Note:  If this directive is empty, PHP will let the user modify ANY
;   environment variable!
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-allowed-env-vars
safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv().  These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.safe-mode-protected-env-vars
safe_mode_protected_env_vars = LD_LIBRARY_PATH

; open_basedir, if set, limits all file operations to the defined directory
; and below.  This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.open-basedir
;open_basedir =

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.disable-functions
disable_functions =

; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.disable-classes
disable_classes =

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; <span style="color: ???????"> would work.
; http://www.php.net/manual/en/misc.configuration.php#ini.syntax-highlighting
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg      = #FFFFFF
;highlight.default = #0000BB
;highlight.html    = #000000

; If enabled, the request will be allowed to complete even if the user aborts
; the request. Consider enabling it if executing long requests, which may end up
; being interrupted by the user or a browser timing out. PHP's default behavior
; is to disable this feature.
; http://www.php.net/manual/en/misc.configuration.php#ini.ignore-user-abort
;ignore_user_abort = On

; Determines the size of the realpath cache to be used by PHP. This value should
; be increased on systems where PHP opens many files to reflect the quantity of
; the file operations performed.
; http://www.php.net/manual/en/ini.core.php#ini.realpath-cache-size
;realpath_cache_size = 16k

; Duration of time, in seconds for which to cache realpath information for a given
; file or directory. For systems with rarely changing files, consider increasing this
; value.
; http://www.php.net/manual/en/ini.core.php#ini.realpath-cache-ttl
;realpath_cache_ttl = 120

;;;;;;;;;;;;;;;;;
; Miscellaneous ;
;;;;;;;;;;;;;;;;;

; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header).  It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
; http://www.php.net/manual/en/ini.core.php#ini.expose-php
expose_php = On

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time
max_execution_time = 30     

; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts. 
; Default Value: -1 (Unlimited)
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://www.php.net/manual/en/info.configuration.php#ini.max-input-time
max_input_time = 60

; Maximum input variable nesting level
; http://www.php.net/manual/en/info.configuration.php#ini.max-input-nesting-level
;max_input_nesting_level = 64

; Maximum amount of memory a script may consume (128MB)
; http://www.php.net/manual/en/ini.core.php#ini.memory-limit
memory_limit = 128M

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; This directive informs PHP of which errors, warnings and notices you would like
; it to take action for. The recommended way of setting values for this
; directive is through the use of the error level constants and bitwise
; operators. The error level constants are below here for convenience as well as
; some common settings and their meanings.
; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
; those related to E_NOTICE and E_STRICT, which together cover best practices and
; recommended coding standards in PHP. For performance reasons, this is the
; recommend error reporting setting. Your production server shouldn't be wasting
; resources complaining about best practices and coding standards. That's what
; development servers and development settings are for.
; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This
; means it pretty much reports everything which is exactly what you want during
; development and early testing.
;
; Error Level Constants:
; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
; E_ERROR           - fatal run-time errors
; E_RECOVERABLE_ERROR  - almost fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_STRICT          - run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
; E_DEPRECATED      - warn about code that will not work in future versions
;                     of PHP
; E_USER_DEPRECATED - user-generated deprecation warnings
;
; Common Values:
;   E_ALL & ~E_NOTICE  (Show all errors, except for notices and coding standards warnings.)
;   E_ALL & ~E_NOTICE | E_STRICT  (Show all errors, except for notices)
;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
;   E_ALL | E_STRICT  (Show all errors, warnings and notices including coding standards.)
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
error_reporting = E_ALL & ~E_DEPRECATED

; This directive controls whether or not and where PHP will output errors,
; notices and warnings too. Error output is very useful during development, but
; it could be very dangerous in production environments. Depending on the code
; which is triggering the error, sensitive information could potentially leak
; out of your application such as database usernames and passwords or worse.
; It's recommended that errors be logged on production servers rather than
; having the errors sent to STDOUT.
; Possible Values:
;   Off = Do not display any errors 
;   stderr = Display errors to STDERR (affects only CGI/CLI binaries!)   
;   On or stdout = Display errors to STDOUT
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-errors
display_errors = Off

; The display of errors which occur during PHP's startup sequence are handled
; separately from display_errors. PHP's default behavior is to suppress those
; errors from clients. Turning the display of startup errors on can be useful in
; debugging configuration problems. But, it's strongly recommended that you
; leave this setting off on production servers.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.display-startup-errors
display_startup_errors = Off

; Besides displaying errors, PHP can also log errors to locations such as a
; server-specific log, STDERR, or a location specified by the error_log
; directive found below. While errors should not be displayed on productions
; servers they should still be monitored and logging is a great way to do that.
; Default Value: Off
; Development Value: On
; Production Value: On
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors
log_errors = On

; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors-max-len
log_errors_max_len = 1024

; Do not log repeated messages. Repeated errors must occur in same file on same
; line unless ignore_repeated_source is set true.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.ignore-repeated-errors
ignore_repeated_errors = Off

; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; source lines.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.ignore-repeated-source
ignore_repeated_source = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.report-memleaks
report_memleaks = On

; This setting is on by default.
;report_zend_debug = 0

; Store the last error/warning message in $php_errormsg (boolean). Setting this value
; to On can assist in debugging and is appropriate for development servers. It should
; however be disabled on production servers.
; Default Value: Off
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.track-errors
track_errors = Off

; Turn off normal error reporting and emit XML-RPC error XML
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.xmlrpc-errors
;xmlrpc_errors = 0

; An XML-RPC faultCode
;xmlrpc_error_number = 0

; When PHP displays or logs an error, it has the capability of inserting html
; links to documentation related to that error. This directive controls whether
; those HTML links appear in error messages or not. For performance and security
; reasons, it's recommended you disable this on production servers.
; Default Value: On
; Development Value: On
; Production value: Off
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.html-errors
html_errors = Off

; If html_errors is set On PHP produces clickable error messages that direct
; to a page describing the error or function causing the error in detail.
; You can download a copy of the PHP manual from http://www.php.net/docs.php
; and change docref_root to the base URL of your local copy including the
; leading '/'. You must also specify the file extension being used including
; the dot. PHP's default behavior is to leave these settings empty.
; Note: Never use this feature for production boxes.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.docref-root
; Examples
;docref_root = "/phpmanual/"

; http://www.php.net/manual/en/errorfunc.configuration.php#ini.docref-ext
;docref_ext = .html

; String to output before an error message. PHP's default behavior is to leave
; this setting blank.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-prepend-string
; Example:
;error_prepend_string = "<font color=#ff0000>"

; String to output after an error message. PHP's default behavior is to leave
; this setting blank.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-append-string
; Example:
;error_append_string = "</font>"

; Log errors to specified file. PHP's default behavior is to leave this value
; empty.
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-log
; Example:
;error_log = php_errors.log
; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog

;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;

; Note - track_vars is ALWAYS enabled as of PHP 4.0.3

; The separator used in PHP generated URLs to separate arguments.
; PHP's default setting is "&".
; http://www.php.net/manual/en/ini.core.php#ini.arg-separator.output
; Example:
;arg_separator.output = "&amp;"

; List of separator(s) used by PHP to parse input URLs into variables.
; PHP's default setting is "&".
; NOTE: Every character in this directive is considered as separator!
; http://www.php.net/manual/en/ini.core.php#ini.arg-separator.input
; Example:
;arg_separator.input = ";&"

; This directive determines which super global arrays are registered when PHP
; starts up. If the register_globals directive is enabled, it also determines
; what order variables are populated into the global space. G,P,C,E & S are
; abbreviations for the following respective super globals: GET, POST, COOKIE,
; ENV and SERVER. There is a performance penalty paid for the registration of
; these arrays and because ENV is not as commonly used as the others, ENV is
; is not recommended on productions servers. You can still get access to
; the environment variables through getenv() should you need to.
; Default Value: "EGPCS"
; Development Value: "GPCS"
; Production Value: "GPCS";
; http://www.php.net/manual/en/ini.core.php#ini.variables-order
variables_order = "GPCS"

; This directive determines which super global data (G,P,C,E & S) should
; be registered into the super global array REQUEST. If so, it also determines
; the order in which that data is registered. The values for this directive are
; specified in the same manner as the variables_order directive, EXCEPT one.
; Leaving this value empty will cause PHP to use the value set in the 
; variables_order directive. It does not mean it will leave the super globals
; array REQUEST empty.
; Default Value: None
; Development Value: "GP"
; Production Value: "GP"
; http://www.php.net/manual/en/ini.core.php#ini.request-order
request_order = "GP"

; Whether or not to register the EGPCS variables as global variables.  You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data.  This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARS[],
; variables.
; You should do your best to write your scripts so that they do not require
; register_globals to be on;  Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
; http://www.php.net/manual/en/ini.core.php#ini.register-globals
register_globals = Off

; Determines whether the deprecated long $HTTP_*_VARS type predefined variables
; are registered by PHP or not. As they are deprecated, we obviously don't
; recommend you use them. They are on by default for compatibility reasons but
; they are not recommended on production servers.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.register-long-arrays
register_long_arrays = Off

; This directive determines whether PHP registers $argv & $argc each time it
; runs. $argv contains an array of all the arguments passed to PHP when a script
; is invoked. $argc contains an integer representing the number of arguments
; that were passed when the script was invoked. These arrays are extremely
; useful when running scripts from the command line. When this directive is
; enabled, registering these variables consumes CPU cycles and memory each time
; a script is executed. For performance reasons, this feature should be disabled
; on production servers.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/ini.core.php#ini.register-argc-argv
register_argc_argv = Off

; When enabled, the SERVER and ENV variables are created when they're first
; used (Just In Time) instead of when the script starts. If these variables
; are not used within a script, having this directive on will result in a
; performance gain. The PHP directives register_globals, register_long_arrays,
; and register_argc_argv must be disabled for this directive to have any affect.
; http://www.php.net/manual/en/ini.core.php#ini.auto-globals-jit
auto_globals_jit = On

; Maximum size of POST data that PHP will accept.
; http://www.php.net/manual/en/ini.core.php#ini.post-max-size
post_max_size = 8M

; Magic quotes are a preprocessing feature of PHP where PHP will attempt to
; escape any character sequences in GET, POST, COOKIE and ENV data which might
; otherwise corrupt data being placed in resources such as databases before
; making that data available to you. Because of character encoding issues and
; non-standard SQL implementations across many databases, it's not currently
; possible for this feature to be 100% accurate. PHP's default behavior is to
; enable the feature. We strongly recommend you use the escaping mechanisms
; designed specifically for the database your using instead of relying on this
; feature. Also note, this feature has been deprecated as of PHP 5.3.0 and is
; scheduled for removal in PHP 6.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
; http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-runtime
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
; http://www.php.net/manual/en/sybase.configuration.php#ini.magic-quotes-sybase
magic_quotes_sybase = Off

; Automatically add files before PHP document.
; http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file
auto_prepend_file =

; Automatically add files after PHP document.
; http://www.php.net/manual/en/ini.core.php#ini.auto-append-file
auto_append_file =

; As of 4.0b4, PHP always outputs a character encoding by default in
; the Content-type: header.  To disable sending of the charset, simply
; set it to be empty.
;
; PHP's built-in default is text/html
; http://www.php.net/manual/en/ini.core.php#ini.default-mimetype
default_mimetype = "text/html"

; PHP's default character set is set to empty.
; http://www.php.net/manual/en/ini.core.php#ini.default-charset
;default_charset = "iso-8859-1"

; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
; to disable this feature.
; http://www.php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data
;always_populate_raw_post_data = On

;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
;
; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://www.php.net/manual/en/ini.core.php#ini.include-path

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
; http://www.php.net/manual/en/ini.core.php#ini.doc-root
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
; http://www.php.net/manual/en/ini.core.php#ini.user-dir
user_dir =

; Directory in which the loadable extensions (modules) reside.
; http://www.php.net/manual/en/ini.core.php#ini.extension-dir
; extension_dir = "./"

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
; http://www.php.net/manual/en/info.configuration.php#ini.enable-dl
enable_dl = Off

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers.  Left undefined, PHP turns this on by default.  You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; http://www.php.net/manual/en/ini.core.php#ini.cgi.force-redirect
;cgi.force_redirect = 1

; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
; every request. PHP's default behavior is to disable this feature.
;cgi.nph = 1

; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution.  Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.redirect-status-env
;cgi.redirect_status_env = ;

; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
; this to 1 will cause PHP CGI to fix its paths to conform to the spec.  A setting
; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.fix-pathinfo
;cgi.fix_pathinfo=1

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; security tokens of the calling client.  This allows IIS to define the
; security context that the request runs under.  mod_fastcgi under Apache
; does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS.  Default is zero.
; http://www.php.net/manual/en/ini.core.php#ini.fastcgi.impersonate
;fastcgi.impersonate = 1;

; Disable logging through FastCGI connection. PHP's default behavior is to enable
; this feature.
;fastcgi.logging = 0

; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
; is supported by Apache. When this option is set to 1 PHP will send
; RFC2616 compliant header.
; Default is zero.
; http://www.php.net/manual/en/ini.core.php#ini.cgi.rfc2616-headers
;cgi.rfc2616_headers = 0

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
; http://www.php.net/manual/en/ini.core.php#ini.file-uploads
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://www.php.net/manual/en/ini.core.php#ini.upload-tmp-dir
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
; http://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize
upload_max_filesize = 2M

;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen
allow_url_fopen = On

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-include
allow_url_include = Off

; Define the anonymous ftp password (your email address). PHP's default setting
; for this is empty.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.from
;from="john@doe.com"

; Define the User-Agent string. PHP's default setting for this is empty.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.user-agent
;user_agent="PHP"

; Default timeout for socket based streams (seconds)
; http://www.php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout
default_socket_timeout = 60

; If your scripts have to deal with files from Macintosh systems,
; or you are running on a Mac and need to deal with files from
; unix or win32 systems, setting this flag will cause PHP to
; automatically detect the EOL character in those files so that
; fgets() and file() will work regardless of the source of the file.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.auto-detect-line-endings
;auto_detect_line_endings = Off

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example
;
;   extension=msql.so
;
; ... or with a path:
;
;   extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.

;;;;
; Note: packaged extension modules are now loaded via the .ini files
; found in the directory /etc/php.d; these are loaded by default.
;;;;


;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
;date.timezone =

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.default-latitude
;date.default_latitude = 31.7667

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.default-longitude
;date.default_longitude = 35.2333

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.sunrise-zenith
;date.sunrise_zenith = 90.583333

; http://www.php.net/manual/en/datetime.configuration.php#ini.date.sunset-zenith
;date.sunset_zenith = 90.583333

[filter]
; http://www.php.net/manual/en/filter.configuration.php#ini.filter.default
;filter.default = unsafe_raw

; http://www.php.net/manual/en/filter.configuration.php#ini.filter.default-flags
;filter.default_flags =

[iconv]
;iconv.input_encoding = ISO-8859-1
;iconv.internal_encoding = ISO-8859-1
;iconv.output_encoding = ISO-8859-1

[intl]
;intl.default_locale = 

[sqlite]
; http://www.php.net/manual/en/sqlite.configuration.php#ini.sqlite.assoc-case
;sqlite.assoc_case = 0

[sqlite3]
;sqlite3.extension_dir =

[Pcre]
;PCRE library backtracking limit.
; http://www.php.net/manual/en/pcre.configuration.php#ini.pcre.backtrack-limit
;pcre.backtrack_limit=100000

;PCRE library recursion limit. 
;Please note that if you set this value to a high number you may consume all 
;the available process stack and eventually crash PHP (due to reaching the 
;stack size limit imposed by the Operating System).
; http://www.php.net/manual/en/pcre.configuration.php#ini.pcre.recursion-limit
;pcre.recursion_limit=100000

[Pdo]
; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
; http://www.php.net/manual/en/ref.pdo-odbc.php#ini.pdo-odbc.connection-pooling
;pdo_odbc.connection_pooling=strict

[Phar]
; http://www.php.net/manual/en/phar.configuration.php#ini.phar.readonly
;phar.readonly = On

; http://www.php.net/manual/en/phar.configuration.php#ini.phar.require-hash
;phar.require_hash = On

;phar.cache_list =

[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.).  Turning it off is a good idea performance-wise.  In
; runtime, you can define these variables by calling define_syslog_variables().
; http://www.php.net/manual/en/network.configuration.php#ini.define-syslog-variables
define_syslog_variables  = Off

[mail function]
; For Win32 only.
; http://www.php.net/manual/en/mail.configuration.php#ini.smtp
SMTP = localhost
; http://www.php.net/manual/en/mail.configuration.php#ini.smtp-port
smtp_port = 25

; For Win32 only.
; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-from
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://www.php.net/manual/en/mail.configuration.php#ini.sendmail-path
sendmail_path = /usr/sbin/sendmail -t -i

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originaiting-Script: that will include uid of the script followed by the filename
mail.add_x_header = On

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log =

[SQL]
; http://www.php.net/manual/en/ini.core.php#ini.sql.safe-mode
sql.safe_mode = Off

[ODBC]
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-db
;odbc.default_db    =  Not yet implemented

; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-user
;odbc.default_user  =  Not yet implemented

; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.default-pw
;odbc.default_pw    =  Not yet implemented

; Allow or prevent persistent links.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.allow-persistent
odbc.allow_persistent = On

; Check that a connection is still valid before reuse.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.check-persistent
odbc.check_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.max-persistent
odbc.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.max-links
odbc.max_links = -1

; Handling of LONG fields.  Returns number of bytes to variables.  0 means
; passthru.
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.defaultlrl
odbc.defaultlrl = 4096

; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of uodbc.defaultlrl and uodbc.defaultbinmode
; http://www.php.net/manual/en/odbc.configuration.php#ini.uodbc.defaultbinmode
odbc.defaultbinmode = 1

;birdstep.max_links = -1

[MySQL]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.allow-persistent
mysql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.max-persistent
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.max-links
mysql.max_links = -1

; Default port number for mysql_connect().  If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-port
mysql.default_port =

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-socket
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-host
mysql.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-user
mysql.default_user =

; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-password
mysql.default_password =

; Maximum time (in seconds) for connect timeout. -1 means no limit
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.connect-timeout
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.trace-mode
mysql.trace_mode = Off

[MySQLi]

; Maximum number of links.  -1 means no limit.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.max-links
mysqli.max_links = -1

; Default port number for mysqli_connect().  If unset, mysqli_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-port
mysqli.default_port = 3306

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-socket
mysqli.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-host
mysqli.default_host =

; Default user for mysql_connect() (doesn't apply in safe mode).
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-user
mysqli.default_user =

; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
; http://www.php.net/manual/en/mysqli.configuration.php#ini.mysqli.default-pw
mysqli.default_pw =

; Allow or prevent reconnect
mysqli.reconnect = Off

[PostgresSQL]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.allow-persistent
pgsql.allow_persistent = On

; Detect broken persistent links always with pg_pconnect().
; Auto reset feature requires a little overheads.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.auto-reset-persistent
pgsql.auto_reset_persistent = Off

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-persistent
pgsql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.max-links
pgsql.max_links = -1

; Ignore PostgreSQL backends Notice message or not.
; Notice message logging require a little overheads.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.ignore-notice
pgsql.ignore_notice = 0

; Log PostgreSQL backends Noitce message or not.
; Unless pgsql.ignore_notice=0, module cannot log notice message.
; http://www.php.net/manual/en/pgsql.configuration.php#ini.pgsql.log-notice
pgsql.log_notice = 0

[Sybase-CT]
; Allow or prevent persistent links.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.allow-persistent
sybct.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.max-persistent
sybct.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.max-links
sybct.max_links = -1

; Minimum server message severity to display.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.min-server-severity
sybct.min_server_severity = 10

; Minimum client message severity to display.
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.min-client-severity
sybct.min_client_severity = 10

; Set per-context timeout
; http://www.php.net/manual/en/sybase.configuration.php#ini.sybct.timeout
;sybct.timeout=

;sybct.packet_size

[bcmath]
; Number of decimal digits for all bcmath functions.
; http://www.php.net/manual/en/bc.configuration.php#ini.bcmath.scale
bcmath.scale = 0

[browscap]
; http://www.php.net/manual/en/misc.configuration.php#ini.browscap
;browscap = extra/browscap.ini

[Session]
; Handler used to store/retrieve data.
; http://www.php.net/manual/en/session.configuration.php#ini.session.save-handler
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
;
; As of PHP 4.0.1, you can define the path as:
;
;     session.save_path = "N;/path"
;
; where N is an integer.  Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories.  This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
;         You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
;         use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
;     session.save_path = "N;MODE;/path"
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
; http://www.php.net/manual/en/session.configuration.php#ini.session.save-path
session.save_path = "/var/lib/php/session"

; Whether to use cookies.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-cookies
session.use_cookies = 1

; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-secure
;session.cookie_secure =

; This option forces PHP to fetch and use a cookie for storing and maintaining
; the session id. We encourage this operation as it's very helpful in combatting
; session hijacking when not specifying and managing your own session id. It is
; not the end all be all of session hijacking defense, but it's a good start.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-only-cookies
session.use_only_cookies = 1

; Name of the session (used as cookie name).
; http://www.php.net/manual/en/session.configuration.php#ini.session.name
session.name = PHPSESSID

; Initialize session on request startup.
; http://www.php.net/manual/en/session.configuration.php#ini.session.auto-start
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime
session.cookie_lifetime = 0

; The path for which the cookie is valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-path
session.cookie_path = /

; The domain for which the cookie is valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-domain
session.cookie_domain =

; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-httponly
session.cookie_httponly = 

; Handler used to serialize data.  php is the standard serializer of PHP.
; http://www.php.net/manual/en/session.configuration.php#ini.session.serialize-handler
session.serialize_handler = php

; Defines the probability that the 'garbage collection' process is started
; on every session initialization. The probability is calculated by using
; gc_probability/gc_divisor. Where session.gc_probability is the numerator
; and gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request.
; Default Value: 1
; Development Value: 1
; Production Value: 1
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-probability
session.gc_probability = 1

; Defines the probability that the 'garbage collection' process is started on every
; session initialization. The probability is calculated by using the following equation: 
; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
; session.gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; the gc will run on any give request. Increasing this value to 1000 will give you
; a 0.1% chance the gc will run on any give request. For high volume production servers,
; this is a more efficient approach.
; Default Value: 100
; Development Value: 1000
; Production Value: 1000
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-divisor
session.gc_divisor = 1000

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
; http://www.php.net/manual/en/session.configuration.php#ini.session.gc-maxlifetime
session.gc_maxlifetime = 1440

; NOTE: If you are using the subdirectory option for storing session files
;       (see session.save_path above), then garbage collection does *not*
;       happen automatically.  You will need to do your own garbage
;       collection through a shell script, cron entry, or some other method.
;       For example, the following script would is the equivalent of
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
;          cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, even when register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled. This feature
; introduces some serious security problems if not handled correctly. It's
; recommended that you do not use this feature on production servers. But you
; should enable this on development servers and enable the warning as well. If you
; do not enable the feature on development servers, you won't be warned when it's
; used and debugging errors caused by this can be difficult to track down.
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/session.configuration.php#ini.session.bug-compat-42
session.bug_compat_42 = Off

; This setting controls whether or not you are warned by PHP when initializing a
; session value into the global space. session.bug_compat_42 must be enabled before
; these warnings can be issued by PHP. See the directive above for more information.
; Default Value: On
; Development Value: On
; Production Value: Off
; http://www.php.net/manual/en/session.configuration.php#ini.session.bug-compat-warn
session.bug_compat_warn = Off

; Check HTTP Referer to invalidate externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
; http://www.php.net/manual/en/session.configuration.php#ini.session.referer-check
session.referer_check =

; How many bytes to read from the file.
; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-length
session.entropy_length = 0

; Specified here to create the session id.
; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-file
;session.entropy_file = /dev/urandom
session.entropy_file =

; http://www.php.net/manual/en/session.configuration.php#ini.session.entropy-length
;session.entropy_length = 16

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cache-limiter
session.cache_limiter = nocache

; Document expires after n minutes.
; http://www.php.net/manual/en/session.configuration.php#ini.session.cache-expire
session.cache_expire = 180

; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
;   to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
;   in publically accessible computer.
; - User may access your site with the same session ID
;   always using URL stored in browser's history or bookmarks.
; http://www.php.net/manual/en/session.configuration.php#ini.session.use-trans-sid
session.use_trans_sid = 0

; Select a hash function for use in generating session ids.
; Possible Values 
;   0  (MD5 128 bits)
;   1  (SHA-1 160 bits)
; http://www.php.net/manual/en/session.configuration.php#ini.session.hash-function
session.hash_function = 0

; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
; Possible values:
;   4  (4 bits: 0-9, a-f)
;   5  (5 bits: 0-9, a-v)
;   6  (6 bits: 0-9, a-z, A-Z, "-", ",")
; Default Value: 4
; Development Value: 5
; Production Value: 5
; http://www.php.net/manual/en/session.configuration.php#ini.session.hash-bits-per-character
session.hash_bits_per_character = 5

; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden <input> field with the info which is otherwise appended
; to URLs.  If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a "=", even if no value follows.
; Default Value: "a=href,area=href,frame=src,form=,fieldset="
; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
; http://www.php.net/manual/en/session.configuration.php#ini.url-rewriter.tags
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
mssql.max_links = -1

; Minimum error severity to display.
mssql.min_error_severity = 10

; Minimum message severity to display.
mssql.min_message_severity = 10

; Compatibility mode with old versions of PHP 3.0.
mssql.compatability_mode = Off

; Connect timeout
;mssql.connect_timeout = 5

; Query timeout
;mssql.timeout = 60

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textsize = 4096

; Limits the number of records in each batch.  0 = all records in one batch.
;mssql.batchsize = 0

; Specify how datetime and datetim4 columns are returned
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server
mssql.secure_connection = Off

; Specify max number of processes. -1 = library default
; msdlib defaults to 25
; FreeTDS defaults to 4096
;mssql.max_procs = -1

; Specify client character set. 
; If empty or not set the client charset from freetds.comf is used
; This is only used when compiled with FreeTDS
;mssql.charset = "ISO-8859-1"

[Assertion]
; Assert(expr); active by default.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.active
;assert.active = On

; Issue a PHP warning for each failed assertion.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.warning
;assert.warning = On

; Don't bail out by default.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.bail
;assert.bail = Off

; User-function to be called if an assertion fails.
; http://www.php.net/manual/en/info.configuration.php#ini.assert.callback
;assert.callback = 0

; Eval the expression with current error_reporting().  Set to true if you want
; error_reporting(0) around the eval().
; http://www.php.net/manual/en/info.configuration.php#ini.assert.quiet-eval
;assert.quiet_eval = 0

[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
; http://www.php.net/manual/en/com.configuration.php#ini.com.typelib-file
;com.typelib_file =

; allow Distributed-COM calls
; http://www.php.net/manual/en/com.configuration.php#ini.com.allow-dcom
;com.allow_dcom = true

; autoregister constants of a components typlib on com_load()
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-typelib
;com.autoregister_typelib = true

; register constants casesensitive
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-casesensitive
;com.autoregister_casesensitive = false

; show warnings on duplicate constant registrations
; http://www.php.net/manual/en/com.configuration.php#ini.com.autoregister-verbose
;com.autoregister_verbose = true

[mbstring]
; language for internal character representation.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.language
;mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.internal-encoding
;mbstring.internal_encoding = EUC-JP

; http input encoding.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-input
;mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.http-output
;mbstring.http_output = SJIS

; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.encoding-translation
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; auto means
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.detect-order
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.substitute-character
;mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
; http://www.php.net/manual/en/mbstring.configuration.php#ini.mbstring.func-overload
;mbstring.func_overload = 0

; enable strict encoding detection.
;mbstring.strict_detection = Off

; This directive specifies the regex pattern of content types for which mb_output_handler()
; is activated.
; Default: mbstring.http_output_conv_mimetype=^(text/|application/xhtml\+xml)
;mbstring.http_output_conv_mimetype=

[gd]
; Tell the jpeg decode to ignore warnings and try to create
; a gd image. The warning will then be displayed as notices
; disabled by default
; http://www.php.net/manual/en/image.configuration.php#ini.image.jpeg-ignore-warning
;gd.jpeg_ignore_warning = 0

[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-unicode
;exif.encode_unicode = ISO-8859-15

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-motorola
;exif.decode_unicode_motorola = UCS-2BE

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-unicode-intel
;exif.decode_unicode_intel    = UCS-2LE

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.encode-jis
;exif.encode_jis =

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-motorola
;exif.decode_jis_motorola = JIS

; http://www.php.net/manual/en/exif.configuration.php#ini.exif.decode-jis-intel
;exif.decode_jis_intel    = JIS

[Tidy]
; The path to a default tidy configuration file to use when using tidy
; http://www.php.net/manual/en/tidy.configuration.php#ini.tidy.default-config
;tidy.default_config = /usr/local/lib/php/default.tcfg

; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
; http://www.php.net/manual/en/tidy.configuration.php#ini.tidy.clean-output
tidy.clean_output = Off

[soap]
; Enables or disables WSDL caching feature.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-enabled
soap.wsdl_cache_enabled=1

; Sets the directory name where SOAP extension will put cache files.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-dir
soap.wsdl_cache_dir="/tmp"

; (time to live) Sets the number of second while cached file will be used 
; instead of original one.
; http://www.php.net/manual/en/soap.configuration.php#ini.soap.wsdl-cache-ttl
soap.wsdl_cache_ttl=86400

[sysvshm]
; A default size of the shared memory segment
;sysvshm.init_mem = 10000


; Local Variables:
; tab-width: 4
; End:
                       Virtual_Configuration/tile12/webserver/Software_Configuration/php/php.d/                            0000777 0000000 0000000 00000000000 11524351117 025462  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/webserver/Software_Configuration/php/php.d/phar.ini                    0000644 0000000 0000000 00000000061 11524351116 027105  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable phar extension module
extension=phar.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/webserver/Software_Configuration/php/php.d/zip.ini                     0000644 0000000 0000000 00000000057 11524351117 026763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable zip extension module
extension=zip.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/webserver/Software_Configuration/php/php.d/json.ini                    0000644 0000000 0000000 00000000061 11524351116 027124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable json extension module
extension=json.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/webserver/Software_Configuration/php/php.d/apc.ini                     0000644 0000000 0000000 00000005340 11524351116 026723  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable apc extension module
extension = apc.so

; Options for the APC module version >= 3.1.3

; This can be set to 0 to disable APC. 
apc.enabled=1
; The number of shared memory segments to allocate for the compiler cache. 
apc.shm_segments=1
; The size of each shared memory segment in MB.
apc.shm_size=64
; A "hint" about the number of distinct source files that will be included or 
; requested on your web server. Set to zero or omit if you're not sure;
apc.num_files_hint=1024
; Just like num_files_hint, a "hint" about the number of distinct user cache
; variables to store.  Set to zero or omit if you're not sure;
apc.user_entries_hint=4096
; The number of seconds a cache entry is allowed to idle in a slot in case this
; cache entry slot is needed by another entry.
apc.ttl=7200
; use the SAPI request start time for TTL
apc.use_request_time=1
; The number of seconds a user cache entry is allowed to idle in a slot in case
; this cache entry slot is needed by another entry.
apc.user_ttl=7200
; The number of seconds that a cache entry may remain on the garbage-collection list. 
apc.gc_ttl=3600
; On by default, but can be set to off and used in conjunction with positive
; apc.filters so that files are only cached if matched by a positive filter.
apc.cache_by_default=1
; A comma-separated list of POSIX extended regular expressions.
apc.filters
; The mktemp-style file_mask to pass to the mmap module 
apc.mmap_file_mask=/tmp/apc.XXXXXX
; This file_update_protection setting puts a delay on caching brand new files.
apc.file_update_protection=2
; Setting this enables APC for the CLI version of PHP (Mostly for testing and debugging).
apc.enable_cli=0
; Prevents large files from being cached
apc.max_file_size=1M
; Whether to stat the main script file and the fullpath includes.
apc.stat=1
; Vertification with ctime will avoid problems caused by programs such as svn or rsync by making 
; sure inodes havn't changed since the last stat. APC will normally only check mtime.
apc.stat_ctime=0
; Whether to canonicalize paths in stat=0 mode or fall back to stat behaviour
apc.canonicalize=0
; With write_lock enabled, only one process at a time will try to compile an 
; uncached script while the other processes will run uncached
apc.write_lock=1
; Logs any scripts that were automatically excluded from being cached due to early/late binding issues.
apc.report_autofilter=0
; RFC1867 File Upload Progress hook handler
apc.rfc1867=0
apc.rfc1867_prefix =upload_
apc.rfc1867_name=APC_UPLOAD_PROGRESS
apc.rfc1867_freq=0
apc.rfc1867_ttl=3600
; Optimize include_once and require_once calls and avoid the expensive system calls used.
apc.include_once_override=0
apc.lazy_classes=00
apc.lazy_functions=0
; not documented
apc.coredump_unmap=0
apc.file_md5=0
apc.preload_path
                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile12/webserver/Software_Configuration/php/php.d/curl.ini                    0000644 0000000 0000000 00000000061 11524351116 027120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable curl extension module
extension=curl.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/webserver/Software_Configuration/php/php.d/fileinfo.ini                0000644 0000000 0000000 00000000071 11524351116 027747  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   ; Enable fileinfo extension module
extension=fileinfo.so
                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/mailserver/                                                            0000777 0000000 0000000 00000000000 11524351076 017352  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/                                           0000777 0000000 0000000 00000000000 11524351115 022615  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/proc/                                      0000777 0000000 0000000 00000000000 11524351114 023557  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/proc/cpuinfo                               0000644 0000000 0000000 00000001017 11524351114 025140  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/mailserver/VM_configuration/proc/mounts                                0000644 0000000 0000000 00000001357 11524351114 025031  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=1020708k,nr_inodes=255177,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1306,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1306,timeout=300,minproto=5,maxproto=5,indirect 0 0
                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/mailserver/VM_configuration/proc/swaps                                 0000644 0000000 0000000 00000000146 11524351114 024634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	256	-1
                                                                                                                                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile12/mailserver/VM_configuration/proc/devices                               0000644 0000000 0000000 00000000567 11524351114 025130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile12/mailserver/VM_configuration/proc/modules                               0000644 0000000 0000000 00000002621 11524351114 025147  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa02b9000
stp 2107 1 bridge, Live 0xffffffffa02b3000
llc 5608 2 bridge,stp, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 1 - Live 0xffffffffa024b000
ipv6 321209 39 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
virtio_blk 5087 5 - Live 0xffffffffa0067000
sr_mod 16162 0 - Live 0xffffffffa005d000
cdrom 39769 1 sr_mod, Live 0xffffffffa004c000
virtio_pci 6733 0 - Live 0xffffffffa0044000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa003d000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0036000
pata_acpi 3667 0 - Live 0xffffffffa0030000
ata_generic 3611 0 - Live 0xffffffffa002a000
ata_piix 22588 0 - Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                               Virtual_Configuration/tile12/mailserver/VM_configuration/proc/partitions                            0000644 0000000 0000000 00000000260 11524351114 025670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   41943040 vdb
 252       17   41943024 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile12/mailserver/VM_configuration/proc/meminfo                               0000644 0000000 0000000 00000002222 11524351114 025126  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        2055756 kB
MemFree:          354852 kB
Buffers:          372056 kB
Cached:           908892 kB
SwapCached:            4 kB
Active:           905004 kB
Inactive:         448552 kB
Active(anon):      15996 kB
Inactive(anon):    56776 kB
Active(file):     889008 kB
Inactive(file):   391776 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047736 kB
Dirty:               288 kB
Writeback:             0 kB
AnonPages:         72616 kB
Mapped:             9552 kB
Shmem:               164 kB
Slab:             326668 kB
SReclaimable:     255660 kB
SUnreclaim:        71008 kB
KernelStack:        1064 kB
PageTables:         3784 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3075868 kB
Committed_AS:     176916 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       11532 kB
VmallocChunk:   34359719476 kB
HardwareCorrupted:     0 kB
AnonHugePages:     22528 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     2088960 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/mailserver/VM_configuration/root/                                      0000777 0000000 0000000 00000000000 11524351114 023577  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/root/convert_to_vf.sh                      0000755 0000000 0000000 00000001135 11524351114 027007  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/lspci.txt                                  0000644 0000000 0000000 00000001211 11524351113 024455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/mailserver/VM_configuration/df.txt                                     0000644 0000000 0000000 00000000401 11524351076 023744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3826704   8954232  30% /
tmpfs                  1027876         0   1027876   0% /dev/shm
/dev/vdb1             41284912  24788352  14399412  64% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/mailserver/VM_configuration/mount.txt                                  0000644 0000000 0000000 00000000612 11524351113 024511  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
                                                                                                                      Virtual_Configuration/tile12/mailserver/VM_configuration/etc/                                       0000777 0000000 0000000 00000000000 11524351113 023366  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/                                  0000777 0000000 0000000 00000000000 11524351105 024215  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/                            0000777 0000000 0000000 00000000000 11524351113 025125  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests           0000755 0000000 0000000 00000017172 11524351106 030321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                  0000755 0000000 0000000 00000004325 11524351106 026737  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd               0000755 0000000 0000000 00000006014 11524351107 027526  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                 0000755 0000000 0000000 00000012327 11524351110 027121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd                0000755 0000000 0000000 00000005222 11524351111 027305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                     0000755 0000000 0000000 00000010671 11524351112 026311  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                    0000755 0000000 0000000 00000006364 11524351106 026466  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables                0000755 0000000 0000000 00000020716 11524351110 027231  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                     0000755 0000000 0000000 00000004731 11524351107 026316  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon             0000755 0000000 0000000 00000004754 11524351106 027671  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip                0000755 0000000 0000000 00000001364 11524351112 027330  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                    0000755 0000000 0000000 00000003027 11524351110 026446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                   0000755 0000000 0000000 00000006743 11524351113 026652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                    0000755 0000000 0000000 00000010777 11524351107 026461  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus               0000755 0000000 0000000 00000004230 11524351112 027472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                    0000755 0000000 0000000 00000006302 11524351110 026422  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                      0000755 0000000 0000000 00000004236 11524351113 026145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                  0000755 0000000 0000000 00000004031 11524351111 026753  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance               0000755 0000000 0000000 00000003521 11524351111 027436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                  0000755 0000000 0000000 00000006050 11524351111 027010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                  0000755 0000000 0000000 00000002363 11524351110 027057  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger               0000755 0000000 0000000 00000004054 11524351105 027474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor                0000755 0000000 0000000 00000005013 11524351111 027345  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                    0000755 0000000 0000000 00000003213 11524351110 026441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                  0000755 0000000 0000000 00000003512 11524351107 027001  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                     0000755 0000000 0000000 00000003603 11524351107 026307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                   0000755 0000000 0000000 00000011277 11524351107 026634  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S10network                  0000755 0000000 0000000 00000014466 11524351111 027035  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                  0000755 0000000 0000000 00000004326 11524351111 027042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                   0000755 0000000 0000000 00000006462 11524351111 026614  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                    0000755 0000000 0000000 00000027662 11524351112 026470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                     0000755 0000000 0000000 00000006445 11524351107 026212  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon                0000755 0000000 0000000 00000003245 11524351112 027275  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K60crond                    0000755 0000000 0000000 00000005445 11524351107 026450  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                    0000755 0000000 0000000 00000005522 11524351106 026451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl            0000755 0000000 0000000 00000002221 11524351110 030132  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd                0000755 0000000 0000000 00000004010 11524351106 027310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K60nfs                      0000755 0000000 0000000 00000013536 11524351107 026131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                     0000755 0000000 0000000 00000004723 11524351112 026271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                   0000755 0000000 0000000 00000003024 11524351106 026601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                    0000755 0000000 0000000 00000003275 11524351112 026430  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                 0000755 0000000 0000000 00000025442 11524351111 027153  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post                0000755 0000000 0000000 00000004370 11524351112 027273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S99local                    0000755 0000000 0000000 00000000334 11524351113 026446  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                  0000755 0000000 0000000 00000006675 11524351111 027012  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole               0000755 0000000 0000000 00000005650 11524351106 027510  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor             0000555 0000000 0000000 00000004612 11524351110 027677  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                   0000755 0000000 0000000 00000007234 11524351112 026652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                 0000755 0000000 0000000 00000003433 11524351113 027204  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                   0000755 0000000 0000000 00000005672 11524351105 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                    0000755 0000000 0000000 00000003254 11524351113 026444  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S55autobench                0000755 0000000 0000000 00000005063 11524351112 027317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                    0000755 0000000 0000000 00000012432 11524351112 026461  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                  0000755 0000000 0000000 00000007414 11524351106 027031  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                 0000755 0000000 0000000 00000020557 11524351110 027146  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond              0000755 0000000 0000000 00000003427 11524351110 027673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/rc3.d/K05atd                      0000755 0000000 0000000 00000004112 11524351106 026077  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/                           0000777 0000000 0000000 00000000000 11524351105 025402  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/network                    0000755 0000000 0000000 00000014466 11524351103 027026  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/gfs2                       0000755 0000000 0000000 00000006445 11524351101 026172  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/sysstat                    0000755 0000000 0000000 00000002363 11524351105 027042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/saslauthd                  0000755 0000000 0000000 00000004010 11524351104 027306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/messagebus                 0000755 0000000 0000000 00000004230 11524351102 027456  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/autobench                  0000755 0000000 0000000 00000005063 11524351100 027273  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/atd                        0000755 0000000 0000000 00000004112 11524351077 026102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/mcelogd                    0000755 0000000 0000000 00000003535 11524351102 026741  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/auditd                     0000755 0000000 0000000 00000006462 11524351100 026601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/certmonger                 0000755 0000000 0000000 00000004054 11524351100 027467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/irqbalance                 0000755 0000000 0000000 00000003521 11524351101 027422  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/acpid                      0000755 0000000 0000000 00000003275 11524351077 026423  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/nscd                       0000755 0000000 0000000 00000004723 11524351103 026257  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                  0000755 0000000 0000000 00000005222 11524351104 027267  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/nfs                        0000755 0000000 0000000 00000013536 11524351103 026120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/sssd                       0000755 0000000 0000000 00000004731 11524351105 026305  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/crond                      0000755 0000000 0000000 00000005445 11524351100 026434  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/ip6tables                  0000755 0000000 0000000 00000020716 11524351101 027217  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/autofs                     0000755 0000000 0000000 00000007234 11524351100 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/sshd                       0000755 0000000 0000000 00000010671 11524351105 026272  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/ksm                        0000755 0000000 0000000 00000004236 11524351102 026120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/libvirt-guests             0000755 0000000 0000000 00000017172 11524351102 030314  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/avahi-daemon               0000755 0000000 0000000 00000004754 11524351100 027662  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/ypbind                     0000755 0000000 0000000 00000011277 11524351105 026621  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/psacct                     0000755 0000000 0000000 00000003024 11524351103 026576  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/xinetd                     0000755 0000000 0000000 00000006743 11524351105 026631  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/nfslock                    0000755 0000000 0000000 00000006675 11524351103 026777  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/cgred                      0000755 0000000 0000000 00000006302 11524351100 026404  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/migrateip                  0000755 0000000 0000000 00000001364 11524351102 027306  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/udev-post                  0000755 0000000 0000000 00000004370 11524351105 027256  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/haldaemon                  0000755 0000000 0000000 00000003245 11524351101 027254  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/ipsec                      0000755 0000000 0000000 00000010777 11524351101 026437  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/rpcbind                    0000755 0000000 0000000 00000004031 11524351104 026742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/rhnsd                      0000755 0000000 0000000 00000005522 11524351104 026445  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/functions                  0000644 0000000 0000000 00000042767 11524351101 027345  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/kdump                      0000755 0000000 0000000 00000027662 11524351101 026455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/postfix                    0000755 0000000 0000000 00000007414 11524351103 027024  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/iptables                   0000755 0000000 0000000 00000020557 11524351101 027134  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/rsyslog                    0000755 0000000 0000000 00000004326 11524351104 027032  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/netconsole                 0000755 0000000 0000000 00000005650 11524351102 027500  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/rpcgssd                    0000755 0000000 0000000 00000006050 11524351104 026771  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/abrtd                      0000755 0000000 0000000 00000003254 11524351077 026434  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor               0000555 0000000 0000000 00000004612 11524351102 027667  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/halt                       0000755 0000000 0000000 00000012723 11524351101 026255  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/cgconfig                   0000755 0000000 0000000 00000012327 11524351100 027103  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/single                     0000755 0000000 0000000 00000001207 11524351104 026604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/mdmonitor                  0000755 0000000 0000000 00000005013 11524351102 027330  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/restorecond                0000755 0000000 0000000 00000003427 11524351104 027660  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/cpuspeed                   0000755 0000000 0000000 00000025442 11524351100 027136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/netfs                      0000755 0000000 0000000 00000012432 11524351102 026442  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                 0000755 0000000 0000000 00000006014 11524351104 027505  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/oddjobd                    0000755 0000000 0000000 00000004325 11524351103 026733  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/ksmtuned                   0000755 0000000 0000000 00000003433 11524351102 027156  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/sandbox                    0000755 0000000 0000000 00000003242 11524351104 026762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/killall                    0000755 0000000 0000000 00000001214 11524351101 026742  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/rdisc                      0000755 0000000 0000000 00000003027 11524351103 026430  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/httpd                      0000755 0000000 0000000 00000006364 11524351101 026454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/ntpd                       0000755 0000000 0000000 00000003603 11524351103 026271  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/smartd                     0000755 0000000 0000000 00000005672 11524351105 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/nslcd                      0000755 0000000 0000000 00000003213 11524351103 026424  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/ntpdate                    0000755 0000000 0000000 00000003512 11524351103 026762  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile12/mailserver/VM_configuration/etc/rc.d/init.d/microcode_ctl              0000755 0000000 0000000 00000002221 11524351102 030124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/mailserver/VM_configuration/etc/hosts                                  0000644 0000000 0000000 00000000267 11524351076 024462  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.132.1.2		vg-infrat01
                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/mailserver/VM_configuration/etc/iproute2/                              0000777 0000000 0000000 00000000000 11524351077 025150  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/etc/iproute2/rt_dsfield                    0000644 0000000 0000000 00000000672 11524351077 027213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile12/mailserver/VM_configuration/etc/iproute2/rt_realms                     0000644 0000000 0000000 00000000160 11524351077 027054  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile12/mailserver/VM_configuration/etc/iproute2/rt_scopes                     0000644 0000000 0000000 00000000134 11524351077 027066  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/mailserver/VM_configuration/etc/iproute2/ematch_map                    0000644 0000000 0000000 00000000073 11524351077 027165  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/mailserver/VM_configuration/etc/iproute2/rt_tables                     0000644 0000000 0000000 00000000127 11524351077 027046  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/mailserver/VM_configuration/etc/iproute2/rt_protos                     0000644 0000000 0000000 00000000475 11524351077 027130  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/etc/nsswitch.conf                          0000644 0000000 0000000 00000003230 11524351077 026102  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/mailserver/VM_configuration/etc/fstab                                  0000644 0000000 0000000 00000001603 11524351076 024414  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile12/mailserver/VM_configuration/etc/sysctl.conf                            0000644 0000000 0000000 00000001466 11524351113 025561  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile12/mailserver/VM_configuration/etc/inittab                                0000644 0000000 0000000 00000001564 11524351076 024755  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile12/mailserver/VM_configuration/var/                                       0000777 0000000 0000000 00000000000 11524351115 023405  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/var/log/                                   0000777 0000000 0000000 00000000000 11524351115 024166  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/var/log/dmesg                              0000644 0000000 0000000 00000043370 11524351115 025213  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000007fffd000 (usable)
 BIOS-e820: 000000007fffd000 - 0000000080000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x7fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000007fffd000
 0000000000 - 007fe00000 page 2M
 007fe00000 - 007fffd000 page 4k
kernel direct mapping tables up to 7fffd000 @ 8000-c000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000007fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000007ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000007fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000007ffffe00 00040
ACPI: SSDT 000000007fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000007fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000007fffd000
Bootmem setup node 0 0000000000000000-000000007fffd000
  NODE_DATA [000000000000a000 - 000000000003dfff]
  bootmap [000000000003e000 -  000000000004dfff] pages 10
(7 early reservations) ==> bootmem [0000000000 - 007fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 000000a000]          PGTABLE ==> [0000008000 - 000000a000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0001bfffff] PMD -> [ffff880002200000-ffff880003dfffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0007fffd
On node 0 totalpages: 524182
  DMA zone: 56 pages used for memmap
  DMA zone: 106 pages reserved
  DMA zone: 3831 pages, LIFO batch:0
  DMA32 zone: 7112 pages used for memmap
  DMA32 zone: 513077 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 80000000 (gap: 80000000:7ffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 516908
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 2041384k/2097140k available (4935k kernel code, 412k absent, 55344k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 20971520 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116089.294:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 4012
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:01:29 UTC (1297116089)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
 vdb: vdb1
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
9e:56:57:0a:9e:f7
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/mailserver/VM_configuration/boot/                                      0000777 0000000 0000000 00000000000 11524351076 023566  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/boot/grub/                                 0000777 0000000 0000000 00000000000 11524351076 024525  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/VM_configuration/boot/grub/grub.conf                        0000644 0000000 0000000 00000002217 11524351076 026331  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/mailserver/VM_configuration/rpmpkgs.txt                                0000644 0000000 0000000 00000067153 11524351115 025051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
scrub-2.2-1.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
hivex-1.2.2-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
libguestfs-1.2.7-1.24.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/mailserver/VM_configuration/ifconfig.txt                               0000644 0000000 0000000 00000002325 11524351113 025136  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:48  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:82 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7510 (7.3 KiB)  TX bytes:829 (829.0 b)

eth1      Link encap:Ethernet  HWaddr 9E:56:57:0A:9E:F7  
          inet addr:10.1.217.72  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::9c56:57ff:fe0a:9ef7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4026386 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4190837 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:680389344 (648.8 MiB)  TX bytes:4640303114 (4.3 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:754 errors:0 dropped:0 overruns:0 frame:0
          TX packets:754 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:73827 (72.0 KiB)  TX bytes:73827 (72.0 KiB)

                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/mailserver/VM_configuration/chkconfig.txt                              0000644 0000000 0000000 00000006535 11524351076 025324  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:off	3:off	4:off	5:off	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/Software_Configuration/                                     0000777 0000000 0000000 00000000000 11524351076 024033  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/mailserver/Software_Configuration/dovecot.conf                         0000644 0000000 0000000 00000000654 11524351076 026346  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   base_dir = /var/run/dovecot/
ssl = no
disable_plaintext_auth = no
listen = *
log_path = /var/log/dovecot
mail_debug = yes
mail_location = dbox:/mailstore/dovecot/maildir/%u
mdbox_rotate_size = 2048
passdb {
  args = /etc/passwd.dovecot
  driver = passwd-file
}
protocols = imap
service auth {
  user = root
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  process_min_avail = 10
}
userdb {
  driver = passwd
}
                                                                                    Virtual_Configuration/tile12/infraserver/                                                           0000777 0000000 0000000 00000000000 11524351056 017525  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/                                          0000777 0000000 0000000 00000000000 11524351075 022777  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/proc/                                     0000777 0000000 0000000 00000000000 11524351075 023742  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/proc/cpuinfo                              0000644 0000000 0000000 00000001017 11524351074 025322  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 6
model name	: QEMU Virtual CPU version 0.12.1
stepping	: 3
cpu MHz		: 3466.818
cache size	: 4096 KB
fpu		: yes
fpu_exception	: yes
cpuid level	: 4
wp		: yes
flags		: fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 syscall nx lm up rep_good unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm
bogomips	: 6933.63
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management:

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/infraserver/VM_configuration/proc/mounts                               0000644 0000000 0000000 00000001426 11524351074 025210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   rootfs / rootfs rw 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
udev /dev devtmpfs rw,relatime,size=503592k,nr_inodes=125898,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/vda1 / ext4 rw,relatime,barrier=0,data=ordered 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/vdb1 /data-disk ext4 rw,noatime,barrier=0,data=writeback 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=1232,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=1232,timeout=300,minproto=5,maxproto=5,indirect 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
                                                                                                                                                                                                                                          Virtual_Configuration/tile12/infraserver/VM_configuration/proc/swaps                                0000644 0000000 0000000 00000000144 11524351075 025015  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filename				Type		Size	Used	Priority
/dev/vda2                               partition	2047992	0	-1
                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/infraserver/VM_configuration/proc/devices                              0000644 0000000 0000000 00000000567 11524351074 025312  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
 99 ppdev
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
250 hidraw
251 usbmon
252 bsg
253 pcmcia
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  9 md
 11 sr
252 virtblk
253 device-mapper
254 mdp
                                                                                                                                         Virtual_Configuration/tile12/infraserver/VM_configuration/proc/modules                              0000644 0000000 0000000 00000003222 11524351074 025327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   bridge 74113 0 - Live 0xffffffffa034e000
stp 2107 1 bridge, Live 0xffffffffa0348000
llc 5608 2 bridge,stp, Live 0xffffffffa0340000
nfsd 302737 13 - Live 0xffffffffa02e7000
lockd 73984 1 nfsd, Live 0xffffffffa02cb000
nfs_acl 2677 1 nfsd, Live 0xffffffffa02c5000
auth_rpcgss 44862 1 nfsd, Live 0xffffffffa02b2000
exportfs 4202 1 nfsd, Live 0xffffffffa02ab000
autofs4 27683 3 - Live 0xffffffffa029e000
sunrpc 241630 16 nfsd,lockd,nfs_acl,auth_rpcgss, Live 0xffffffffa024b000
ipv6 321209 51 - Live 0xffffffffa01b6000
dm_mirror 14003 0 - Live 0xffffffffa018a000
dm_region_hash 12200 1 dm_mirror, Live 0xffffffffa0181000
dm_log 10088 2 dm_mirror,dm_region_hash, Live 0xffffffffa0178000
ppdev 8695 0 - Live 0xffffffffa016a000
parport_pc 22944 0 - Live 0xffffffffa015d000
parport 37327 2 ppdev,parport_pc, Live 0xffffffffa014b000
sg 30186 0 - Live 0xffffffffa013c000
virtio_net 15665 0 - Live 0xffffffffa0132000
ixgbevf 47200 0 - Live 0xffffffffa011e000
i2c_piix4 12574 0 - Live 0xffffffffa0115000
i2c_core 31274 1 i2c_piix4, Live 0xffffffffa0105000
ext4 353979 2 - Live 0xffffffffa0098000
mbcache 7918 1 ext4, Live 0xffffffffa0090000
jbd2 89033 1 ext4, Live 0xffffffffa006e000
sr_mod 16162 0 - Live 0xffffffffa0064000
cdrom 39769 1 sr_mod, Live 0xffffffffa0053000
virtio_blk 5087 5 - Live 0xffffffffa004c000
pata_acpi 3667 0 - Live 0xffffffffa0046000
ata_generic 3611 0 - Live 0xffffffffa0040000
ata_piix 22588 0 - Live 0xffffffffa0034000
virtio_pci 6733 0 - Live 0xffffffffa002c000
virtio_ring 7169 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa0025000
virtio 4824 3 virtio_net,virtio_blk,virtio_pci, Live 0xffffffffa001e000
dm_mod 76856 2 dm_mirror,dm_log, Live 0xffffffffa0000000
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/infraserver/VM_configuration/proc/partitions                           0000644 0000000 0000000 00000000260 11524351074 026052  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   major minor  #blocks  name

 252        0   15728640 vda
 252        1   13679616 vda1
 252        2    2048000 vda2
 252       16   62914560 vdb
 252       17   62910508 vdb1
                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile12/infraserver/VM_configuration/proc/meminfo                              0000644 0000000 0000000 00000002222 11524351074 025310  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   MemTotal:        1021520 kB
MemFree:           68584 kB
Buffers:            7736 kB
Cached:           779012 kB
SwapCached:            0 kB
Active:           174604 kB
Inactive:         692288 kB
Active(anon):      41592 kB
Inactive(anon):    41516 kB
Active(file):     133012 kB
Inactive(file):   650772 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2047992 kB
SwapFree:        2047992 kB
Dirty:               224 kB
Writeback:             0 kB
AnonPages:         80168 kB
Mapped:            20260 kB
Shmem:              2984 kB
Slab:              60924 kB
SReclaimable:      20196 kB
SUnreclaim:        40728 kB
KernelStack:        1504 kB
PageTables:         9056 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2558752 kB
Committed_AS:     237112 kB
VmallocTotal:   34359738367 kB
VmallocUsed:        7680 kB
VmallocChunk:   34359722660 kB
HardwareCorrupted:     0 kB
AnonHugePages:     24576 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8180 kB
DirectMap2M:     1040384 kB
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/infraserver/VM_configuration/root/                                     0000777 0000000 0000000 00000000000 11524351075 023762  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/root/convert_to_vf.sh                     0000755 0000000 0000000 00000001135 11524351075 027172  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash

# if eth1 exists, and it is a ixgbevf device, then
# get eth0 ip/route, ifdown eth0, and configure
# eth1 with eth0's IP

if [ -e /sys/class/net/eth1 ]; then
   eth0_ip=`ip addr show dev eth0 | grep "inet " | awk '{print $2}' | awk -F/ '{print $1}'`
   if [ -z "$eth0_ip" ]; then
	echo "no ip address for eth0, exiting"
        exit 1
   fi
   def_route_gw=`ip route show | grep default | awk '{print $3}'`
   echo migrating eth0 ip $eth0_ip to eth2
   ifdown eth0
   ifconfig eth1 down
   ifconfig eth1 $eth0_ip netmask 255.255.0.0 up
   route add -net default gw $def_route_gw dev eth1
fi 
                                                                                                                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/lspci.txt                                 0000644 0000000 0000000 00000001211 11524351074 024640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Red Hat, Inc Virtio network device
00:04.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:05.0 SCSI storage controller: Red Hat, Inc Virtio block device
00:06.0 Ethernet controller: Intel Corporation 82599 Ethernet Controller Virtual Function (rev 01)
                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/infraserver/VM_configuration/df.txt                                    0000644 0000000 0000000 00000000401 11524351057 024120  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1             13464916   3481708   9299228  28% /
tmpfs                   510760         0    510760   0% /dev/shm
/dev/vdb1             61923368  33417152  25360692  57% /data-disk
                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/infraserver/VM_configuration/mount.txt                                 0000644 0000000 0000000 00000000657 11524351074 024705  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /dev/vda1 on / type ext4 (rw,barrier=0) [rhel6root]
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/vdb1 on /data-disk type ext4 (rw,noatime,barrier=0,data=writeback) [rhel6datadisk]
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
                                                                                 Virtual_Configuration/tile12/infraserver/VM_configuration/etc/                                      0000777 0000000 0000000 00000000000 11524351074 023551  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/                                 0000777 0000000 0000000 00000000000 11524351066 024400  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/                           0000777 0000000 0000000 00000000000 11524351073 025307  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K02libvirt-guests          0000755 0000000 0000000 00000017172 11524351066 030503  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K02oddjobd                 0000755 0000000 0000000 00000004325 11524351066 027121  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K69rpcsvcgssd              0000755 0000000 0000000 00000006014 11524351067 027710  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K95cgconfig                0000755 0000000 0000000 00000012327 11524351070 027303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S18rpcidmapd               0000755 0000000 0000000 00000005222 11524351072 027470  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S55sshd                    0000755 0000000 0000000 00000010671 11524351073 026474  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K15httpd                   0000755 0000000 0000000 00000006364 11524351067 026651  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K92ip6tables               0000755 0000000 0000000 00000020716 11524351070 027413  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K80sssd                    0000755 0000000 0000000 00000004731 11524351070 026472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S30nfs                     0000755 0000000 0000000 00000013536 11524351073 026315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K02avahi-daemon            0000755 0000000 0000000 00000004754 11524351066 030053  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S55migrateip               0000755 0000000 0000000 00000001364 11524351073 027513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K89rdisc                   0000755 0000000 0000000 00000003027 11524351070 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S56xinetd                  0000755 0000000 0000000 00000006743 11524351073 027034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K76ipsec                   0000755 0000000 0000000 00000010777 11524351070 026635  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S22messagebus              0000755 0000000 0000000 00000004230 11524351072 027654  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K86cgred                   0000755 0000000 0000000 00000006302 11524351070 026604  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S84ksm                     0000755 0000000 0000000 00000004236 11524351073 026327  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S13rpcbind                 0000755 0000000 0000000 00000004031 11524351071 027135  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S13irqbalance              0000755 0000000 0000000 00000003521 11524351071 027620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S19rpcgssd                 0000755 0000000 0000000 00000006050 11524351072 027173  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K99sysstat                 0000755 0000000 0000000 00000002363 11524351071 027242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K01certmonger              0000755 0000000 0000000 00000004054 11524351066 027657  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S15mdmonitor               0000755 0000000 0000000 00000005013 11524351072 027530  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K88nslcd                   0000755 0000000 0000000 00000003213 11524351070 026623  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K75ntpdate                 0000755 0000000 0000000 00000003512 11524351070 027155  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K74ntpd                    0000755 0000000 0000000 00000003603 11524351067 026471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K73ypbind                  0000755 0000000 0000000 00000011277 11524351067 027016  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S10network                 0000755 0000000 0000000 00000014466 11524351071 027217  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S12rsyslog                 0000755 0000000 0000000 00000004326 11524351071 027224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S11auditd                  0000755 0000000 0000000 00000006462 11524351071 026776  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S20kdump                   0000755 0000000 0000000 00000027662 11524351072 026652  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K74gfs2                    0000755 0000000 0000000 00000006445 11524351067 026374  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S26haldaemon               0000755 0000000 0000000 00000003245 11524351072 027457  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K60crond                   0000755 0000000 0000000 00000005445 11524351067 026632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K03rhnsd                   0000755 0000000 0000000 00000005522 11524351066 026633  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S00microcode_ctl           0000755 0000000 0000000 00000002221 11524351071 030315  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K10saslauthd               0000755 0000000 0000000 00000004010 11524351066 027472  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S30nscd                    0000755 0000000 0000000 00000004723 11524351073 026454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K10psacct                  0000755 0000000 0000000 00000003024 11524351066 026763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S26acpid                   0000755 0000000 0000000 00000003275 11524351072 026612  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S13cpuspeed                0000755 0000000 0000000 00000025442 11524351071 027335  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S26udev-post               0000755 0000000 0000000 00000004370 11524351072 027455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S99local                   0000755 0000000 0000000 00000000334 11524351073 026630  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S14nfslock                 0000755 0000000 0000000 00000006675 11524351071 027174  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K50netconsole              0000755 0000000 0000000 00000005650 11524351067 027673  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S02lvm2-monitor            0000555 0000000 0000000 00000004612 11524351071 030062  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S28autofs                  0000755 0000000 0000000 00000007234 11524351072 027034  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S85ksmtuned                0000755 0000000 0000000 00000003433 11524351073 027366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K01smartd                  0000755 0000000 0000000 00000005672 11524351066 027013  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S82abrtd                   0000755 0000000 0000000 00000003254 11524351073 026626  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S55autobench               0000755 0000000 0000000 00000005063 11524351073 027502  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/S25netfs                   0000755 0000000 0000000 00000012432 11524351072 026643  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K30postfix                 0000755 0000000 0000000 00000007414 11524351067 027214  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K92iptables                0000755 0000000 0000000 00000020557 11524351070 027330  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K87restorecond             0000755 0000000 0000000 00000003427 11524351070 030055  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/rc3.d/K05atd                     0000755 0000000 0000000 00000004112 11524351066 026261  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/                          0000777 0000000 0000000 00000000000 11524351066 025565  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/network                   0000755 0000000 0000000 00000014466 11524351063 027210  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# network       Bring up/down networking
#
# chkconfig: 2345 10 90
# description: Activates/Deactivates all network interfaces configured to \
#              start at boot time.
#
### BEGIN INIT INFO
# Provides: $network
# Should-Start: iptables ip6tables
# Short-Description: Bring up/down networking
# Description: Bring up/down networking
### END INIT INFO

# Source function library.
. /etc/init.d/functions

if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

. /etc/sysconfig/network

if [ -f /etc/sysconfig/pcmcia ]; then
	. /etc/sysconfig/pcmcia
fi


# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 6

# if the ip configuration utility isn't around we can't function.
[ -x /sbin/ip ] || exit 1

CWD=$(pwd)
cd /etc/sysconfig/network-scripts

. ./network-functions

# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(ls ifcfg* | \
	    LANG=C sed -e "$__sed_discard_ignored_files" \
		       -e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
		       -e '/ifcfg-[A-Za-z0-9\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
	    LANG=C sort -k 1,1 -k 2n | \
	    LANG=C sed 's/ //')
rc=0

# See how we were called.
case "$1" in
  start)
	[ "$EUID" != "0" ] && exit 4
	rc=0
	# IPv6 hook (pre IPv4 start)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global start pre
	fi
  
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

	# bring up loopback interface
	action $"Bringing up loopback interface: " ./ifup ifcfg-lo

	case "$VLAN" in
	  yes)
	    if [ ! -d /proc/net/vlan ] && ! modprobe 8021q >/dev/null 2>&1 ; then
		echo $"No 802.1Q VLAN support available in kernel."
	    fi
	    ;;
	esac

	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""

	# bring up all other interfaces configured to come up at boot time
	for i in $interfaces; do
		unset DEVICE TYPE SLAVE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)
		eval $(LANG=C fgrep "SLAVE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		
		if [ "$SLAVE" = "yes" ]; then
			continue
		fi

		if LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i > /dev/null ; then
		        # this loads the module, to preserve ordering
			is_available $i
			continue
		fi
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	done
	
	# Bring up xDSL and VPN interfaces
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
		# If we're in confirmation mode, get user confirmation.
		if [ -f /var/run/confirm ]; then
			confirm $i
			test $? = 1 && continue
		fi
		action $"Bringing up interface $i: " ./ifup $i boot
		[ $? -ne 0 ] && rc=1
	    fi
        done

	# Add non interface-specific static-routes.
	if [ -f /etc/sysconfig/static-routes ]; then
	   grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
              /sbin/route add -$args
	   done
	fi    

 	# IPv6 hook (post IPv4 start)
 	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
 		/etc/sysconfig/network-scripts/init.ipv6-global start post
 	fi
	# Run this again to catch any interface-specific actions
	sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1
 
        touch /var/lock/subsys/network

	[ -n "${NETWORKDELAY}" ] && /bin/sleep ${NETWORKDELAY}
        ;;
  stop)
	[ "$EUID" != "0" ] && exit 4
  	# Don't shut the network down if root is on NFS or a network
	# block device.
        rootfs=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/" && $3 != "rootfs") { print $3; }}' /proc/mounts)
        rootopts=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $4; }}' /etc/mtab)
	
	if [[ "$rootfs" == nfs* || "$rootopts" =~ _r?netdev ]] ; then
		exit 1
	fi
  
  	# If this is a final shutdown/halt, check for network FS,
	# and unmount them even if the user didn't turn on netfs
	if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
		NFSMTAB=$(LC_ALL=C awk '$3  ~ /^nfs/ { print $2 }' /proc/mounts)
		SMBMTAB=$(LC_ALL=C awk '$3 == "smbfs" { print $2 }' /proc/mounts)
		NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
		if [ -n "$NFSMTAB" -o -n "$SMBMTAB" -o -n "$NCPMTAB" ] ; then
			/etc/init.d/netfs stop
		fi
	fi
	
	vlaninterfaces=""
	xdslinterfaces=""
	bridgeinterfaces=""
	remaining=""
	rc=0

	# get list of bonding, vpn, and xdsl interfaces
	for i in $interfaces; do
		unset DEVICE TYPE
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
		eval $(LANG=C fgrep "TYPE=" ifcfg-$i)

		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if [ "$TYPE" = "Bridge" ]; then
		        bridgeinterfaces="$bridgeinterfaces $i"
		        continue
		fi
		if [ "$TYPE" = "xDSL" ]; then
		        xdslinterfaces="$xdslinterfaces $i"
			continue
		fi

		if [ "${DEVICE%%.*}" != "$DEVICE"  -o  "${DEVICE##vlan}" != "$DEVICE" ] ; then
			vlaninterfaces="$vlaninterfaces $i"
			continue
		fi
		remaining="$remaining $i"
	done
	
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
		(. ./ifcfg-$i
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi

		if ! check_device_down $DEVICE; then
		   action $"Shutting down interface $i: " ./ifdown $i boot
		   [ $? -ne 0 ] && rc=1
		fi
		)
	done

	action $"Shutting down loopback interface: " ./ifdown ifcfg-lo

	sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1

	# IPv6 hook (post IPv4 stop)
	if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then
		/etc/sysconfig/network-scripts/init.ipv6-global stop post
	fi
	
        rm -f /var/lock/subsys/network
        ;;
  status)
	echo $"Configured devices:"
	echo lo $interfaces

	echo $"Currently active devices:"
	echo $(/sbin/ip -o link show up | awk -F ": " '{ print $2 }')
	;;
  restart|reload|force-reload)
        cd "$CWD"
	$0 stop
	$0 start
	rc=$?
	;;
  *)
        echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
        exit 2
esac

exit $rc
                                                                                                                                                                                                          Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/gfs2                      0000755 0000000 0000000 00000006445 11524351061 026354  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# gfs2 mount/unmount helper
#
# chkconfig: - 26 74
# description: mount/unmount gfs2 filesystems configured in /etc/fstab

### BEGIN INIT INFO
# Provides:		gfs2
# Required-Start:	$network cman
# Required-Stop:	$network cman
# Default-Start:
# Default-Stop:
# Short-Description:	mount/unmount gfs2 filesystems configured in /etc/fstab
# Description:		mount/unmount gfs2 filesystems configured in /etc/fstab
### END INIT INFO

# set secure PATH
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/sbin"

### generic wrapper functions

success()
{
	echo -ne "[  OK  ]\r"
}

failure()
{
	echo -ne "[FAILED]\r"
}

ok() {
	success
	echo
}

nok() {
	echo -e "$errmsg"
	failure
	echo
	exit 1
}

# rpm based distros
if [ -d /etc/sysconfig ]; then
	[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
	[ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster
	[ -f /etc/sysconfig/gfs2 ] && . /etc/sysconfig/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/subsys/gfs2"
fi

# deb based distros
if [ -d /etc/default ]; then
	[ -f /etc/default/cluster ] && . /etc/default/cluster
	[ -f /etc/default/gfs2 ] && . /etc/default/gfs2
	[ -z "$LOCK_FILE" ] && LOCK_FILE="/var/lock/gfs2"
fi

# proc is required for both status and stop.
# start could live without, but better be consistent with the behavior
if [ ! -f /proc/mounts ]; then
	echo "GFS2: /proc is not available, unable to proceed"
	exit 1
fi

#
# This script's behavior is modeled closely after the netfs script.  
#
GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)

if [ -z "$GFS2FSTAB" ]; then
	echo "GFS2: no entries found in /etc/fstab"
	exit 6
fi

if [ "$EUID" != "0" ]; then
	echo "Only root can execute $0 script"
	exit 4
fi

is_mounted()
{
	for i in $GFS2MTAB; do
		if [ "$1" = "$i" ]; then
			return 0
		fi
	done
	return 1
}

# See how we were called.
case "$1" in
start)
	mounted=0
	for fs in $GFS2FSTAB; do
		echo -n "Mounting GFS2 filesystem ($fs): "
		if is_mounted $fs; then
			echo -n "already mounted"
			ok
			mounted=$((mounted + 1))
			continue
		fi
		errmsg="$(mount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			continue
		fi
		ok
		mounted=$((mounted + 1))
	done
	[ $mounted -gt 0 ] && touch $LOCK_FILE
;;
stop)
	[ -z "$GFS2MTAB" ] && exit 0
	umount_failed=0
	for fs in $GFS2MTAB; do
		echo -n "Unmounting GFS2 filesystem ($fs): "
		errmsg="$(umount $fs 2>&1)"
		if [ "$?" != 0 ]; then
			echo -e "$errmsg"
			failure
			echo
			umount_failed=1
			continue
		fi
		ok
	done
	modprobe -r gfs2 > /dev/null 2>&1 || true
	[ $umount_failed = 0 ] && rm -f $LOCK_FILE
	;;

status)
	if [ -z "$GFS2MTAB" ] && [ -f $LOCK_FILE ]; then
		echo "GFS2: Found stale lock file $LOCK_FILE"
		exit 2
	fi

	if [ -n "$GFS2FSTAB" ] && [ -z "$GFS2MTAB" ]; then
		echo "GFS2: service is not running"
		exit 3
	fi

	echo "Configured GFS2 mountpoints: "
	for fs in $GFS2FSTAB; do
		echo $fs;
	done

	echo "Active GFS2 mountpoints: "
	for fs in $GFS2MTAB; do
		echo $fs;
	done
;;
condrestart|try-restart)
	$0 status >/dev/null 2>&1 || exit 0
	$0 restart
	exit $?
;;
restart|reload|force-reload)
	$0 stop && $0 start
	exit $?
;;
*)
	echo "Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
	exit 2
;;
esac

exit 0
                                                                                                                                                                                                                           Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/sysstat                   0000755 0000000 0000000 00000002363 11524351065 027224  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: 12345 01 99
# /etc/rc.d/init.d/sysstat
# (C) 2000-2009 Sebastien Godard (sysstat <at> orange.fr)
#
### BEGIN INIT INFO
# Provides:             sysstat
# Required-Start:
# Required-Stop:
# Default-Stop:
# Description: Reset the system activity logs
# Short-Description: reset the system activity logs
### END INIT INFO
#@(#) sysstat-9.0.4 startup script:
#@(#)	 Insert a dummy record in current daily data file.
#@(#)	 This indicates that the counters have restarted from 0.

RETVAL=0
SYSCONFIG_DIR=/etc/sysconfig
SADC_OPTIONS="-S DISK"

# See how we were called.
case "$1" in
  start)
	exitCodeIndicator="$(mktemp /tmp/sysstat-XXXXXX)" || exit 1
	echo -n "Calling the system activity data collector (sadc): "
	  /usr/lib64/sa/sa1 --boot ${SADC_OPTIONS} || rm -f ${exitCodeIndicator} 

	# Try to guess if sadc was successfully launched. The difficulty
	# here is that the exit code is lost when the above command is
	# run via "su foo -c ..."
	if [ -f "${exitCodeIndicator}" ]; then
		rm -f ${exitCodeIndicator}
	else
		RETVAL=2
	fi
	echo
	;;
  stop|status|restart|reload|force-reload|condrestart|try-restart)
	;;
  *)
	echo "Usage: sysstat {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	exit 2
esac
exit ${RETVAL}

                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/saslauthd                 0000755 0000000 0000000 00000004010 11524351065 027471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash
#
# saslauthd      Start/Stop the SASL authentication daemon
#
# chkconfig: - 65 10
# description: Saslauthd is a server process which handles plaintext \
#              authentication requests on behalf of the cyrus-sasl library.
# processname: saslauthd

### BEGIN INIT INFO
# Provides: saslauthd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Short-Description: Start/Stop the SASL authentication daemon
# Description: Saslauthd is a server process which handles plaintext
#              authentication requests on behalf of the cyrus-sasl library.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source our configuration file for these variables.
SOCKETDIR=/var/run/saslauthd
MECH=shadow
FLAGS=
if [ -f /etc/sysconfig/saslauthd ] ; then
	. /etc/sysconfig/saslauthd
fi

RETVAL=0

# Set up some common variables before we launch into what might be
# considered boilerplate by now.
prog=saslauthd
path=/usr/sbin/saslauthd
lockfile=/var/lock/subsys/$prog
pidfile=/var/run/saslauthd/saslauthd.pid

start() {
	[ -x $path ] || exit 5
	echo -n $"Starting $prog: "
	daemon $DAEMONOPTS $path -m $SOCKETDIR -a $MECH $FLAGS
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}	

restart() {
  	stop
	start
}	

reload() {
	restart
}

force_reload() {
	restart
}

rh_status() {
	# run checks to determine if the service is running or use generic status
	status -p $pidfile $prog
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}            

case "$1" in
  start)
	rh_status_q && exit 0
  	start
	;;
  stop)
	rh_status_q || exit 0
  	stop
	;;
  restart)
  	restart
	;;
  reload)
	rh_status_q || exit 7
	reload
	;;
  force-reload)
	force_reload
	;;
  status)
	rh_status
	;;
  condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/messagebus                0000755 0000000 0000000 00000004230 11524351063 027641  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# messagebus:   The D-BUS systemwide message bus
#
# chkconfig: 345 22 85
# description:  This is a daemon which broadcasts notifications of system events \
#               and other messages. See http://www.freedesktop.org/software/dbus/
#
# processname: dbus-daemon
# pidfile: /var/run/messagebus.pid
#
### BEGIN INIT INFO
# Provides: messagebus
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The D-Bus systemwide message bus
# Description: This is a daemon which broadcasts notifications of system 
#  events and other messages. See http://www.freedesktop.org/software/dbus
### END INIT INFO

# Sanity checks.
[ -x /bin/dbus-daemon ] || exit 0

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=dbus-daemon
servicename=messagebus

RETVAL=0

start() {
    echo -n $"Starting system message bus: "
    if [ -x /bin/dbus-uuidgen ] ; then
        /bin/dbus-uuidgen --ensure
    fi

    daemon --check $servicename $processname --system
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
}

stop() {
    echo -n $"Stopping system message bus: "

    ## we don't want to kill all the per-user $processname, we want
    ## to use the pid file *only*; because we use the fake nonexistent 
    ## program name "$servicename" that should be safe-ish
    killproc $servicename -TERM
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/$servicename
        rm -f /var/run/messagebus.pid
    fi
}

# See how we were called.
case "$1" in
    start)
        start
        ;;
    stop)
        stop
        ;;
    status)
        status $servicename
        RETVAL=$?
        ;;
    restart)
        stop
        start
        ;;
    condrestart)
        if [ -f /var/lock/subsys/$servicename ]; then
            stop
            start
        fi
        ;;
    reload)
        echo "Message bus can't reload its configuration, you have to restart it"
        RETVAL=$?
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/autobench                 0000755 0000000 0000000 00000005063 11524351060 027455  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/autobench
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

AUTODIR=${AUTODIR:-/autobench}
. /etc/autobench_instances
. $MASTER_AUTODIR/etc/autobench.conf || . $AUTODIR/scripts/functions
AUTOBENCH_BIN=$AUTODIR/scripts/autobench
test -x $AUTOBENCH_BIN || exit 5
AUTORUN_BIN=$AUTODIR/scripts/autorun
test -x $AUTORUN_BIN || exit 5


case "$1" in
    start)
	if [ `uname -a | grep xen | wc -l` -gt 0 ]; then
	    echo -n "Starting xend"
	    /etc/init.d/xend start
	fi

	echo -n "Starting Autobench daemon"
	## Start daemon with startproc(8). If this fails
	## the echo return value is set appropriate.

	daemon $AUTOBENCH_BIN
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	echo -n "Shutting down AUTOBENCH daemon"
	## Stop daemon with killproc(8) and if this fails
	## set echo the echo return value.
	killproc $AUTORUN_BIN
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
	;;
    try-restart)
	## Stop the service and if this succeeds (i.e. the 
	## service was running before), start it again.
	## Note: try-restart is not (yet) part of LSB (as of 0.7.5)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	## Stop the service and regardless of whether it was
	## running or not, start it again.
	$0 stop
	$0 start
	;;
    force-reload)
	## Signal the daemon to reload its config. Most daemons
	## do this on signal 1 (SIGHUP).
	## If it does not support it, restart.
	echo -n "Reload service Autobench"
	checkproc $AUTORUN_BIN
	;;
    reload)
	## Like force-reload, but if daemon does not support
	## signalling, do nothing (!)

	## Otherwise if it does not support reload:
	rc_status -v
	;;
    status)
	echo -n "Checking for Autobench: "
	## Check status with checkproc(8), if process is running
	## checkproc will return with exit status 0.

	# Status has a slightly different for the status command:
	# 0 - service running
	# 1 - service dead, but /var/run/  pid  file exists
	# 2 - service dead, but /var/lock/ lock file exists
	# 3 - service not running

	# NOTE: checkproc returns LSB compliant status values.
	checkproc $AUTORUN_BIN
	rc_status -v
	;;
    probe)
	## Optional: Probe for the necessity of a reload,
	## give out the argument which is required for a reload.

	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/atd                       0000755 0000000 0000000 00000004112 11524351060 026247  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# atd Starts/stop the "at" daemon
#
# chkconfig:   345 95 5
# description: Runs commands scheduled by the "at" command at the time \
#    specified when "at" was run, and runs batch commands when the load \
#    average is low enough.

### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# Description:      Runs commands scheduled by the "at" command at the time 
#    specified when "at" was run, and runs batch commands when the load 
#    average is low enough.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

exec=/usr/sbin/atd
prog="atd"
config=/etc/sysconfig/atd

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

lockfile=/var/lock/subsys/$prog

start() {
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $exec $OPTS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $exec`" ] ; then
        killproc $exec
		RETVAL=3
    else
        failure $"Stopping $prog"
    fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
    restart
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/mcelogd                   0000755 0000000 0000000 00000003535 11524351062 027123  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# 
# Startup script for mcelog
# 
# This should be customized for distribution standards
# (using rc_status etc.)
# The paths are hardcoded and are not automatically adjusted
# for different prefix
#
### BEGIN INIT INFO
# Provides:		mcelog 
# Default-Start:	3 5
# Default-Stop:		0 1 2 6
# Short-Description:	mcelog hardware error logging
# Description:          Start the mcelog hardware error logging. 
#                       This logs and handles CPU hardware errors on x86 systems.
### END INIT INFO
# pull in sysconfig settings
[ -f /etc/sysconfig/mcelogd ] && . /etc/sysconfig/mcelogd

# Source function library.
. /etc/init.d/functions

# private settings
MCELOG=${MCELOG:-/usr/sbin/mcelog}
TRIGGER=/sys/devices/system/machinecheck/machinecheck0/trigger
[ ! -x $MCELOG ] && ( echo "mcelog not found" ; exit 1 )
[ ! -r /dev/mcelog ] && ( echo "/dev/mcelog not active" ; exit 0 )

case "$MCELOG_MODE" in
daemon)
	;;
trigger)
	;;
cron)
	echo "mcelog not started"
	exit 0
	;;
*)
	echo "Unknown mcelog mode $MCELOG_MODE. Valid daemon/trigger/cron"
	exit 1
esac

case "$1" in
start)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Starting mcelog daemon"
		daemon $MCELOG --daemon $MCELOG_OPTIONS
	elif [ -f "$TRIGGER" ] ; then
		echo $MCELOG > "$TRIGGER"
	else
		echo No machine check capability
	fi
	;;
stop)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Stopping mcelog"
		killproc $MCELOG -TERM
	elif [ "$MCELOG_MODE" = "trigger" -a -f "$TRIGGER" ]; then 
		echo "" > "$TRIGGER"
	else
		echo mcelog not running
	fi
	;;
try-restart)
	$0 status > /dev/null && $0 restart
	;;
restart)
	$0 stop
	$0 start
	;;
reload)
	$0 try-restart
	;;
force-reload)
	$0 try-restart
	;;
status)
	if [ "$MCELOG_MODE" = "daemon" ] ; then
		echo "Checking for mcelog"
		status $MCELOG
	fi
	;;
*)
	echo "Usage: $0 {start|stop|try-restart|restart|status|force-reload|reload}"
	exit 1
esac


                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/auditd                    0000755 0000000 0000000 00000006462 11524351060 026763  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# auditd        This starts and stops auditd
#
# chkconfig: 2345 11 88
# description: This starts the Linux Auditing System Daemon, \
#              which collects security related events in a dedicated \
#              audit log. If this daemon is turned off, audit events \
#              will be sent to syslog.
#
# processname: /sbin/auditd
# config: /etc/sysconfig/auditd
# config: /etc/audit/auditd.conf
# pidfile: /var/run/auditd.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#


PATH=/sbin:/bin:/usr/bin:/usr/sbin
prog="auditd"

# Source function library.
. /etc/init.d/functions

# Allow anyone to run status
if [ "$1" = "status" ] ; then
	status $prog
	RETVAL=$?
	exit $RETVAL
fi

# Check that we are root ... so non-root users stop here
test $EUID = 0  ||  exit 4

# Check config
test -f /etc/sysconfig/auditd && . /etc/sysconfig/auditd

RETVAL=0

start(){
	test -x /sbin/auditd  || exit 5
	test -f /etc/audit/auditd.conf  || exit 6

	echo -n $"Starting $prog: "

# Localization for auditd is controlled in /etc/synconfig/auditd
	if [ -z "$AUDITD_LANG" -o "$AUDITD_LANG" = "none" -o "$AUDITD_LANG" = "NONE" ]; then
		unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	else
		LANG="$AUDITD_LANG"
		LC_TIME="$AUDITD_LANG"
		LC_ALL="$AUDITD_LANG"
		LC_MESSAGES="$AUDITD_LANG"
		LC_NUMERIC="$AUDITD_LANG"
		LC_MONETARY="$AUDITD_LANG"
		LC_COLLATE="$AUDITD_LANG"
		export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
	fi
	unset HOME MAIL USER USERNAME
	daemon $prog "$EXTRAOPTIONS"
	RETVAL=$?
	echo
	if test $RETVAL = 0 ; then
		touch /var/lock/subsys/auditd
		# Load the default rules
		test -f /etc/audit/audit.rules && /sbin/auditctl -R /etc/audit/audit.rules >/dev/null
	fi
	return $RETVAL
}

stop(){
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/auditd
	# Remove watches so shutdown works cleanly
	if test x"$AUDITD_CLEAN_STOP" != "x" ; then
		if test "`echo $AUDITD_CLEAN_STOP | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -D >/dev/null
		fi
	fi
	if test x"$AUDITD_STOP_DISABLE" != "x" ; then
		if test "`echo $AUDITD_STOP_DISABLE | tr 'NO' 'no'`" != "no"
		then
			/sbin/auditctl -e 0 >/dev/null
		fi
	fi
	return $RETVAL
}

reload(){
	test -f /etc/audit/auditd.conf  || exit 6
	echo -n $"Reloading configuration: "	
	killproc $prog -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

rotate(){
	echo -n $"Rotating logs: "	
	killproc $prog -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

resume(){
	echo -n $"Resuming logging: "	
	killproc $prog -USR2
	RETVAL=$?
	echo
	return $RETVAL
}

restart(){
	test -f /etc/audit/auditd.conf  || exit 6
	stop
	start
}

condrestart(){
	[ -e /var/lock/subsys/auditd ] && restart
	return 0
}


# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    restart)
	restart
	;;
    reload|force-reload)
	reload
	;;
    rotate)
	rotate
	;;
    resume)
	resume
	;;
    condrestart|try-restart)
	condrestart
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|rotate|resume}"
	RETVAL=3
esac

exit $RETVAL

                                                                                                                                                                                                              Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/certmonger                0000755 0000000 0000000 00000004054 11524351060 027651  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# certmonger monitors certificates for impending expiration and can
# attempt to re-enroll when they expire
#
# chkconfig: - 99 01 
# description: Provides certificate monitoring and PKI enrollment.
# processname: /usr/sbin/certmonger
# pidfile: /var/run/certmonger.pid
#

### BEGIN INIT INFO
# Provides: certmonger
# Required-Start: messagebus
# Required-Stop: messagebus
# Should-Start: $network
# Should-Stop: $network
# Short-Description: Certificate monitor and PKI enrollment client
# Description: Provides certificate monitoring and PKI enrollment.
### END INIT INFO

program=/usr/sbin/certmonger
prog=${program##*/}
pidfile=/var/run/certmonger.pid
lockfile=/var/lock/subsys/certmonger

if [ -f /etc/rc.d/init.d/functions ]; then
        . /etc/rc.d/init.d/functions
fi
if [ -f /etc/sysconfig/certmonger ]; then
        . /etc/sysconfig/certmonger
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    [ -x $program ] || exit 5
    daemon $program -S -p ${pidfile} $OPTS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $lockfile
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f $lockfile
    fi
}

mystatusq() {
    status $program > /dev/null 2> /dev/null
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        if mystatusq ; then
            touch $lockfile
            exit 0
        fi
        $1
        ;;
    stop)
        if ! test -f $pidfile ; then
            mystatusq || exit 0
        fi
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f $lockfile ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/irqbalance                0000755 0000000 0000000 00000003521 11524351062 027605  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: irqbalance 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop irqbalance daemon 
# Description:  The irqbalance daemon will distribute interrupts across
#		the cpus on a multiprocessor system with the purpose of
#		spreading the load
### END INIT INFO
# chkconfig: 2345 13 87


# This is an interactive program, we need the current locale

# Source function library.
. /etc/init.d/functions

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0


prog="irqbalance"

[ -f /usr/sbin/irqbalance ] || exit 0

# fetch configuration if it exists
# ONESHOT=yes says to wait for a minute, then look at the interrupt
# load and balance it once; after balancing exit and do not change
# it again.
# The default is to keep rebalancing once every 10 seconds.
ONESHOT=
[ -f /etc/sysconfig/irqbalance ] && . /etc/sysconfig/irqbalance
case "$ONESHOT" in
	y*|Y*|on) ONESHOT=--oneshot ;;
	*) ONESHOT= ;;
esac

RETVAL=0

start() {
        if [ -n "$ONESHOT" -a -f /var/run/irqbalance.pid ]; then
                exit 0
        fi
        echo -n $"Starting $prog: "
	if [ -n "$IRQ_AFFINITY_MASK" ];
	then
		export IRQBALANCE_BANNED_CPUS=$IRQ_AFFINITY_MASK
	fi 	
        daemon irqbalance $ONESHOT 
        RETVAL=$?
        echo
        return $RETVAL
}


stop() {
        echo -n $"Stopping $prog: "
        killproc irqbalance
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/irqbalance
	return $RETVAL
}

restart() {
	stop
	start
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status irqbalance
	;;
  restart|reload|force-reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/irqbalance ] && restart || :
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart|force-reload}"
	exit 1
	;;
esac

exit $?
                                                                                                                                                                               Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/acpid                     0000755 0000000 0000000 00000003275 11524351060 026570  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#	/etc/rc.d/init.d/acpid
#
# Starts the acpi daemon
#
# chkconfig: 345 26 74
# description: Listen and dispatch ACPI events from the kernel
# processname: acpid

### BEGIN INIT INFO
# Provides: acpid
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop acpid
# Description: Listen and dispatch ACPI events from the kernel
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4
	
	# Check if acpid is executable
	test -x /usr/sbin/acpid || exit 5
}

start() {

	check
	
	# Check for kernel support
	[ -f /proc/acpi/event ] || exit 1

	# Check if it is already running
	if [ ! -f /var/lock/subsys/acpid ]; then
		echo -n $"Starting acpi daemon: "	
	    daemon /usr/sbin/acpid
	    RETVAL=$?
	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid
	    echo
	fi
	return $RETVAL
}

stop() {

	check
	
	echo -n $"Stopping acpi daemon: "
	killproc /usr/sbin/acpid
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/acpid
	echo
    return $RETVAL
}


restart() {
	stop
	start
}	

reload() {

	check
	
	trap "" SIGHUP
	action $"Reloading acpi daemon:" killall -HUP acpid
	RETVAL=$?
	return $RETVAL
}	

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f /var/lock/subsys/acpid ]; then
	    restart
	fi
	;;
status)
	status acpid
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/nscd                      0000755 0000000 0000000 00000004723 11524351063 026441  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# nscd:		Starts the Name Switch Cache Daemon
#
# chkconfig: - 30 74
# description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
# processname: /usr/sbin/nscd
# config: /etc/nscd.conf
# config: /etc/sysconfig/nscd
#
### BEGIN INIT INFO
# Provides: nscd
# Required-Start: $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the Name Switch Cache Daemon
# Description:  This is a daemon which handles passwd and group lookups \
#		for running programs and cache the results for the next \
#		query.  You should start this daemon if you use \
#		slow naming services like NIS, NIS+, LDAP, or hesiod.
### END INIT INFO

# Sanity checks.
[ -f /etc/nscd.conf ] || exit 0
[ -x /usr/sbin/nscd ] || exit 0

# Source function library.
. /etc/init.d/functions

# Source an auxiliary options file if we have one, and pick up NSCD_OPTIONS.
[ -r /etc/sysconfig/nscd ] && . /etc/sysconfig/nscd

RETVAL=0
prog=nscd

start () {
    [ -d /var/run/nscd ] || mkdir /var/run/nscd
    [ -d /var/db/nscd ] || mkdir /var/db/nscd
    echo -n $"Starting $prog: "
    daemon /usr/sbin/nscd $NSCD_OPTIONS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nscd
    return $RETVAL
}

stop () {
    echo -n $"Stopping $prog: "
    /usr/sbin/nscd -K
    RETVAL=$?
    if [ $RETVAL -eq 0 ]; then
       	rm -f /var/lock/subsys/nscd
	# nscd won't be able to remove these if it is running as
	# a non-privileged user
	rm -f /var/run/nscd/nscd.pid
	rm -f /var/run/nscd/socket
       	success $"$prog shutdown"
    else
       	failure $"$prog shutdown"
    fi
    echo
    return $RETVAL
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
	[ -e /var/lock/subsys/nscd ] || start
	RETVAL=$?
	;;
    stop)
	[ ! -e /var/lock/subsys/nscd ] || stop
	RETVAL=$?
	;;
    status)
	status nscd
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    try-restart | condrestart)
	[ ! -e /var/lock/subsys/nscd ] || restart
	RETVAL=$?
	;;
    force-reload | reload)
    	echo -n $"Reloading $prog: "
    	RETVAL=0
    	/usr/sbin/nscd -i passwd || RETVAL=$?
    	/usr/sbin/nscd -i group || RETVAL=$?
    	/usr/sbin/nscd -i hosts || RETVAL=$?
    	/usr/sbin/nscd -i services || RETVAL=$?
    	echo
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
	RETVAL=1
	;;
esac
exit $RETVAL
                                             Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/rpcidmapd                 0000755 0000000 0000000 00000005222 11524351064 027451  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcidmapd     Start up and shut down RPC name to UID/GID mapper
#
# chkconfig: 345 18 85
# description: Starts user-level daemon for NFSv4 that maps user \
#              names to UID and GID numbers.

### BEGIN INIT INFO
# Provides: rpcidmapd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the NFSv4 id mapping daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon maps user names and groups to UID \
#          and GID numbers on NFSv4 mounts.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.idmapd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	
	[ ! -x /usr/sbin/rpc.idmapd ] && exit 5

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	[ "$1" = "condstart" -a -n "`pidofproc $prog`" ] && {
		killproc $prog "-SIGHUP" > /dev/null
		exit 0
	}
	[ "$1" = "start" ] && {
		if status $prog > /dev/null ; then
			exit 0
		fi
	}
	rm -f $LOCKFILE

	echo -n $"Starting RPC idmapd: "

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}

	# Start daemon.
	daemon $prog ${RPCIDMAPDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC idmapd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.idmapd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/nfs                       0000755 0000000 0000000 00000013536 11524351063 026302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfs           This shell script takes care of starting and stopping
#               the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
#              This service provides NFS server functionality, which is \
#              configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs

### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $portmap
# Required-Stop: $local_fs $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
#              This service provides NFS server functionality, \
#              which is configured via the /etc/exports file.
### END INIT INFO


# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Remote quota server
[ -z "$RQUOTAD" ] && RQUOTAD=`type -path rpc.rquotad`

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

# See how we were called.
case "$1" in
  start)

	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6

	[ -x /usr/sbin/rpc.nfsd ] || exit 5
	[ -x /usr/sbin/rpc.mountd ] || exit 5
	[ -x /usr/sbin/exportfs ] || exit 5

	# Make sure the rpc.mountd is not already running.
	if status rpc.mountd > /dev/null ; then
		exit 0
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Don't fail if /etc/exports doesn't exist; create a bare-bones 
	# version and continue.
	[ -r /etc/exports ] || \
    	{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
    	{ echo "/etc/exports does not exist" ; exit 0 ; }

	[ -z "$MOUNTD_NFS_V2" ] && MOUNTD_NFS_V2=default
	[ -z "$MOUNTD_NFS_V3" ] && MOUNTD_NFS_V3=default

	# Number of servers to be started by default
	[ -z "$RPCNFSDCOUNT" ] && RPCNFSDCOUNT=8

	# Start daemons.
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd start

	# Set the ports lockd should listen on
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	# Load the nfsd module so /proc/fs/nfsd will exist
	[ "$NFSD_MODULE" != "noload" ] && {
		[ -x /sbin/modprobe ] && /sbin/modprobe nfsd
	}
	action $"Starting NFS services: " /usr/sbin/exportfs -r

	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
	    echo -n $"Starting NFS quotas: "
		[ -n "$RQUOTAD_PORT" ] \
			&& RPCRQUOTADOPTS="$RPCRQUOTADOPTS -p $RQUOTAD_PORT"
	    daemon rpc.rquotad $RPCRQUOTADOPTS
		RETVAL=$?
	    echo
	fi

	echo -n $"Starting NFS daemon: "
	daemon rpc.nfsd $RPCNFSDARGS $RPCNFSDCOUNT
	RETVAL=$?
	echo
	[ $RETVAL -ne 0 ] && exit $RETVAL

	[ -n "$MOUNTD_PORT" ] \
	&& RPCMOUNTDOPTS="$RPCMOUNTDOPTS -p $MOUNTD_PORT"

	case $MOUNTD_NFS_V1 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 1" ;;
	esac

	case $MOUNTD_NFS_V2 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 2" ;;
	esac

	case $MOUNTD_NFS_V3 in
	no|NO)
	    RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" ;;
	esac

	echo -n $"Starting NFS mountd: "
	daemon rpc.mountd $RPCMOUNTDOPTS
	RETVAL=$?
	echo
	touch /var/lock/subsys/rpc.mountd
	touch /var/lock/subsys/nfsd

	# Let rpc.idmapd know that rpc.mountd just started
	[ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd condstart

	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	echo -n $"Shutting down NFS mountd: "
	killproc rpc.mountd
	RETVAL=$?
	echo
	echo -n $"Shutting down NFS daemon: "
	killproc nfsd -2
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	echo
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		echo -n $"Shutting down NFS quotas: "
		killproc rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
		echo
	fi
	# Reset the lockd ports if they were set
	if [ -n "$LOCKD_TCPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_tcpport=0 >/dev/null 2>&1
	fi
	if [ -n "$LOCKD_UDPPORT" ]; then
	    /sbin/sysctl -w fs.nfs.nlm_udpport=0 >/dev/null 2>&1
	fi
	# Do it the last so that clients can still access the server
	# when the server is running.
	cnt=`/usr/sbin/exportfs -v | /usr/bin/wc -l`	
	if [ $cnt -gt 0 ]; then 
		action $"Shutting down NFS services: " /usr/sbin/exportfs -au
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd stop
	rm -f /var/lock/subsys/nfsd
	rm -f /var/lock/subsys/rpc.mountd
	;;
  status)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd status
	status rpc.mountd
	RETVAL=$?
	status nfsd
	rval=$?
	[ $RETVAL -eq 0 ] && RETVAL=$rval
	if [ -n "$RQUOTAD" -a "$RQUOTAD" != "no" ]; then
		status rpc.rquotad
		rval=$?
		[ $RETVAL -eq 0 ] && RETVAL=$rval
	fi
	;;
  restart)
	$0 stop
	$0 start
	;;
  reload | force-reload)
	/usr/sbin/exportfs -r
	touch /var/lock/subsys/nfsd
	;;
  probe)
	if [ ! -f /var/lock/subsys/nfsd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.mountd >/dev/null 2>&1; MOUNTD="$?"
	/sbin/pidof nfsd >/dev/null 2>&1; NFSD="$?"
	if [ $MOUNTD = 1 -o $NFSD = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	if [ /etc/exports -nt /var/lock/subsys/nfsd ] ; then
	  echo $"reload"; exit 0
	fi
	;;
  condrestart | try-restart)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condrestart
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		$0 start
		RETVAL=$?
	}
	;;
  condstop)
	[ -x /usr/sbin/rpc.svcgssd ] && /sbin/service rpcsvcgssd condstop
  	[ -f /var/lock/subsys/nfsd ] && {
		$0 stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: nfs {start|stop|status|restart|reload|force-reload|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                  Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/sssd                      0000755 0000000 0000000 00000004731 11524351065 026467  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
#
# chkconfig: - 30 80
# description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
#
### BEGIN INIT INFO
# Provides: sssd
# Required-Start: $remote_fs $time
# Should-Start: $syslog
# Should-Stop: $null
# Required-Stop: $null
# Default-Stop: 0 1 6
# Short-Description: System Security Services Daemon
# Description: Provides a set of daemons to manage access to remote directories
#              and authentication mechanisms. It provides an NSS and PAM
#              interface toward the system and a pluggable backend system to
#              connect to multiple different account sources. It is also the
#              basis to provide client auditing and policy services for projects
#              like FreeIPA.
### END INIT INFO

RETVAL=0
prog="sssd"

# Source function library.
. /etc/init.d/functions

SSSD=/usr/sbin/sssd

LOCK_FILE=/var/lock/subsys/sssd
PID_FILE=/var/run/sssd.pid

start() {
    [ -x $SSSD ] || exit 5
    echo -n $"Starting $prog: "
    daemon $SSSD -f -D && success || failure
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && touch $LOCK_FILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p $PID_FILE $SSSD -TERM
    RETVAL=$?
    echo
    [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
    return $RETVAL
}

reload() {
    echo -n $"Reloading $prog: "
    killproc $SSSD -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart() {
        stop
        start
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;

    stop)
        rh_status_q || exit 0
        $1
        ;;

    restart)
        $1
        ;;

    reload)
        rh_status_q || exit 7
        $1
        ;;

    force-reload)
        force_reload
        ;;

    status)
        rh_status
        ;;

    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
    exit 2
esac
exit $?

                                       Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/crond                     0000755 0000000 0000000 00000005445 11524351061 026617  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# crond          Start/Stop the cron clock daemon.
#
# chkconfig: 2345 90 60
# description: cron is a standard UNIX program that runs user-specified \
#              programs at periodic scheduled times. vixie cron adds a \
#              number of features to the basic UNIX cron, including better \
#              security and more powerful configuration options.

### BEGIN INIT INFO
# Provides: crond crontab
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start:  2345
# Default-Stop: 90
# Short-Description: run cron daemon
# Description: cron is a standard UNIX program that runs user-specified 
#              programs at periodic scheduled times. vixie cron adds a 
#              number of features to the basic UNIX cron, including better 
#              security and more powerful configuration options.
### END INIT INFO

[ -f /etc/sysconfig/crond ] || { 
    [ "$1" = "status" ] && exit 4 || exit 6 
}

RETVAL=0
prog="crond"
exec=/usr/sbin/crond
lockfile=/var/lock/subsys/crond
config=/etc/sysconfig/crond

# Source function library.
. /etc/rc.d/init.d/functions

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    [ -x $exec ] || exit 5
    [ -f $config ] || exit 6
    echo -n $"Starting $prog: "
    daemon $prog $CRONDARGS && success || failure
    retval=$?
    echo
    [ $retval -eq 0 ] && touch $lockfile
    return $retval
}

stop() {
    if [ $UID -ne 0 ] ; then
        echo "User has insufficient privilege."
        exit 4
    fi
    echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec
		RETVAL=3
	else
		failure $"Stopping $prog"
	fi
    retval=$?
    echo
    [ $retval -eq 0 ] && rm -f $lockfile
    return $retval
}

restart() {
    stop
    start
}

reload() {
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $exec`" ]; then
		killproc $exec -HUP
	else
		failure $"Reloading $prog"
	fi
	retval=$?
	echo
}

force_reload() {
	# new configuration takes effect after restart
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status -p /var/run/crond.pid $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}


case "$1" in
    start)
        rh_status_q && exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 2
esac
exit $?

                                                                                                                                                                                                                           Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/ip6tables                 0000755 0000000 0000000 00000020716 11524351061 027401  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ip6tables	Start ip6tables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves ip6tables firewall
#
# config: /etc/sysconfig/ip6tables
# config: /etc/sysconfig/ip6tables-config
#
### BEGIN INIT INFO
# Provides: ip6tables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop ip6tables firewall
# Description: Start, stop and save ip6tables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IP6TABLES=ip6tables
IP6TABLES_DATA=/etc/sysconfig/$IP6TABLES
IP6TABLES_CONFIG=/etc/sysconfig/${IP6TABLES}-config
IPV=${IP6TABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IP6TABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IP6TABLES=/var/lock/subsys/$IP6TABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IP6TABLES ]; then
    echo -n $"${IP6TABLES}: /sbin/$IP6TABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IP6TABLES_MODULES=""
IP6TABLES_MODULES_UNLOAD="yes"
IP6TABLES_SAVE_ON_STOP="no"
IP6TABLES_SAVE_ON_RESTART="no"
IP6TABLES_SAVE_COUNTER="no"
IP6TABLES_STATUS_NUMERIC="yes"
IP6TABLES_STATUS_VERBOSE="no"
IP6TABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IP6TABLES_CONFIG" ] && . "$IP6TABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IP6TABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IP6TABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IP6TABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IP6TABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IP6TABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IP6TABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IP6TABLES -t raw -P PREROUTING $policy \
		    && $IP6TABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IP6TABLES -t filter -P INPUT $policy \
		    && $IP6TABLES -t filter -P OUTPUT $policy \
		    && $IP6TABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IP6TABLES -t nat -P PREROUTING $policy \
		    && $IP6TABLES -t nat -P POSTROUTING $policy \
		    && $IP6TABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IP6TABLES -t mangle -P PREROUTING $policy \
		    && $IP6TABLES -t mangle -P POSTROUTING $policy \
		    && $IP6TABLES -t mangle -P INPUT $policy \
		    && $IP6TABLES -t mangle -P OUTPUT $policy \
		    && $IP6TABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IP6TABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IP6TABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IP6TABLES}: Applying firewall rules: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IP6TABLES-restore $OPT $IP6TABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IP6TABLES_MODULES" ]; then
	echo -n $"${IP6TABLES}: Loading additional modules: "
	ret=0
	for mod in $IP6TABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IP6TABLES
    return $ret
}

stop() {
    # Do not stop if ip6tables module is not loaded.
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IP6TABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IP6TABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IP6TABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IP6TABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IP6TABLES}: Saving firewall rules to $IP6TABLES_DATA: "

    OPT=
    [ "x$IP6TABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IP6TABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IP6TABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IP6TABLES_DATA ]; then
	    cp -f $IP6TABLES_DATA $IP6TABLES_DATA.save \
		&& chmod 600 $IP6TABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IP6TABLES_DATA \
		&& chmod 600 $IP6TABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IP6TABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and ip6tables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IP6TABLES_NAMES" ]; then
	echo $"${IP6TABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IP6TABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IP6TABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IP6TABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IP6TABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IP6TABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IP6TABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IP6TABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IP6TABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IP6TABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                  Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/autofs                    0000755 0000000 0000000 00000007234 11524351060 027010  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rc file for automount using a Sun-style "master map".
#
# chkconfig: 345 28 72
# processname: /usr/sbin/automount
# config: /etc/auto.master
# description: Automounts filesystems on demand
#
### BEGIN INIT INFO
# Provides: $autofs
# Required-Start: $network $ypbind
# Required-Stop: $network $ypbind
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Automounts filesystems on demand
# Description: Automounts filesystems on demand
### END INIT INFO
#
# Location of the automount daemon and the init directory
#
DAEMON=/usr/sbin/automount
prog=`basename $DAEMON`
MODULE="autofs4"
DEVICE="autofs"
initdir=/etc/init.d
confdir=/etc/sysconfig

test -e $DAEMON || exit 0

if [ -r $initdir/functions ]; then
	. $initdir/functions
fi

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH

#
# load customized configuation settings
#
if [ -r $confdir/autofs ]; then
	. $confdir/autofs
fi

function start() {
	# Make sure autofs4 module is loaded
	if ! grep -q autofs /proc/filesystems
	then
		echo -n "Loading $MODULE: "
		# Try load the autofs4 module fail if we can't
		modprobe $MODULE >/dev/null 2>&1
		RETVAL=$?
		if [ $RETVAL -eq 1 ]
		then
			failure "Load $MODULE"
			echo
			return $RETVAL
		else
			success "Load $MODULE"
			echo
		fi
	elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
	then
		RETVAL=1
		failure "Load $MODULE"
		echo
		return $RETVAL
	fi

	# Check misc device
	if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
		sleep 1
		if [ -e "/proc/misc" ]; then
			MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
			if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
				mknod -m 0600 /dev/$DEVICE c 10 $MINOR
			fi
		fi
		if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
			/sbin/restorecon /dev/$DEVICE
		fi
	else
		if [ -c /dev/$DEVICE ]; then
			rm /dev/$DEVICE
		fi
	fi

	echo -n $"Starting $prog: "
	$prog $OPTIONS --pid-file /var/run/autofs.pid
	RETVAL=$?
	if [ $RETVAL -eq 0 ] ; then
		success "$prog startup"
	else
		failure "$prog startup"
	fi
	if [ $RETVAL -eq 0 ]; then
		touch /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	echo
	return $RETVAL
}

function stop() {
	echo -n $"Stopping $prog: "
	count=0
	while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
		killproc $prog -TERM >& /dev/null
		RETVAL=$?
		[ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
		count=`expr $count + 1`
	done
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/autofs
	else
		RETVAL=1
	fi
	if [ -n "`pidof $prog`" ] ; then
		failure "$prog shutdown"
	else
		success "$prog shutdown"
	fi
	echo
	return $RETVAL
}

function restart() {
	status > /dev/null 2>&1
	if [ $? -eq 0 ]; then
		stop
	fi
	start
}

function reload() {
	if [ ! -f /var/lock/subsys/autofs ]; then
		echo $"$prog not running"
		RETVAL=1
		return $RETVAL
	fi
	pid=`pidof $prog`
	if [ -z $pid ]; then
		echo $"$prog not running"
		RETVAL=1
	else
		kill -HUP $pid 2> /dev/null
		echo $"Reloading maps"
		RETVAL=0
	fi
	return $RETVAL
}

RETVAL=0

# Only the root user may change the service status
if [ `id -u` -ne 0 ]; then
	echo "insufficient privilege to change service status"
	exit 4
fi

case "$1" in
	start)
		start
		;;
	forcestart)
		OPTIONS="$OPTIONS --force"
		start
		;;
	stop)
		stop
		;;
	status)
		status -p /var/run/autofs.pid -l autofs $prog
		;;
	restart)
		restart
		;;
	forcerestart)
		OPTIONS="$OPTIONS --force"
		restart
		;;
	reload)
		reload
		;;
	condrestart)
		if [ -f /var/lock/subsys/autofs ]; then
			restart
		fi
		;;
	usage)
		echo $"Usage: $0 {start|forcestart|stop|status|restart|forcerestart|reload|condrestart}"
		exit 0;
		;;
	try-restart|force-reload)
		echo "$1 service action not supported"
		exit 3
		;;
	*)
		echo "unknown, invalid or excess argument(s)"
		exit 2
		;;
esac

exit $?

                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/sshd                      0000755 0000000 0000000 00000010671 11524351065 026454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# sshd		Start up the OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: SSH is a protocol for secure remote shell access. \
#              This service starts up the OpenSSH server daemon.
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

### BEGIN INIT INFO
# Provides: sshd
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $syslog
# Should-Start: $syslog
# Should-Stop: $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the OpenSSH server daemon
# Description:       SSH is a protocol for secure remote shell access.
#		     This service starts up the OpenSSH server daemon.
### END INIT INFO

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd

RETVAL=0
prog="sshd"
lockfile=/var/lock/subsys/$prog

# Some functions to make the below more readable
KEYGEN=/usr/bin/ssh-keygen
SSHD=/usr/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid

runlevel=$(set -- $(runlevel); eval "echo \$$#" )

do_rsa1_keygen() {
	if [ ! -s $RSA1_KEY ]; then
		echo -n $"Generating SSH1 RSA host key: "
		rm -f $RSA1_KEY
		if test ! -f $RSA1_KEY && $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA1_KEY
			chmod 644 $RSA1_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA1_KEY.pub
			fi
			success $"RSA1 key generation"
			echo
		else
			failure $"RSA1 key generation"
			echo
			exit 1
		fi
	fi
}

do_rsa_keygen() {
	if [ ! -s $RSA_KEY ]; then
		echo -n $"Generating SSH2 RSA host key: "
		rm -f $RSA_KEY
		if test ! -f $RSA_KEY && $KEYGEN -q -t rsa -f $RSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $RSA_KEY
			chmod 644 $RSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $RSA_KEY.pub
			fi
			success $"RSA key generation"
			echo
		else
			failure $"RSA key generation"
			echo
			exit 1
		fi
	fi
}

do_dsa_keygen() {
	if [ ! -s $DSA_KEY ]; then
		echo -n $"Generating SSH2 DSA host key: "
		rm -f $DSA_KEY
		if test ! -f $DSA_KEY && $KEYGEN -q -t dsa -f $DSA_KEY -C '' -N '' >&/dev/null; then
			chmod 600 $DSA_KEY
			chmod 644 $DSA_KEY.pub
			if [ -x /sbin/restorecon ]; then
			    /sbin/restorecon $DSA_KEY.pub
			fi
			success $"DSA key generation"
			echo
		else
			failure $"DSA key generation"
			echo
			exit 1
		fi
	fi
}

do_restart_sanity_check()
{
	$SSHD -t
	RETVAL=$?
	if [ $RETVAL -ne  0 ]; then
		failure $"Configuration file or keys are invalid"
		echo
	fi
}

start()
{
	[ -x $SSHD ] || exit 5
	[ -f /etc/ssh/sshd_config ] || exit 6
	# Create keys if necessary
	if [ "x${AUTOCREATE_SERVER_KEYS}" != xNO ]; then
		do_rsa1_keygen
		do_rsa_keygen
		do_dsa_keygen
	fi

	echo -n $"Starting $prog: "
	$SSHD $OPTIONS && success || failure
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
	echo
	return $RETVAL
}

stop()
{
	echo -n $"Stopping $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD
	else
	    failure $"Stopping $prog"
	fi
	RETVAL=$?
	# if we are in halt or reboot runlevel kill all running sessions
	# so the TCP connections are closed cleanly
	if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
	    trap '' TERM
	    killall $prog 2>/dev/null
	    trap TERM
	fi
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	echo
}

reload()
{
	echo -n $"Reloading $prog: "
	if [ -n "`pidfileofproc $SSHD`" ] ; then
	    killproc $SSHD -HUP
	else
	    failure $"Reloading $prog"
	fi
	RETVAL=$?
	echo
}

restart() {
	stop
	start
}

force_reload() {
	restart
}

rh_status() {
	status -p $PID_FILE openssh-daemon
}

rh_status_q() {
	rh_status >/dev/null 2>&1
}

case "$1" in
	start)
		rh_status_q && exit 0
		start
		;;
	stop)
		if ! rh_status_q; then
			rm -f $lockfile
			exit 0
		fi
		stop
		;;
	restart)
		restart
		;;
	reload)
		rh_status_q || exit 7
		reload
		;;
	force-reload)
		force_reload
		;;
	condrestart|try-restart)
		rh_status_q || exit 0
		if [ -f $lockfile ] ; then
			do_restart_sanity_check
			if [ $RETVAL -eq 0 ] ; then
				stop
				# avoid race
				sleep 3
				start
			else
				RETVAL=6
			fi
		fi
		;;
	status)
		rh_status
		RETVAL=$?
		if [ $RETVAL -eq 3 -a -f $lockfile ] ; then
			RETVAL=2
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
		RETVAL=2
esac
exit $RETVAL
                                                                       Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/ksm                       0000755 0000000 0000000 00000004236 11524351062 026302  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksm          Kernel Samepage Merging
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 84 16
# description: The KSM init script starts and stops the ksm kernel thread.
# config: /etc/sysconfig/ksm
#
### BEGIN INIT INFO
# Provides: ksm
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: start and stop ksm
# Description: The KSM init script starts and stops the ksm kernel thread.
### END INIT INFO

. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/ksm ]; then
    . /etc/sysconfig/ksm
fi

prog=ksm
RETVAL=0

# unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
default_max_kernel_pages () {
    local total pagesize
    total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
    pagesize=`getconf PAGESIZE`
    echo $[total * 1024 / pagesize / 2]
}

start() {
    echo -n $"Starting $prog: "
    if [ -f /sys/kernel/mm/ksm/max_kernel_pages ]; then
        KSM_MAX_KERNEL_PAGES=${KSM_MAX_KERNEL_PAGES:-`default_max_kernel_pages`}
        echo $KSM_MAX_KERNEL_PAGES > /sys/kernel/mm/ksm/max_kernel_pages
    fi    
    echo 1 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog startup" || failure $"$prog startup"
    echo
}

stop() {
    echo -n $"Stopping $prog: "
    echo 0 > /sys/kernel/mm/ksm/run
    RETVAL=$?
    [ $RETVAL = 0 ] && success $"$prog shutdown" || failure $"$prog shutdown"
    echo
}

status() {
    if [ ! -f /sys/kernel/mm/ksm/run ] ; then
        echo $"$prog not supported"
        RETVAL=1
    else if [ "$(cat /sys/kernel/mm/ksm/run 2>/dev/null)" != "1" ]; then
        echo $"$prog is not running"
        RETVAL=1
    else
        echo $"$prog is running"
        RETVAL=0
    fi; fi
}

restart() {
    stop
    start
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status
	;;
  restart)
	restart
	;;
  condrestart|try-restart)
	status >/dev/null 2>&1 || exit 0
	restart
        ;;
  force-reload)
	restart
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/libvirt-guests            0000755 0000000 0000000 00000017172 11524351062 030476  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header
#
### BEGIN INIT INFO
# Provides: libvirt-guests
# Required-Start: libvirtd
# Required-Stop: libvirtd
# Default-Start: 3 4 5
# Short-Description: suspend/resume libvirt guests on shutdown/boot
# Description: This is a script for suspending active libvirt guests
#              on shutdown and resuming them on next boot
#              See http://libvirt.org
### END INIT INFO

# the following is chkconfig init header
#
# libvirt-guests:   suspend/resume libvirt guests on shutdown/boot
#
# chkconfig: 345 98 02
# description:  This is a script for suspending active libvirt guests \
#               on shutdown and resuming them on next boot \
#               See http://libvirt.org
#

sysconfdir=/etc
localstatedir=/var
libvirtd=/usr/sbin/libvirtd

# Source function library.
. "$sysconfdir"/rc.d/init.d/functions

URIS=default
ON_BOOT=start
ON_SHUTDOWN=suspend
SHUTDOWN_TIMEOUT=0

test -f "$sysconfdir"/sysconfig/libvirt-guests && . "$sysconfdir"/sysconfig/libvirt-guests

LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests

RETVAL=0

retval() {
    "$@"
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    else
        return 0
    fi
}

run_virsh() {
    uri=$1
    shift

    if [ "x$uri" = xdefault ]; then
        conn=
    else
        conn="-c $uri"
    fi

    virsh $conn "$@" </dev/null
}

run_virsh_c() {
    ( export LC_ALL=C; run_virsh "$@" )
}

list_guests() {
    uri=$1

    list=$(run_virsh_c $uri list)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    uuids=
    for id in $(echo "$list" | awk 'NR > 2 {print $1}'); do
        uuid=$(run_virsh_c $uri dominfo $id | awk '/^UUID:/{print $2}')
        if [ -z "$uuid" ]; then
            RETVAL=1
            return 1
        fi
        uuids="$uuids $uuid"
    done

    echo $uuids
}

guest_name() {
    uri=$1
    uuid=$2

    name=$(run_virsh_c $uri dominfo $uuid 2>/dev/null | \
           awk '/^Name:/{print $2}')
    [ -n "$name" ] || name=$uuid

    echo "$name"
}

guest_is_on() {
    uri=$1
    uuid=$2

    guest_running=false
    info=$(run_virsh_c $uri dominfo $uuid)
    if [ $? -ne 0 ]; then
        RETVAL=1
        return 1
    fi

    id=$(echo "$info" | awk '/^Id:/{print $2}')

    [ -n "$id" ] && [ "x$id" != x- ] && guest_running=true
    return 0
}

started() {
    touch "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

start() {
    [ -f "$LISTFILE" ] || { started; return 0; }

    if [ "x$ON_BOOT" != xstart ]; then
        echo $"libvirt-guests is configured not to start any guests on boot"
        rm -f "$LISTFILE"
        started
        return 0
    fi

    while read uri list; do
        configured=false
        for confuri in $URIS; do
            if [ $confuri = $uri ]; then
                configured=true
                break
            fi
        done
        if ! $configured; then
            echo $"Ignoring guests on $uri URI"
            continue
        fi

        echo $"Resuming guests on $uri URI..."
        for guest in $list; do
            name=$(guest_name $uri $guest)
            echo -n $"Resuming guest $name: "
            if guest_is_on $uri $guest; then
                if $guest_running; then
                    echo $"already active"
                else
                    retval run_virsh $uri start "$name" >/dev/null && \
                    echo $"done"
                fi
            fi
        done
    done <"$LISTFILE"

    rm -f "$LISTFILE"
    started
}

suspend_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Suspending $name: "
    echo -n "$label"
    run_virsh $uri managedsave $guest >/dev/null &
    virsh_pid=$!
    while true; do
        sleep 1
        kill -0 $virsh_pid >&/dev/null || break
        progress=$(run_virsh_c $uri domjobinfo $guest 2>/dev/null | \
                   awk '/^Data processed:/{print $3, $4}')
        if [ -n "$progress" ]; then
            printf '\r%s%12s ' "$label" "$progress"
        else
            printf '\r%s%-12s ' "$label" "..."
        fi
    done
    retval wait $virsh_pid && printf '\r%s%-12s\n' "$label" $"done"
}

shutdown_guest()
{
    uri=$1
    guest=$2

    name=$(guest_name $uri $guest)
    label=$"Shutting down $name: "
    echo -n "$label"
    retval run_virsh $uri shutdown $guest >/dev/null || return
    timeout=$SHUTDOWN_TIMEOUT
    while [ $timeout -gt 0 ]; do
        sleep 1
        timeout=$[timeout - 1]
        guest_is_on $uri $guest || return
        $guest_running || break
        printf '\r%s%-12d ' "$label" $timeout
    done

    if guest_is_on $uri $guest; then
        if $guest_running; then
            printf '\r%s%-12s\n' "$label" $"failed to shutdown in time"
        else
            printf '\r%s%-12s\n' "$label" $"done"
        fi
    fi
}

stop() {
    # last stop was not followed by start
    [ -f "$LISTFILE" ] && return 0

    suspending=true
    if [ "x$ON_SHUTDOWN" = xshutdown ]; then
        suspending=false
        if [ $SHUTDOWN_TIMEOUT -le 0 ]; then
            echo $"Shutdown action requested but SHUTDOWN_TIMEOUT was not set"
            RETVAL=6
            return
        fi
    fi

    : >"$LISTFILE"
    for uri in $URIS; do
        echo -n $"Running guests on $uri URI: "

        if [ "x$uri" = xdefault ] && [ ! -x "$libvirtd" ]; then
            echo $"libvirtd not installed; skipping this URI."
            continue
        fi

        list=$(list_guests $uri)
        if [ $? -eq 0 ]; then
            empty=true
            for uuid in $list; do
                $empty || printf ", "
                echo -n $(guest_name $uri $uuid)
                empty=false
            done
            if $empty; then
                echo $"no running guests."
            else
                echo
                echo $uri $list >>"$LISTFILE"
            fi
        fi
    done

    while read uri list; do
        if $suspending; then
            echo $"Suspending guests on $uri URI..."
        else
            echo $"Shutting down guests on $uri URI..."
        fi

        for guest in $list; do
            if $suspending; then
                suspend_guest $uri $guest
            else
                shutdown_guest $uri $guest
            fi
        done
    done <"$LISTFILE"

    rm -f "$VAR_SUBSYS_LIBVIRT_GUESTS"
}

gueststatus() {
    for uri in $URIS; do
        echo "* $uri URI:"
        retval run_virsh $uri list || echo
    done
}

# rh_status
# Display current status: whether saved state exists, and whether start
# has been executed.  We cannot use status() from the functions library,
# since there is no external daemon process matching this init script.
rh_status() {
    if [ -f "$LISTFILE" ]; then
        echo $"stopped, with saved guests"
        RETVAL=3
    else
        if [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ]; then
            echo $"started"
        else
            echo $"stopped, with no saved guests"
        fi
        RETVAL=0
    fi
}

# usage [val]
# Display usage string, then exit with VAL (defaults to 2).
usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|gueststatus|shutdown}"
    exit ${1-2}
}

# See how we were called.
if test $# != 1; then
    usage
fi
case "$1" in
    --help)
        usage 0
        ;;
    start|stop|gueststatus)
        $1
        ;;
    restart)
        stop && start
        ;;
    condrestart|try-restart)
        [ -f "$VAR_SUBSYS_LIBVIRT_GUESTS" ] && stop && start
        ;;
    reload|force-reload)
        # Nothing to do; we reread configuration on each invocation
        ;;
    status)
        rh_status
        ;;
    shutdown)
        ON_SHUTDOWN=shutdown
        stop
        ;;
    *)
        usage
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/avahi-daemon              0000755 0000000 0000000 00000004754 11524351060 030044  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# avahi-daemon: Starts the Avahi mDNS/DNS-SD Stack
#
# chkconfig:   345 24 02
# description: This is a daemon which runs on client machines to \
#              perform Zeroconf service discovery on a \
#              network. avahi-daemon must be running on systems that \
#              use Avahi for service discovery. Avahi-daemon should \
#              not be running otherwise.
# processname: avahi-daemon
# pidfile:     /var/run/avahi-daemon/pid

### BEGIN INIT INFO
# Required-Start:    messagebus
# Required-Stop:     messagebus
# Should-Start:      $syslog $network $local_fs
# Should-Stop:       $syslog $local_fs
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Starts the Avahi Daemon
# Description:       This is a daemon which runs on client machines to
#                    perform Zeroconf service discovery on a
#                    network. avahi-daemon must be running on systems
#                    that use Avahi for service discovery.
#                    Avahi-daemon should not be running otherwise.
### END INIT INFO

AVAHI_BIN=/usr/sbin/avahi-daemon
AVAHI_OPTS="-D"

if [ "$1" = 'status' ]; then
    test -x $AVAHI_BIN || exit 4
else
    test -x $AVAHI_BIN || exit 5
fi

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

LOCKFILE=/var/lock/subsys/avahi-daemon
PIDFILE=/var/run/avahi-daemon/pid
RETVAL=0

base=${0##*/}

start() {
    # Check that networking is configured.
    [ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting Avahi daemon... "
	if [ -s /etc/localtime ]; then
	    cp -fp /etc/localtime /etc/avahi/etc >/dev/null 2>&1
	fi;
        daemon --pidfile=${PIDFILE} $AVAHI_BIN $AVAHI_OPTS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch ${LOCKFILE}
	return $RETVAL
}

stop() {
        echo -n $"Shutting down Avahi daemon: "
        killproc -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
        echo
	return $RETVAL
}

reload() {
        echo -n $"Reloading Avahi daemon... "
        killproc -p ${PIDFILE} $AVAHI_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status -p ${PIDFILE} $AVAHI_BIN
        RETVAL=$?
	;;
  restart)
	restart
	;;
  reload)
        reload
	;;
  condrestart)
  	if [ -f $LOCKFILE ]; then
		restart
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	exit 2
        ;;
esac

exit $RETVAL
                    Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/ypbind                    0000755 0000000 0000000 00000011277 11524351066 027004  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# ypbind:       Starts the ypbind daemon
#
# Version:      @(#) /etc/init.d/ypbind.init 1.3
#
# chkconfig: - 27 73
# description: This is a daemon which runs on NIS/YP clients and binds them \
#              to a NIS domain. It must be running for systems based on glibc \
#              to work as NIS clients, but it should not be enabled on systems \
#              which are not using NIS.
# processname: ypbind
# config: /etc/yp.conf
#
# See https://fedoraproject.org/wiki/Packaging:SysVInitScript for 
# the guidelines document.

OTHER_YPBIND_OPTS=""

# Source function library.
[ -f /etc/rc.d/init.d/functions ] || exit 0
. /etc/rc.d/init.d/functions

# getting the YP domain name
[ -e /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/ypbind ] && . /etc/sysconfig/ypbind

# NISTIMEOUT should be a multiple of 15 since
# ypwhich has a hardcoded 15sec timeout
[ -z "$NISTIMEOUT" ] && NISTIMEOUT=45

# Check that networking is configured.
[ "${NETWORKING}" = "no" ] && exit 0

exec="/usr/sbin/ypbind"
prog="ypbind"
lockfile=/var/lock/subsys/$prog

selinux_on() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    #echo $"Turning on allow_ypbind SELinux boolean"
    setsebool allow_ypbind=1
}

selinux_off() {
    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || return
    allow_ypbind=0
    .  /etc/selinux/config
    if [ -e /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local ]; then
	. /etc/selinux/${SELINUXTYPE}/modules/active/booleans.local
    fi
    if [ $allow_ypbind == 0 ]; then
	#echo $"Turning off allow_ypbind SELinux boolean"
	setsebool allow_ypbind=$allow_ypbind
    fi
}

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    DOMAINNAME=`domainname`
    if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
	echo -n $"Setting NIS domain: "
	if [ -n "$NISDOMAIN" ]; then
	    action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN
	else # See if the domain is set in config file
	    NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \
		awk '{print $2}' | head -1`
	    if [ -n "$NISDOMAIN" ]; then
		action $"domain is '$NISDOMAIN' " \
		    domainname $NISDOMAIN
	    else
		action $"domain not found" /bin/false
		logger -t ypbind $"domain not found"
	        return 1
	    fi
	fi
    fi
    echo -n $"Starting NIS service: "
    selinux_on
    daemon $exec $OTHER_YPBIND_OPTS
    retval=$?
    echo
    if [ $retval -ne 0 ]; then
        #selinux_off
	logger -t ypbind "failed to start!"
	return $retval
    fi
    echo -n $"Binding NIS service: "
    # the following fixes problems with the init scripts continuing
    # even when we are really not bound yet to a server, and then things
    # that need NIS fail.
    timeout=10
    firsttime=1
    SECONDS=0
    while [ $SECONDS -lt $timeout ]; do
	if /usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind
	then
	    if [ $firsttime -eq 1 ]; then
		# reset timeout
		timeout=$NISTIMEOUT
		firsttime=0
	    fi
	    /usr/bin/ypwhich > /dev/null 2>&1
	    retval=$?
	    if [ $retval -eq 0 ]; then
		break;
	    fi
	fi
	sleep 2
	echo -n "."
    done
    if [ $retval -eq 0 ]; then
	logger -t ypbind \
	    "NIS domain: `domainname`, NIS server: `ypwhich 2> /dev/null`"
	touch $lockfile
	success
    else
	logger -t ypbind \
	    "NIS server for domain `domainname` is not responding."
	failure
	#selinux_off
	retval=100
    fi
    echo
    return $retval
}

stop() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5
    echo -n $"Shutting down NIS service: "
    killproc $prog
    retval=$?
    echo
    if [ $retval -eq 0 ]; then
	rm -f $lockfile
	# if  we used brute force (like kill -9) we don't want those around
	if [ x$(domainname) != x ]; then
	    rm -f /var/yp/binding/$(domainname)*
	fi
    fi
    #selinux_off
    return $retval
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading NIS service: "
    killproc $prog -HUP
    retval=$?
    echo
    return $retval
}

force_reload() {
    restart
}

rh_status() {
    # run checks to determine if the service is running or use generic status
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&1
}

usage() {
    echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
}

# See how we were called.
case "$1" in
    start)
	rh_status_q && exit 0
	$1
	retval=$?
	if [ $retval -eq 100 ]; then stop; exit 1; fi
	exit $retval
	;;
    stop)
        rh_status_q || exit 0
	$1	
	;;
    restart)
	$1
	;;
    reload)
	rh_status_q || exit 7
	$1
	;;
    force-reload)
	force_reload
	;;
    status)
	rh_status
	;;
    condrestart|try-restart)
	rh_status_q || exit 0
	restart
	;;
    usage)
	$1
	;;
    *)
	usage
	exit 2
esac
exit $?
                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/psacct                    0000755 0000000 0000000 00000003024 11524351064 026761  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/xinetd                    0000755 0000000 0000000 00000006743 11524351065 027013  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# xinetd        This starts and stops xinetd.
#
# chkconfig: 345 56 50
# description: xinetd is a powerful replacement for inetd. \
#	       xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
#
# processname: /usr/sbin/xinetd
# config: /etc/sysconfig/network
# config: /etc/xinetd.conf
# pidfile: /var/run/xinetd.pid


### BEGIN INIT INFO
# Provides: 
# Required-Start: $network
# Required-Stop: 
# Should-Start: 
# Should-Stop: 
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start and stop xinetd
# Description: xinetd is a powerful replacement for inetd. \
#              xinetd has access control mechanisms, extensive \
#              logging capabilities, the ability to make services \
#              available based on time, and can place \
#              limits on the number of servers that can be started, \
#              among other things.
### END INIT INFO

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/init.d/functions

# Get config.
test -f /etc/sysconfig/network && . /etc/sysconfig/network

# More config

test -f /etc/sysconfig/xinetd && . /etc/sysconfig/xinetd

RETVAL=0

prog="xinetd"

start(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Starting $prog: "

# Localization for xinetd is controlled in /etc/synconfig/xinetd
    if [ -z "$XINETD_LANG" -o "$XINETD_LANG" = "none" -o "$XINETD_LANG" = "NONE" ]; then
        unset LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    else
        LANG="$XINETD_LANG"
        LC_TIME="$XINETD_LANG"
        LC_ALL="$XINETD_LANG"
        LC_MESSAGES="$XINETD_LANG"
        LC_NUMERIC="$XINETD_LANG"
        LC_MONETARY="$XINETD_LANG"
        LC_COLLATE="$XINETD_LANG"
        export LANG LC_TIME LC_ALL LC_MESSAGES LC_NUMERIC LC_MONETARY LC_COLLATE
    fi
    unset HOME MAIL USER USERNAME
    daemon $prog -stayalive -pidfile /var/run/xinetd.pid "$EXTRAOPTIONS"
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/xinetd
    return $RETVAL
}

stop(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6
    # this is suitable way considering SELinux is guarding write 
    # access to PID file
	[ $EUID -eq 0 ] || exit 4

    echo -n $"Stopping $prog: "
    killproc -p /var/run/xinetd.pid $prog
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/xinetd
    return $RETVAL

}

reload(){
    [ -f /usr/sbin/xinetd ] || exit 5
    [ -f /etc/xinetd.conf ] || exit 6

    echo -n $"Reloading configuration: "	
    killproc $prog -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

restart(){
    stop
    start
}

condrestart(){
    if [ -e /var/lock/subsys/xinetd ] ; then
        restart
        RETVAL=$?
        return $RETVAL
    fi
    RETVAL=0
    return $RETVAL
}


# See how we were called.
case "$1" in
    start)
	start
	RETVAL=$?
	;;
    stop)
	stop
	RETVAL=$?
	;;
    status)
	status $prog
	RETVAL=$?
	;;
    restart)
	restart
	RETVAL=$?
	;;
    reload|force-reload)
	reload
	RETVAL=$?
	;;
    condrestart|try-restart)
	condrestart
	RETVAL=$?
	;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
	RETVAL=2
esac

exit $RETVAL
                             Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/nfslock                   0000755 0000000 0000000 00000006675 11524351063 027161  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# nfslock       This shell script takes care of starting and stopping
#               the NFS file locking service.
#
# chkconfig: 345 14 86
# description: NFS is a popular protocol for file sharing across \
#	       networks. This service provides NFS file locking \ 
#          functionality.
# probe: true

### BEGIN INIT INFO
# Provides: nfslock
# Required-Start: $network $syslog $portmap
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS file locking sevice
# Description: NFS is a popular protocol for file sharing across \
#          networks. This service provides NFS file locking \ 
#          functionality.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
if [ ! -f /etc/sysconfig/network ]; then
    exit 6
fi

# Check for and source configuration file
LOCKDARG=""
STATDARG=""
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

uid=`id | cut -d\( -f1 | cut -d= -f2`
RETVAL=0
start() {
	# Check that networking is up.
	[ "${NETWORKING}" = "no" ] && exit 6

	[ -x /sbin/rpc.statd ] || exit 5 

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the rpc.statd is not already running.
	if status rpc.statd > /dev/null ; then
		exit 0
	fi
	rm -f /var/lock/subsys/rpc.statd

	# Make sure locks are recovered
	rm -f /var/run/sm-notify.pid

	# Start daemons.
	# See if the kernel lockd should start up 
	# listening on a particular port
	#
	if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then 
		[ -x /sbin/modprobe ] && /sbin/modprobe lockd $LOCKDARG
		[ -n "$LOCKD_TCPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
		[ -n "$LOCKD_UDPPORT" ] && \
			/sbin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
	fi

	echo -n $"Starting NFS statd: "
	# Set statd's local hostname if defined
	[ -n "${STATD_HOSTNAME}" ] && STATDARG="$STATDARG -n ${STATD_HOSTNAME}"

	# See if a statd's ports has been defined
	[ -n "$STATD_PORT" ] && STATDARG="$STATDARG -p $STATD_PORT"
	[ -n "$STATD_OUTGOING_PORT" ] \
		&& STATDARG="$STATDARG -o $STATD_OUTGOING_PORT"

	# See if we have an HA-callout program specified
	[ -n "$STATD_HA_CALLOUT" ] \
		&& STATDARG="$STATDARG -H $STATD_HA_CALLOUT"
	daemon rpc.statd "$STATDARG"
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpc.statd
    return $RETVAL
}

stop() {
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemons.
	if [ -n "`pidofproc lockd`" ]; then
		echo -n $"Stopping NFS locking: "
		killproc lockd -KILL
		echo
	fi

	echo -n $"Stopping NFS statd: "
	killproc rpc.statd
	RETVAL=$?
	echo
	rm -f /var/lock/subsys/rpc.statd
	rm -f /var/run/sm-notify.pid
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
        start
	;;
  stop)
  	stop
	;;
  status)
	status rpc.statd
	RETVAL=$?
	;;
  restart | force-reload | reload)
	stop
	start
	;;
  probe)
	if [ ! -f /var/lock/subsys/rpc.statd ] ; then
	  echo $"start"; exit 0
	fi
	/sbin/pidof rpc.statd >/dev/null 2>&1
	if [ $? = 1 ] ; then
	  echo $"restart"; exit 0
	fi
	;;
  condrestart | try-restart)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		start
		RETVAL=$?
	}
	;;
  condstop)
  	[ -f /var/lock/subsys/rpc.statd ] && {
		stop
		RETVAL=$?
	}
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|probe|condrestart|try-restart|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/cgred                     0000755 0000000 0000000 00000006302 11524351061 026567  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the CGroups Rules Engine Daemon
#
# Copyright Red Hat Inc. 2008
#
# Authors:	Steve Olivieri <sjo@redhat.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
# 
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgred		CGroups Rules Engine Daemon
# chkconfig:	- 14 86
# description:	This is a daemon for automatically classifying processes \
#		into cgroups based on UID/GID.
#
# processname: cgrulesengd
# pidfile: /var/run/cgred.pid
#
### BEGIN INIT INFO
# Provides:		cgrulesengd
# Required-Start:	$local_fs $syslog $cgconfig
# Required-Stop:	$local_fs $syslog
# Should-Start:		
# Should-Stop:		
# Short-Description:	start and stop the cgroups rules engine daemon
# Description:		CGroup Rules Engine is a tool for automatically using \
#			cgroups to classify processes
### END INIT INFO

prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGRED_BIN=$sbindir/cgrulesengd

# Sanity checks
[ -x $CGRED_BIN ] || exit 1

# Source function library & LSB routines
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# Read in configuration options.
if [ -f "/etc/sysconfig/cgred.conf" ] ; then
	. /etc/sysconfig/cgred.conf
	OPTIONS="$NODAEMON $LOG"
	if [ -n "$LOG_FILE" ]; then
		OPTIONS="$OPTIONS --log-file=$LOG_FILE"
	fi
else
	OPTIONS=""
fi

# For convenience
processname=cgrulesengd
servicename=cgred
pidfile=/var/run/cgred.pid

RETVAL=0

start()
{
	echo -n $"Starting CGroup Rules Engine Daemon: "
	if [ -f "/var/lock/subsys/$servicename" ] ; then
		log_failure_msg "$servicename is already running with PID `cat ${pidfile}`"
		return 0
	fi
	if [ ! -s /etc/cgrules.conf ]; then
		log_failure_msg "not configured"
		return 6
	fi
	daemon --check $servicename --pidfile $pidfile $CGRED_BIN $OPTIONS
	RETVAL=$?
	echo
	if [ $RETVAL -ne 0 ]; then
		return 7
	fi
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
	echo "`pidof $processname`" > $pidfile
}

stop()
{
	echo -n $"Stopping CGroup Rules Engine Daemon..."
	if [ ! -f $pidfile ]; then
		log_success_msg
		return 0
	fi
	killproc -p $pidfile $processname -TERM
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		rm -f /var/lock/subsys/$servicename
		rm -f $pidfile
	fi
}

# See how we are called
case "$1" in
	start)
		start
		RETVAL=$?
		;;
	stop)
		stop
		RETVAL=$?
		;;
	status)
		status -p $pidfile $servicename
		RETVAL=$?
		;;
	restart)
		stop
		start
		;;
	condrestart)
		if [ -f /var/lock/subsys/$servicename ] ; then
			stop
			start
		fi
		;;
	reload|flash)
		if [ -f /var/lock/subsys/$servicename ] ; then
			echo $"Reloading rules configuration..."
			kill -s 12 `cat ${pidfile}`
			RETVAL=$?
			if [ $RETVAL -eq 0 ] ; then
				log_success_msg
			else
				log_failure_msg
			fi
		else
			log_failure_msg "$servicename is not running."
		fi
		;;
	*)
		echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
		;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/migrateip                 0000755 0000000 0000000 00000001364 11524351063 027471  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# /etc/init.d/migrateip
#
#   Linux chkconfig stuff:
#
#   chkconfig: 2345 55 10
#   description: autobench

# Source function library.
if [ -f /etc/init.d/functions ] ; then
	. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
	. /etc/rc.d/init.d/functions
else
	exit 0
fi

case "$1" in
    start)
	/root/convert_to_vf.sh
        RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
	;;
    stop)
	;;
    try-restart)
	$0 status >/dev/null &&  $0 restart
	;;
    restart)
	$0 stop
	$0 start
	;;
    force-reload)
	;;
    reload)
	rc_status -v
	;;
    status)
	rc_status -v
	;;
    probe)
	;;
    *)
	echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
	exit 1
	;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/udev-post                 0000755 0000000 0000000 00000004370 11524351065 027440  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# udev-post     Post script for udev, after all filesystems are mounted
#
# Authors:      Harald Hoyer <harald@redhat.com>
#
# chkconfig: 12345 26 75
# description: Moves the generated persistent udev rules to /etc/udev/rules.d
# 
### BEGIN INIT INFO
# Default-Start: 12345
# Default-Stop:  0 6
# Required-Start: $local_fs
# Required-Stop: 
# Short-Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Description: Moves the generated persistent udev rules to /etc/udev/rules.d
# Provides: udev-post
### END INIT INFO

. /etc/rc.d/init.d/functions
. /etc/sysconfig/udev

# See how we were called.
case "$1" in
  start|reload)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Retrigger failed udev events"
	echo -n $STRING 
	/sbin/udevadm trigger --type=failed
	success "$STRING"
	echo

	STRING=$"Adding udev persistent rules"
	
	# copy the rules generated before / was mounted read-write
	for file in /dev/.udev/tmp-rules--*; do
		dest=${file##*tmp-rules--}
		# check, if anything is todo
		[ "$dest" = '*' ] && exit 0
		echo -n $STRING 
		cat $file >> /etc/udev/rules.d/$dest
		rc=$?
		rm -f $file
		if [ "$rc" -eq "0" ]; then
			success "$STRING"
			echo
		elif [ "$rc" -eq "1" ]; then
			failure "$STRING"
			echo
            	fi
	done

	touch /var/lock/subsys/udev-post
	exit 0
	;;
  stop)
	[ -w /var/lock/subsys ] || exit 4
	STRING=$"Generating udev makedev cache file"	
	MAKEDEV="/sbin/MAKEDEV"
	USE_MD5="false"
	[ -x /usr/bin/md5sum -a "$UDEV_USE_MAKEDEV_CACHE" == "yes" ] && USE_MD5="true"
	if [ "$USE_MD5" == "true" -a -x "$MAKEDEV" ]; then
		for i in /etc/udev/makedev.d/*.nodes; do
			if [ -f "$i" ]; then 			   
				# use a little caching to speedup things
				md5=$(/usr/bin/md5sum "$i"|(read a b; echo $a))
				md5file="/var/lib/udev/makedev.d/${md5}.sh"

				if [ ! -f "$md5file" ]; then
					echo -n $STRING 
					( sed -e 's,#.*,,g' "$i" | \
						xargs $MAKEDEV -x -a -S ) \
						> "$md5file"
					rc=$?
					if [ "$rc" -eq "0" ]; then
					    success "$STRING"
					    echo
					elif [ "$rc" -eq "1" ]; then
					    failure "$STRING"
					    echo
            				fi
				fi
			fi
		done 
	fi
	rm -f /var/lock/subsys/udev-post
	exit 0
	;;
  status)
	exit 3
	;;
  *)
        echo $"Usage: $0 {start|stop|reload}"
        exit 2
esac
exit 0
                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/haldaemon                 0000755 0000000 0000000 00000003245 11524351061 027436  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# haldaemon:   HAL daemon
#
# chkconfig: 345 26 74
# description:  This is a daemon for collecting and maintaing information \
#               about hardware from several sources. \
#               See http://www.freedesktop.org/Software/hal
#
# processname: hald
# pidfile: /var/run/haldaemon.pid
#

# Source function library.
. /etc/rc.d/init.d/functions

# so we can rearrange this easily
processname=hald
servicename=haldaemon

RETVAL=0

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ `id -u` = 0 ] || exit 4

	# Check if hald is executable
	test -x /usr/sbin/hald || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f /var/lock/subsys/$servicename ]; then
		echo -n $"Starting HAL daemon: "
		daemon --check $servicename $processname
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$servicename
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping HAL daemon: "
	killproc $servicename -TERM
	RETVAL=$?
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$servicename
	echo
	if [ $RETVAL -eq 0 ]; then
		rm -f /var/lock/subsys/$servicename
		rm -f /var/run/haldaemon.pid
	fi
	return $RETVAL
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	echo "$0: Unimplemented feature (hald does this automatically)."
	RETVAL=3
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
status)
	status -p /var/run/haldaemon.pid -l haldaemon $processname
	RETVAL=$?
	;;
restart)
	stop
	sleep 3
	start
	;;
try-restart|condrestart)
	if [ -f /var/lock/subsys/$servicename ]; then
		stop
		sleep 3
		start
	fi
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/ipsec                     0000755 0000000 0000000 00000010777 11524351062 026622  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
# IPsec startup and shutdown script
#
### BEGIN INIT INFO
# Provides:          openswan
# Required-Start:    $network $syslog $named
# Required-Stop:     $syslog
# Short-Description: Start Openswan IPsec at boot time
# Description:       Enable automatic key management for IPsec (KLIPS and NETKEY)
### END INIT INFO
#
# Copyright (C) 1998, 1999, 2001  Henry Spencer.
# Copyright (C) 2002              Michael Richardson <mcr@freeswan.org>
# Copyright (C) 2006              Michael Richardson <mcr@xelerance.com>
# Copyright (C) 2008              Michael Richardson <mcr@sandelman.ca>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
#
#
# ipsec         init.d script for starting and stopping
#               the IPsec security subsystem (KLIPS and Pluto).
#
# This script becomes /etc/rc.d/init.d/ipsec (or possibly /etc/init.d/ipsec)
# and is also accessible as "ipsec setup" (the preferred route for human
# invocation).
#
# The startup and shutdown times are a difficult compromise (in particular,
# it is almost impossible to reconcile them with the insanely early/late
# times of NFS filesystem startup/shutdown).  Startup is after startup of
# syslog and pcmcia support; shutdown is just before shutdown of syslog.
#
# chkconfig: - 47 76
# description: IPsec provides encrypted and authenticated communications; \
# KLIPS is the kernel half of it, Pluto is the user-level management daemon.

prog='ipsec setup'		# for messages

# where the private directory and the config files are
IPSEC_EXECDIR="${IPSEC_EXECDIR-/usr/libexec/ipsec}"
IPSEC_LIBDIR="${IPSEC_LIBDIR-/usr/libexec/ipsec}"
IPSEC_SBINDIR="${IPSEC_SBINDIR-/usr/sbin}"
IPSEC_CONFS="${IPSEC_CONFS-/etc}"

if [ `id -u` -ne 0 ]
    then
        echo "permission denied (must be superuser)" |
	      logger -s -p daemon.error -t ipsec_setup 2>&1
        exit 4
fi

if test " $IPSEC_DIR" = " "	# if we were not called by the ipsec command
then
    # we must establish a suitable PATH ourselves
    PATH="${IPSEC_SBINDIR}":/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
    export PATH

    IPSEC_DIR="$IPSEC_LIBDIR"
    export IPSEC_DIR IPSEC_CONFS IPSEC_LIBDIR IPSEC_EXECDIR
fi

# misc setup
umask 022

mkdir -p /var/run/pluto

RETVAL=0

start() {

    test -x $IPSEC_SBINDIR/ipsec || exit 5
    test -f /etc/ipsec.conf || exit 6
    
    # Pick up IPsec configuration (until we have done this, successfully, we
    # do not know where errors should go, hence the explicit "daemon.error"s.)
    # Note the "--export", which exports the variables created.
    variables=`ipsec addconn /etc/ipsec.conf --varprefix IPSEC --configsetup`
    eval $variables
    if [ $? != 0 ]
    then
         echo "Failed to parse config setup portion of ipsec.conf"
         exit $?
    fi
    
    IPSEC_confreadsection=${IPSEC_confreadsection:-setup}
    export IPSEC_confreadsection

    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog

    # remove for: @cygwin_END@
    (
    ipsec _realsetup start
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}


stop() {
    IPSECsyslog=${IPSECsyslog-daemon.error}
    export IPSECsyslog
    (
    ipsec _realsetup stop
    RETVAL=$? 
    ) 2>&1 | logger -s -p $IPSECsyslog -t ipsec_setup 2>&1  
    return $RETVAL
}

restart() {
    stop
    start
}

condrestart() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status || exit 0
    restart
}

status() {
    test -x $IPSEC_SBINDIR/ipsec || exit 5
    ipsec _realsetup status
    RETVAL=$?	
    return $RETVAL
}

version() {
    ipsec version
    RETVAL=$?
    return $RETVAL
}


# do it
case "$1" in
    start|--start)
         start
         ;;
    stop|--stop)
         stop
         ;;
    restart|--restart)
         restart
 	 ;;
    reload|force-reload)
         restart
 	 ;;
    condrestart|try-restart)
         condrestart
         ;;
    status|--status)
         status
         ;;
    version)
         version
         ;;
    *)
         echo $"Usage: $prog {start|stop|restart|reload|force-reload|condrestart|try-restart|status|version}"
 	 RETVAL=2
esac
 	
exit $RETVAL
 Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/rpcbind                   0000755 0000000 0000000 00000004031 11524351064 027124  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
#
# rpcbind       Start/Stop RPCbind
#
# chkconfig: 2345 13 87
# description: The rpcbind utility is a server that converts RPC program \
#              numbers into universal addresses. It must be running on the \
#              host to be able to make RPC calls on a server on that machine.
#
# processname: rpcbind
# probe: true
# config: /etc/sysconfig/rpcbind


# This is an interactive program, we need the current locale
[ -f /etc/profile.d/lang.sh ] && . /etc/profile.d/lang.sh
# We can't Japanese on normal console at boot time, so force LANG=C.
if [ "$LANG" = "ja" -o "$LANG" = "ja_JP.eucJP" ]; then
    if [ "$TERM" = "linux" ] ; then
        LANG=C
    fi
fi

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] &&  . /etc/sysconfig/network

prog="rpcbind"
[ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

start() {
	# Check that networking is up.
	[ "$NETWORKING" = "yes" ] || exit 6

	[ -f /sbin/$prog ] || exit 5

	# Make sure the rpcbind is not already running.
	if status $prog > /dev/null ; then
		exit 0	
	fi

	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	echo -n $"Starting $prog: "
	daemon $prog $1 "$RPCBIND_ARGS"
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ] ; then
		touch /var/lock/subsys/$prog
		[ ! -f /var/run/rpcbind.pid ] &&
			/sbin/pidof $prog > /var/run/rpcbind.pid
	fi
	return $RETVAL
}


stop() {
	echo -n $"Stopping $prog: "
	killproc $prog
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && {
		rm -f /var/lock/subsys/$prog
		rm -f /var/run/rpcbind*
	}
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	RETVAL=$?
	;;
  stop)
	stop
	RETVAL=$?
	;;
  status)
	status $prog
	RETVAL=$?
	;;
  restart | reload| force-reload)
	stop
	start
	RETVAL=$?
	;;
  condrestart | try-restart)
	if [ -f /var/lock/subsys/$prog ]; then
		stop
		start -w
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|try-restart}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/rhnsd                     0000755 0000000 0000000 00000005522 11524351064 026627  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# rhnsd:	Starts the Red Hat Network Daemon
#
# chkconfig: 345 97 03
# description:  This is a daemon which handles the task of connecting \
#		periodically to the Red Hat Network servers to \
#		check for updates, notifications and perform system \
#		monitoring tasks according to the service level that \
#		this server is subscribed for		
#
# processname: rhnsd
# pidfile: /var/run/rhnsd.pid
#

### BEGIN INIT INFO
# Provides: rhnsd
# Required-Start: $local_fs $network $remote_fs $named $time
# Required-Stop: $local_fs $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the Red Hat Network Daemon
# Description: This is a daemon which handles the task of connecting
#               periodically to the Red Hat Network servers to
#               check for updates, notifications and perform system
#               monitoring tasks according to the service level that
#               this server is subscribed for.
### END INIT INFO


# interval in minutes to connect to Red Hat Network. The minimum allowed
# value is currently 1 hour; by default rhnsd will connect every four hours.
# This should be more than suitable for the vast majority of systems.  You
# may adjust the interval by editing the file /etc/sysconfig/rhn/rhnsd.

RHNSD=/usr/sbin/rhnsd

# Sanity checks.
[ -x $RHNSD ] || exit 6
RHN_UP2DATE_FILE="/etc/sysconfig/rhn/up2date"
[ -f $RHN_UP2DATE_FILE ] || exit 6
if [ -r $RHN_UP2DATE_FILE ]; then
        RHN_SYSTEMID_FILE=`awk -F '=[[:space:]]*' '/^[[:space:]]*systemIdPath[[:space:]]*=/ {print $2}' $RHN_UP2DATE_FILE`
        [ -f $RHN_SYSTEMID_FILE ] || exit 6
elif [ "$1" != "status" ];  then
        echo "Insufficient privilege. Cannot open file $RHN_UP2DATE_FILE for reading."
        exit 4
fi

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
    echo -n $"Starting Red Hat Network Daemon: "
    daemon rhnsd
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rhnsd
}

stop() {
    echo -n $"Stopping Red Hat Network Daemon: "
    killproc rhnsd
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
        rm -f /var/lock/subsys/rhnsd
    fi
}

# See how we were called.
case "$1" in
    start)
	start
	;;
    stop)
	stop
	;;
    status)
        status rhnsd
	RETVAL=$?
        ;;
    restart|force-reload)
	stop
	start
	;;
    condrestart|try-restart)
	if [ -f /var/lock/subsys/rhnsd ]; then
	    stop
	    start
	fi
	;;
    reload)
        echo -n $"Reloading Red Hat Network Daemon: "
        if [ -n "`pidfileofproc $RHNSD`" ] ; then
            killproc $RHNSD -HUP
            RETVAL=$?
        else
            failure $"Reloading rhnsd"
            # not running
            RETVAL=7
        fi
        echo
        ;;
    *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart|try-restart|reload}"
        exit 2
esac
exit $RETVAL
                                                                                                                                                                              Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/functions                 0000644 0000000 0000000 00000042767 11524351061 027527  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # -*-Shell-script-*-
#
# functions	This file contains functions to be used by most or all
#		shell scripts in the /etc/init.d directory.
#

TEXTDOMAIN=initscripts

# Make sure umask is sane
umask 022

# Set up a default search path.
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export PATH

# Get a sane screen width
[ -z "${COLUMNS:-}" ] && COLUMNS=80

[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"

if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
  . /etc/profile.d/lang.sh 2>/dev/null
  # avoid propagating LANGSH_SOURCED any further
  unset LANGSH_SOURCED
fi

# Read in our configuration
if [ -z "${BOOTUP:-}" ]; then
  if [ -f /etc/sysconfig/init ]; then
      . /etc/sysconfig/init
  else
    # This all seem confusing? Look in /etc/sysconfig/init,
    # or in /usr/doc/initscripts-*/sysconfig.txt
    BOOTUP=color
    RES_COL=60
    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
    SETCOLOR_FAILURE="echo -en \\033[1;31m"
    SETCOLOR_WARNING="echo -en \\033[1;33m"
    SETCOLOR_NORMAL="echo -en \\033[0;39m"
    LOGLEVEL=1
  fi
  if [ "$CONSOLETYPE" = "serial" ]; then
      BOOTUP=serial
      MOVE_TO_COL=
      SETCOLOR_SUCCESS=
      SETCOLOR_FAILURE=
      SETCOLOR_WARNING=
      SETCOLOR_NORMAL=
  fi
fi

# Interpret escape sequences in an fstab entry
fstab_decode_str() {
	fstab-decode echo "$1"
}

# Check if $pid (could be plural) are running
checkpid() {
	local i

	for i in $* ; do
		[ -d "/proc/$i" ] && return 0
	done
	return 1
}

__readlink() {
    ls -bl "$@" 2>/dev/null| awk '{ print $NF }'
}

__fgrep() {
    s=$1
    f=$2
    while read line; do
	if strstr "$line" "$s"; then
	    echo $line
	    return 0
	fi
    done < $f
    return 1
}

# __umount_loop awk_program fstab_file first_msg retry_msg umount_args
# awk_program should process fstab_file and return a list of fstab-encoded
# paths; it doesn't have to handle comments in fstab_file.
__umount_loop() {
	local remaining sig=
	local retry=3 count

	remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action "$3" fstab-decode umount $5 $remaining
		else
			action "$4" fstab-decode umount $5 $remaining
		fi
		count=4
		remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		while [ "$count" -gt 0 ]; do
			[ -z "$remaining" ] && break
			count=$(($count-1))
			usleep 500000
			remaining=$(LC_ALL=C awk "/^#/ {next} $1" "$2" | sort -r)
		done
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# Similar to __umount loop above, specialized for loopback devices
__umount_loopback_loop() {
	local remaining devremaining sig=
	local retry=3

	remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
	devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
	while [ -n "$remaining" -a "$retry" -gt 0 ]; do
		if [ "$retry" -eq 3 ]; then
			action $"Unmounting loopback filesystems: " \
				fstab-decode umount $remaining
		else
			action $"Unmounting loopback filesystems (retry):" \
				fstab-decode umount $remaining
		fi
		for dev in $devremaining ; do
			losetup $dev > /dev/null 2>&1 && \
				action $"Detaching loopback device $dev: " \
				losetup -d $dev
		done
		remaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts)
		devremaining=$(awk '$1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts)
		[ -z "$remaining" ] && break
		fstab-decode /sbin/fuser -k -m $sig $remaining >/dev/null
		sleep 3
		retry=$(($retry -1))
		sig=-9
	done
}

# __proc_pids {program} [pidfile]
# Set $pid to pids from /var/run* for {program}.  $pid should be declared
# local in the caller.
# Returns LSB exit code for the 'status' action.
__pids_var_run() {
	local base=${1##*/}
	local pid_file=${2:-/var/run/$base.pid}

	pid=
	if [ -f "$pid_file" ] ; then
	        local line p

		[ ! -r "$pid_file" ] && return 4 # "user had insufficient privilege"
		while : ; do
			read line
			[ -z "$line" ] && break
			for p in $line ; do
				[ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid="$pid $p"
			done
		done < "$pid_file"

	        if [ -n "$pid" ]; then
	                return 0
	        fi
		return 1 # "Program is dead and /var/run pid file exists"
	fi
	return 3 # "Program is not running"
}

# Output PIDs of matching processes, found using pidof
__pids_pidof() {
	pidof -c -o $$ -o $PPID -o %PPID -x "$1" || \
		pidof -c -o $$ -o $PPID -o %PPID -x "${1##*/}"
}


# A function to start a program.
daemon() {
	# Test syntax.
	local gotbase= force= nicelevel corelimit
	local pid base= user= nice= bg= pid_file=
	local cgroup=
	nicelevel=0
	while [ "$1" != "${1##[-+]}" ]; do
	  case $1 in
	    '')    echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	    --check)
		   base=$2
		   gotbase="yes"
		   shift 2
		   ;;
	    --check=?*)
	    	   base=${1#--check=}
		   gotbase="yes"
		   shift
		   ;;
	    --user)
		   user=$2
		   shift 2
		   ;;
	    --user=?*)
	           user=${1#--user=}
		   shift
		   ;;
	    --pidfile)
		   pid_file=$2
		   shift 2
		   ;;
	    --pidfile=?*)
		   pid_file=${1#--pidfile=}
		   shift
		   ;;
	    --force)
	    	   force="force"
		   shift
		   ;;
	    [-+][0-9]*)
	    	   nice="nice -n $1"
	           shift
		   ;;
	    *)     echo $"$0: Usage: daemon [+/-nicelevel] {program}"
	           return 1;;
	  esac
	done

        # Save basename.
        [ -z "$gotbase" ] && base=${1##*/}

        # See if it's already running. Look *only* at the pid file.
	__pids_var_run "$base" "$pid_file"

	[ -n "$pid" -a -z "$force" ] && return

	# make sure it doesn't core dump anywhere unless requested
	corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
	
	# if they set NICELEVEL in /etc/sysconfig/foo, honor it
	[ -n "${NICELEVEL:-}" ] && nice="nice -n $NICELEVEL"
	
	# if they set CGROUP_DAEMON in /etc/sysconfig/foo, honor it
	if [ -n "${CGROUP_DAEMON}" ]; then
		if [ ! -x /bin/cgexec ]; then
			echo -n "Cgroups not installed"; warning
			echo
		else
			cgroup="/bin/cgexec";
			for i in $CGROUP_DAEMON; do
				cgroup="$cgroup -g $i";
			done
		fi
	fi

	# Echo daemon
        [ "${BOOTUP:-}" = "verbose" -a -z "${LSB:-}" ] && echo -n " $base"

	# And start it up.
	if [ -z "$user" ]; then
	   $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*"
	else
	   $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
	fi

	[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}

# A function to stop a program.
killproc() {
	local RC killlevel= base pid pid_file= delay

	RC=0; delay=3
	# Test syntax.
	if [ "$#" -eq 0 ]; then
		echo $"Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-d" ]; then
		delay=$2
		shift 2
	fi
        

	# check for second arg to be kill level
	[ -n "${2:-}" ] && killlevel=$2

        # Save basename.
        base=${1##*/}

        # Find pid.
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid" ]; then
		if [ -z "$pid_file" ]; then
			pid="$(__pids_pidof "$1")"
		else
			[ "$RC" = "4" ] && { failure $"$base shutdown" ; return $RC ;}
		fi
	fi

        # Kill it.
        if [ -n "$pid" ] ; then
                [ "$BOOTUP" = "verbose" -a -z "${LSB:-}" ] && echo -n "$base "
		if [ -z "$killlevel" ] ; then
		       if checkpid $pid 2>&1; then
			   # TERM first, then KILL if not dead
			   kill -TERM $pid >/dev/null 2>&1
			   usleep 100000
			   if checkpid $pid && sleep 1 &&
			      checkpid $pid && sleep $delay &&
			      checkpid $pid ; then
                                kill -KILL $pid >/dev/null 2>&1
				usleep 100000
			   fi
		        fi
			checkpid $pid
			RC=$?
			[ "$RC" -eq 0 ] && failure $"$base shutdown" || success $"$base shutdown"
			RC=$((! $RC))
		# use specified level only
		else
		        if checkpid $pid; then
	                	kill $killlevel $pid >/dev/null 2>&1
				RC=$?
				[ "$RC" -eq 0 ] && success $"$base $killlevel" || failure $"$base $killlevel"
			elif [ -n "${LSB:-}" ]; then
				RC=7 # Program is not running
			fi
		fi
	else
		if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
			RC=7 # Program is not running
		else
			failure $"$base shutdown"
			RC=0
		fi
	fi

        # Remove pid file if any.
	if [ -z "$killlevel" ]; then
            rm -f "${pid_file:-/var/run/$base.pid}"
	fi
	return $RC
}

# A function to find the pid of a program. Looks *only* at the pidfile
pidfileofproc() {
	local pid

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: pidfileofproc {program}"
		return 1
	fi

	__pids_var_run "$1"
	[ -n "$pid" ] && echo $pid
	return 0
}

# A function to find the pid of a program.
pidofproc() {
	local RC pid pid_file=

	# Test syntax.
	if [ "$#" = 0 ]; then
		echo $"Usage: pidofproc [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	fail_code=3 # "Program is not running"

	# First try "/var/run/*.pid" files
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -n "$pid" ]; then
		echo $pid
		return 0
	fi

	[ -n "$pid_file" ] && return $RC
	__pids_pidof "$1" || return $RC
}

status() {
	local base pid lock_file= pid_file=

	# Test syntax.
	if [ "$#" = 0 ] ; then
		echo $"Usage: status [-p pidfile] {program}"
		return 1
	fi
	if [ "$1" = "-p" ]; then
		pid_file=$2
		shift 2
	fi
	if [ "$1" = "-l" ]; then
		lock_file=$2
		shift 2
	fi
	base=${1##*/}

	# First try "pidof"
	__pids_var_run "$1" "$pid_file"
	RC=$?
	if [ -z "$pid_file" -a -z "$pid" ]; then
		pid="$(__pids_pidof "$1")"
	fi
	if [ -n "$pid" ]; then
	        echo $"${base} (pid $pid) is running..."
	        return 0
	fi

	case "$RC" in
		0)
			echo $"${base} (pid $pid) is running..."
			return 0
			;;
		1)
	                echo $"${base} dead but pid file exists"
	                return 1
			;;
		4)
			echo $"${base} status unknown due to insufficient privileges."
			return 4
			;;
	esac
	if [ -z "${lock_file}" ]; then
		lock_file=${base}
	fi
	# See if /var/lock/subsys/${lock_file} exists
	if [ -f /var/lock/subsys/${lock_file} ]; then
		echo $"${base} dead but subsys locked"
		return 2
	fi
	echo $"${base} is stopped"
	return 3
}

echo_success() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
  echo -n $"  OK  "
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 0
}

echo_failure() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
  echo -n $"FAILED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_passed() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"PASSED"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

echo_warning() {
  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
  echo -n "["
  [ "$BOOTUP" = "color" ] && $SETCOLOR_WARNING
  echo -n $"WARNING"
  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
  echo -n "]"
  echo -ne "\r"
  return 1
}

# Inform the graphical boot of our current state
update_boot_stage() {
  if [ -x /usr/bin/plymouth ]; then
      /usr/bin/plymouth --update="$1"
  fi
  return 0
}

# Log that something succeeded
success() {
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_success
  return 0
}

# Log that something failed
failure() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_failure
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --details
  return $rc
}

# Log that something passed, but may have had errors. Useful for fsck
passed() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_passed
  return $rc
}  

# Log a warning
warning() {
  local rc=$?
  [ "$BOOTUP" != "verbose" -a -z "${LSB:-}" ] && echo_warning
  return $rc
}  

# Run some action. Log its output.
action() {
  local STRING rc

  STRING=$1
  echo -n "$STRING "
  shift
  "$@" && success $"$STRING" || failure $"$STRING"
  rc=$?
  echo
  return $rc
}

# returns OK if $1 contains $2
strstr() {
  [ "${1#*$2*}" = "$1" ] && return 1
  return 0
}

# Confirm whether we really want to run this service
confirm() {
  [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --hide-splash
  while : ; do 
      echo -n $"Start service $1 (Y)es/(N)o/(C)ontinue? [Y] "
      read answer
      if strstr $"yY" "$answer" || [ "$answer" = "" ] ; then
         return 0
      elif strstr $"cC" "$answer" ; then
	 rm -f /var/run/confirm
	 [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --show-splash
         return 2
      elif strstr $"nN" "$answer" ; then
         return 1
      fi
  done
}

# resolve a device node to its major:minor numbers in decimal or hex
get_numeric_dev() {
(
    fmt="%d:%d"
    if [ "$1" == "hex" ]; then
        fmt="%x:%x"
    fi
    ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}

# Check whether file $1 is a backup or rpm-generated file and should be ignored
is_ignored_file() {
    case "$1" in
	*~ | *.bak | *.orig | *.rpmnew | *.rpmorig | *.rpmsave)
	    return 0
	    ;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_true() {
    case "$1" in
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
	return 0
	;;
    esac
    return 1
}

# Evaluate shvar-style booleans
is_false() {
    case "$1" in
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
	return 0
	;;
    esac
    return 1
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

find_crypto_mount_point() {
    local fs_spec fs_file fs_vfstype remaining_fields
    local fs
    while read fs_spec fs_file remaining_fields; do
	if [ "$fs_spec" = "/dev/mapper/$1" ]; then
	    echo $fs_file
	    break;
	fi
    done < /etc/fstab
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir prompt mount_point

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		owner=$(ls -l $key | (read a b owner rest; echo $owner))
		if ! key_is_random "$key"; then
		    mode=$(ls -l "$key" | cut -c 5-10)
		    if [ "$mode" != "------" ]; then
		       echo $"INSECURE MODE FOR $key"
		    fi
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the src field for UUID= and convert to real device names
	if [ "${src%%=*}" == "UUID" ]; then
		src=$(/sbin/blkid -t "$src" -l -o device)
	elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then
		src=$(__readlink $src)
	fi
	# Is it a block device?
	[ -b "$src" ] || continue
	# Is it already a device mapper slave? (this is gross)
	devesc=${src##/dev/}
	devesc=${devesc//\//!}
	for d in /sys/block/dm-*/slaves ; do
	    [ -e $d/$devesc ] && continue 2
	done
	# Parse the options field, convert to cryptsetup parameters and
	# contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    if [ -n "$key" ]; then
		/sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure
		rc=$?
	    else
		mount_point="$(find_crypto_mount_point $dst)"
		[ -n "$mount_point" ] || mount_point=${src##*/}
		prompt=$(printf $"%s is password protected" "$mount_point")
		plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1
		rc=$?
	    fi
	else
	    [ -z "$key" ] && plymouth --hide-splash
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure
	    rc=$?
	    [ -z "$key" ] && plymouth --show-splash
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

# A sed expression to filter out the files that is_ignored_file recognizes
__sed_discard_ignored_files='/\(~\|\.bak\|\.orig\|\.rpmnew\|\.rpmorig\|\.rpmsave\)$/d'
         Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/kdump                     0000755 0000000 0000000 00000027662 11524351062 026640  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh
### BEGIN INIT INFO
# Provides: kdump 
# Default-Start:  3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop kdump crash recovery service 
# Description:  The kdump init script provides the support necessary for
#		loading a kdump kernel into memory at system bootup time,
#		and for copying away a vmcore at system panic time. 
### END INIT INFO
#  Copyright 2005 Red Hat, Inc.
#
#  chkconfig: - 20 80
#
#  Author:  Jeff Moyer <jmoyer@redhat.com>


# Source function library.
. /etc/init.d/functions

KEXEC=/sbin/kexec

# Will be different for ia64, for example.  For now, that architecture isn't
# supported.  Code needs to be added here when we do.
BOOTDIR="/boot"

KDUMP_KERNELVER=""
KDUMP_COMMANDLINE=""
KDUMP_IDE_NOPROBE_COMMANDLINE=""
KEXEC_ARGS=""
KDUMP_CONFIG_FILE="/etc/kdump.conf"
MEM_RESERVED=""

LOGGER="/usr/bin/logger -p info -t kdump"

standard_kexec_args="-p"

if [ -f /etc/sysconfig/kdump ]; then
	. /etc/sysconfig/kdump
fi

function save_core()
{
	coredir="/var/crash/`date +"%Y-%m-%d-%H:%M"`"

	mkdir -p $coredir
	makedumpfile -c --message-level 1 -d 31 /proc/vmcore $coredir/vmcore-incomplete
	if [ $? == 0 ]; then
		mv $coredir/vmcore-incomplete $coredir/vmcore
		$LOGGER "saved a vmcore to $coredir"
	else
		$LOGGER "failed to save a vmcore to $coredir"
	fi
}

function check_config()
{
	if [ -f /etc/kdump-adv-conf/initramfs.conf ]
	then
		$LOGGER "Using Kdump advanced configuration service"
		if [ -n "$DRACUT_CMD" ]
		then
			MKDUMPRD=$DRACUT_CMD
		else
			MKDUMPRD="dracut -f -c /etc/kdump-adv-conf/initramfs.conf"
		fi
		# We always rebuild here, since it takes longer
		# to figure out if anything has changed
		touch /etc/kdump.conf
	else
		MKDUMPRD="/sbin/mkdumprd -d -f"
	fi

	if [ -z "$KDUMP_KERNELVER" ]; then
		local running_kernel=`uname -r`

		kdump_kver=`echo $running_kernel | sed 's/smp//g'`
	else
		kdump_kver=$KDUMP_KERNELVER
	fi

	kdump_kernel="${KDUMP_BOOTDIR}/${KDUMP_IMG}-${kdump_kver}${KDUMP_IMG_EXT}"
	kdump_initrd="${KDUMP_BOOTDIR}/initrd-${kdump_kver}kdump.img"

	if [ ! -f $kdump_kernel ]; then
		echo -n "No kdump kernel image found."; warning; echo
		echo "Tried to locate ${kdump_kernel}"
		return 0
	fi

	if [ ! -f $kdump_initrd ]; then
		echo  -n "No kdump initial ramdisk found."; warning; echo
		echo "Rebuilding $kdump_initrd"
		$MKDUMPRD $kdump_initrd $kdump_kver
		if [ $? != 0 ]; then
			echo "Failed to run mkdumprd"
			$LOGGER "mkdumprd: failed to make kdump initrd"
			exit 1
		fi
		return 0
	fi

        #check to see if config file or kdump post has been modified
        #since last build of the image file
        image_time=`stat -c "%Y" $kdump_initrd`
        EXTRA_FILES=`grep ^kdump_post $KDUMP_CONFIG_FILE | cut -d\  -f2`
        CHECK_FILE=`grep ^kdump_pre $KDUMP_CONFIG_FILE | cut -d\  -f2`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_modules $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        CHECK_FILE=`grep ^extra_bins $KDUMP_CONFIG_FILE | cut -d\  -f2-`
        EXTRA_FILES="$EXTRA_FILES $CHECK_FILE"
        FORCE_REBUILD=`grep ^extra_modules $KDUMP_CONFIG_FILE`
        files="$KDUMP_CONFIG_FILE $kdump_kernel $EXTRA_FILES"
        modified_files=""
        for file in $files; do
                time_stamp=0
                if [ -f "$file" ]; then
                        time_stamp=`stat -c "%Y" $file`
                else
                        modified_files="$modified_files $file"
                        continue
                fi
                if [ "$time_stamp" -gt "$image_time" ]; then
                        modified_files="$modified_files $file"
                fi
        done

        if [ -n "$FORCE_REBUILD" -a "$modified_files"!=" " ]
        then
                modified_files="force_rebuild"
        fi

        if [ -n "$modified_files" -a "$modified_files"!=" " ]; then
                if [ "$modified_files" != "force_rebuild" ]
                then
                        echo "Detected change(s) the following file(s):"
                        echo -n "  "; echo "$modified_files" | sed 's/\s/\n  /g'
                fi
                echo "Rebuilding $kdump_initrd"
                /sbin/mkdumprd -d -f $kdump_initrd $kdump_kver
                if [ $? != 0 ]; then
                        echo "Failed to run mkdumprd"
                        $LOGGER "mkdumprd: failed to make kdump initrd"
                        return 1
                fi
        fi
        return 0
}

# This function check iomem and determines if we have more than
# 4GB of ram available. Returns 1 if we do, 0 if we dont
function need_64bit_headers()
{
    return `tail -n 1 /proc/iomem | awk '{ split ($1, r, "-"); \
    print (strtonum("0x" r[2]) > strtonum("0xffffffff")); }'`
}

function avoid_cdrom_drive()
{
	local DRIVE=""
	local MEDIA=""
	local IDE_DRIVES=(`echo hd{a,b,c,d}`)
	local COUNTER="0"

	for DRIVE in ${IDE_DRIVES[@]}
	do
		if ! $(echo "$KDUMP_COMMANDLINE" |grep -q "$DRIVE=");then
			if [ -f /proc/ide/$DRIVE/media ];then
				MEDIA=$(cat /proc/ide/$DRIVE/media)
				if [ x"$MEDIA" == x"cdrom" ]; then
					KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=cdrom"
					COUNTER=$(($COUNTER+1))
				fi
			fi
		else
			KDUMP_IDE_NOPROBE_COMMANDLINE="$KDUMP_IDE_NOPROBE_COMMANDLINE $DRIVE=noprobe"
		fi
	done
	# We don't find cdrom drive.
	if [ $COUNTER -eq 0 ]; then
		KDUMP_IDE_NOPROBE_COMMANDLINE=""
	fi
}

function check_kernel_parameter()
{
	if [ -z "$KDUMP_COMMANDLINE" ]
	then
		KDUMP_COMMANDLINE=`cat /proc/cmdline`
	fi

	MEM_RESERVED=`cat /sys/kernel/kexec_crash_size`

	if [ $MEM_RESERVED -eq 0 ]
	then
		return 1
	else
		return 0
	fi
}

# Load the kdump kerel specified in /etc/sysconfig/kdump
# If none is specified, try to load a kdump kernel with the same version
# as the currently running kernel.
function load_kdump()
{
	ARCH=`uname -m`

	# Get the approx amount of ram the kernel is using in Kb
	KMEMINUSE=`awk '/Slab:.*/ {print $2}' /proc/meminfo`
	# Convert the reserved ram amount to Kb
	MEM_RESERVED=`dc -e"$MEM_RESERVED 1024 / p"`

	# Take 70% of the reserved value rounding up to the nearest integer
	MEM_RESERVED=`dc -e"$MEM_RESERVED .7 * 10 * 10 / p"`

	#Check if the KMEMINUSE is greater than MEM_RESERVED
	# This indicates that the currently runnign kernel is using
	# 70% of the amount of memory that we have reserved for kdump
	# we should issue a warning here indicating that the user may
	# want to increase the amount of reserved ram on the system
	if [ $KMEMINUSE -gt $MEM_RESERVED ]
	then
		echo -n "Your running kernel is using more than 70% of the amount of space you reserved for kdump, you should consider increasing your crashkernel reservation"
		warning
		echo
	fi 

	if [ "$ARCH" == "i686" -o "$ARCH" == "i386" ]
	then

		need_64bit_headers
		if [ $? == 1 ]
		then
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf32-core-headers`
			if [ -n "$FOUND_ELF_ARGS" ]
			then
				echo -n "Warning: elf32-core-headers overrides correct elf64 setting"
				warning
				echo
			else	
				KEXEC_ARGS="$KEXEC_ARGS --elf64-core-headers"
			fi
		else
			FOUND_ELF_ARGS=`echo $KEXEC_ARGS | grep elf64-core-headers`
			if [ -z "$FOUND_ELF_ARGS" ]
			then
				KEXEC_ARGS="$KEXEC_ARGS --elf32-core-headers"
			fi
		fi
	fi

	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/crashkernel=[^ ]*//'`
	KDUMP_COMMANDLINE=`echo $KDUMP_COMMANDLINE | sed -e 's/mem=[0-9]\+[GMKgmk]* *//'`
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_COMMANDLINE_APPEND}"
	avoid_cdrom_drive
	KDUMP_COMMANDLINE="${KDUMP_COMMANDLINE} ${KDUMP_IDE_NOPROBE_COMMANDLINE}"

	mount -t debugfs debug /sys/kernel/debug
	
	$KEXEC $KEXEC_ARGS $standard_kexec_args \
		--command-line="$KDUMP_COMMANDLINE" \
		--initrd=$kdump_initrd $kdump_kernel 2>/dev/null
	if [ $? == 0 ]; then
		umount /sys/kernel/debug
		$LOGGER "kexec: loaded kdump kernel"
		return 0
	else
		umount /sys/kernel/debug
		$LOGGER "kexec: failed to load kdump kernel"
		return 1
	fi
}

function propagate_ssh_key()
{
	#Check if selinux is on... must flip to permissive mode
	#for the moment to create key, then flip back...
	se_enforce=`/usr/sbin/sestatus | grep -c "^Current mode.*enforcing"`
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 0 2>&1 > /dev/null
	fi

	#Use dedicated key for kdump
	if [ ! -d /root/.ssh ]; then
		mkdir /root/.ssh
		chmod 700 /root/.ssh
	fi
	if [ ! -e /root/.ssh/config ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	elif [ `grep -c kdump_id_rsa /root/.ssh/config` -eq 0 ]; then
		echo "IdentityFile ~/.ssh/kdump_id_rsa" >> /root/.ssh/config
	fi
	local KEYFILE=/root/.ssh/kdump_id_rsa.pub
	local errmsg="Failed to propagate ssh key"

	#make sure they've configured kdump.conf for ssh dumps
	local SSH_TARGET=`awk '/^\ *net.*@.*$/ {print $0}' $KDUMP_CONFIG_FILE`
	if [ -z "$SSH_TARGET" ]; then
		echo "No ssh config specified in $KDUMP_CONFIG_FILE.  Can't propagate"
		$LOGGER "$errmsg, no ssh config specified in $KDUMP_CONFIG_FILE"
		exit 1
	fi

	#Check to see if we already created key, if not, create it.
	if [ -f $KEYFILE ]; then
		echo "Using existing keys..."
	else
		echo -n "Generating new ssh keys... "
		/usr/bin/ssh-keygen -t rsa -f /root/.ssh/kdump_id_rsa -N "" 2>&1 > /dev/null
		echo "done."
	fi

	#If necessary, flip selinux back to enforcing
	if [ "$se_enforce" -ge 1 ]; then
		/usr/sbin/setenforce 1 2>&1 > /dev/null
	fi
	
	#now find the target ssh user and server to contact.
	SSH_USER=`echo $SSH_TARGET | cut -d\  -f2 | cut -d@ -f1`
	SSH_SERVER=`echo $SSH_TARGET | sed -e's/\(.*@\)\(.*$\)/\2/'`
 
	#now send the found key to the found server
	ssh-copy-id -i $KEYFILE $SSH_USER@$SSH_SERVER &>/dev/null
	RET=$?
	if [ $RET == 0 ]; then
		echo $KEYFILE has been added to ~$SSH_USER/.ssh/authorized_keys on $SSH_SERVER
		$LOGGER "propagated ssh key (ssh server: $SSH_SERVER)"
		return 0
	else
		echo $KEYFILE failed in transfer to $SSH_SERVER
		$LOGGER "$errmsg, unable to transfer $KEYFILE to $SSH_SERVER"
		exit 1
	fi
		
}

function status()
{
	if [ ! -e /sys/kernel/kexec_crash_loaded ]
	then
		return 2 
	fi
	if [ -f /proc/xen/capabilities ] && grep -q "control_d" /proc/xen/capabilities
	then
		: # We are in dom0
	elif [ -f /sys/hypervisor/type ] && grep -q "xen" /sys/hypervisor/type
	then
		return 2
	fi
	rc=`cat /sys/kernel/kexec_crash_loaded`
	if [ $rc == 1 ]; then
		return 0
	else
		return 1
	fi
}

function start()
{
	#TODO check raw partition for core dump image
	status 
	rc=$?
	if [ $rc == 2 ]; then
		echo -n "Kdump is not supported on this kernel"; failure; echo
		return 1;
	else
		if [ $rc == 0 ]; then
			echo -n "Kdump already running"; success; echo
			return 0
		fi
	fi

	check_kernel_parameter
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "No crashkernel parameter specified for running kernel"
		return 1
	fi

	check_config
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up, config file incorrect"
		return 1
	fi
	load_kdump
	if [ $? != 0 ]; then
		echo -n "Starting kdump:"; failure; echo
		$LOGGER "failed to start up"
		return 1
	fi

	echo -n "Starting kdump:"; success; echo
	$LOGGER "started up"
}

function stop()
{
	$KEXEC -p -u 2>/dev/null
	if [ $? == 0 ]; then
		$LOGGER "kexec: unloaded kdump kernel"
		echo -n "Stopping kdump:"; success; echo
		$LOGGER "stopped"
		return 0
	else
		$LOGGER "kexec: failed to unload kdump kernel"
		echo -n "Stopping kdump:"; failure; echo
		$LOGGER "failed to stop"
		return 1
	fi
}

case "$1" in
  start)
	if [ -s /proc/vmcore ]; then
		save_core
		reboot
	else
		start
	fi
	;;
  stop)
	stop
	;;
  status)
	EXIT_CODE=0
	status
	case "$?" in
	0)
		echo "Kdump is operational"
		EXIT_CODE=0
		;;
	1)
		echo "Kdump is not operational"
		EXIT_CODE=3
		;;
	2)
		echo "Kdump is unsupported on this kernel"
		EXIT_CODE=3
		;;
	esac
	exit $EXIT_CODE
	;;
  restart)
	stop
	start
	;;
  condrestart)
        EXIT_CODE=1
        status
        case "$?" in
        0)
                stop
                start
                EXIT_CODE=0
        ;;
        esac
        exit $EXIT_CODE
	;;
  propagate)
	propagate_ssh_key
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|propagate}"
	exit 1
esac

exit $?
                                                                              Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/postfix                   0000755 0000000 0000000 00000007414 11524351064 027207  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# postfix      Postfix Mail Transfer Agent
#
# chkconfig: 2345 80 30
# description: Postfix is a Mail Transport Agent, which is the program \
#              that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.

### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that 
#              moves mail from one machine to another.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

RETVAL=0
prog="postfix"
lockfile=/var/lock/subsys/$prog
pidfile=/var/spool/postfix/pid/master.pid

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update

status -p $pidfile -l $(basename $lockfile) master >/dev/null 2>&1
running=$?

conf_check() {
    [ -x /usr/sbin/postfix ] || exit 5
    [ -d /etc/postfix ] || exit 6
    [ -d /var/spool/postfix ] || exit 5
}

make_aliasesdb() {
	if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
	then
		# /etc/aliases.db may be used by other MTA, make sure nothing
		# has touched it since our last newaliases call
		[ /etc/aliases -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
			[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
		/usr/bin/newaliases
		touch -r /etc/aliases.db "$ALIASESDB_STAMP"
	else
		/usr/bin/newaliases
	fi
}

start() {
	[ "$EUID" != "0" ] && exit 4
	# Check that networking is up.
	[ ${NETWORKING} = "no" ] && exit 1
	conf_check
	# Start daemons.
	echo -n $"Starting postfix: "
	make_aliasesdb >/dev/null 2>&1
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && touch $lockfile
        echo
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	conf_check
        # Stop daemons.
	echo -n $"Shutting down postfix: "
	/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $lockfile $pidfile
	echo
	return $RETVAL
}

reload() {
	conf_check
	echo -n $"Reloading postfix: "
	[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
	/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
	RETVAL=$?
	echo
	return $RETVAL
}

abort() {
	conf_check
	/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
	return $?
}

flush() {
	conf_check
	/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
	return $?
}

check() {
	conf_check
	/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
	return $?
}

# See how we were called.
case "$1" in
  start)
	[ $running -eq 0 ] && exit 0
	start
	;;
  stop)
	[ $running -eq 0 ] || exit 0
	stop
	;;
  restart|force-reload)
	stop
	start
	;;
  reload)
	[ $running -eq 0 ] || exit 7
	reload
	;;
  abort)
	abort
	;;
  flush)
	flush
	;;
  check)
	check
	;;
  status)
  	status -p $pidfile -l $(basename $lockfile) master
	;;
  condrestart)
	[ $running -eq 0 ] || exit 0
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/iptables                  0000755 0000000 0000000 00000020557 11524351062 027317  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# iptables	Start iptables firewall
#
# chkconfig: 2345 08 92
# description:	Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-config
#
### BEGIN INIT INFO
# Provides: iptables
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop iptables firewall
# Description: Start, stop and save iptables firewall
### END INIT INFO

# Source function library.
. /etc/init.d/functions

IPTABLES=iptables
IPTABLES_DATA=/etc/sysconfig/$IPTABLES
IPTABLES_CONFIG=/etc/sysconfig/${IPTABLES}-config
IPV=${IPTABLES%tables} # ip for ipv4 | ip6 for ipv6
[ "$IPV" = "ip" ] && _IPV="ipv4" || _IPV="ipv6"
PROC_IPTABLES_NAMES=/proc/net/${IPV}_tables_names
VAR_SUBSYS_IPTABLES=/var/lock/subsys/$IPTABLES

# only usable for root
[ $EUID = 0 ] || exit 4

if [ ! -x /sbin/$IPTABLES ]; then
    echo -n $"${IPTABLES}: /sbin/$IPTABLES does not exist."; warning; echo
    exit 5
fi

# Old or new modutils
/sbin/modprobe --version 2>&1 | grep -q module-init-tools \
    && NEW_MODUTILS=1 \
    || NEW_MODUTILS=0

# Default firewall configuration:
IPTABLES_MODULES=""
IPTABLES_MODULES_UNLOAD="yes"
IPTABLES_SAVE_ON_STOP="no"
IPTABLES_SAVE_ON_RESTART="no"
IPTABLES_SAVE_COUNTER="no"
IPTABLES_STATUS_NUMERIC="yes"
IPTABLES_STATUS_VERBOSE="no"
IPTABLES_STATUS_LINENUMBERS="yes"

# Load firewall configuration.
[ -f "$IPTABLES_CONFIG" ] && . "$IPTABLES_CONFIG"

# Netfilter modules
NF_MODULES=($(lsmod | awk "/^${IPV}table_/ {print \$1}") ${IPV}_tables)
NF_MODULES_COMMON=(x_tables nf_nat nf_conntrack) # Used by netfilter v4 and v6

# Get active tables
NF_TABLES=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)


rmmod_r() {
    # Unload module with all referring modules.
    # At first all referring modules will be unloaded, then the module itself.
    local mod=$1
    local ret=0
    local ref=

    # Get referring modules.
    # New modutils have another output format.
    [ $NEW_MODUTILS = 1 ] \
	&& ref=$(lsmod | awk "/^${mod}/ { print \$4; }" | tr ',' ' ') \
	|| ref=$(lsmod | grep ^${mod} | cut -d "[" -s -f 2 | cut -d "]" -s -f 1)

    # recursive call for all referring modules
    for i in $ref; do
	rmmod_r $i
	let ret+=$?;
    done

    # Unload module.
    # The extra test is for 2.6: The module might have autocleaned,
    # after all referring modules are unloaded.
    if grep -q "^${mod}" /proc/modules ; then
	modprobe -r $mod > /dev/null 2>&1
	res=$?
	[ $res -eq 0 ] || echo -n " $mod"
	let ret+=$res;
    fi

    return $ret
}

flush_n_delete() {
    # Flush firewall rules and delete chains.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 1

    echo -n $"${IPTABLES}: Flushing firewall rules: "
    ret=0
    # For all tables
    for i in $NF_TABLES; do
        # Flush firewall rules.
	$IPTABLES -t $i -F;
	let ret+=$?;

        # Delete firewall chains.
	$IPTABLES -t $i -X;
	let ret+=$?;

	# Set counter to zero.
	$IPTABLES -t $i -Z;
	let ret+=$?;
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

set_policy() {
    # Set policy for configured tables.
    policy=$1

    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    tables=$(cat "$PROC_IPTABLES_NAMES" 2>/dev/null)
    [ -z "$tables" ] && return 1

    echo -n $"${IPTABLES}: Setting chains to policy $policy: "
    ret=0
    for i in $tables; do
	echo -n "$i "
	case "$i" in
	    raw)
		$IPTABLES -t raw -P PREROUTING $policy \
		    && $IPTABLES -t raw -P OUTPUT $policy \
		    || let ret+=1
		;;
	    filter)
                $IPTABLES -t filter -P INPUT $policy \
		    && $IPTABLES -t filter -P OUTPUT $policy \
		    && $IPTABLES -t filter -P FORWARD $policy \
		    || let ret+=1
		;;
	    nat)
		$IPTABLES -t nat -P PREROUTING $policy \
		    && $IPTABLES -t nat -P POSTROUTING $policy \
		    && $IPTABLES -t nat -P OUTPUT $policy \
		    || let ret+=1
		;;
	    mangle)
	        $IPTABLES -t mangle -P PREROUTING $policy \
		    && $IPTABLES -t mangle -P POSTROUTING $policy \
		    && $IPTABLES -t mangle -P INPUT $policy \
		    && $IPTABLES -t mangle -P OUTPUT $policy \
		    && $IPTABLES -t mangle -P FORWARD $policy \
		    || let ret+=1
		;;
	    *)
	        let ret+=1
		;;
        esac
    done

    [ $ret -eq 0 ] && success || failure
    echo
    return $ret
}

start() {
    # Do not start if there is no config file.
    [ ! -f "$IPTABLES_DATA" ] && return 6

    # check if ipv6 module load is deactivated
    if [ "${_IPV}" = "ipv6" ] \
	&& grep -qIsE "^install[[:space:]]+${_IPV}[[:space:]]+/bin/(true|false)" /etc/modprobe.conf /etc/modprobe.d/* ; then
	echo $"${IPTABLES}: ${_IPV} is disabled."
	return 150
    fi

    echo -n $"${IPTABLES}: Applying firewall rules: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    $IPTABLES-restore $OPT $IPTABLES_DATA
    if [ $? -eq 0 ]; then
	success; echo
    else
	failure; echo; return 1
    fi
    
    # Load additional modules (helpers)
    if [ -n "$IPTABLES_MODULES" ]; then
	echo -n $"${IPTABLES}: Loading additional modules: "
	ret=0
	for mod in $IPTABLES_MODULES; do
	    echo -n "$mod "
	    modprobe $mod > /dev/null 2>&1
	    let ret+=$?;
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    touch $VAR_SUBSYS_IPTABLES
    return $ret
}

stop() {
    # Do not stop if iptables module is not loaded.
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    flush_n_delete
    set_policy ACCEPT
    
    if [ "x$IPTABLES_MODULES_UNLOAD" = "xyes" ]; then
	echo -n $"${IPTABLES}: Unloading modules: "
	ret=0
	for mod in ${NF_MODULES[*]}; do
	    rmmod_r $mod
	    let ret+=$?;
	done
	# try to unload remaining netfilter modules used by ipv4 and ipv6 
	# netfilter
	for mod in ${NF_MODULES_COMMON[*]}; do
	    rmmod_r $mod >/dev/null
	done
	[ $ret -eq 0 ] && success || failure
	echo
    fi
    
    rm -f $VAR_SUBSYS_IPTABLES
    return $ret
}

save() {
    # Check if iptable module is loaded
    [ ! -e "$PROC_IPTABLES_NAMES" ] && return 0

    # Check if firewall is configured (has tables)
    [ -z "$NF_TABLES" ] && return 6

    echo -n $"${IPTABLES}: Saving firewall rules to $IPTABLES_DATA: "

    OPT=
    [ "x$IPTABLES_SAVE_COUNTER" = "xyes" ] && OPT="-c"

    ret=0
    TMP_FILE=$(/bin/mktemp -q /tmp/$IPTABLES.XXXXXX) \
	&& chmod 600 "$TMP_FILE" \
	&& $IPTABLES-save $OPT > $TMP_FILE 2>/dev/null \
	&& size=$(stat -c '%s' $TMP_FILE) && [ $size -gt 0 ] \
	|| ret=1
    if [ $ret -eq 0 ]; then
	if [ -e $IPTABLES_DATA ]; then
	    cp -f $IPTABLES_DATA $IPTABLES_DATA.save \
		&& chmod 600 $IPTABLES_DATA.save \
		|| ret=1
	fi
	if [ $ret -eq 0 ]; then
	    cp -f $TMP_FILE $IPTABLES_DATA \
		&& chmod 600 $IPTABLES_DATA \
	        || ret=1
	fi
    fi
    [ $ret -eq 0 ] && success || failure
    echo
    rm -f $TMP_FILE
    return $ret
}

status() {
    if [ ! -f "$VAR_SUBSYS_IPTABLES" -a -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not running."
	return 3
    fi

    # Do not print status if lockfile is missing and iptables modules are not 
    # loaded.
    # Check if iptable modules are loaded
    if [ ! -e "$PROC_IPTABLES_NAMES" ]; then
	echo $"${IPTABLES}: Firewall modules are not loaded."
	return 3
    fi

    # Check if firewall is configured (has tables)
    if [ -z "$NF_TABLES" ]; then
	echo $"${IPTABLES}: Firewall is not configured. "
	return 3
    fi

    NUM=
    [ "x$IPTABLES_STATUS_NUMERIC" = "xyes" ] && NUM="-n"
    VERBOSE= 
    [ "x$IPTABLES_STATUS_VERBOSE" = "xyes" ] && VERBOSE="--verbose"
    COUNT=
    [ "x$IPTABLES_STATUS_LINENUMBERS" = "xyes" ] && COUNT="--line-numbers"

    for table in $NF_TABLES; do
	echo $"Table: $table"
	$IPTABLES -t $table --list $NUM $VERBOSE $COUNT && echo
    done

    return 0
}

restart() {
    [ "x$IPTABLES_SAVE_ON_RESTART" = "xyes" ] && save
    stop
    start
}


case "$1" in
    start)
	[ -f "$VAR_SUBSYS_IPTABLES" ] && exit 0
	start
	RETVAL=$?
	;;
    stop)
	[ "x$IPTABLES_SAVE_ON_STOP" = "xyes" ] && save
	stop
	RETVAL=$?
	;;
    restart|force-reload)
	restart
	RETVAL=$?
	;;
    reload)
	# unimplemented
	RETVAL=3
	;;
    condrestart|try-restart)
	[ ! -e "$VAR_SUBSYS_IPTABLES" ] && exit 0
	restart
	RETVAL=$?
	;;
    status)
	status
	RETVAL=$?
	;;
    panic)
	flush_n_delete
	set_policy DROP
	RETVAL=$?
        ;;
    save)
	save
	RETVAL=$?
	;;
    *)
	echo $"Usage: ${IPTABLES} {start|stop|restart|condrestart|status|panic|save}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                 Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/rsyslog                   0000755 0000000 0000000 00000004326 11524351065 027215  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rsyslog        Starts rsyslogd/rklogd.
#
#
# chkconfig: 2345 12 88
# description: Syslog is the facility by which many daemons use to log \
# messages to various system log files.  It is a good idea to always \
# run rsyslog.
### BEGIN INIT INFO
# Provides: $syslog
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start:  2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Enhanced system logging and kernel message trapping daemons
# Description: Rsyslog is an enhanced multi-threaded syslogd supporting, 
#              among others, MySQL, syslog/tcp, RFC 3195, permitted 
#              sender lists, filtering on any message part, and fine 
#              grain output format control.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

RETVAL=0
PIDFILE=/var/run/syslogd.pid

prog=rsyslogd
exec=/sbin/rsyslogd
lockfile=/var/lock/subsys/$prog

start() {
	[ -x $exec ] || exit 5

	# Source config
        if [ -f /etc/sysconfig/rsyslog ] ; then
                . /etc/sysconfig/rsyslog
	fi
	umask 077

        echo -n $"Starting system logger: "
        daemon --pidfile="${PIDFILE}" $exec $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch $lockfile
        return $RETVAL
}
stop() {
        echo -n $"Shutting down system logger: "
        killproc $prog
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f $lockfile
        return $RETVAL
}
reload()  {
    RETVAL=1
    syslog=$(cat "${PIDFILE}" 2>/dev/null)
    echo -n "Reloading system logger..."
    if [ -n "${syslog}" ] && [ -e /proc/"${syslog}" ]; then
	kill -HUP "$syslog";
	RETVAL=$?
    fi
    if [ $RETVAL -ne 0 ]; then
	failure
    else
	success
    fi
    echo
    return $RETVAL
}
rhstatus() {
        status -p "${PIDFILE}" $prog
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  reload|force-reload)
	reload
	;;
  status)
        rhstatus
        ;;
  condrestart|try-restart)
        rhstatus >/dev/null 2>&1 || exit 0
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
        exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                          Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/netconsole                0000755 0000000 0000000 00000005650 11524351063 027663  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# netconsole 	This loads the netconsole module with the configured parameters.
#
# chkconfig: - 50 50
# description: Initializes network console logging
# config: /etc/sysconfig/netconsole
#
# Copyright 2002 Red Hat, Inc.
#
# Based in part on a shell script by
# Andreas Dilger <adilger@turbolinux.com>  Sep 26, 2001

PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
SERVER_ADDRESS_RESOLUTION=

# Check that networking is up.
. /etc/sysconfig/network

# Source function library.
. /etc/rc.d/init.d/functions

# Default values
LOCALPORT=6666
DEV=

SYSLOGADDR=
SYSLOGPORT=514
SYSLOGMACADDR=

kernel=$(uname -r | cut -d. -f1-2)

usage ()
{
	echo $"Usage: $0 {start|stop|status|restart|condrestart}" 1>&2
	RETVAL=2
}

print_address_info ()
{
	local host=$1
	local route via target

	route=$(LANG=C ip -o route get to $host/32)
	
	[ -z "$DEV" ] && DEV=$(echo $route | sed "s|.* dev \([^ ]*\).*|\1|")
	echo "DEV=$DEV"
	echo "LOCALADDR=$(echo $route | sed "s|.* src \([^ ]*\).*|\1|")"
	if echo $route | grep -q " via " ; then
		via=$(echo $route | sed "s|.* via \([^ ]*\).*|\1|")
		target=$via
	else
		target=$host
	fi
	if [ -z "$SYSLOGMACADDR" ]; then
		arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }')
		[ -n "$arp" ] && echo "SYSLOGMACADDR=$arp"
	fi	
}	
	
start ()
{
	[ -f /etc/sysconfig/netconsole ] || exit 6
	. /etc/sysconfig/netconsole

	SYSLOGOPTS=
	# syslogd server, if any
	if [ -n "$SYSLOGADDR" ]; then
		MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$"
		if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then
			SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }')
		fi
	fi
	if [ -z "$SYSLOGADDR" ] ; then
		echo $"Server address not specified in /etc/sysconfig/netconsole" 1>&2
		exit 6
	fi
	eval $(print_address_info $SYSLOGADDR)
	
	if [ -z "$SYSLOGMACADDR" ]; then
		echo $"netconsole: can't resolve MAC address of $SYSLOGADDR" 1>&2
		exit 1
	fi

	SYSLOGOPTS="netconsole=$LOCALPORT@$LOCALADDR/$DEV,$SYSLOGPORT@$SYSLOGADDR/$SYSLOGMACADDR "

	/usr/bin/logger -p daemon.info -t netconsole: inserting netconsole module with arguments \
	$SYSLOGOPTS
	if [ -n "$SYSLOGOPTS" ]; then
		action $"Initializing netconsole" modprobe netconsole \
			$SYSLOGOPTS
		[ "$?" != "0" ] && RETVAL=1
	fi
	touch /var/lock/subsys/netconsole
}

stop ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
	    action $"Disabling netconsole" rmmod netconsole;
	    [ "$?" != "0" ] && RETVAL=1
	fi

	rm -f /var/lock/subsys/netconsole
}

status ()
{
	if /sbin/lsmod | grep netconsole >/dev/null 2>&1 ; then
		echo $"netconsole module loaded"
		RETVAL=0
	else
		echo $"netconsole module not loaded"
		RETVAL=3
	fi
}


restart ()
{
	stop
	start
}

condrestart ()
{
	[ -e /var/lock/subsys/netconsole ] && restart
}


case "$1" in
    stop) stop ;;
    status) status ;;
    start|restart|reload|force-reload) restart ;;
    condrestart) condrestart ;;
    *) usage ;;
esac

exit $RETVAL
                                                                                        Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/rpcgssd                   0000755 0000000 0000000 00000006050 11524351064 027153  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcgssd       Start up and shut down RPCSEC GSS daemon
#
# chkconfig: 345 19 85
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS client.

### BEGIN INIT INFO
# Provides: rpcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS client daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          client used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ]&&  . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

# Try to use machine credentials by default
RETVAL=0
uid=`id | cut -d\( -f1 | cut -d= -f2`

prog="rpc.gssd"
LOCKFILE=/var/lock/subsys/$prog

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.gssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi

	# During condstart need to check again to see 
	# if we are configured to start
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	rm -f $LOCKFILE
	echo -n $"Starting RPC gssd: "

	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"

	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
			for i in ${SECURE_NFS_MODS}; do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Stopping RPC gssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.gssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/abrtd                     0000755 0000000 0000000 00000003254 11524351060 026601  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# Starts the abrt daemon
#
# chkconfig: 35 82 16
# description: Daemon to detect crashing apps
# processname: abrtd
### BEGIN INIT INFO
# Provides: abrt
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Stop: 0 1 2 6
# Default-Start: 3 5
# Short-Description: start and stop abrt daemon
# Description: Listen to and dispatch crash events
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions
ABRT_BIN="/usr/sbin/abrtd"
LOCK="/var/lock/subsys/abrtd"
OLD_LOCK="/var/lock/subsys/abrt"
RETVAL=0

#
# Set these variables if you are behind proxy
#
#export http_proxy=
#export https_proxy=

#
# See how we were called.
#

check() {
	# Check that we're a privileged user
	[ "`id -u`" = 0 ] || exit 4

	# Check if abrt is executable
	test -x $ABRT_BIN || exit 5
}

start() {

	check

	# Check if it is already running
	if [ ! -f $LOCK ] && [ ! -f $OLD_LOCK ]; then
		echo -n $"Starting abrt daemon: "
		daemon $ABRT_BIN
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCK
		echo
	fi
	return $RETVAL
}

stop() {

	check

	echo -n $"Stopping abrt daemon: "
	killproc $ABRT_BIN
	RETVAL=$?
	[ $RETVAL -eq 0 ] && rm -f $LOCK
	[ $RETVAL -eq 0 ] && rm -f $OLD_LOCK
	echo
	return $RETVAL
}


restart() {
	stop
	start
}

reload() {
	restart
}

case "$1" in
start)
	start
	;;
stop)
	stop
	;;
reload)
	reload
	;;
force-reload)
	echo "$0: Unimplemented feature."
	RETVAL=3
	;;
restart)
	restart
	;;
condrestart)
	if [ -f $LOCK ]; then
		restart
	fi
	# update from older version
	if [ -f $OLD_LOCK ]; then
		restart
	fi
	;;
status)
	status abrtd
	RETVAL=$?
	;;
*)
	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/lvm2-monitor              0000555 0000000 0000000 00000004612 11524351062 030051  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# This file is part of LVM2.
# It is required for the proper handling of failures of LVM2 mirror
# devices that were created using the -m option of lvcreate.
#
#
# chkconfig: 12345 02 99
# description: Starts and stops dmeventd monitoring for lvm2
#
# For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
#	       
### BEGIN INIT INFO
# Provides: lvm2-monitor
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 1 2 3 4 5
# Default-Stop: 0 6
# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
### END INIT INFO

. /etc/init.d/functions

DAEMON=lvm2-monitor

exec_prefix=
sbindir=/sbin

VGCHANGE=${sbindir}/vgchange
VGS=${sbindir}/vgs

LOCK_FILE="/var/lock/subsys/$DAEMON"

WARN=1

start()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
	done

	return $ret
}


stop()
{
	ret=0
	# TODO do we want to separate out already active groups only?
	if test "$WARN" = "1"; then
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
	   return 1
	fi
	VGSLIST=`$VGS --noheadings -o name 2> /dev/null`
	for vg in $VGSLIST
	do
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
	done
	return $ret
}

rtrn=1

# See how we were called.
case "$1" in
  start)
	start
	rtrn=$?
	[ $rtrn = 0 ] && touch $LOCK_FILE
	;;

  force-stop)
	WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  stop)
	test "$runlevel" = "0" && WARN=0
	test "$runlevel" = "6" && WARN=0
	stop
	rtrn=$?
	[ $rtrn = 0 ] && rm -f $LOCK_FILE
	;;

  restart)
	WARN=0
	if stop
	then
		start
	fi 
	rtrn=$?
	;;

  status)
	# TODO anyone with an idea how to dump monitored volumes?
	;;

  *)
	echo $"Usage: $0 {start|stop|restart|status|force-stop}"
	;;
esac

exit $rtrn
                                                                                                                      Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/halt                      0000755 0000000 0000000 00000012723 11524351061 026437  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# halt          This file is executed by init when it goes into runlevel
#               0 (halt) or runlevel 6 (reboot). It kills all processes,
#               unmounts file systems and then either halts or reboots.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

NOLOCALE=1
. /etc/init.d/functions

UMOUNT="umount"
[ ! -w /etc ] && UMOUNT="umount -n"

halt_crypto() {
    fnval=0
    while read dst src key; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        if [ -b "/dev/mapper/$dst" ]; then
            if /sbin/dmsetup info "$dst" | grep -q '^Open count: *0$'; then
                action $"Stopping disk encryption for $dst" /sbin/cryptsetup remove "$dst"
            else
                fnval=1
            fi
        fi
    done < /etc/crypttab
    return $fnval
}

kill_all() {
    local STRING rc

    STRING=$1
    echo -n "$STRING "
    shift
    /sbin/killall5 "$@"
    rc=$?
    # Retval: 0: success 1: error 2: no processes found to kill
    if [ "$rc" == 1 ]; then
        failure $"$STRING"
    else
        success $"$STRING"
    fi
    echo
    return $rc
}

# See how we were called.
case "$0" in
   *halt)
	message=$"Halting system..."
	command="/sbin/halt"
	;;
   *reboot)
	message=$"Please stand by while rebooting the system..."
	command="/sbin/reboot"
	kexec_command="/sbin/kexec"
	;;
   *)
	echo $"$0: call me as 'halt' or 'reboot' please!"
	exit 1
	;;
esac
case "$1" in
   *start)
   	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac

# Kill all processes.
[ "${BASH+bash}" = bash ] && enable kill

# Find mdmon pid's and omit killing them
OMITARGS=
for i in /dev/md/*.pid; do
    if [ ! -r "$i" ]; then
        continue
    fi
    OMITARGS="$OMITARGS -o $(cat $i)"
done

kill_all $"Sending all processes the TERM signal..." -15 $OMITARGS
# No need to sleep and kill -9 if no processes to kill were found
if [ "$?" == 0 ]; then
    sleep 2
    kill_all $"Sending all processes the KILL signal..." -9 $OMITARGS
fi

# Write to wtmp file before unmounting /var
/sbin/halt -w

# Save mixer settings, here for lack of a better place.
if [ -s /etc/alsa/alsactl.conf -a -x /sbin/alsactl -a -w /etc/asound.state ]; then
  action $"Saving mixer settings" /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --ignore store
fi

# Save random seed
touch /var/lib/random-seed
chmod 600 /var/lib/random-seed
action $"Saving random seed: " dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null

[ -x /sbin/hwclock ] && action $"Syncing hardware clock to system time" /sbin/hwclock --systohc

# Try to unmount tmpfs filesystems to avoid swapping them in.  Ignore failures.
tmpfs=$(awk '$2 ~ /^\/($|proc|dev)/ { next; }
	     $3 == "tmpfs" { print $2; }' /proc/mounts | sort -r)
[ -n "$tmpfs" ] && fstab-decode $UMOUNT $tmpfs 2>/dev/null

# Turn off swap, then unmount file systems.
[ -f /proc/swaps ] && SWAPS=$(awk '! /^Filename/ { print $1 }' /proc/swaps)
if [ -n "$SWAPS" ]; then
    action $"Turning off swap: " swapoff $SWAPS
    for dst in $SWAPS; do
	if [[ "$dst" =~ ^/dev/mapper ]] \
	    && [ "$(dmsetup status "$dst" | cut -d ' ' -f 3)" = crypt ]; then
	    backdev=$(/sbin/cryptsetup status "$dst" \
		| awk '$1 == "device:" { print $2 }')
	    /sbin/cryptsetup remove "$dst"
	fi
    done
fi

[ -x /sbin/quotaoff ] && action $"Turning off quotas: " /sbin/quotaoff -aug

# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
__umount_loopback_loop

# Unmount RPC pipe file systems
__umount_loop '$3 ~ /^rpc_pipefs$/ || $3 ~ /^rpc_svc_gss_pipefs$/ {print $2}' \
    /proc/mounts \
    $"Unmounting pipe file systems: " \
    $"Unmounting pipe file systems (retry): " \
    -f

LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
	{print $2}' /proc/mounts \
	$"Unmounting file systems: " \
	$"Unmounting file systems (retry): " \
	-f

[ -f /proc/bus/usb/devices ] && $UMOUNT /proc/bus/usb

[ -f /etc/crypttab ] && halt_crypto

# remove the crash indicator flag
rm -f /.autofsck

# Try all file systems other than root, essential filesystems and RAM disks,
# one last time.
awk '$2 !~ /\/(|dev|proc|selinux|sys)$/ && $1 !~ /^\/dev\/ram/ { print $2 }' \
    /proc/mounts | sort -r | \
  while read line; do
    fstab-decode $UMOUNT -f $line
done

if [ -x /sbin/halt.local ]; then
   /sbin/halt.local
fi

# Tell init to re-exec itself.
kill -TERM 1

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $3 }' | while read line; do
    fstab-decode mount -n -o ro,remount $line
done

# If we left mdmon's running wait for the raidsets to become clean
if [ -n "$OMITARGS" ]; then
    mdadm --wait-clean --scan
fi

# Now halt or reboot.
echo $"$message"
if [ -f /fastboot ]; then
 echo $"On the next boot fsck will be skipped."
elif [ -f /forcefsck ]; then
 echo $"On the next boot fsck will be forced."
fi

# Shutdown UPS drivers
if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then
	. /etc/sysconfig/ups
	if [ -z $POWERDOWNFLAG ]; then
		POWERDOWNFLAG=/etc/killpower
	fi
	if [ "$SERVER" = "yes" -a -f $POWERDOWNFLAG ]; then
		/sbin/upsdrvctl shutdown
	fi
fi

# First, try kexec. If that fails, fall back to rebooting the old way.
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null

HALTARGS="-d"
[ "$INIT_HALT" != "HALT" ] && HALTARGS="$HALTARGS -p"

exec $command $HALTARGS
                                             Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/cgconfig                  0000755 0000000 0000000 00000012327 11524351061 027266  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# Start/Stop the workload manager
#
# Copyright IBM Corporation. 2008
#
# Authors:     Balbir Singh <balbir@linux.vnet.ibm.com>
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2.1 of the GNU Lesser General Public License
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it would be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# cgconfig Control Groups Configuration Startup
# chkconfig: - 5 95
# description: This script runs the cgconfigparser utility to parse and setup
#              the control group filesystem. It uses /etc/cgconfig.conf
#              and parses the configuration specified in there.

### BEGIN INIT INFO
# Provides:             cgconfig
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Short-Description:    start and stop the WLM configuration
# Description:          This script allows us to create a default configuration
### END INIT INFO

# get correct location of binaries from configure
prefix=/usr;exec_prefix=/usr;sbindir=/sbin
CGCONFIGPARSER_BIN=$sbindir/cgconfigparser
CGROUP_FS=cgroup
CONFIG_FILE=/etc/cgconfig.conf

# support multiple mount points
declare -a MOUNTPOINT
declare -a MOUNTOPTS
maxindex=0
servicename=cgconfig

#
# Source LSB routines
#
. /etc/rc.d/init.d/functions
log_success_msg () {
    echo -n $*; success "$*"; echo
}
log_failure_msg () {
    echo -n $*; failure "$*"; echo
}
log_warning_msg () {
    echo -n $*; warning "$*"; echo
}

# read the config
CREATE_DEFAULT=yes
if [ -e /etc/sysconfig/cgconfig ]; then
        . /etc/sysconfig/cgconfig
fi

create_default_groups() {
        declare defaultcgroup

        if [ -f /etc/cgrules.conf ]
        then
            read user ctrl defaultcgroup <<< \
		`grep -m1 '^\*[[:space:]]\+' /etc/cgrules.conf`
            if [[ -n $defaultcgroup && $defaultcgroup = "*" ]]
            then
                log_warning_msg "/etc/cgrules.conf incorrect"
                log_warning_msg "Overriding it"
                defaultcgroup=
            fi
        fi

        if [ -z $defaultcgroup ]
        then
            defaultcgroup=sysdefault/
        fi

        #
        # Find all mounted subsystems and create comma-separated list
        # of controllers.
        #
        controllers=`lssubsys 2>/dev/null | tr '\n' ',' | sed s/.$//`

        #
        # Create the default group, ignore errors when the default group
        # already exists.
        #
        cgcreate -g $controllers:$defaultcgroup 2>/dev/null

        #
        # special rule for cpusets
        #
        if echo $controllers | grep -q -w cpuset; then
                cpus=`cgget -nv -r cpuset.cpus /`
                cgset -r cpuset.cpus=$cpus $defaultcgroup
                mems=`cgget -nv -r cpuset.mems /`
                cgset -r cpuset.mems=$mems $defaultcgroup
        fi

        #
        # Classify everything to default cgroup. Ignore errors, some processes
        # may exit after ps is run and before cgclassify moves them.
        #
        cgclassify -g $controllers:$defaultcgroup `ps --no-headers -eL o tid` \
                 2>/dev/null || :
}

start() {
        echo -n "Starting cgconfig service: "
	if [ -f /var/lock/subsys/$servicename ]
        then
            log_warning_msg "lock file already exists"
            return
        fi

        if [ $? -eq 0 ]
        then
                if [ ! -s $CONFIG_FILE ]
                then
                    log_failure_msg $CONFIG_FILE "is not configured"
                    return 6
                fi

                $CGCONFIGPARSER_BIN -l $CONFIG_FILE
                retval=$?
                if [ $retval -ne 0 ]
                then
                    log_failure_msg "Failed to parse " $CONFIG_FILE
                    return $retval
                fi
        fi

        if [ $CREATE_DEFAULT == "yes" ]; then
                create_default_groups
        fi

        touch /var/lock/subsys/$servicename
        retval=$?
        if [ $retval -ne 0 ]
        then
            log_failure_msg "Failed to touch " /var/lock/subsys/$servicename
            return $retval
        fi
        log_success_msg
        return 0
}

stop() {
    echo -n "Stopping cgconfig service: "
    cgclear
    rm -f /var/lock/subsys/$servicename
    log_success_msg
}

trapped() {
    #
    # Do nothing
    #
    true
}

usage() {
    echo "$0 <start|stop|restart|condrestart|status>"
    exit 1
}

common() {
    #
    # main script work done here
    #
    trap "trapped ABRT" ABRT
    trap "trapped QUIT" QUIT
    trap "trapped TERM" TERM
    trap "trapped INT"   INT
}

case $1 in
    'stop')
        common
        stop;
        ;;
    'start')
        common
        start;
        ;;
    'restart')
        common
	stop
        start
        ;;
    'reload')
        common
	stop
        start
        ;;
    'condrestart')
        if [ -f /var/lock/subsys/$servicename ] ; then
            stop
            start
        fi
        ;;
    'status')
        if [ -f /var/lock/subsys/$servicename ] ; then
            echo "Running"
            exit 0
        else
            echo "Stopped"
            exit 3
        fi
	;;
    *)
        usage
        ;;
esac
                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/single                    0000755 0000000 0000000 00000001207 11524351065 026767  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
#
# rc.single     This file is executed by init when it goes into runlevel
#               1, which is the administrative state. It kills all
#               deamons and then puts the system into single user mode.
#               Note that the file systems are kept mounted.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Damien Neil
#

. /etc/init.d/functions

if [ "$1" != "start" ]; then
   exit 0
fi

# this looks nicer
[ -x /usr/bin/clear ] && /usr/bin/clear

# Now go to the single user level.
echo $"Telling INIT to go to single user mode."
exec init -t1 S
                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/mdmonitor                 0000755 0000000 0000000 00000005013 11524351063 027513  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# 
# mdmonitor	This starts, stops, and reloads the mdadm-based
#		software RAID monitoring and management facility
#
# chkconfig: 2345 15 85
# description: software RAID monitoring and management
# config: /etc/mdadm.conf
#
# Copyright 2002 Red Hat, Inc.
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the MD software RAID monitor
# Description: The mdmonitor service checks the status of all software
#	RAID arrays on the system.  In the event that any of the arrays
#	transition into a degraded state, it notifies the system
#	administrator.  Other options are available, see the mdadm.conf
#	and mdadm man pages for possible ways to configure this service.
### END INIT INFO

PIDFILE=/var/run/mdadm/mdadm.pid
PATH=/sbin:/usr/sbin:$PATH
RETVAL=0
OPTIONS="--monitor --scan -f --pid-file=$PIDFILE"

prog=mdmonitor

# Source function library.
. /etc/rc.d/init.d/functions


usage ()
{
    echo "Usage: service $prog {start|stop|status|restart|try-restart|force-reload}"
    RETVAL=1
}


start ()
{
# (Re)start mdmon to take over monitoring of mdmon started from the initrd
    for i in /dev/md/*.pid; do
	if [ -r $i ]; then
            origprog="$prog"; prog="mdmon"
            action $"Starting $prog: " /sbin/mdmon --takeover --all
            prog="$origprog"
	    break
        fi
    done
# Make sure configuration file exists and has information we can use
# MAILADDR or PROGRAM or both must be set in order to run mdadm --monitor
    [ -f /etc/mdadm.conf ] || return 6
    grep '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf >/dev/null 2>&1 || return 6
    if [ -f "$PIDFILE" ]; then
	checkpid `cat $PIDFILE` && return 0
    fi
    echo -n $"Starting $prog: "
    cd /
    daemon --user=root mdadm ${OPTIONS}
    ret=$?
    [ $ret -eq "0" ] && touch /var/lock/subsys/$prog
    echo
    return $ret
}

stop ()
{
    [ -f /var/lock/subsys/$prog ] || return 0
    echo -n "Killing $prog: "
    killproc mdadm
    echo
    rm -f $PIDFILE
    rm -f /var/lock/subsys/$prog
}

restart ()
{
    stop
    start
}

condrestart ()
{
    [ -e /var/lock/subsys/$prog ] && restart || return 0
}


case "$1" in
    start|stop|restart|condrestart|try-restart|force-reload)
    	[ `id -u` != "0" ] && exit 4 ;;
esac

case "$1" in
    start) start; RETVAL=$? ;;
    stop) stop; RETVAL=$? ;;
    status) status -p $PIDFILE $prog ; RETVAL=$? ;;
    restart) restart; RETVAL=$? ;;
    reload) RETVAL=3 ;;
    condrestart|try-restart|force-reload) condrestart; RETVAL=$? ;;
    *) usage ; RETVAL=2 ;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/restorecond               0000755 0000000 0000000 00000003427 11524351064 030042  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# restorecond:		Daemon used to maintain path file context
#
# chkconfig:	- 12 87
# description:	restorecond uses inotify to look for creation of new files \
# listed in the /etc/selinux/restorecond.conf file, and restores the \
# correct security context.
#
# processname: /usr/sbin/restorecond
# config: /etc/selinux/restorecond.conf 
# pidfile: /var/run/restorecond.pid
#
# Return values according to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - insufficient privilege
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running

PATH=/sbin:/bin:/usr/bin:/usr/sbin

# Source function library.
. /etc/rc.d/init.d/functions

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 7

# Check that we are root ... so non-root users stop here
test $EUID = 0  || exit 4

test -x /usr/sbin/restorecond  || exit 5
test -f /etc/selinux/restorecond.conf  || exit 6

RETVAL=0

start() 
{
        echo -n $"Starting restorecond: "
	unset HOME MAIL USER USERNAME
        daemon /usr/sbin/restorecond 
	RETVAL=$?
	touch /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

stop() 
{
        echo -n $"Shutting down restorecond: "
	killproc restorecond
	RETVAL=$?
	rm -f  /var/lock/subsys/restorecond
        echo
	return $RETVAL
}

restart() 
{
    stop
    start
}

# See how we were called.
case "$1" in
  start)
	start
        ;;
  stop)
	stop
        ;;
  status)
	status restorecond
	RETVAL=$?
	;;
  force-reload|restart|reload)
	restart
	;;
  condrestart)
	[ -e /var/lock/subsys/restorecond ] && restart || :
	;;
  *)
        echo $"Usage: $0 {start|stop|restart|force-reload|status|condrestart}"
        RETVAL=3
esac

exit $RETVAL
                                                                                                                                                                                                                                         Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/cpuspeed                  0000755 0000000 0000000 00000025442 11524351061 027321  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh

# the following is the LSB init header see
# http://www.linux-foundation.org/spec//booksets/LSB-Core-generic/LSB-Core-generic.html#INITSCRCOMCONV
#
### BEGIN INIT INFO
# Provides: cpuspeed
# Should-Start: 
# Default-Start: 1 2 3 4 5
# Short-Description: processor frequency scaling support
# Description: This script enables/disables processor frequency
#              scaling support, either using the cpuspeed daemon
#              or in-kernel frequency scaling support
### END INIT INFO

# the following is the chkconfig init header
#
# cpuspeed: processor frequency scaling support
#
# chkconfig: 12345 13 99
# description: Run dynamic CPU speed daemon and/or load appropriate
#              cpu frequency scaling kernel modules and/or governors
#

# Source function library.
. /etc/rc.d/init.d/functions

prog="cpuspeed"

[ -f /usr/sbin/$prog ] || exit 5

# Get config.
if [ -f /etc/sysconfig/$prog ]; then
  . /etc/sysconfig/$prog
fi

cpu0freqd=/sys/devices/system/cpu/cpu0/cpufreq
cpus='/sys/devices/system/cpu/cpu[0-9]*'
testpat="${cpus}/cpufreq/scaling_driver"
lockfile="/var/lock/subsys/$prog"
xendir="/proc/xen"
logger="/usr/bin/logger -p info -t $prog"
IGNORE_NICE=${IGNORE_NICE:-0}
module_loaded=false

some_file_exist() {
  while [ "$1" ] ; do
    [ -f "$1" ] && return 0
    shift
  done
  return 1
}

governor_is_module() {
  # Check to see if the requested cpufreq governor
  # is provided as a kernel module or not
  module_info=`/sbin/modinfo cpufreq-${governor} > /dev/null 2>&1`
  return $?
}

is_p4_clockmod() {
  if [ `/sbin/lsmod | grep -c -w "p4.clockmod"` -ge 1 -a -d "/sys/devices/system/cpu/cpu0/thermal_throttle" ]; then
    return 0
  fi
  return 1
}

governor_module_loaded() {
# Check to see if we have a module loaded for
# the current cpufreq governor
  if [ -e ${cpu0freqd}/scaling_governor ]; then
    governor=`cat ${cpu0freqd}/scaling_governor`
  else
    governor="none"
  fi
  if [ "${governor}" != "none" -a `/sbin/lsmod | grep -c -w "cpufreq.${governor}"` -ge 1 ]; then
    return 0
  fi
  return 1
}

adjust_cpufreq() {
  # First arg is a param under $cpu/cpufreq/
  # Second arg is the value you want to set that param to
  for cpu in ${cpus}; do
    echo $2 > $cpu/cpufreq/$1
  done
}

start_cpuspeed() {
  echo -n $"Starting $prog: "
  # cpuspeed daemon thresholds are specified as idle percentages,
  # cpufreq modules as busy percentages, so we need to do some
  # math here for use of unified config...
  # DOWN_THRESHOLD doesn't mean exactly the same thing for
  # cpuspeed as it does for the cpufreq governors, but close
  # enough, and if not specified, we use same defaults as governors.
  if [ -n "$UP_THRESHOLD" ]; then
    let UP_THRESHOLD=100-$UP_THRESHOLD
  else
    UP_THRESHOLD=20
  fi
  if [ -n "$DOWN_THRESHOLD" ]; then
    let DOWN_THRESHOLD=100-$DOWN_THRESHOLD
  else
    DOWN_THRESHOLD=80
  fi
  OPTS="$OPTS -r -p $UP_THRESHOLD $DOWN_THRESHOLD"
  if [ -n "$MIN_SPEED" ]; then
    OPTS="$OPTS -m $MIN_SPEED"
  fi
  if [ -n "$MAX_SPEED" ]; then
    OPTS="$OPTS -M $MAX_SPEED"
  fi
  if [ "$IGNORE_NICE" -eq 1 ]; then
    OPTS="$OPTS -n"
  fi
  daemon $prog -d $OPTS
  RETVAL=$?
  return $RETVAL
}

stop_cpuspeed() {
  if [ -n "`pidof $prog`" ]; then
    echo -n $"Stopping $prog: "
    killproc $prog -USR1
    killproc $prog -INT
  fi
  if [ -n "`pidof $prog`" ]; then
    killproc $prog
  fi
  RETVAL=$?
  return $RETVAL
}

start() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to start cpuspeed service: "
    failure; echo
    return 4
  fi
  if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
    if ! some_file_exist $testpat ; then
      # Attempt to load scaling_driver if not loaded
      # but it is configured
      if [ -n "$DRIVER" ]; then
        /sbin/modprobe "$DRIVER"
      elif [ -d /proc/acpi ]; then
        /sbin/modprobe pcc-cpufreq 2> /dev/null
	if [ ! -d ${cpu0freqd} ]; then
	  /sbin/modprobe -r pcc-cpufreq 2> /dev/null
      	  if [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
            # Try loading powernow-k8 if this is an AMD processor,
            # family 7 or greater (Athlon XP/MP was family 6)
            pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
            if [ "$?" -eq 0 ]; then
              /sbin/modprobe powernow-k8 2> /dev/null
              [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null
            fi
	  else
            # use ACPI as a fallback 
            /sbin/modprobe acpi-cpufreq 2> /dev/null
            # if even ACPI didn't work, remove it
            # and then next test will bail out.
            [ -d ${cpu0freqd} ] || /sbin/modprobe -r acpi-cpufreq 2> /dev/null
          fi
	fi
      fi
      if [ ! -d ${cpu0freqd} -a "$cpu_vendor" == GenuineIntel ]; then
        # last-ditch effort for Intel proc boxes, try our neutered p4-clockmod
        # to get at least passive cooling support (no clock changes)
        /sbin/modprobe p4-clockmod 2> /dev/null
        [ -d ${cpu0freqd} ] || /sbin/modprobe -r p4-clockmod 2> /dev/null
      fi
    fi

    # If we get this far with no driver, we must have no scaling.
    # We're doomed.
    [ ! -f ${cpu0freqd}/scaling_driver ] && return 6

    # Okay, we have a driver, carry on...
    drv=`cat ${cpu0freqd}/scaling_driver`

    # Figure out default governor to use
    case "$drv" in
      centrino|powernow-k8|acpi-cpufreq|e_powersaver)
        default_governor=ondemand
        ;;
      p4-clockmod)
        # not actually a governor, we want to bail without doing either
	# in-kernel scaling or starting up the cpuspeed daemon in this case
        default_governor=p4passive
        ;;
      *)
        default_governor=userspace
        ;;
    esac
    governor=${GOVERNOR:-${default_governor}}

    if [ "${governor}" == "p4passive" ]; then
      echo -n "Enabling p4-clockmod driver (passive cooling only): "
      success; echo
      return 0
    fi

    # Load governor module, if need be, and validate
    governor_is_module && /sbin/modprobe cpufreq-${governor}
    if [ `grep -c -w ${governor} ${cpu0freqd}/scaling_available_governors` -ge 1 ]; then
      $logger "Enabling ${governor} cpu frequency scaling governor"
    else
      $logger "Invalid governor \"${governor}\" specified, falling back to ${default_governor}"
      governor_is_module && /sbin/modprobe -r cpufreq-${governor}
      governor=${default_governor}
      governor_is_module && /sbin/modprobe cpufreq-${governor}
    fi

    # Set governor
    adjust_cpufreq scaling_governor ${governor}

    # Run cpuspeed daemon for userspace gov, kernel ones otherwise
    if [ "${governor}" == "userspace" ]; then
      start_cpuspeed
      RETVAL=$?
    else
      if [ -n "$MIN_SPEED" ]; then
        adjust_cpufreq scaling_min_freq $MIN_SPEED
      fi
      if [ -n "$MAX_SPEED" ]; then
        adjust_cpufreq scaling_max_freq $MAX_SPEED
      fi
      if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
        adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
      fi
      if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
        adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
      fi
      if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
        adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
      fi
      echo -n "Enabling ${governor} cpu frequency scaling: "
      success
      RETVAL=0
    fi
    echo
    # Technically, not quite right in non-cpuspeed daemon
    # cases, but close enough to indicate that we're
    # doing some sort of cpu frequency scaling.
    [ $RETVAL = 0 ] && touch $lockfile
  else
    if [ -d "$xendir" ]; then
      $logger "CPU Frequency scaling is currently not supported on xen kernels"
    fi
    return 0
  fi
  return $RETVAL
}

stop() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  is_p4_clockmod && p4status="true"
  if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
    echo "p4-clockmod passive cooling support cannot be truly stopped"
  fi
  [ ! -f ${cpu0freqd}/scaling_driver ] && return 0
  drv=`cat ${cpu0freqd}/scaling_driver`
  governor_module_loaded && module_loaded=true

  if [ "${governor}" != "userspace" ]; then
    echo -n "Disabling ${governor} cpu frequency scaling: "
    $logger "Disabling ${governor} cpu frequency scaling governor"
    for cpu in ${cpus}; do
      echo userspace > $cpu/cpufreq/scaling_governor
      cat $cpu/cpufreq/cpuinfo_max_freq > $cpu/cpufreq/scaling_setspeed
    done
    if [ $module_loaded == true ]; then
      /sbin/modprobe -r cpufreq-${governor}
    fi
    success
    RETVAL=0
  else
    stop_cpuspeed
    RETVAL=$?
  fi
  echo
  [ -n "$DRIVER" ] && /sbin/modprobe -r $DRIVER
  [ $RETVAL = 0 ] && RETVAL=$?
  [ $RETVAL = 0 ] && rm -f $lockfile
  return $RETVAL
}

reload() {
  if [ $(id -u) -ne 0 ]; then
    echo -n "Insufficient privileges to stop cpuspeed service: "
    failure; echo
    return 4
  fi
  governor_module_loaded && module_loaded=true
  if [ "${governor}" == "userspace" ]; then
    failure; echo
    return 3
  else
    if [ -n "$MIN_SPEED" ]; then
      adjust_cpufreq scaling_min_freq $MIN_SPEED
    fi
    if [ -n "$MAX_SPEED" ]; then
      adjust_cpufreq scaling_max_freq $MAX_SPEED
    fi
    if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
      adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD
    fi
    if [ -n "$DOWN_THRESHOLD" -a ${governor} == "conservative" ]; then
      adjust_cpufreq conservative/down_threshold $DOWN_THRESHOLD
    fi
    if [ "$IGNORE_NICE" -eq 1 -a ${governor} == "ondemand" -o ${governor} == "conservative" ]; then
      adjust_cpufreq ${governor}/ignore_nice_load $IGNORE_NICE
    fi
    echo -n "Reloading configuration for ${governor}: "
    success; echo
    return 0
  fi
}

case "$1" in
  start)
    start
    ;;

  stop)
    stop
    ;;

  status)
    is_p4_clockmod && p4status="true"
    if [ "$p4status" == "true" -a "x${GOVERNOR}" == "x" ]; then
      echo "p4-clockmod passive cooling is enabled"
      exit 0
    fi
    governor_module_loaded && module_loaded=true
    if [ -d "$xendir" ]; then
      echo "Frequency scaling not supported under xen kernels"
      RETVAL=0
    elif [ $module_loaded == true -o ${governor} == "performance" ]; then
      echo "Frequency scaling enabled using ${governor} governor"
      RETVAL=0
    else
      status $prog
      RETVAL="$?"
    fi
    ;;

  restart|force-reload)
    stop
    start
    ;;

  reload)
    reload
    ;;

  condrestart|try-restart)
    governor_module_loaded && module_loaded=true
    if [ $module_loaded == true -o -n "`pidof $prog`" -o ${governor} == "performance" ]; then
      stop
      start
    fi
    ;;

  *)
    echo $"Usage: $0 {start|stop|restart|condrestart|status}"
    exit 2
    ;;
esac

exit $RETVAL
                                                                                                                                                                                                                              Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/netfs                     0000755 0000000 0000000 00000012432 11524351063 026625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# netfs         Mount network filesystems.
#
# Authors:	Bill Nottingham <notting@redhat.com>
#		AJ Lewis <alewis@redhat.com>
# 		Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#
# chkconfig: 345 25 75
# description: Mounts and unmounts all Network File System (NFS), \
#	       CIFS (Lan Manager/Windows), and NCP (NetWare) mount points.
### BEGIN INIT INFO
# Provides: $remote_fs
# Short-Description: Mount and unmount network filesystems.
# Description: Mount and unmount network filesystems.
### END INIT INFO

[ -f /etc/sysconfig/network ] || exit 0
. /etc/init.d/functions
. /etc/sysconfig/network

NFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 ~ /^nfs/ && $3 != "nfsd" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
CIFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "cifs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NCPFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "ncpfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
NETDEVFSTAB=$(LC_ALL=C awk '!/^#/ && $4 ~/_netdev/ && $4 !~ /noauto/ { print $1 }' /etc/fstab)

NFSMTAB=$(LC_ALL=C awk '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" { print $2 }' /proc/mounts)
CIFSMTAB=$(LC_ALL=C awk '$3 == "cifs" { print $2 }' /proc/mounts)
NCPMTAB=$(LC_ALL=C awk '$3 == "ncpfs" { print $2 }' /proc/mounts)
NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)

# See how we were called.
case "$1" in
  start)
        [ ! -f /var/lock/subsys/network ] && ! nm-online -x >/dev/null 2>&1 && exit 0
        [ "$EUID" != "0" ] && exit 4
        [ -n "$NFSFSTAB" ] && 
	  {
	    [ ! -f /var/lock/subsys/rpcbind ] && service rpcbind start
	    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
	  }
        [ -n "$CIFSFSTAB" ] && action $"Mounting CIFS filesystems: " mount -a -t cifs
        [ -n "$NCPFSTAB" ] && action $"Mounting NCP filesystems: " mount -a -t ncpfs
        [ -n "$NETDEVFSTAB" ] &&
	  {
	    if [ -f /etc/mdadm.conf ]; then
		mdadm -A -s
	    fi
	    if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
	    	modprobe dm-multipath >/dev/null 2>&1
		/sbin/multipath -v 0
		if [ -x /sbin/kpartx ]; then
		       /sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	    fi
	    if [ -x /sbin/lvm ]; then
		if /sbin/lvm vgscan > /dev/null 2>&1 ; then
		       action $"Setting up Logical Volume Management:" /sbin/lvm vgchange -a y
		fi
	    fi

	    if [ -f /etc/crypttab ]; then
	        init_crypto 1
	    fi

	    STRING=$"Checking network-attached filesystems"
	    
	    echo $STRING
	    fsck -A -T -R -a -t opts=_netdev
	    rc=$?
	    
	    if [ "$rc" -eq "0" ]; then
	    	success "$STRING"
		echo
	    elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
	        echo
	    fi
	    
	    if [ "$rc" -gt 1 ]; then
		if [ -x /usr/bin/plymouth ] && /usr/bin/plymouth --ping ; then
			/usr/bin/plymouth --hide-splash
		fi
		failure "$STRING"
		tty >/dev/null 2>&1 || exit 1
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."
		
		str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX" = "1" ] && disable_selinux
		sulogin
		
		shutdown -r now
	   fi
	  }
	touch /var/lock/subsys/netfs
	action $"Mounting other filesystems: " mount -a -t nonfs,nfs4,cifs,ncpfs,gfs
	;;
  stop)
        # Unmount loopback stuff first
        [ "$EUID" != "0" ] && exit 4
	__umount_loopback_loop
  	if [ -n "$NETDEVMTAB" ]; then
		__umount_loop '$4 ~ /_netdev/ && $2 != "/" {print $2}' \
			/etc/mtab \
			$"Unmounting network block filesystems: " \
			$"Unmounting network block filesystems (retry): "
	fi
  	if [ -n "$NFSMTAB" ]; then
		__umount_loop '$3 ~ /^nfs/ && $3 != "nfsd" && $2 != "/" {print $2}' \
			/proc/mounts \
			$"Unmounting NFS filesystems: " \
			$"Unmounting NFS filesystems (retry): " \
			"-f -l"
	fi
	[ -n "$CIFSMTAB" ] && action $"Unmounting CIFS filesystems: " umount -a -t cifs
	[ -n "$NCPMTAB" ] && action $"Unmounting NCP filesystems: " umount -a -t ncp,ncpfs
	rm -f /var/lock/subsys/netfs
	;;
  status)
	if [ -f /proc/mounts ] ; then
	        [ -n "$NFSFSTAB" ] && {
		     echo $"Configured NFS mountpoints: "
		     for fs in $NFSFSTAB; do echo $fs ; done
		}
	        [ -n "$CIFSFSTAB" ] && {
		     echo $"Configured CIFS mountpoints: "
		     for fs in $CIFSFSTAB; do echo $fs ; done
		}
	        [ -n "$NCPFSTAB" ] && {
		     echo $"Configured NCP mountpoints: "
		     for fs in $NCPFSTAB; do echo $fs ; done
		}
		[ -n "$NETDEVFSTAB" ] && {
		      echo $"Configured network block devices: "
		      for fs in $NETDEVFSTAB; do echo $fs ; done
		}
		[ -n "$NFSMTAB" ] && {
                      echo $"Active NFS mountpoints: "
		      for fs in $NFSMTAB; do echo $fs ; done
		}
		[ -n "$CIFSMTAB" ] && {
                      echo $"Active CIFS mountpoints: "
		      for fs in $CIFSMTAB; do echo $fs ; done
		}
		[ -n "$NCPMTAB" ] && {
                      echo $"Active NCP mountpoints: "
		      for fs in $NCPMTAB; do echo $fs ; done
		}
		[ -n "$NETDEVMTAB" ] && {
		      echo $"Active network block devices: "
		      for fs in $NETDEVMTAB; do echo $fs ; done
		}
	else
		echo $"/proc filesystem unavailable"
	fi
	[ -r /var/lock/subsys/netfs ] || exit 3
	;;
  restart)
	$0 stop
	$0 start
	exit $?
	;;
  reload)
        $0 start
	exit $?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|reload|status}"
	exit 2
esac

exit 0
                                                                                                                                                                                                                                      Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/rpcsvcgssd                0000755 0000000 0000000 00000006014 11524351065 027670  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# rpcsvcgssd    Start up and shut down RPCSEC GSS daemon
#
# chkconfig: - 31 69
# description: Starts user-level daemon that manages RPCSEC GSS contexts \
#	       for the NFS server.

### BEGIN INIT INFO
# Provides: rpcsvcgssd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Stop: 0 1 6
# Short-Description: Starts the RPCSEC GSS server daemon
# Description: NFS is a popular protocol for file sharing across \
#          networks. This deamon manages RPCSEC GSS contexts on the
#          server used by secure NFS mounts
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network

# Check for and source configuration file otherwise set defaults
[ -f /etc/sysconfig/nfs ] && . /etc/sysconfig/nfs

RETVAL=0
prog="rpc.svcgssd"
LOCKFILE=/var/lock/subsys/$prog
uid=`id | cut -d\( -f1 | cut -d= -f2`

case "$1" in
  start|condstart)
	# Check that networking is up.
	[ "${NETWORKING}" != "yes" ] && exit 6
	[ "${SECURE_NFS}" != "yes" ] && exit 6
	[ ! -x /usr/sbin/rpc.svcgssd ] && exit 5
	# Only root can start the service
	[ $uid -ne 0 ] && exit 4

	# Make sure the daemon is not already running.
	if status $prog > /dev/null ; then
		exit 0
	fi
	rm -f $LOCKFILE

	echo -n $"Starting RPC svcgssd: "
	# List of kernel modules to load
	[ -z "${SECURE_NFS_MODS}" ] && SECURE_NFS_MODS="des rpcsec_gss_krb5"


	# Make sure the rpc_pipefs filesystem is available
	[ "${RPCMTAB}" != "noload" ] && {
		RPCMTAB=`grep -v '^#' /proc/mounts | \
			awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
		[ -z "${RPCMTAB}" ] && {
			[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
				if ! /sbin/lsmod | grep sunrpc > /dev/null ; then
				 	/sbin/modprobe sunrpc
				fi
			}
			RPCMTAB=`grep -v '^#' /proc/mounts | \
				awk '{ if ($3 ~ /^rpc_pipefs$/ ) print $2}'`
			[ -z "${RPCMTAB}" ] && { \
				echo "Error: RPC MTAB does not exist."
				exit 6
			}
		}
	}
	[ "${SECURE_NFS_MODS}" != "noload" ] && {
		[ -x /sbin/lsmod -a -x /sbin/modprobe ] && {
		# Load rpcsec modules
			for i in ${SECURE_NFS_MODS}
			do 
				if ! /sbin/lsmod | grep $i > /dev/null ;  then
				 	/sbin/modprobe $i || {
						echo "Error: Unable to load '$i' security module."
						exit 6;
					}
				fi
			done
		}
	}

	# Start daemon.
	daemon $prog ${RPCSVCGSSDARGS}
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch $LOCKFILE
	;;
  stop)
	# Just exit if not configured
	[ "${SECURE_NFS}" != "yes" ] && exit 6

	# Only root can stop the service
	[ $uid -ne 0 ] && exit 4

	# Stop daemon.
	echo -n $"Shutting down RPC svcgssd: "
	killproc $prog
	RETVAL=$?
	echo
	rm -f $LOCKFILE
	;;
  status)
	status rpc.svcgssd
	RETVAL=$?
	;;
  restart|reload|force-reload)
	$0 stop
	$0 start
	RETVAL=$?
	;;
  condrestart|try-restart)
	if [ -f $LOCKFILE ]; then
		$0 restart
		RETVAL=$?
	fi
	;;
  condstop)
	if [ -f $LOCKFILE ]; then
		$0 stop
		RETVAL=$?
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|force-reload|condstart|condrestart|try-restart|status|condstop}"
	RETVAL=2
	;;
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/oddjobd                   0000755 0000000 0000000 00000004325 11524351064 027116  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# oddjobd       This shell script takes care of starting and stopping
#               oddjobd.
#
# chkconfig: - 98 02
# description: oddjobd provides support for unprivileged applications which \
#	       require one of a set of specified privileged operations to be \
#	       performed on their behalf.
#
### BEGIN INIT INFO
# Provides: oddjobd
# Required-Start: $localfs $remotefs messagebus
# Required-Stop: $localfs $remotefs messagebus
# Short-Description: start and stop oddjob services
# Description: The oddjob service provides support for unprivileged
#     applications which require one of a set of specified privileged
#     operations to be performed on their behalf.
### END INIT INFO

prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
sbindir=/usr/sbin
sysconfdir=/etc
prog=oddjobd
oddjobd=${sbindir}/${prog}
pidfile=/var/run/${prog}.pid

# Source function library.
. /etc/rc.d/init.d/functions

start() {
	# Start daemons.
	echo -n $"Starting $prog: "
	daemon ${oddjobd} -p ${pidfile} -t 300 2>/dev/null
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then 
	    touch /var/lock/subsys/oddjobd
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup succeeded'
	    fi;
	else
	    if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd startup failed'
	    fi;
        fi
	return $RETVAL
}

stop() {
	# Stop daemons.
	echo -n $"Shutting down $prog: "
	killproc ${oddjobd}
	RETVAL=$?
	echo
	if [ $RETVAL -eq 0 ]; then
           rm -f /var/lock/subsys/oddjobd
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown succeeded'
	   fi;
	else
	   if [ -x /usr/bin/logger ]; then
		/usr/bin/logger -t oddjobd 'oddjobd shutdown failed'
	   fi;
	fi
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  restart)
	stop
	start
	RETVAL=$?
	;;
  reload|force-reload)
	echo -n $"Reloading $prog configuration: "
	killproc ${oddjobd} -HUP
	RETVAL=$?
	echo
  	;;
  condrestart|try-restart)
	if [ -f /var/lock/subsys/oddjobd ]; then
	    stop
	    start
	    RETVAL=$?
	fi
	;;
  status)
	status ${oddjobd}
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|restart|condrestart|try-restart|reload|force-reload|status}"
	exit 1
esac

exit $RETVAL
                                                                                                                                                                                                                                                                                                           Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/ksmtuned                  0000755 0000000 0000000 00000003433 11524351062 027340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ksmtuned     Kernel Samepage Merging (KSM) Tuning Daemon
#
# Author:      Dan Kenigsberg <danken@redhat.com>
#
# Copyright 2009 Red Hat, Inc. and/or its affiliates.
# Released under the GPL
#
# chkconfig: 345 85 15
# description: The KSM tuning daemon controls whether (and with what vigor) \
#              ksm should ksm search duplicated pages.
# processname: ksmtuned
# config: /etc/ksmtuned.conf
# pidfile: /var/run/ksmtuned.pid
#
### BEGIN INIT INFO
# Provides: ksmtuned
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: 3 4 5
# Short-Description: tune the speed of ksm
# Description: The Kernel Samepage Merging control Daemon is a simple script
#   that controls whether (and with what vigor) should ksm search duplicated
#   memory pages.
#   needs testing and ironing. contact danken@redhat.com if something breaks.
### END INIT INFO

. /etc/rc.d/init.d/functions

prog=ksmtuned
ksmtuned=/usr/sbin/ksmtuned
pidfile=${PIDFILE-/var/run/ksmtune.pid}
RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon --pidfile=${pidfile} $ksmtuned
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile}
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
}

restart() {
    stop
    start
}

condrestart() {
    [ -e /var/lock/subsys/$prog ] && restart || :
}

case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $prog
	RETVAL=$?
	;;
  restart|force-reload)
	restart
	;;
  condrestart|try-restart)
	condrestart
	;;
  retune)
        kill -SIGUSR1 `cat ${pidfile}`
        RETVAL=$?
        ;;
  *)
	echo $"Usage: $prog {start|stop|restart|force-reload|condrestart|try-restart|status|retune|help}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                     Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/sandbox                   0000755 0000000 0000000 00000003242 11524351065 027145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
## BEGIN INIT INFO
# Provides: sandbox
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 3 4 6
# Required-Start:
#              
## END INIT INFO
# sandbox:        Set up / mountpoint to be shared, /var/tmp, /tmp, /home/sandbox unshared
#
# chkconfig: 345 1 99
#
# description: sandbox, xguest and other apps that want to use pam_namespace \
#              require this script be run at boot.  This service script does \
#              not actually run any service but sets up: \
#              /var/tmp, /tmp and home directories to be used by these tools.\
#              If you do not use sandbox, xguest or pam_namespace you can turn \
#              this service off.\
#

# Source function library.
. /etc/init.d/functions

HOMEDIRS="/home"

. /etc/sysconfig/sandbox

LOCKFILE=/var/lock/subsys/sandbox

base=${0##*/}

start() {
	echo -n "Starting sandbox"

	[ -f "$LOCKFILE" ] && return 1

	touch $LOCKFILE
	mount --make-rshared / || return $? 
	mount --rbind /tmp /tmp || return $?
	mount --rbind /var/tmp /var/tmp || return $?
	mount --make-private /tmp || return $?
	mount --make-private /var/tmp || return $?
	for h in $HOMEDIRS; do
	    mount --rbind $h $h || return $?
	    mount --make-private $h || return $?
	done

	return 0
}

stop() {
	echo -n "Stopping sandbox"

	[ -f "$LOCKFILE" ] || return 1
}

status() {
	if [ -f "$LOCKFILE" ]; then 
	    echo "$base is running"
	else
	    echo "$base is stopped"
	fi
	exit 0
}

case "$1" in
    restart)
	start && success || failure
	;;

    start)
	start && success || failure
	echo
	;;

    stop)
	stop && success || failure
	echo
	;;

    status)
	status
	;;

    *)
	echo $"Usage: $0 {start|stop|status|restart}"
	exit 3
	;;
esac
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/killall                   0000755 0000000 0000000 00000001214 11524351062 027125  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/bash

# Bring down all unneeded services that are still running (there shouldn't 
# be any, so this is just a sanity check)

case "$1" in
   *start)
	;;
   *)
	echo $"Usage: $0 {start}"
	exit 1
	;;
esac
				      

for i in /var/lock/subsys/* ; do
	# Check if the script is there.
	[ -f "$i" ] || continue

	# Get the subsystem name.
	subsys=${i#/var/lock/subsys/}
	
	# Networking could be needed for NFS root.
	[ $subsys = network ] && continue

	# Bring the subsystem down.
	if [ -f /etc/init.d/$subsys.init ]; then
		/etc/init.d/$subsys.init stop
	elif [ -f /etc/init.d/$subsys ]; then
		/etc/init.d/$subsys stop
	else
		rm -f "$i"
	fi
done
                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/rdisc                     0000755 0000000 0000000 00000003027 11524351064 026613  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# $Id: rdisc,v 1.5 2005/04/05 10:06:01 bastian Exp $
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO

# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc

# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network

#
# Set default options.  Override the defaults and define 
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc

[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc


start() {
	# Check that networking is configured.
	[ ${NETWORKING} = "no" ] && exit 1

	echo -n $"Starting router discovery: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
		daemon /sbin/rdisc $RDISCOPTS
		RETVAL=$?
		[ $RETVAL -eq 0 ] && touch $LOCKFILE
	fi;
	echo
	return $RETVAL
}

stop() {
	echo -n $"Shutting down router discovery services: "
	if [ $UID -ne 0 ]; then
                RETVAL=4
                failure
        else
        	killproc /sbin/rdisc
		RETVAL=$?
	        [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
        fi;
	echo
	return $RETVAL
}

restart() {
	stop
	start
}

RETVAL=0

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status rdisc
	;;
  restart|reload)
	restart
	;;
  condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload}"
	exit 2
esac

exit $?
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/httpd                     0000755 0000000 0000000 00000006364 11524351061 026636  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# httpd        Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible  \
#	       server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server 
#  implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
        . /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
pidfile=${PIDFILE-/var/run/httpd/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure.  So we just do it the way init scripts
# are expected to behave here.
start() {
        echo -n $"Starting $prog: "
        LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch ${lockfile}
        return $RETVAL
}

# When stopping httpd a delay of >10 second is required before SIGKILLing the
# httpd parent; this gives enough time for the httpd parent to SIGKILL any
# errant children.
stop() {
	echo -n $"Stopping $prog: "
	killproc -p ${pidfile} -d 10 $httpd
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
    echo -n $"Reloading $prog: "
    if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
        RETVAL=6
        echo $"not reloading due to configuration syntax error"
        failure $"not reloading $httpd due to configuration syntax error"
    else
        # Force LSB behaviour from killproc
        LSB=1 killproc -p ${pidfile} $httpd -HUP
        RETVAL=$?
        if [ $RETVAL -eq 7 ]; then
            failure $"httpd shutdown"
        fi
    fi
    echo
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
        status -p ${pidfile} $httpd
	RETVAL=$?
	;;
  restart)
	stop
	start
	;;
  condrestart|try-restart)
	if status -p ${pidfile} $httpd >&/dev/null; then
		stop
		start
	fi
	;;
  force-reload|reload)
        reload
	;;
  graceful|help|configtest|fullstatus)
	$apachectl $@
	RETVAL=$?
	;;
  *)
	echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
	RETVAL=2
esac

exit $RETVAL
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/ntpd                      0000755 0000000 0000000 00000003603 11524351064 026454  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# ntpd		This shell script takes care of starting and stopping
#		ntpd (NTPv4 daemon).
#
# chkconfig: - 58 74
# description: ntpd is the NTPv4 daemon. \
# The Network Time Protocol (NTP) is used to synchronize the time of \
# a computer client or server to another server or reference time source, \
# such as a radio or satellite receiver or modem.

### BEGIN INIT INFO
# Provides: ntpd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Should-Start: $syslog $named ntpdate
# Should-Stop: $syslog $named
# Short-Description: start and stop ntpd
# Description: ntpd is the NTPv4 daemon. The Network Time Protocol (NTP)
#              is used to synchronize the time of a computer client or
#              server to another server or reference time source, such
#              as a radio or satellite receiver or modem.
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpd
lockfile=/var/lock/subsys/$prog

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpd ] || exit 5
	[ -f /etc/sysconfig/ntpd ] || exit 6
	. /etc/sysconfig/ntpd

        # Start daemons.
        echo -n $"Starting $prog: "
        daemon $prog $OPTIONS
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && touch $lockfile
	return $RETVAL
}

stop() {
	[ "$EUID" != "0" ] && exit 4
        echo -n $"Shutting down $prog: "
	killproc $prog
	RETVAL=$?
        echo
	[ $RETVAL -eq 0 ] && rm -f $lockfile
	return $RETVAL
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status $prog
	;;
  restart|force-reload)
	stop
	start
	;;
  try-restart|condrestart)
	if status $prog > /dev/null; then
	    stop
	    start
	fi
	;;
  reload)
	exit 3
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
	exit 2
esac
                                                                                                                             Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/smartd                    0000755 0000000 0000000 00000005672 11524351065 027012  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #! /bin/sh

# smartmontools init file for smartd
# Copyright (C) 2002-4 Bruce Allen <smartmontools-support@lists.sourceforge.net>
# $Id: smartd.initd,v 1.2 2004/09/17 11:55:28 arjanv Exp $

# For RedHat and cousins:
# chkconfig: - 99 01
# description: Self Monitoring and Reporting Technology (SMART) Daemon
# processname: smartd 

### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Should-Start:
# Default-Start: 
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: Self Monitoring and Reporting Technology (SMART) Daemon
# Description: The smartd daemon monitors SMART status of the local hard drives and 
#   provides advanced warnings of of disk degradation or failures.
### END INIT INFO

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version. 
# You should have received a copy of the GNU General Public License (for
# example COPYING); if not, write to the Free Software Foundation, Inc., 675
# Mass Ave, Cambridge, MA 02139, USA.
# This code was originally developed as a Senior Thesis by Michael Cornwell
# at the Concurrent Systems Laboratory (now part of the Storage Systems
# Research Center), Jack Baskin School of Engineering, University of
# California, Santa Cruz. http://ssrc.soe.ucsc.edu/.

# Uncomment the line below to pass options to smartd on startup. 
# Note that distribution specific configuration files like
# /etc/{default,sysconfig}/smartmontools might override these
#smartd_opts="--interval=1800"

SMARTD_BIN=/usr/sbin/smartd

# Source function library
. /etc/rc.d/init.d/functions

[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools

RETVAL=0
prog=smartd
pidfile=/var/lock/subsys/smartd
config=/etc/smartd.conf

start()
{
        [ $UID -eq 0 ] || exit 4
        [ -x $SMARTD_BIN ] || exit 5
        [ -f $config ] || exit 6
	echo -n $"Starting $prog: "
	daemon $SMARTD_BIN $smartd_opts
	RETVAL=$?
	echo
	[ $RETVAL = 0 ] && touch $pidfile
	return $RETVAL
}

stop()
{
        [ $UID -eq 0 ] || exit 4
	echo -n $"Shutting down $prog: "
	killproc $SMARTD_BIN
	RETVAL=$?
	echo
	rm -f $pidfile
	return $RETVAL
}

reload()
{
	echo -n $"Reloading $prog daemon configuration: "
	killproc $SMARTD_BIN -HUP
	RETVAL=$?
	echo
	return $RETVAL
}

report()
{
	echo -n $"Checking SMART devices now: "
	killproc $SMARTD_BIN -USR1
	RETVAL=$?
	echo
	return $RETVAL
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	reload)
		reload
		;;
	report)
		report
		;;
	restart)
		stop
		start
		;;
	condrestart|try-restart)
		if [ -f $pidfile ]; then
			stop
			start
		fi
		;;
	force-reload)
		reload || (stop; start)
		;;
	status)
		status $prog
		RETVAL=$?
		;;
	*)
		echo $"Usage: $0 {start|stop|restart|status|condrestart|try-restart|reload|force-reload|report}"
		RETVAL=2
		[ "$1" = 'usage' ] && RETVAL=0
esac

exit $RETVAL

                                                                      Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/nslcd                     0000755 0000000 0000000 00000003213 11524351063 026606  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/sh
#
# chkconfig: - 12 88 
# description: Provides naming services using a directory server.
# processname: /usr/sbin/nslcd
# config: /etc/nslcd.conf
# pidfile: /var/run/nslcd/nslcd.pid
#

### BEGIN INIT INFO
# Provides: nslcd
# Required-Start: $network
# Required-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: naming services LDAP client daemon
# Description: Provides naming services using a directory server.
### END INIT INFO

program=/usr/sbin/nslcd
prog=${program##*/}
pidfile=/var/run/nslcd/nslcd.pid

if [ -f /etc/rc.d/init.d/functions ]; then
	. /etc/rc.d/init.d/functions
fi

RETVAL=0

start() {
    echo -n $"Starting $prog: "
    daemon $program
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
    return $RETVAL
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $program
    RETVAL=$?
    echo
    if [ $RETVAL -eq 0 ]; then
	rm -f /var/lock/subsys/$prog
    fi
}

restart() {
    stop
    start
}

# See how we were called.
case "$1" in
    start)
        [ -f /var/lock/subsys/$prog ] && exit 0
        $1
        ;;
    stop)
        [ -f /var/lock/subsys/$prog ] || exit 0
        $1
        ;;
    restart)
        $1
        ;;
    status)
        status -p $pidfile $program
        RETVAL=$?
        ;;
    condrestart|try-restart)
        [ -f /var/lock/subsys/$prog ] && restart || :
        ;;
    reload)
        echo "can't reload configuration, you have to restart it"
        RETVAL=3
        ;;
    force-reload)
        restart
        ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
        exit 1
        ;;
esac
exit $RETVAL
                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/ntpdate                   0000755 0000000 0000000 00000003512 11524351064 027145  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
#
# chkconfig: - 57 75
# description: set the date and time via NTP

### BEGIN INIT INFO
# Provides: ntpdate
# Required-Start: $network $local_fs $remote_fs
# Should-Start: $syslog $named
# Short-Description: set the date and time via NTP
# Description: ntpdate sets the local clock by polling NTP servers
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

prog=ntpdate
lockfile=/var/lock/subsys/$prog
ntpconf=/etc/ntp.conf
ntpstep=/etc/ntp/step-tickers

start() {
	[ "$EUID" != "0" ] && exit 4
	[ "$NETWORKING" = "no" ] && exit 1
	[ -x /usr/sbin/ntpdate ] || exit 5
	[ -f /etc/sysconfig/ntpdate ] || exit 6
	. /etc/sysconfig/ntpdate

	[ -f $ntpstep ] && tickers=$(sed 's/#.*//' $ntpstep) || tickers=

	if ! echo "$tickers" | grep -qi '[a-z0-9]' && [ -f $ntpconf ]; then
	    # step-tickers doesn't specify a server,
	    # use servers from ntp.conf instead
	    tickers=$(awk '$1=="peer"||$1=="server"{print $2}' $ntpconf | \
		egrep -v '127\.127\.[0-9]+\.[0-9]+')
	fi

	if ! echo "$tickers" | grep -qi '[a-z0-9]'; then
	    echo $"NTP server not specified in $ntpstep or $ntpconf"
	    exit 6
	fi

	echo -n $"$prog: Synchronizing with time server: "
	/usr/sbin/ntpdate $OPTIONS $tickers &> /dev/null
	RETVAL=$?
	[ $RETVAL -eq 0 ] && success || failure
	echo
	if [ $RETVAL -eq 0 ]; then
	    touch $lockfile
	    [ "$SYNC_HWCLOCK" = "yes" ] && \
		action $"Syncing hardware clock to system time" \
		    /sbin/hwclock --systohc
	fi
	return $RETVAL
}

status() {
	[ -f $lockfile ] || return 3
}

stop() {
	[ "$EUID" != "0" ] && exit 4
	rm -f $lockfile
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	status
	;;
  restart|force-reload)
	stop
	start
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|force-reload}"
	exit 2
esac
                                                                                                                                                                                      Virtual_Configuration/tile12/infraserver/VM_configuration/etc/rc.d/init.d/microcode_ctl             0000755 0000000 0000000 00000002221 11524351063 030307  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #!/bin/bash
# chkconfig: 2345 0 99
# description: script to apply cpu microcode

# Check that we're a priviledged user
[ `id -u` = 0 ] || exit 0

DATAFILE=/lib/firmware/microcode.dat

. /etc/init.d/functions

RETVAL=0

# perform the update
function start ()
{
	RETVAL=1
	# Make sure we are on an Intel machine
	vendor=`grep "^vendor_id" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ "$vendor" != "GenuineIntel" ] && return

	# Microcode wasn't available until 686's.
	family=`grep "^cpu family" /proc/cpuinfo | head -n1 | awk -F ": " '{ print $2 }'`
	[ $family -lt 6 ] && return

	echo -n $"Applying Intel CPU microcode update: "

	if [ ! -e $DATAFILE ]; then 
		echo $"$0: CPU microcode data file not present ($DATAFILE)"
		exit 1
	fi

	/sbin/modprobe microcode

	lt=0
	while [ ! -c /dev/cpu/microcode ]; do
		lt=$[lt+1];
		[ $lt -gt 5 ] && break;
		sleep 0.1;
	done

	/sbin/microcode_ctl -Qu
	RETVAL=$?

	/sbin/rmmod microcode

	return $RETVAL
}

stop()
{
	return
}

case "$1" in
  start)
	start
	exit 0
	;;
  stop)
	stop
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  status)
	;;
  *)
	echo $"Usage: $0 {start|stop|restart}"
	exit 1
esac
exit $?

                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/infraserver/VM_configuration/etc/hosts                                 0000644 0000000 0000000 00000000236 11524351057 024632  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
                                                                                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/infraserver/VM_configuration/etc/iproute2/                             0000777 0000000 0000000 00000000000 11524351057 025323  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/etc/iproute2/rt_dsfield                   0000644 0000000 0000000 00000000672 11524351057 027366  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   0x00	default
0x10	lowdelay
0x08	throughput
0x04	reliability
# This value overlap with ECT, do not use it!
0x02	mincost
# These values seems do not want to die, Cisco likes them by a strange reason.
0x20	priority
0x40	immediate
0x60	flash
0x80	flash-override
0xa0	critical
0xc0	internet
0xe0	network
# Newer RFC2597 values
0x28	AF11
0x30	AF12
0x38	AF13
0x48	AF21
0x50	AF22
0x58	AF23
0x68	AF31
0x70	AF32
0x78	AF33
0x88	AF41
0x90	AF42
0x98	AF43
                                                                      Virtual_Configuration/tile12/infraserver/VM_configuration/etc/iproute2/rt_realms                    0000644 0000000 0000000 00000000160 11524351057 027227  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	cosmos
#
# local
#
#1	inr.ac
#2	inr.ruhep
#3	freenet
#4	radio-msu
#5	russia
#6	internet
                                                                                                                                                                                                                                                                                                                                                                                                                Virtual_Configuration/tile12/infraserver/VM_configuration/etc/iproute2/rt_scopes                    0000644 0000000 0000000 00000000134 11524351057 027241  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
0	global
255	nowhere
254	host
253	link
#
# pseudo-reserved
#
200	site
                                                                                                                                                                                                                                                                                                                                                                                                                                    Virtual_Configuration/tile12/infraserver/VM_configuration/etc/iproute2/ematch_map                   0000644 0000000 0000000 00000000073 11524351057 027340  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # lookup table for ematch kinds
1	cmp
2	nbyte
3	u32
4	meta
                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Virtual_Configuration/tile12/infraserver/VM_configuration/etc/iproute2/rt_tables                    0000644 0000000 0000000 00000000127 11524351057 027221  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# reserved values
#
255	local
254	main
253	default
0	unspec
#
# local
#
#1	inr.ruhep
                                                                                                                                                                                                                                                                                                                                                                                                                                         Virtual_Configuration/tile12/infraserver/VM_configuration/etc/iproute2/rt_protos                    0000644 0000000 0000000 00000000475 11524351057 027303  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# Reserved protocols.
#
0	unspec
1	redirect
2	kernel
3	boot
4	static
8	gated
9	ra
10	mrt
11	zebra
12	bird
13	dnrouted
14	xorp
15	ntk
16      dhcp

#
#	Used by me for gated
#
254	gated/aggr
253	gated/bgp
252	gated/ospf
251	gated/ospfase
250	gated/rip
249	gated/static
248	gated/conn
247	gated/inet
246	gated/default
                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/etc/nsswitch.conf                         0000644 0000000 0000000 00000003230 11524351060 026247  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#	nisplus			Use NIS+ (NIS version 3)
#	nis			Use NIS (NIS version 2), also called YP
#	dns			Use DNS (Domain Name Service)
#	files			Use the local files
#	db			Use the local database (.db) files
#	compat			Use NIS on compat mode
#	hesiod			Use Hesiod for user lookups
#	[NOTFOUND=return]	Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:
#passwd:    db files nisplus nis
#shadow:    db files nisplus nis
#group:     db files nisplus nis

passwd:     files
shadow:     files
group:      files

#hosts:     db files nisplus nis dns
hosts:      files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:        nisplus [NOTFOUND=return] files
#ethers:     nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files     

bootparams: nisplus [NOTFOUND=return] files

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files

netgroup:   nisplus

publickey:  nisplus

automount:  files nisplus
aliases:    files nisplus

                                                                                                                                                                                                                                                                                                                                                                        Virtual_Configuration/tile12/infraserver/VM_configuration/etc/fstab                                 0000644 0000000 0000000 00000001603 11524351057 024570  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
#
# /etc/fstab
# Created by anaconda on Wed Sep 22 10:29:54 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
LABEL=rhel6root		/		ext4	barrier=0				1 1
LABEL=rhel6swap		swap		swap	defaults				0 0
LABEL=rhel6datadisk	/data-disk	ext4    barrier=0,data=writeback,noatime	1 2
tmpfs                   /dev/shm	tmpfs   defaults				0 0
devpts                  /dev/pts	devpts  gid=5,mode=620				0 0
sysfs                   /sys		sysfs   defaults				0 0
proc                    /proc		proc    defaults				0 0

# UUID=cea924a0-420a-4909-9688-a6cf90119188 swap                    swap    defaults        0 0
# UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b /                       ext4    defaults        1 1
# UUID=2ad7f61f-69f4-4084-b864-74702a1d61eb /data-disk              ext4    defaults        1 2
                                                                                                                             Virtual_Configuration/tile12/infraserver/VM_configuration/etc/sysctl.conf                           0000644 0000000 0000000 00000001466 11524351074 025744  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Disable netfilter on bridges.
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
                                                                                                                                                                                                          Virtual_Configuration/tile12/infraserver/VM_configuration/etc/inittab                               0000644 0000000 0000000 00000001564 11524351057 025131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # inittab is only used by upstart for the default runlevel.
#
# ADDING OTHER CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# System initialization is started by /etc/init/rcS.conf
#
# Individual runlevels are started by /etc/init/rc.conf
#
# Ctrl-Alt-Delete is handled by /etc/init/control-alt-delete.conf
#
# Terminal gettys are handled by /etc/init/tty.conf and /etc/init/serial.conf,
# with configuration in /etc/sysconfig/init.
#
# For information on how to write upstart event handlers, or how
# upstart works, see init(5), init(8), and initctl(8).
#
# Default runlevel. The runlevels used are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
# 
id:3:initdefault:
                                                                                                                                            Virtual_Configuration/tile12/infraserver/VM_configuration/var/                                      0000777 0000000 0000000 00000000000 11524351075 023567  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/var/log/                                  0000777 0000000 0000000 00000000000 11524351075 024350  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/var/log/dmesg                             0000644 0000000 0000000 00000043364 11524351075 025400  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-71.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Sep 1 01:33:01 EDT 2010
Command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009a800 (usable)
 BIOS-e820: 000000000009a800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003fffd000 (usable)
 BIOS-e820: 000000003fffd000 - 0000000040000000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
e820 update range: 0000000000000000 - 0000000000001000 (usable) ==> (reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
last_pfn = 0x3fffd max_arch_pfn = 0x400000000
MTRR default type: write-back
MTRR fixed ranges enabled:
  00000-9FFFF write-back
  A0000-BFFFF uncachable
  C0000-FFFFF write-protect
MTRR variable ranges enabled:
  0 base 00E0000000 mask FFE0000000 uncachable
  1 disabled
  2 disabled
  3 disabled
  4 disabled
  5 disabled
  6 disabled
  7 disabled
PAT not supported by CPU.
initial memory mapped : 0 - 20000000
init_memory_mapping: 0000000000000000-000000003fffd000
 0000000000 - 003fe00000 page 2M
 003fe00000 - 003fffd000 page 4k
kernel direct mapping tables up to 3fffd000 @ 8000-b000
RAMDISK: 37321000 - 37fef342
ACPI: RSDP 00000000000f80e0 00014 (v00 BOCHS )
ACPI: RSDT 000000003fffde60 00030 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
ACPI: FACP 000000003ffffe40 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
ACPI: DSDT 000000003fffdfb0 01E4B (v01   BXPC   BXDSDT 00000001 INTL 20090123)
ACPI: FACS 000000003ffffe00 00040
ACPI: SSDT 000000003fffdf70 00037 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
ACPI: APIC 000000003fffde90 00072 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
ACPI: Local APIC address 0xfee00000
No NUMA configuration found
Faking a node at 0000000000000000-000000003fffd000
Bootmem setup node 0 0000000000000000-000000003fffd000
  NODE_DATA [0000000000009000 - 000000000003cfff]
  bootmap [000000000003d000 -  0000000000044fff] pages 8
(7 early reservations) ==> bootmem [0000000000 - 003fffd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 0001c9eff8]    TEXT DATA BSS ==> [0001000000 - 0001c9eff8]
  #3 [0037321000 - 0037fef342]          RAMDISK ==> [0037321000 - 0037fef342]
  #4 [000009a800 - 0000100000]    BIOS reserved ==> [000009a800 - 0000100000]
  #5 [0001c9f000 - 0001c9f051]              BRK ==> [0001c9f000 - 0001c9f051]
  #6 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
found SMP MP-table at [ffff8800000f8130] f8130
kvm-clock: Using msrs 12 and 11
kvm-clock: cpu 0, msr 0:18bf901, boot clock
 [ffffea0000000000-ffffea0000dfffff] PMD -> [ffff880002200000-ffff880002ffffff] on node 0
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009a
    0: 0x00000100 -> 0x0003fffd
On node 0 totalpages: 262038
  DMA zone: 56 pages used for memmap
  DMA zone: 105 pages reserved
  DMA zone: 3832 pages, LIFO batch:0
  DMA32 zone: 3528 pages used for memmap
  DMA32 zone: 254517 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0xb008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ5 used by override.
ACPI: IRQ9 used by override.
ACPI: IRQ10 used by override.
ACPI: IRQ11 used by override.
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 1 CPUs, 0 hotplug CPUs
nr_irqs_gsi: 24
PM: Registered nosave memory: 000000000009a000 - 000000000009b000
PM: Registered nosave memory: 000000000009b000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 40000000 (gap: 40000000:bffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880001e00000 s95064 r8192 d23720 u2097152
pcpu-alloc: s95064 r8192 d23720 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0 
kvm-clock: cpu 0, msr 0:1e16901, primary cpu clock
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 258349
Policy zone: DMA32
Kernel command line: ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us  elevator=deadline selinux=0
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
AMD-Vi disabled by default: pass amd_iommu=on to enable
Memory: 1007148k/1048564k available (4935k kernel code, 412k absent, 41004k reserved, 3927k data, 1220k init)
Hierarchical RCU implementation.
NR_IRQS:33024 nr_irqs:256
Console: colour VGA+ 80x25
console [tty0] enabled
allocated 10485760 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Detected 3466.818 MHz processor.
Calibrating delay loop (skipped) preset value.. 6933.63 BogoMIPS (lpj=3466818)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
mce: CPU supports 10 MCE banks
Performance Events: p6 PMU driver.
... version:                0
... bit width:              32
... generic registers:      2
... value mask:             00000000ffffffff
... max period:             000000007fffffff
... fixed-purpose events:   0
... event mask:             0000000000000003
alternatives: switching to unfair spinlock
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
ACPI: Core revision 20090903
ftrace: converting mcount calls to 0f 1f 44 00 00
ftrace: allocating 20276 entries in 80 pages
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
CPU0: Intel QEMU Virtual CPU version 0.12.1 stepping 03
Brought up 1 CPUs
Total of 1 processors activated (6933.63 BogoMIPS).
Testing NMI watchdog ... 
WARNING: CPU#0: NMI appears to be stuck (0->0)!
Please report this to bugzilla.kernel.org,
and attach the output of the 'dmesg' command.
sizeof(vma)=200 bytes
sizeof(page)=56 bytes
sizeof(inode)=592 bytes
sizeof(dentry)=192 bytes
sizeof(ext3inode)=800 bytes
sizeof(buffer_head)=104 bytes
sizeof(skbuff)=232 bytes
sizeof(task_struct)=2600 bytes
devtmpfs: initialized
regulator: core version 0.5
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: EC: Look up EC in DSDT
ACPI: Interpreter enabled
ACPI: (supports S0 S3 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
pci 0000:00:01.1: reg 20 io port: [0xc000-0xc00f]
pci 0000:00:01.3: quirk: region b000-b03f claimed by PIIX4 ACPI
pci 0000:00:01.3: quirk: region b100-b10f claimed by PIIX4 SMB
pci 0000:00:02.0: reg 10 32bit mmio pref: [0xf0000000-0xf1ffffff]
pci 0000:00:02.0: reg 14 32bit mmio: [0xf2000000-0xf2000fff]
pci 0000:00:02.0: reg 30 32bit mmio pref: [0xf2010000-0xf201ffff]
pci 0000:00:03.0: reg 10 io port: [0xc020-0xc03f]
pci 0000:00:03.0: reg 14 32bit mmio: [0xf2020000-0xf2020fff]
pci 0000:00:03.0: reg 30 32bit mmio pref: [0xf2030000-0xf203ffff]
pci 0000:00:04.0: reg 10 io port: [0xc040-0xc07f]
pci 0000:00:04.0: reg 14 32bit mmio: [0xf2040000-0xf2040fff]
pci 0000:00:05.0: reg 10 io port: [0xc080-0xc0bf]
pci 0000:00:05.0: reg 14 32bit mmio: [0xf2041000-0xf2041fff]
pci 0000:00:06.0: reg 10 32bit mmio: [0xf2044000-0xf2047fff]
pci 0000:00:06.0: reg 1c 32bit mmio: [0xf2048000-0xf204bfff]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
Unable to assume PCIe control: Disabling ASPM
ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: old code would have set cacheline size to 32 bytes, but clflush_size = 64
PCI: pci_cache_line_size set to 64 bytes
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource kvm-clock
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 8 devices
ACPI: ACPI bus type pnp unregistered
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffffffffffff]
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 131072 (order: 9, 2097152 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
NET: Registered protocol family 1
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:00:01.0: PIIX3: Enabling Passive Release
pci 0000:00:01.0: Activating ISA DMA hang workarounds
pci 0000:00:02.0: Boot video device
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 13112k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1297116130.345:1): initialized
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 1992
alg: No test for stdrng (krng)
ksign: Installing public key data
Loading keyring
- Added public key 9D480283FFC05098
- User ID: Red Hat, Inc. (Kernel Module GPG key)
- Added public key D4A26C9CCD09BEDA
- User ID: Red Hat Enterprise Linux Driver Update Program <secalert@redhat.com>
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
io scheduler cfq registered
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
acpiphp: Slot [1] registered
acpiphp: Slot [2] registered
acpiphp: Slot [3] registered
acpiphp: Slot [4] registered
acpiphp: Slot [5] registered
acpiphp: Slot [6] registered
acpiphp: Slot [7] registered
acpiphp: Slot [8] registered
acpiphp: Slot [9] registered
acpiphp: Slot [10] registered
acpiphp: Slot [11] registered
acpiphp: Slot [12] registered
acpiphp: Slot [13] registered
acpiphp: Slot [14] registered
acpiphp: Slot [15] registered
acpiphp: Slot [16] registered
acpiphp: Slot [17] registered
acpiphp: Slot [18] registered
acpiphp: Slot [19] registered
acpiphp: Slot [20] registered
acpiphp: Slot [21] registered
acpiphp: Slot [22] registered
acpiphp: Slot [23] registered
acpiphp: Slot [24] registered
acpiphp: Slot [25] registered
acpiphp: Slot [26] registered
acpiphp: Slot [27] registered
acpiphp: Slot [28] registered
acpiphp: Slot [29] registered
acpiphp: Slot [30] registered
acpiphp: Slot [31] registered
pci-stub: invalid id string ""
input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
ACPI: Power Button [PWRF]
processor LNXCPU:00: registered as cooling_device0
hpet_acpi_add: no address or irqs in _CRS
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
crash memory driver: version 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
loop: module loaded
input: Macintosh mouse button emulation as /devices/virtual/input/input1
Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
rtc_cmos 00:01: setting system clock to 2011-02-07 22:02:09 UTC (1297116129)
Initalizing network drop monitor service
Freeing unused kernel memory: 1220k freed
Write protecting the kernel read-only data: 7176k
dracut: dracut-004-32.el6
dracut: rd_NO_LUKS: removing cryptoluks activation
dracut: rd_NO_LVM: removing LVM activation
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
ata_piix 0000:00:01.1: version 2.13
ata_piix 0000:00:01.1: setting latency timer to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
ata2.01: NODEV after polling detection
ata2.00: ATAPI: QEMU DVD-ROM, 0.12.1, max UDMA/100
ata2.00: configured for MWDMA2
scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.12 PQ: 0 ANSI: 5
  alloc irq_desc for 24 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 24 for MSI/MSI-X
  alloc irq_desc for 25 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:04.0: irq 25 for MSI/MSI-X
 vda: vda1 vda2
  alloc irq_desc for 26 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 26 for MSI/MSI-X
  alloc irq_desc for 27 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:05.0: irq 27 for MSI/MSI-X
 vdb: vdb1
sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Remounting /dev/disk/by-label/rhel6root with -o barrier=0,ro
EXT4-fs (vda1): barriers disabled
EXT4-fs (vda1): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/vda1
dracut: Switching root
readahead: starting
udev: starting version 147
piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
ixgbevf: Intel(R) 82599 Virtual Function - version 1.0.1-NAPI
Copyright (c) 1999-2009 Intel Corporation.
ixgbevf 0000:00:06.0: setting latency timer to 64
ixgbe: Interrupt Throttling Rate (ints/sec) set to 2000
  alloc irq_desc for 28 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 28 for MSI/MSI-X
  alloc irq_desc for 29 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 29 for MSI/MSI-X
  alloc irq_desc for 30 on node -1
  alloc kstat_irqs on node -1
ixgbevf 0000:00:06.0: irq 30 for MSI/MSI-X
ixgbevf: eth%d: ixgbevf_init_interrupt_scheme: Multiqueue Disabled: Rx Queue count = 1, Tx Queue count = 1
d2:3b:3d:1f:77:45
ixgbevf: eth0: ixgbevf_probe: MAC: 3
ixgbevf: eth0: ixgbevf_probe: LRO is disabled 
ixgbevf: eth0: ixgbevf_probe: Intel(R) 82599 Virtual Function
udev: renamed network interface eth0 to eth1
  alloc irq_desc for 31 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 31 for MSI/MSI-X
  alloc irq_desc for 32 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 32 for MSI/MSI-X
  alloc irq_desc for 33 on node -1
  alloc kstat_irqs on node -1
virtio-pci 0000:00:03.0: irq 33 for MSI/MSI-X
sr 1:0:0:0: Attached scsi generic sg0 type 5
parport_pc 00:05: reported by Plug and Play ACPI
parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
ppdev: user-space parallel port driver
EXT4-fs (vdb1): barriers disabled
EXT4-fs (vdb1): mounted filesystem with writeback data mode
Adding 2047992k swap on /dev/vda2.  Priority:-1 extents:1 across:2047992k 
                                                                                                                                                                                                                                                                            Virtual_Configuration/tile12/infraserver/VM_configuration/boot/                                     0000777 0000000 0000000 00000000000 11524351056 023741  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/boot/grub/                                0000777 0000000 0000000 00000000000 11524351056 024700  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/VM_configuration/boot/grub/grub.conf                       0000644 0000000 0000000 00000002217 11524351056 026504  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=LABEL=rhel6root rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img

title Red Hat Enterprise Linux (2.6.32-71.el6.x86_64)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-71.el6.x86_64 ro root=UUID=a7d3393a-d0e2-447e-a96f-31cfc92e055b rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto elevator=deadline selinux=0
	initrd /boot/initramfs-2.6.32-71.el6.x86_64.img
                                                                                                                                                                                                                                                                                                                                                                                 Virtual_Configuration/tile12/infraserver/VM_configuration/rpmpkgs.txt                               0000644 0000000 0000000 00000067243 11524351075 025233  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   openldap-devel-2.4.19-15.el6.x86_64
pygpgme-0.1-18.20090824bzr68.el6.x86_64
libXv-1.0.5-1.el6.x86_64
basesystem-10.0-4.el6.noarch
aic94xx-firmware-30-2.el6.noarch
abrt-libs-1.1.13-4.el6.x86_64
libX11-devel-1.3-2.el6.x86_64
zlib-1.2.3-25.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
abrt-1.1.13-4.el6.x86_64
pango-devel-1.28.1-3.el6.x86_64
chkconfig-1.3.47-1.el6.x86_64
system-config-firewall-tui-1.2.27-1.el6.noarch
ed-1.1-3.3.el6.x86_64
libXxf86vm-devel-1.1.0-1.el6.x86_64
gawk-3.1.7-6.el6.x86_64
iotop-0.3.2-3.el6.noarch
db4-cxx-4.7.25-16.el6.x86_64
kbd-misc-1.15-11.el6.noarch
gamin-0.1.10-9.el6.x86_64
audit-libs-devel-2.0.4-1.el6.x86_64
libaio-0.3.107-10.el6.x86_64
udev-147-2.29.el6.x86_64
libjpeg-6b-46.el6.x86_64
atmel-firmware-1.3-7.el6.noarch
hdparm-9.16-3.4.el6.x86_64
device-mapper-event-1.02.53-8.el6.x86_64
libcap-2.16-5.2.el6.x86_64
ql2500-firmware-5.03.02-2.el6.noarch
libXdmcp-1.0.3-1.el6.x86_64
perl-Git-1.7.1-2.el6.noarch
xmlrpc-c-1.16.24-1200.1840.el6.x86_64
redhat-indexhtml-6-1.el6.noarch
newt-0.52.11-2.el6.x86_64
gnome-disk-utility-libs-2.30.1-2.el6.x86_64
libidn-1.18-2.el6.x86_64
httpd-2.2.15-5.el6.x86_64
libusb1-1.0.3-1.el6.x86_64
python-iwlib-0.1-1.2.el6.x86_64
elfutils-libs-0.148-1.el6.x86_64
php-5.3.2-6.el6.x86_64
libxml2-devel-2.7.6-1.el6.x86_64
certmonger-0.24-4.el6.x86_64
procps-3.2.8-14.el6.x86_64
hivex-1.2.2-1.el6.x86_64
libSM-devel-1.1.0-7.1.el6.x86_64
avahi-glib-0.6.25-8.el6.x86_64
hal-libs-0.5.14-8.el6.x86_64
gfs2-utils-3.0.12-23.el6.x86_64
perl-Log-Message-0.02-115.el6.x86_64
gvfs-1.4.3-9.el6.x86_64
nss-softokn-3.12.7-1.1.el6.x86_64
fakechroot-2.9-24.1.el6.x86_64
libart_lgpl-devel-2.3.20-5.1.el6.x86_64
libbonobo-devel-2.24.2-4.el6.x86_64
gzip-1.3.12-18.el6.x86_64
gvfs-fuse-1.4.3-9.el6.x86_64
perl-IO-Zlib-1.09-115.el6.x86_64
polkit-docs-0.96-2.el6.x86_64
alsa-lib-1.0.21-3.el6.x86_64
libXau-devel-1.0.5-1.el6.x86_64
libvirt-java-0.4.5-2.el6.noarch
libtasn1-2.3-3.el6.x86_64
plymouth-scripts-0.8.3-17.el6.x86_64
samba-client-3.5.4-68.el6.x86_64
rpcbind-0.2.0-8.el6.x86_64
docbook-style-dsssl-1.79-10.el6.noarch
acpid-1.0.10-2.1.el6.x86_64
vim-minimal-7.2.411-1.4.el6.x86_64
perl-ExtUtils-Embed-1.28-115.el6.x86_64
openswan-2.6.24-8.el6.x86_64
bc-1.06.95-1.el6.x86_64
yum-utils-1.1.26-11.el6.noarch
subversion-1.6.11-2.el6.x86_64
boost-serialization-1.41.0-11.el6.x86_64
python-dateutil-1.4.1-6.el6.noarch
rpm-build-4.8.0-12.el6.x86_64
perl-Pod-Escapes-1.04-115.el6.x86_64
numpy-1.3.0-6.2.el6.x86_64
patchutils-0.3.1-3.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
perl-CPANPLUS-0.88-115.el6.x86_64
audit-2.0.4-1.el6.x86_64
libffi-3.0.5-3.2.el6.x86_64
redhat-menus-14.0.0-3.el6.noarch
oprofile-0.9.6-7.el6.x86_64
python-gudev-147.1-4.el6.x86_64
kernel-devel-2.6.32-71.el6.x86_64
hunspell-1.2.8-16.el6.x86_64
xcb-util-0.3.6-1.el6.x86_64
libstdc++-devel-4.4.4-13.el6.x86_64
setserial-2.17-25.el6.x86_64
perl-Time-Piece-1.15-115.el6.x86_64
compat-glibc-headers-2.5-46.2.x86_64
latrace-0.5.9-2.el6.x86_64
pam_ldap-185-5.el6.x86_64
perl-XML-Parser-2.36-7.el6.x86_64
compat-libf2c-34-3.4.6-19.el6.x86_64
sssd-client-1.2.1-28.el6.x86_64
cairo-1.8.8-3.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
report-config-ftp-0.18-7.el6.x86_64
libXdamage-1.1.2-1.el6.x86_64
systemtap-1.2-9.el6.x86_64
mailx-12.4-6.el6.x86_64
libglade2-2.6.4-3.1.el6.x86_64
evolution-data-server-devel-2.28.3-10.el6.x86_64
iw-0.9.17-4.el6.x86_64
evolution-data-server-2.28.3-10.el6.x86_64
gvfs-devel-1.4.3-9.el6.x86_64
pinentry-0.7.6-5.el6.x86_64
gettext-devel-0.17-16.el6.x86_64
xml-common-0.6.3-32.el6.noarch
iwl6050-firmware-9.201.4.1-2.el6.noarch
eggdbus-0.6-3.el6.x86_64
libwnck-2.28.0-2.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
seekwatcher-0.12-4.1.el6.noarch
db4-utils-4.7.25-16.el6.x86_64
libXfixes-devel-4.0.4-1.el6.x86_64
libxml2-2.7.6-1.el6.x86_64
perl-core-5.10.1-115.el6.x86_64
abrt-plugin-logger-1.1.13-4.el6.x86_64
libXinerama-devel-1.1-1.el6.x86_64
db4-4.7.25-16.el6.x86_64
db4-devel-4.7.25-16.el6.x86_64
mtools-4.0.12-1.el6.x86_64
gnome-themes-2.28.1-6.el6.noarch
sqlite-3.6.20-1.el6.x86_64
pam-devel-1.1.1-4.el6.x86_64
vim-common-7.2.411-1.4.el6.x86_64
jna-3.2.4-2.el6.x86_64
sed-4.2.1-5.el6.x86_64
libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
mingetty-1.08-4.1.el6.x86_64
device-mapper-event-libs-1.02.53-8.el6.x86_64
libuuid-2.17.2-6.el6.x86_64
rt61pci-firmware-1.2-7.el6.noarch
sgpio-1.2.0.10-5.el6.x86_64
kbd-1.15-11.el6.x86_64
krb5-libs-1.8.2-3.el6.x86_64
ivtv-firmware-20080701-20.2.noarch
yajl-1.0.7-3.el6.x86_64
dmraid-1.0.0.rc16-10.el6.x86_64
libart_lgpl-2.3.20-5.1.el6.x86_64
screen-4.0.3-15.el6.x86_64
theora-tools-1.1.0-2.el6.x86_64
pm-utils-1.2.5-9.el6.x86_64
m4-1.4.13-5.el6.x86_64
httpd-manual-2.2.15-5.el6.noarch
perl-Locale-Maketext-Simple-0.18-115.el6.x86_64
cronie-anacron-1.4.4-2.el6.x86_64
lua-5.1.4-4.1.el6.x86_64
fuse-libs-2.8.3-1.el6.x86_64
fontconfig-devel-2.8.0-3.el6.x86_64
postgresql-8.4.4-2.el6.x86_64
xz-4.999.9-0.3.beta.20091007git.el6.x86_64
perl-Sys-Virt-0.2.4-1.el6.x86_64
perl-Module-Load-0.16-115.el6.x86_64
libbonoboui-2.24.2-3.el6.x86_64
libIDL-0.8.13-2.1.el6.x86_64
cairo-spice-1.8.7.1-4.el6.x86_64
perl-IO-Compress-Base-2.020-115.el6.x86_64
rarian-0.8.1-5.1.el6.x86_64
boost-thread-1.41.0-11.el6.x86_64
perl-XML-Writer-0.606-6.el6.noarch
nss-util-devel-3.12.7-1.el6.x86_64
gtk2-devel-2.18.9-4.el6.x86_64
coreutils-8.4-9.el6.x86_64
libguestfs-mount-1.2.7-1.24.el6.x86_64
perl-Archive-Extract-0.38-115.el6.x86_64
gnome-vfs2-devel-2.24.2-6.el6.x86_64
libsndfile-1.0.20-3.el6.x86_64
perl-Module-CoreList-2.18-115.el6.x86_64
rhn-check-1.0.0-38.el6.noarch
libuser-0.56.13-4.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64
sysstat-9.0.4-11.el6.x86_64
elfutils-0.148-1.el6.x86_64
libmng-devel-1.0.10-4.1.el6.x86_64
microcode_ctl-1.17-3.el6.x86_64
libcroco-0.6.2-5.el6.x86_64
system-config-firewall-base-1.2.27-1.el6.noarch
fprintd-pam-0.1-19.git04fd09cfa.el6.x86_64
e2fsprogs-1.41.12-3.el6.x86_64
boost-1.41.0-11.el6.x86_64
pinfo-0.6.9-12.el6.x86_64
boost-regex-1.41.0-11.el6.x86_64
neon-0.29.3-1.2.el6.x86_64
bind-utils-9.7.0-5.P2.el6.x86_64
perl-Module-Pluggable-3.90-115.el6.x86_64
libIDL-devel-0.8.13-2.1.el6.x86_64
alsa-utils-1.0.21-3.el6.x86_64
pixman-0.16.6-1.el6.x86_64
pygobject2-codegen-2.20.0-5.el6.x86_64
mlocate-0.22.2-3.el6.x86_64
libxml2-python-2.7.6-1.el6.x86_64
gnutls-devel-2.8.5-4.el6.x86_64
irqbalance-0.55-27.el6.x86_64
python-ldap-2.3.10-1.el6.x86_64
libcom_err-devel-1.41.12-3.el6.x86_64
mcelog-1.0pre3-0.2.el6.x86_64
cvs-1.11.23-11.el6.x86_64
glibc-devel-2.12-1.7.el6.x86_64
rdate-1.4-16.el6.x86_64
apr-util-1.3.9-3.el6.x86_64
dmz-cursor-themes-0.4-4.el6.noarch
libtopology-0.3-7.el6.x86_64
fipscheck-lib-1.2.0-4.1.el6.x86_64
libX11-1.3-2.el6.x86_64
compat-libgfortran-41-4.1.2-39.el6.x86_64
groff-1.18.1.4-21.el6.x86_64
libXtst-1.0.99.2-3.el6.x86_64
mesa-libGL-7.7-2.el6.x86_64
report-plugin-localsave-0.18-7.el6.x86_64
libXcomposite-0.4.1-2.el6.x86_64
kexec-tools-2.0.0-145.el6.x86_64
elinks-0.12-0.20.pre5.el6.x86_64
libgweather-2.28.0-4.el6.x86_64
gnome-desktop-devel-2.28.2-8.el6.x86_64
grubby-7.0.15-2.el6.x86_64
libgcj-4.4.4-13.el6.x86_64
gnupg2-2.0.14-4.el6.x86_64
setup-2.8.14-10.el6.noarch
libvirt-devel-0.8.1-27.el6.x86_64
pulseaudio-libs-zeroconf-0.9.21-13.el6.x86_64
tcp_wrappers-7.6-56.3.el6.x86_64
tzdata-2010l-1.el6.noarch
libXres-1.0.4-1.el6.x86_64
polkit-0.96-2.el6.x86_64
glibc-common-2.12-1.7.el6.x86_64
giflib-4.1.6-3.1.el6.x86_64
nc-1.84-22.el6.x86_64
bash-4.1.2-3.el6.x86_64
libXrender-devel-0.9.5-1.el6.x86_64
rpm-libs-4.8.0-12.el6.x86_64
info-4.13a-8.el6.x86_64
libXcursor-devel-1.1.10-2.el6.x86_64
man-1.6f-29.el6.x86_64
freetype-2.3.11-5.el6.x86_64
libXi-devel-1.3-3.el6.x86_64
libnih-1.0.1-6.el6.x86_64
audit-libs-2.0.4-1.el6.x86_64
libXcomposite-devel-0.4.1-2.el6.x86_64
indent-2.2.10-5.1.el6.x86_64
libICE-1.0.6-1.el6.x86_64
gnome-icon-theme-2.28.0-2.el6.noarch
compat-db43-4.3.29-15.el6.x86_64
readline-6.0-3.el6.x86_64
pygtk2-doc-2.16.0-3.el6.noarch
libtar-1.2.11-16.el6.x86_64
libselinux-2.0.94-2.el6.x86_64
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.x86_64
cdparanoia-libs-10.2-5.1.el6.x86_64
shadow-utils-4.1.4.2-8.el6.x86_64
util-linux-ng-2.17.2-6.el6.x86_64
dosfstools-3.0.9-3.el6.x86_64
gmp-4.3.1-7.el6.x86_64
device-mapper-1.02.53-8.el6.x86_64
libevent-1.4.13-1.el6.x86_64
dbus-1.2.24-3.el6.x86_64
postfix-2.6.6-2.el6.x86_64
libdhash-0.4.0-28.el6.x86_64
libtalloc-2.0.1-1.1.el6.x86_64
mdadm-3.1.3-1.el6.x86_64
dash-0.5.5.1-3.1.el6.x86_64
keyutils-libs-1.4-1.el6.x86_64
openssh-5.3p1-20.el6.x86_64
libmng-1.0.10-4.1.el6.x86_64
libudev-147-2.29.el6.x86_64
dmraid-events-1.0.0.rc16-10.el6.x86_64
pakchois-0.4-3.2.el6.x86_64
libtdb-1.2.1-2.el6.x86_64
parted-2.1-10.el6.x86_64
authconfig-6.1.4-6.el6.x86_64
which-2.19-5.1.el6.x86_64
cryptsetup-luks-1.1.2-2.el6.x86_64
liboil-0.3.16-4.1.el6.x86_64
bzip2-1.0.5-6.1.el6.x86_64
crda-1.1.1_2009.11.25-3.el6.x86_64
smp_utils-0.94-4.el6.x86_64
libnl-1.1-12.el6.x86_64
crontabs-1.10-32.1.el6.noarch
perl-Params-Check-0.26-115.el6.x86_64
psmisc-22.6-15.el6.x86_64
ypbind-1.20.4-29.el6.x86_64
sgml-common-0.6.3-32.el6.noarch
pcre-7.8-3.1.el6.x86_64
oddjob-0.30-1.el6.x86_64
libpng-devel-1.2.44-1.el6.x86_64
boost-filesystem-1.41.0-11.el6.x86_64
ntp-4.2.4p8-2.el6.x86_64
perl-Test-Harness-3.17-115.el6.x86_64
tar-1.23-3.el6.x86_64
libgnome-2.28.0-11.el6.x86_64
perl-Module-Load-Conditional-0.30-115.el6.x86_64
mpfr-2.4.1-6.el6.x86_64
gnome-python2-gnome-2.28.0-3.el6.x86_64
jpackage-utils-1.7.5-3.12.el6.noarch
desktop-file-utils-0.15-9.el6.x86_64
nfs-utils-1.2.2-7.el6.x86_64
perl-URI-1.40-2.el6.noarch
e2fsprogs-libs-1.41.12-3.el6.x86_64
ORBit2-devel-2.14.17-3.1.el6.x86_64
nspr-devel-4.8.6-1.el6.x86_64
ncurses-5.7-3.20090208.el6.x86_64
atk-devel-1.28.0-2.el6.x86_64
perl-IO-Compress-Zlib-2.020-115.el6.x86_64
cracklib-dicts-2.8.16-2.el6.x86_64
gnome-keyring-devel-2.28.2-6.el6.x86_64
perl-Log-Message-Simple-0.04-115.el6.x86_64
fontconfig-2.8.0-3.el6.x86_64
hal-devel-0.5.14-8.el6.x86_64
perl-ExtUtils-CBuilder-0.27-115.el6.x86_64
qt-4.6.2-16.el6.x86_64
libgnomeui-devel-2.24.1-4.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libgfortran-4.4.4-13.el6.x86_64
yum-rhn-plugin-0.9.1-5.el6.noarch
perl-Module-Loaded-0.02-115.el6.x86_64
libasyncns-0.8-1.1.el6.x86_64
kernel-firmware-2.6.32-71.el6.noarch
popt-devel-1.13-7.el6.x86_64
samba-winbind-clients-3.5.4-68.el6.x86_64
oddjob-mkhomedir-0.30-1.el6.x86_64
openjade-1.3.2-36.el6.x86_64
xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64
setuptool-1.19.9-3.el6.x86_64
libxcb-devel-1.5-1.el6.x86_64
crash-5.0.0-23.el6.x86_64
readahead-1.5.6-1.el6.x86_64
docbook-style-xsl-1.75.2-6.el6.noarch
libutempter-1.1.5-4.1.el6.x86_64
dhclient-4.1.1-12.P1.el6.x86_64
libcroco-devel-0.6.2-5.el6.x86_64
checkpolicy-2.0.22-1.el6.x86_64
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.x86_64
python-urlgrabber-3.9.1-7.el6.noarch
libss-1.41.12-3.el6.x86_64
gcc-c++-4.4.4-13.el6.x86_64
rhnlib-2.5.22-9.el6.noarch
boost-test-1.41.0-11.el6.x86_64
gstreamer-devel-0.10.29-1.el6.x86_64
sos-2.2-2.el6.noarch
libicu-4.2.1-9.el6.x86_64
vim-enhanced-7.2.411-1.4.el6.x86_64
libproxy-python-0.3.0-2.el6.x86_64
pth-2.0.7-9.3.el6.x86_64
hmaccalc-0.9.12-1.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
perl-version-0.77-115.el6.x86_64
valgrind-3.5.0-18.el6.x86_64
pixman-devel-0.16.6-1.el6.x86_64
glib2-devel-2.22.5-5.el6.x86_64
efibootmgr-0.5.4-8.el6.x86_64
perl-parent-0.221-115.el6.x86_64
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
psacct-6.3.2-63.el6.x86_64
perl-HTML-Parser-3.64-2.el6.x86_64
libxcb-1.5-1.el6.x86_64
compat-libtermcap-2.0.8-49.el6.x86_64
jline-0.9.94-0.8.el6.noarch
python-2.6.5-3.el6.x86_64
flex-2.5.35-8.el6.x86_64
libgpg-error-devel-1.7-3.el6.x86_64
python-ethtool-0.3-5.1.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64
keyutils-libs-devel-1.4-1.el6.x86_64
python-devel-2.6.5-3.el6.x86_64
cyrus-sasl-plain-2.1.23-8.el6.x86_64
libsepol-devel-2.0.41-3.el6.x86_64
python-crypto-2.0.1-20.el6.x86_64
swig-1.3.40-5.el6.x86_64
krb5-devel-1.8.2-3.el6.x86_64
numactl-2.0.3-9.el6.x86_64
powertop-1.11-3.1.el6.x86_64
gnome-doc-utils-stylesheets-0.18.1-1.el6.noarch
perl-Time-HiRes-1.9721-115.el6.x86_64
rfkill-0.3-4.el6.x86_64
gcc-4.4.4-13.el6.x86_64
netcf-libs-0.1.6-4.el6.x86_64
strace-4.5.19-1.6.el6.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
qt-sqlite-4.6.2-16.el6.x86_64
crash-trace-command-1.0-3.el6.x86_64
mailcap-2.1.31-1.1.el6.noarch
bind-libs-9.7.0-5.P2.el6.x86_64
ctags-5.8-2.el6.x86_64
pygobject2-doc-2.20.0-5.el6.x86_64
at-3.1.10-42.el6.x86_64
compat-libcap1-1.10-1.x86_64
libXext-1.1-3.el6.x86_64
logrotate-3.7.8-12.el6.x86_64
dracut-004-32.el6.noarch
libXi-1.3-3.el6.x86_64
libcurl-7.19.7-16.el6.x86_64
mesa-dri-drivers-7.7-2.el6.x86_64
libXinerama-1.1-1.el6.x86_64
report-config-localsave-0.18-7.el6.x86_64
phonon-backend-gstreamer-4.6.2-16.el6.x86_64
libXft-2.1.13-4.1.el6.x86_64
report-config-scp-0.18-7.el6.x86_64
autofs-5.0.5-23.el6.x86_64
gtk2-2.18.9-4.el6.x86_64
nss_compat_ossl-0.9.6-1.el6.x86_64
qt3-devel-3.3.8b-29.el6.x86_64
libsoup-2.28.2-1.el6.x86_64
iptables-ipv6-1.4.7-3.el6.x86_64
selinux-policy-targeted-3.7.19-54.el6.noarch
libcanberra-gtk2-0.22-1.el6.x86_64
gstreamer-0.10.29-1.el6.x86_64
librsvg2-devel-2.26.0-5.el6.x86_64
python-matplotlib-0.99.1.2-1.el6.x86_64
rsync-3.0.6-5.el6.x86_64
b43-openfwwf-5.2-4.el6.noarch
libXtst-devel-1.0.99.2-3.el6.x86_64
perl-XML-Grove-0.46alpha-40.el6.noarch
mysql-devel-5.1.47-4.el6.x86_64
boost-devel-1.41.0-11.el6.x86_64
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-1-21.el6.noarch
compat-db-4.6.21-15.el6.x86_64
perl-XML-Dumper-0.81-6.el6.noarch
libcap-ng-devel-0.6.4-3.el6.x86_64
xorg-x11-docs-1.3-6.1.el6.noarch
rootfiles-8.1-6.1.el6.noarch
iwl1000-firmware-128.50.3.1-1.1.el6.noarch
rt73usb-firmware-1.8-7.el6.noarch
ipw2100-firmware-1.3-11.el6.noarch
man-pages-3.22-12.el6.noarch
glibc-2.12-1.7.el6.i686
apr-util-ldap-1.3.9-3.el6.x86_64
expat-devel-2.0.1-9.1.el6.x86_64
php-common-5.3.2-6.el6.x86_64
perl-libintl-1.20-1.el6.x86_64
btrfs-progs-0.19-11.el6.x86_64
ffmpeg-spice-libs-0.4.9-0.15.5spice.20080908.el6.x86_64
fakeroot-1.12.2-22.2.el6.x86_64
spice-server-0.4.2-15.el6.x86_64
perl-XML-XPath-1.13-10.el6.noarch
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
perl-libguestfs-1.2.7-1.24.el6.x86_64
fuse-devel-2.8.3-1.el6.x86_64
system-config-network-tui-1.6.0.el6.2-1.el6.noarch
libgcc-4.4.4-13.el6.x86_64
gpgme-1.1.8-3.el6.x86_64
qt3-3.3.8b-29.el6.x86_64
kernel-headers-2.6.32-71.el6.x86_64
ppl-0.10.2-11.el6.x86_64
gstreamer-plugins-base-0.10.29-1.el6.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
ConsoleKit-0.4.1-3.el6.x86_64
libnotify-0.5.0-1.el6.x86_64
ncurses-libs-5.7-3.20090208.el6.x86_64
shared-mime-info-0.70-4.el6.x86_64
libXext-devel-1.1-3.el6.x86_64
libstdc++-4.4.4-13.el6.x86_64
rpm-4.8.0-12.el6.x86_64
cairo-devel-1.8.8-3.1.el6.x86_64
libcom_err-1.41.12-3.el6.x86_64
abrt-addon-kerneloops-1.1.13-4.el6.x86_64
libXrandr-devel-1.3.0-4.el6.x86_64
nspr-4.8.6-1.el6.x86_64
upstart-0.6.5-6.1.el6.x86_64
pycairo-devel-1.8.6-2.1.el6.x86_64
expat-2.0.1-9.1.el6.x86_64
check-0.9.8-1.1.el6.x86_64
startup-notification-devel-0.10-2.1.el6.x86_64
nss-util-3.12.7-1.el6.x86_64
compat-db42-4.2.52-15.el6.x86_64
system-gnome-theme-60.0.2-1.el6.noarch
libsepol-2.0.41-3.el6.x86_64
abrt-plugin-rhtsupport-1.1.13-4.el6.x86_64
tzdata-java-2010l-1.el6.noarch
atk-1.28.0-2.el6.x86_64
zip-3.0-1.el6.x86_64
iputils-20071127-13.el6.x86_64
elfutils-libelf-0.148-1.el6.x86_64
ethtool-2.6.33-0.3.el6.x86_64
device-mapper-libs-1.02.53-8.el6.x86_64
libcap-ng-0.6.4-3.el6.x86_64
plymouth-core-libs-0.8.3-17.el6.x86_64
usermode-1.102-3.el6.x86_64
findutils-4.4.2-6.el6.x86_64
c-ares-1.7.0-5.el6.x86_64
kpartx-0.4.9-31.el6.x86_64
libacl-2.2.49-4.el6.x86_64
dmidecode-2.10-1.30.1.el6.x86_64
policycoreutils-2.0.83-19.1.el6.x86_64
libgcrypt-1.4.5-3.el6.x86_64
ustr-1.0.4-9.1.el6.x86_64
git-1.7.1-2.el6.x86_64
xz-libs-4.999.9-0.3.beta.20091007git.el6.x86_64
slang-2.2.1-1.el6.x86_64
cyrus-sasl-devel-2.1.23-8.el6.x86_64
avahi-libs-0.6.25-8.el6.x86_64
libthai-0.1.12-3.el6.x86_64
cryptsetup-luks-libs-1.1.2-2.el6.x86_64
libogg-1.1.4-2.1.el6.x86_64
libvisual-0.4.0-9.1.el6.x86_64
hal-0.5.14-8.el6.x86_64
file-libs-5.04-5.el6.x86_64
sg3_utils-libs-1.28-3.el6.x86_64
rsyslog-4.6.2-2.el6.x86_64
libgudev1-147-2.29.el6.x86_64
zlib-devel-1.2.3-25.el6.x86_64
yp-tools-2.9-10.el6.x86_64
boost-system-1.41.0-11.el6.x86_64
GConf2-2.28.0-6.el6.x86_64
nss-pam-ldapd-0.7.5-3.el6.x86_64
less-436-4.el6.x86_64
libICE-devel-1.0.6-1.el6.x86_64
ntpdate-4.2.4p8-2.el6.x86_64
libtirpc-0.2.1-1.el6.x86_64
perl-devel-5.10.1-115.el6.x86_64
gnome-vfs2-2.24.2-6.el6.x86_64
libtiff-3.9.4-1.el6.x86_64
perl-IPC-Cmd-0.56-115.el6.x86_64
gnome-python2-gnomevfs-2.28.0-3.el6.x86_64
libbonobo-2.24.2-4.el6.x86_64
docbook-dtds-1.0-51.el6.noarch
nfs-utils-lib-1.1.5-1.el6.x86_64
iptables-1.4.7-3.el6.x86_64
redhat-logos-60.0.14-1.el6.noarch
gtk-doc-1.11-5.1.el6.noarch
libusb-0.1.12-23.el6.x86_64
dbus-glib-devel-0.86-5.el6.x86_64
libsoup-devel-2.28.2-1.el6.x86_64
cracklib-2.8.16-2.el6.x86_64
perl-Compress-Zlib-2.020-115.el6.x86_64
libgnomecanvas-devel-2.26.0-4.el6.x86_64
openssl-1.0.0-4.el6.x86_64
perl-Term-UI-0.20-115.el6.x86_64
polkit-devel-0.96-2.el6.x86_64
module-init-tools-3.9-17.el6.x86_64
perl-Object-Accessor-0.34-115.el6.x86_64
libbonoboui-devel-2.24.2-3.el6.x86_64
pciutils-libs-3.1.4-9.el6.x86_64
automake-1.11.1-1.2.el6.noarch
rhn-setup-1.0.0-38.el6.noarch
gnutls-2.8.5-4.el6.x86_64
xdg-utils-1.0.2-15.20091016cvs.el6.noarch
evolution-data-server-doc-2.28.3-10.el6.noarch
postgresql-libs-8.4.4-2.el6.x86_64
libgsf-devel-1.14.15-5.el6.x86_64
postgresql-devel-8.4.4-2.el6.x86_64
boost-wave-1.41.0-11.el6.x86_64
perl-SGMLSpm-1.03ii-21.el6.noarch
openssh-server-5.3p1-20.el6.x86_64
libtheora-1.1.0-2.el6.x86_64
perl-Module-Build-0.3500-115.el6.x86_64
rng-tools-2-8.el6.x86_64
apr-1.3.9-3.el6.x86_64
perl-Test-Simple-0.92-115.el6.x86_64
smartmontools-5.39.1-2.el6.x86_64
libselinux-utils-2.0.94-2.el6.x86_64
libXdmcp-devel-1.0.3-1.el6.x86_64
prelink-0.4.3-4.el6.x86_64
boost-iostreams-1.41.0-11.el6.x86_64
yum-3.2.27-14.el6.noarch
compat-glibc-2.5-46.2.x86_64
libgomp-4.4.4-13.el6.x86_64
rhn-client-tools-1.0.0-38.el6.noarch
abrt-cli-1.1.13-4.el6.x86_64
boost-signals-1.41.0-11.el6.x86_64
abrt-plugin-sosreport-1.1.13-4.el6.x86_64
ntsysv-1.3.47-1.el6.x86_64
libedit-2.11-4.20080712cvs.1.el6.x86_64
libproxy-0.3.0-2.el6.x86_64
cifs-utils-4.4-5.el6.x86_64
perl-libs-5.10.1-115.el6.x86_64
python-nose-0.10.4-3.1.el6.noarch
tcpdump-4.0.0-3.20090921gitdf3cb4.1.el6.x86_64
perl-5.10.1-115.el6.x86_64
perl-DBD-SQLite-1.27-3.el6.x86_64
sudo-1.7.2p2-9.el6.x86_64
libcollection-0.5.0-28.el6.x86_64
perl-Parse-CPAN-Meta-1.40-115.el6.x86_64
pam_passwdqc-1.0.5-6.el6.x86_64
libXau-1.0.5-1.el6.x86_64
libtasn1-devel-2.3-3.el6.x86_64
openssl098e-0.9.8e-17.el6.x86_64
python-libs-2.6.5-3.el6.x86_64
rhino-1.7-0.7.r2.2.el6.noarch
rcs-5.7-37.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libgcrypt-devel-1.4.5-3.el6.x86_64
attr-2.4.44-4.el6.x86_64
python-dmidecode-3.10.12-1.el6.x86_64
libattr-devel-2.4.44-4.el6.x86_64
lsof-4.82-1.2.el6.x86_64
m2crypto-0.20.2-7.el6.x86_64
libselinux-devel-2.0.94-2.el6.x86_64
doxygen-1.6.1-4.el6.x86_64
libini_config-0.5.1-28.el6.x86_64
openssl-devel-1.0.0-4.el6.x86_64
mtr-0.75-5.el6.x86_64
mysql-5.1.47-4.el6.x86_64
gnome-doc-utils-0.18.1-1.el6.noarch
vconfig-1.9-8.1.el6.x86_64
krb5-workstation-1.8.2-3.el6.x86_64
pygtk2-codegen-2.16.0-3.el6.x86_64
eject-2.1.5-17.el6.x86_64
atlas-3.8.3-12.4.el6.x86_64
dejavu-fonts-common-2.30-2.el6.noarch
trace-cmd-1.0.4-7.el6.x86_64
wget-1.12-1.4.el6.x86_64
perl-libwww-perl-5.833-2.el6.noarch
diffstat-1.51-2.el6.x86_64
cyrus-sasl-md5-2.1.23-8.el6.x86_64
pygobject2-devel-2.20.0-5.el6.x86_64
compat-expat1-1.95.8-8.el6.x86_64
ConsoleKit-libs-0.4.1-3.el6.x86_64
libXrender-0.9.5-1.el6.x86_64
plymouth-0.8.3-17.el6.x86_64
nss-3.12.7-2.el6.x86_64
libXfixes-4.0.4-1.el6.x86_64
systemtap-runtime-1.2-9.el6.x86_64
report-plugin-ftp-0.18-7.el6.x86_64
pulseaudio-libs-0.9.21-13.el6.x86_64
qt-x11-4.6.2-16.el6.x86_64
report-plugin-scp-0.18-7.el6.x86_64
pango-1.28.1-3.el6.x86_64
pcmciautils-015-4.2.el6.x86_64
python-pycurl-7.19.0-5.el6.x86_64
gnome-keyring-2.28.2-6.el6.x86_64
mesa-libGLU-devel-7.7-2.el6.x86_64
iproute-2.6.32-10.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
libvirt-java-devel-0.4.5-2.el6.noarch
gstreamer-tools-0.10.29-1.el6.x86_64
libXxf86vm-1.1.0-1.el6.x86_64
libnotify-devel-0.5.0-1.el6.x86_64
keyutils-1.4-1.el6.x86_64
libfprint-0.1.0-19.pre2.el6.x86_64
redhat-lsb-4.0-2.1.el6.x86_64
bfa-firmware-2.1.2.1-2.el6.noarch
iwl6000-firmware-9.176.4.1-2.el6.noarch
pulseaudio-libs-devel-0.9.21-13.el6.x86_64
perl-XML-Twig-3.34-1.el6.noarch
elfutils-devel-0.148-1.el6.x86_64
cas-0.15-1.el6.1.noarch
grub-0.97-68.el6.x86_64
man-pages-overrides-1.0-1.el6.noarch
alsa-lib-devel-1.0.21-3.el6.x86_64
bzip2-devel-1.0.5-6.1.el6.x86_64
ql2400-firmware-5.03.02-1.el6.noarch
xorg-x11-drv-ati-firmware-6.13.0-6.el6.noarch
iwl3945-firmware-15.32.2.9-4.el6.noarch
ql2100-firmware-1.19.38-3.1.el6.noarch
ql23xx-firmware-3.03.27-3.1.el6.noarch
words-3.0-17.el6.noarch
libgcc-4.4.4-13.el6.i686
httpd-tools-2.2.15-5.el6.x86_64
apr-util-devel-1.3.9-3.el6.x86_64
php-cli-5.3.2-6.el6.x86_64
fcgi-2.4.0-14.el6.x86_64
celt051-0.5.1.3-0.el6.x86_64
qemu-img-0.12.1.2-2.113.el6.x86_64
genisoimage-1.1.9-11.el6.x86_64
scrub-2.2-1.el6.x86_64
fakechroot-libs-2.9-24.1.el6.x86_64
vgabios-0.6b-3.4.el6.noarch
qemu-kvm-0.12.1.2-2.113.el6.x86_64
libguestfs-tools-1.2.7-1.24.el6.x86_64
gtk2-engines-2.18.4-5.el6.x86_64
ca-certificates-2010.63-3.el6.noarch
iwl5150-firmware-8.24.2.2-1.el6.noarch
cloog-ppl-0.15.7-1.2.el6.x86_64
notification-daemon-0.5.0-1.el6.x86_64
glibc-2.12-1.7.el6.x86_64
intltool-0.41.0-1.1.el6.noarch
unzip-6.0-1.el6.x86_64
libXt-devel-1.0.7-1.el6.x86_64
dbus-libs-1.2.24-3.el6.x86_64
libcurl-devel-7.19.7-16.el6.x86_64
abrt-addon-python-1.1.13-4.el6.x86_64
gnome-python2-2.28.0-3.el6.x86_64
bzip2-libs-1.0.5-6.1.el6.x86_64
binutils-devel-2.20.51.0.2-5.11.el6.x86_64
libcdio-0.81-3.1.el6.x86_64
system-icon-theme-6.0.0-2.el6.noarch
libpng-1.2.44-1.el6.x86_64
redhat-rpm-config-9.0.3-25.el6.noarch
libhugetlbfs-2.8-2.el6.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
dbus-glib-0.86-5.el6.x86_64
iwl5000-firmware-8.24.2.12-3.el6.noarch
hesiod-3.1.0-19.el6.x86_64
cyrus-sasl-2.1.23-8.el6.x86_64
libSM-1.1.0-7.1.el6.x86_64
ql2200-firmware-2.02.08-3.1.el6.noarch
gpm-libs-1.20.6-11.el6.x86_64
libcgroup-0.36.1-6.el6.x86_64
libgpg-error-1.7-3.el6.x86_64
ipw2200-firmware-3.1-4.el6.noarch
libsemanage-2.0.43-4.el6.x86_64
lvm2-libs-2.02.72-8.el6.x86_64
libxslt-1.1.26-2.el6.x86_64
compat-libstdc++-296-2.96-144.el6.i686
SDL-1.2.14-2.el6.x86_64
hal-info-20090716-3.1.el6.noarch
diffutils-2.8.1-28.el6.x86_64
httpd-devel-2.2.15-5.el6.x86_64
xorg-x11-proto-devel-7.4-35.el6.noarch
cronie-1.4.4-2.el6.x86_64
cpio-2.10-9.el6.x86_64
fcgi-devel-2.4.0-14.el6.x86_64
dbus-devel-1.2.24-3.el6.x86_64
samba-common-3.5.4-68.el6.x86_64
libgssglue-0.1-8.1.el6.x86_64
fuse-2.8.3-1.el6.x86_64
perl-ExtUtils-ParseXS-2.2003.0-115.el6.x86_64
libgnomeui-2.24.1-4.el6.x86_64
ORBit2-2.14.17-3.1.el6.x86_64
pixman-spice-0.13.3-5.el6.x86_64
perl-Package-Constants-0.02-115.el6.x86_64
rarian-compat-0.8.1-5.1.el6.x86_64
boost-date-time-1.41.0-11.el6.x86_64
seabios-0.5.1-3.el6.x86_64
libgsf-1.14.15-5.el6.x86_64
libglade2-devel-2.6.4-3.1.el6.x86_64
pam-1.1.1-4.el6.x86_64
guestfish-1.2.7-1.24.el6.x86_64
perl-File-Fetch-0.26-115.el6.x86_64
libgnome-devel-2.28.0-11.el6.x86_64
mysql-libs-5.1.47-4.el6.x86_64
perl-Error-0.17015-4.el6.noarch
rhnsd-4.9.3-2.el6.x86_64
passwd-0.77-4.el6.x86_64
pciutils-3.1.4-9.el6.x86_64
lvm2-2.02.72-8.el6.x86_64
file-5.04-5.el6.x86_64
nss-softokn-devel-3.12.7-1.1.el6.x86_64
cpuspeed-1.5-15.el6.x86_64
net-tools-1.60-102.el6.x86_64
check-devel-0.9.8-1.1.el6.x86_64
latencytop-0.5-3.el6.x86_64
make-3.81-19.el6.x86_64
python-paramiko-1.7.5-2.1.el6.noarch
usbutils-0.86-2.el6.x86_64
boost-graph-1.41.0-11.el6.x86_64
libproxy-bin-0.3.0-2.el6.x86_64
gdb-7.1-29.el6.x86_64
perl-Pod-Simple-3.13-115.el6.x86_64
perl-DBIx-Simple-1.32-3.el6.noarch
compat-openldap-2.4.19_2.3.43-15.el6.x86_64
libical-0.43-5.1.el6.x86_64
sound-theme-freedesktop-0.7-3.el6.noarch
tmpwatch-2.9.16-3.el6.x86_64
pygobject2-2.20.0-5.el6.x86_64
libxslt-devel-1.1.26-2.el6.x86_64
ltrace-0.5-16.45svn.1.el6.x86_64
yum-metadata-parser-1.1.2-14.1.el6.x86_64
sqlite-devel-3.6.20-1.el6.x86_64
cscope-15.6-6.el6.x86_64
gettext-0.17-16.el6.x86_64
glibc-headers-2.12-1.7.el6.x86_64
bridge-utils-1.2-9.el6.x86_64
cups-libs-1.4.2-35.el6.x86_64
dejavu-sans-fonts-2.30-2.el6.noarch
byacc-1.9.20070509-6.1.el6.x86_64
fipscheck-1.2.0-4.1.el6.x86_64
libX11-common-1.3-2.el6.noarch
libdrm-2.4.20-2.el6.x86_64
nss-sysinit-3.12.7-2.el6.x86_64
libXcursor-1.1.10-2.el6.x86_64
mesa-libGLU-7.7-2.el6.x86_64
report-0.18-7.el6.x86_64
libcanberra-0.22-1.el6.x86_64
mesa-libGL-devel-7.7-2.el6.x86_64
nscd-2.12-1.7.el6.x86_64
startup-notification-0.10-2.1.el6.x86_64
libcanberra-devel-0.22-1.el6.x86_64
libatasmart-0.17-3.el6.x86_64
fprintd-0.1-19.git04fd09cfa.el6.x86_64
libcgroup-devel-0.36.1-6.el6.x86_64
jasper-libs-1.900.1-15.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
filesystem-2.4.30-2.1.el6.x86_64
pygtk2-devel-2.16.0-3.el6.x86_64
MAKEDEV-3.24-6.el6.x86_64
libXt-1.0.7-1.el6.x86_64
pkgconfig-0.23-9.1.el6.x86_64
readline-devel-6.0-3.el6.x86_64
rpm-python-4.8.0-12.el6.x86_64
libXft-devel-2.1.13-4.1.el6.x86_64
popt-1.13-7.el6.x86_64
nss-devel-3.12.7-2.el6.x86_64
time-1.7-37.1.el6.x86_64
libXdamage-devel-1.1.2-1.el6.x86_64
cyrus-sasl-lib-2.1.23-8.el6.x86_64
dstat-0.7.0-1.el6.noarch
gettext-libs-0.17-16.el6.x86_64
busybox-1.15.1-10.el6.x86_64
glib2-2.22.5-5.el6.x86_64
perf-2.6.32-71.el6.noarch
blktrace-1.0.1-3.1.el6.x86_64
initscripts-9.03.17-1.el6.x86_64
tcp_wrappers-libs-7.6-56.3.el6.x86_64
iwl4965-firmware-228.61.2.24-2.1.el6.noarch
pax-3.4-10.1.el6.x86_64
libvirt-client-0.8.1-27.el6.x86_64
libattr-2.4.44-4.el6.x86_64
zd1211-firmware-1.4-4.el6.noarch
lcms-libs-1.19-1.el6.x86_64
openssh-clients-5.3p1-20.el6.x86_64
libblkid-2.17.2-6.el6.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.i686
newt-python-0.52.11-2.el6.x86_64
udisks-1.0.1-2.el6.x86_64
binutils-2.20.51.0.2-5.11.el6.x86_64
apr-devel-1.3.9-3.el6.x86_64
libdaemon-0.14-1.el6.x86_64
wireless-tools-29-5.1.1.el6.x86_64
libvorbis-1.2.3-4.el6.x86_64
php-devel-5.3.2-6.el6.x86_64
freetype-devel-2.3.11-5.el6.x86_64
sssd-1.2.1-28.el6.x86_64
grep-2.6.3-2.el6.x86_64
perl-hivex-1.2.2-1.el6.x86_64
perl-ExtUtils-MakeMaker-6.55-115.el6.x86_64
avahi-0.6.25-8.el6.x86_64
libtevent-0.9.8-8.el6.x86_64
fakeroot-libs-1.12.2-22.2.el6.x86_64
hwdata-0.233-1.el6.noarch
gnome-desktop-2.28.2-8.el6.x86_64
patch-2.6-6.el6.x86_64
febootstrap-2.7-1.2.el6.x86_64
libjpeg-devel-6b-46.el6.x86_64
GConf2-devel-2.28.0-6.el6.x86_64
coreutils-libs-8.4-9.el6.x86_64
libguestfs-1.2.7-1.24.el6.x86_64
perl-Archive-Tar-1.58-115.el6.x86_64
libgweather-devel-2.28.0-4.el6.x86_64
openldap-2.4.19-15.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
selinux-policy-3.7.19-54.el6.noarch
sysvinit-tools-2.87-3.dsf.el6.x86_64
hicolor-icon-theme-0.11-1.1.el6.noarch
ipa-client-2.0-9.el6.x86_64
libssh2-1.2.2-7.el6.x86_64
docbook-utils-0.6.14-24.el6.noarch
quota-3.17-10.el6.x86_64
cyrus-sasl-gssapi-2.1.23-8.el6.x86_64
perl-CPAN-1.9402-115.el6.x86_64
xinetd-2.3.14-29.el6.x86_64
augeas-libs-0.7.2-3.el6.x86_64
abrt-addon-ccpp-1.1.13-4.el6.x86_64
gcc-gfortran-4.4.4-13.el6.x86_64
boost-program-options-1.41.0-11.el6.x86_64
pytz-2010h-2.el6.noarch
libhugetlbfs-utils-2.8-2.el6.x86_64
gdbm-1.8.0-36.el6.x86_64
libical-devel-0.43-5.1.el6.x86_64
perl-Crypt-SSLeay-0.57-16.el6.x86_64
perl-Compress-Raw-Zlib-2.023-115.el6.x86_64
perl-HTML-Tagset-3.20-4.el6.noarch
tcsh-6.17-8.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libidn-devel-1.18-2.el6.x86_64
bison-2.4.1-5.el6.x86_64
boost-python-1.41.0-11.el6.x86_64
elfutils-libelf-devel-0.148-1.el6.x86_64
nano-2.0.9-7.el6.x86_64
pyOpenSSL-0.10-2.el6.x86_64
ncurses-devel-5.7-3.20090208.el6.x86_64
traceroute-2.0.14-2.el6.x86_64
perl-Digest-SHA-5.47-115.el6.x86_64
iso-codes-3.16-2.el6.noarch
b43-fwcutter-012-2.2.el6.x86_64
libldb-0.9.10-23.el6.x86_64
perl-libxml-perl-0.08-10.el6.noarch
compat-libstdc++-33-3.2.3-69.el6.x86_64
pam_krb5-2.3.11-1.el6.x86_64
libXrandr-1.3.0-4.el6.x86_64
dracut-kernel-004-32.el6.noarch
xmlrpc-c-client-1.16.24-1200.1840.el6.x86_64
pycairo-1.8.6-2.1.el6.x86_64
libdrm-devel-2.4.20-2.el6.x86_64
curl-7.19.7-16.el6.x86_64
libgnomecanvas-2.26.0-4.el6.x86_64
qt-devel-4.6.2-16.el6.x86_64
cpp-4.4.4-13.el6.x86_64
librsvg2-2.26.0-5.el6.x86_64
libacl-devel-2.2.49-4.el6.x86_64
acl-2.2.49-4.el6.x86_64
                                                                                                                                                                                                                                                                                                                                                             Virtual_Configuration/tile12/infraserver/VM_configuration/ifconfig.txt                              0000644 0000000 0000000 00000002336 11524351074 025323  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   eth0      Link encap:Ethernet  HWaddr 00:50:56:91:00:47  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:242 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:23017 (22.4 KiB)  TX bytes:940 (940.0 b)

eth1      Link encap:Ethernet  HWaddr D2:3B:3D:1F:77:45  
          inet addr:10.1.217.71  Bcast:10.1.255.255  Mask:255.255.0.0
          inet6 addr: fe80::d03b:3dff:fe1f:7745/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:64363727 errors:0 dropped:0 overruns:0 frame:0
          TX packets:119938475 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4527861213 (4.2 GiB)  TX bytes:173220409539 (161.3 GiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:987 errors:0 dropped:0 overruns:0 frame:0
          TX packets:987 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:98343 (96.0 KiB)  TX bytes:98343 (96.0 KiB)

                                                                                                                                                                                                                                                                                                  Virtual_Configuration/tile12/infraserver/VM_configuration/chkconfig.txt                             0000644 0000000 0000000 00000006531 11524351056 025473  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   abrtd          	0:off	1:off	2:off	3:on	4:off	5:on	6:off
acpid          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:off	4:on	5:on	6:off
auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autobench      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
avahi-daemon   	0:off	1:off	2:off	3:off	4:on	5:on	6:off
certmonger     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgconfig       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cgred          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
cpuspeed       	0:off	1:on	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
gfs2           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
haldaemon      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
httpd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ip6tables      	0:off	1:off	2:on	3:off	4:on	5:on	6:off
ipsec          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
iptables       	0:off	1:off	2:on	3:off	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kdump          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off
libvirt-guests 	0:off	1:off	2:off	3:off	4:on	5:on	6:off
lvm2-monitor   	0:off	1:on	2:on	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
messagebus     	0:off	1:off	2:on	3:on	4:on	5:on	6:off
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
migrateip      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nslcd          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
ntpdate        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
oddjobd        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:on	3:off	4:on	5:on	6:off
psacct         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rdisc          	0:off	1:off	2:off	3:off	4:off	5:off	6:off
restorecond    	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rhnsd          	0:off	1:off	2:on	3:off	4:on	5:on	6:off
rpcbind        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rpcgssd        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcidmapd      	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rpcsvcgssd     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
rsyslog        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
saslauthd      	0:off	1:off	2:off	3:off	4:off	5:off	6:off
smartd         	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sssd           	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sysstat        	0:off	1:on	2:on	3:off	4:on	5:on	6:off
udev-post      	0:off	1:on	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ypbind         	0:off	1:off	2:off	3:off	4:off	5:off	6:off

xinetd based services:
	chargen-dgram: 	off
	chargen-stream:	off
	cvs:           	off
	daytime-dgram: 	off
	daytime-stream:	off
	discard-dgram: 	off
	discard-stream:	off
	echo-dgram:    	off
	echo-stream:   	off
	rsync:         	off
	tcpmux-server: 	off
	time-dgram:    	off
	time-stream:   	off
                                                                                                                                                                       Virtual_Configuration/tile12/infraserver/Software_Configuration/                                    0000777 0000000 0000000 00000000000 11524351055 024205  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/Software_Configuration/exports                             0000644 0000000 0000000 00000000101 11524351055 025620  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   /support-download *(rw,no_subtree_check,crossmnt,no_root_squash)
                                                                                                                                                                                                                                                                                                                                                                                                                                                               Virtual_Configuration/tile12/infraserver/Software_Configuration/httpd/                              0000777 0000000 0000000 00000000000 11524351056 025331  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/Software_Configuration/httpd/conf.d/                       0000777 0000000 0000000 00000000000 11524351056 026500  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/Software_Configuration/httpd/conf.d/manual.conf            0000644 0000000 0000000 00000000447 11524351056 030625  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This configuration file allows the manual to be accessed at 
# http://localhost/manual/
#
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/manual$1"

<Directory "/var/www/manual">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
                                                                                                                                                                                                                         Virtual_Configuration/tile12/infraserver/Software_Configuration/httpd/conf.d/php.conf               0000644 0000000 0000000 00000001242 11524351056 030131  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
  LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
  LoadModule php5_module modules/libphp5-zts.so
</IfModule>

#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
                                                                                                                                                                                                                                                                                                                                                              Virtual_Configuration/tile12/infraserver/Software_Configuration/httpd/conf.d/welcome.conf           0000644 0000000 0000000 00000000453 11524351056 031000  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # 
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>

                                                                                                                                                                                                                     Virtual_Configuration/tile12/infraserver/Software_Configuration/httpd/conf.d/README                 0000644 0000000 0000000 00000000610 11524351056 027351  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   
This directory holds Apache 2.0 module-specific configuration files;
any files in this directory which have the ".conf" extension will be
processed as Apache configuration files.

Files are processed in alphabetical order, so if using configuration
directives which depend on, say, mod_perl being loaded, ensure that
these are placed in a filename later in the sort order than "perl.conf".

                                                                                                                        Virtual_Configuration/tile12/infraserver/Software_Configuration/httpd/conf/                         0000777 0000000 0000000 00000000000 11524351055 026255  5                                                                                                    ustar   root                            root                                                                                                                                                                                                                   Virtual_Configuration/tile12/infraserver/Software_Configuration/httpd/conf/httpd.conf               0000644 0000000 0000000 00000103212 11524351055 030242  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   #
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# Don't give away too much information about all the subcomponents
# we are running.  Comment out this line if you don't mind remote sites
# finding out what major optional modules you are running
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.  Note the PIDFILE variable in
# /etc/sysconfig/httpd must be set appropriately if this location is
# changed.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 60

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive Off

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit 10240
MaxClients 10240
MaxRequestsPerChild  4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         4
MaxClients 10240
MinSpareThreads     25
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 81

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

#
# The following modules are not loaded by default:
#
#LoadModule asis_module modules/mod_asis.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgid_module modules/mod_cgid.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule dumpio_module modules/mod_dumpio.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule unique_id_module modules/mod_unique_id.so
#

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group #-1 on these systems!
#
User apache
Group apache

### Section 2: 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin root@localhost

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
#ServerName www.example.com:80

#
# UseCanonicalName: Determines how Apache constructs self-referencing 
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride None

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.  This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir disabled

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disabled" line above, and uncomment
    # the following line instead:
    # 
    #UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients. 
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is 
# used to deliver files (assuming that the OS supports it). 
# The default is on; turn this off if you serve from NFS-mounted 
# filesystems.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
#
#EnableSendfile off

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O); this
# requires the mod_logio module to be loaded.
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access_log common

#
# If you would like to have separate agent and referer logfiles, uncomment
# the following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# WebDAV module configuration section.
# 
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Directives controlling the display of server-generated directory listings.
#

#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes.  These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

#
# DefaultLanguage and AddLanguage allows you to specify the language of 
# a document. You can then use content negotiation to give a browser a 
# file in a language the user can understand.
#
# Specify a default language. This means that all data
# going out without a specific language tag (see below) will 
# be marked with this one. You probably do NOT want to set
# this unless you are sure it is correct for all cases.
#
# * It is generally better to not mark a page as 
# * being a certain language than marking it with the wrong
# * language!
#
# DefaultLanguage nl
#
# Note 1: The suffix does not have to be the same as the language
# keyword --- those with documents in Polish (whose net-standard
# language code is pl) may wish to use "AddLanguage pl .po" to
# avoid the ambiguity with the common suffix for perl scripts.
#
# Note 2: The example entries below illustrate that in some cases 
# the two character 'Language' abbreviation is not identical to 
# the two character 'Country' code for its country,
# E.g. 'Danmark/dk' versus 'Danish/da'.
#
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
# specifier. There is 'work in progress' to fix this and get
# the reference data for rfc1766 cleaned up.
#
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the 
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz

#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
#   MIME-types for downloading Certificates and CRLs
#
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
#  to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#    ErrorDocument 410 /error/HTTP_GONE.html.var
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Proxy>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
#   CacheEnable disk /
#   CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#

#</IfModule>
# End of proxy directives.

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>














Include conf/fcgi.conf
                                                                                                                                                                                                                                                                                                                                                                                      Virtual_Configuration/tile12/infraserver/Software_Configuration/httpd/conf/fcgi.conf                0000644 0000000 0000000 00000000607 11524351055 030033  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   LoadModule fastcgi_module modules/mod_fastcgi.so
ScriptAlias /fcgi-bin/ "/var/www/fcgi-bin/"
FastCgiIpcDir /etc/httpd/fastcgi
<Directory "/var/www/fcgi-bin">
    AllowOverride None
    Options +ExecCGI -Includes
    SetHandler fastcgi-script
    Order allow,deny
    Allow from all
 </Directory>
 AddHandler fastcgi-script fcgi
 FastCgiServer /var/www/fcgi-bin/besim_fcgi.fcgi -processes 50
                                                                                                                         Virtual_Configuration/tile12/infraserver/Software_Configuration/httpd/conf/magic                    0000644 0000000 0000000 00000031523 11524351055 027260  0                                                                                                    ustar   root                            root                                                                                                                                                                                                                   # Magic data for mod_mime_magic Apache module (originally for file(1) command)
# The module is described in /manual/mod/mod_mime_magic.html
#
# The format is 4-5 columns:
#    Column #1: byte number to begin checking from, ">" indicates continuation
#    Column #2: type of data to match
#    Column #3: contents of data to match
#    Column #4: MIME type of result
#    Column #5: MIME encoding of result (optional)

#------------------------------------------------------------------------------
# Localstuff:  file(1) magic for locally observed files
# Add any locally observed files here.

#------------------------------------------------------------------------------
# end local stuff
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# Java

0	short		0xcafe
>2	short		0xbabe		application/java

#------------------------------------------------------------------------------
# audio:  file(1) magic for sound formats
#
# from Jan Nicolai Langfeldt <janl@ifi.uio.no>,
#

# Sun/NeXT audio data
0	string		.snd
>12	belong		1		audio/basic
>12	belong		2		audio/basic
>12	belong		3		audio/basic
>12	belong		4		audio/basic
>12	belong		5		audio/basic
>12	belong		6		audio/basic
>12	belong		7		audio/basic

>12	belong		23		audio/x-adpcm

# DEC systems (e.g. DECstation 5000) use a variant of the Sun/NeXT format
# that uses little-endian encoding and has a different magic number
# (0x0064732E in little-endian encoding).
0	lelong		0x0064732E	
>12	lelong		1		audio/x-dec-basic
>12	lelong		2		audio/x-dec-basic
>12	lelong		3		audio/x-dec-basic
>12	lelong		4		audio/x-dec-basic
>12	lelong		5		audio/x-dec-basic
>12	lelong		6		audio/x-dec-basic
>12	lelong		7		audio/x-dec-basic
#                                       compressed (G.721 ADPCM)
>12	lelong		23		audio/x-dec-adpcm

# Bytes 0-3 of AIFF, AIFF-C, & 8SVX audio files are "FORM"
#					AIFF audio data
8	string		AIFF		audio/x-aiff	
#					AIFF-C audio data
8	string		AIFC		audio/x-aiff	
#					IFF/8SVX audio data
8	string		8SVX		audio/x-aiff	

# Creative Labs AUDIO stuff
#					Standard MIDI data
0	string	MThd			audio/unknown	
#>9 	byte	>0			(format %d)
#>11	byte	>1			using %d channels
#					Creative Music (CMF) data
0	string	CTMF			audio/unknown	
#					SoundBlaster instrument data
0	string	SBI			audio/unknown	
#					Creative Labs voice data
0	string	Creative\ Voice\ File	audio/unknown	
## is this next line right?  it came this way...
#>19	byte	0x1A
#>23	byte	>0			- version %d
#>22	byte	>0			\b.%d

# [GRR 950115:  is this also Creative Labs?  Guessing that first line
#  should be string instead of unknown-endian long...]
#0	long		0x4e54524b	MultiTrack sound data
#0	string		NTRK		MultiTrack sound data
#>4	long		x		- version %ld

# Microsoft WAVE format (*.wav)
# [GRR 950115:  probably all of the shorts and longs should be leshort/lelong]
#					Microsoft RIFF
0	string		RIFF		audio/unknown
#					- WAVE format
>8	string		WAVE		audio/x-wav
# MPEG audio.
0   beshort&0xfff0  0xfff0  audio/mpeg
# C64 SID Music files, from Linus Walleij <triad@df.lth.se>
0   string      PSID        audio/prs.sid

#------------------------------------------------------------------------------
# c-lang:  file(1) magic for C programs or various scripts
#

# XPM icons (Greg Roelofs, newt@uchicago.edu)
# ideally should go into "images", but entries below would tag XPM as C source
0	string		/*\ XPM		image/x-xbm	7bit

# this first will upset you if you're a PL/1 shop... (are there any left?)
# in which case rm it; ascmagic will catch real C programs
#					C or REXX program text
0	string		/*		text/plain
#					C++ program text
0	string		//		text/plain

#------------------------------------------------------------------------------
# compress:  file(1) magic for pure-compression formats (no archives)
#
# compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, whap, etc.
#
# Formats for various forms of compressed data
# Formats for "compress" proper have been moved into "compress.c",
# because it tries to uncompress it to figure out what's inside.

# standard unix compress
0	string		\037\235	application/octet-stream	x-compress

# gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver)
0       string          \037\213        application/octet-stream	x-gzip

# According to gzip.h, this is the correct byte order for packed data.
0	string		\037\036	application/octet-stream
#
# This magic number is byte-order-independent.
#
0	short		017437		application/octet-stream

# XXX - why *two* entries for "compacted data", one of which is
# byte-order independent, and one of which is byte-order dependent?
#
# compacted data
0	short		0x1fff		application/octet-stream
0	string		\377\037	application/octet-stream
# huf output
0	short		0145405		application/octet-stream

# Squeeze and Crunch...
# These numbers were gleaned from the Unix versions of the programs to
# handle these formats.  Note that I can only uncrunch, not crunch, and
# I didn't have a crunched file handy, so the crunch number is untested.
#				Keith Waclena <keith@cerberus.uchicago.edu>
#0	leshort		0x76FF		squeezed data (CP/M, DOS)
#0	leshort		0x76FE		crunched data (CP/M, DOS)

# Freeze
#0	string		\037\237	Frozen file 2.1
#0	string		\037\236	Frozen file 1.0 (or gzip 0.5)

# lzh?
#0	string		\037\240	LZH compressed data

#------------------------------------------------------------------------------
# frame:  file(1) magic for FrameMaker files
#
# This stuff came on a FrameMaker demo tape, most of which is
# copyright, but this file is "published" as witness the following:
#
0	string		\<MakerFile	application/x-frame
0	string		\<MIFFile	application/x-frame
0	string		\<MakerDictionary	application/x-frame
0	string		\<MakerScreenFon	application/x-frame
0	string		\<MML		application/x-frame
0	string		\<Book		application/x-frame
0	string		\<Maker		application/x-frame

#------------------------------------------------------------------------------
# html:  file(1) magic for HTML (HyperText Markup Language) docs
#
# from Daniel Quinlan <quinlan@yggdrasil.com>
# and Anna Shergold <anna@inext.co.uk>
#
0   string      \<!DOCTYPE\ HTML    text/html
0   string      \<!doctype\ html    text/html
0   string      \<HEAD      text/html
0   string      \<head      text/html
0   string      \<TITLE     text/html
0   string      \<title     text/html
0   string      \<html      text/html
0   string      \<HTML      text/html
0   string      \<!--       text/html
0   string      \<h1        text/html
0   string      \<H1        text/html

# XML eXtensible Markup Language, from Linus Walleij <triad@df.lth.se>
0   string      \<?xml      text/xml

#------------------------------------------------------------------------------
# images:  file(1) magic for image formats (see also "c-lang" for XPM bitmaps)
#
# originally from jef@helios.ee.lbl.gov (Jef Poskanzer),
# additions by janl@ifi.uio.no as well as others. Jan also suggested
# merging several one- and two-line files into here.
#
# XXX - byte order for GIF and TIFF fields?
# [GRR:  TIFF allows both byte orders; GIF is probably little-endian]
#

# [GRR:  what the hell is this doing in here?]
#0	string		xbtoa		btoa'd file

# PBMPLUS
#					PBM file
0	string		P1		image/x-portable-bitmap	7bit
#					PGM file
0	string		P2		image/x-portable-greymap	7bit
#					PPM file
0	string		P3		image/x-portable-pixmap	7bit
#					PBM "rawbits" file
0	string		P4		image/x-portable-bitmap
#					PGM "rawbits" file
0	string		P5		image/x-portable-greymap
#					PPM "rawbits" file
0	string		P6		image/x-portable-pixmap

# NIFF (Navy Interchange File Format, a modification of TIFF)
# [GRR:  this *must* go before TIFF]
0	string		IIN1		image/x-niff

# TIFF and friends
#					TIFF file, big-endian
0	string		MM		image/tiff
#					TIFF file, little-endian
0	string		II		image/tiff

# possible GIF replacements; none yet released!
# (Greg Roelofs, newt@uchicago.edu)
#
# GRR 950115:  this was mine ("Zip GIF"):
#					ZIF image (GIF+deflate alpha)
0	string		GIF94z		image/unknown
#
# GRR 950115:  this is Jeremy Wohl's Free Graphics Format (better):
#					FGF image (GIF+deflate beta)
0	string		FGF95a		image/unknown
#
# GRR 950115:  this is Thomas Boutell's Portable Bitmap Format proposal
# (best; not yet implemented):
#					PBF image (deflate compression)
0	string		PBF		image/unknown

# GIF
0	string		GIF		image/gif

# JPEG images
0	beshort		0xffd8		image/jpeg

# PC bitmaps (OS/2, Windoze BMP files)  (Greg Roelofs, newt@uchicago.edu)
0	string		BM		image/bmp
#>14	byte		12		(OS/2 1.x format)
#>14	byte		64		(OS/2 2.x format)
#>14	byte		40		(Windows 3.x format)
#0	string		IC		icon
#0	string		PI		pointer
#0	string		CI		color icon
#0	string		CP		color pointer
#0	string		BA		bitmap array


#------------------------------------------------------------------------------
# lisp:  file(1) magic for lisp programs
#
# various lisp types, from Daniel Quinlan (quinlan@yggdrasil.com)
0	string	;;			text/plain	8bit
# Emacs 18 - this is always correct, but not very magical.
0	string	\012(			application/x-elc
# Emacs 19
0	string	;ELC\023\000\000\000	application/x-elc

#------------------------------------------------------------------------------
# mail.news:  file(1) magic for mail and news
#
# There are tests to ascmagic.c to cope with mail and news.
0	string		Relay-Version: 	message/rfc822	7bit
0	string		#!\ rnews	message/rfc822	7bit
0	string		N#!\ rnews	message/rfc822	7bit
0	string		Forward\ to 	message/rfc822	7bit
0	string		Pipe\ to 	message/rfc822	7bit
0	string		Return-Path:	message/rfc822	7bit
0	string		Path:		message/news	8bit
0	string		Xref:		message/news	8bit
0	string		From:		message/rfc822	7bit
0	string		Article 	message/news	8bit
#------------------------------------------------------------------------------
# msword: file(1) magic for MS Word files
#
# Contributor claims:
# Reversed-engineered MS Word magic numbers
#

0	string		\376\067\0\043			application/msword
0	string		\333\245-\0\0\0			application/msword

# disable this one because it applies also to other
# Office/OLE documents for which msword is not correct. See PR#2608.
#0	string		\320\317\021\340\241\261	application/msword



#------------------------------------------------------------------------------
# printer:  file(1) magic for printer-formatted files
#

# PostScript
0	string		%!		application/postscript
0	string		\004%!		application/postscript

# Acrobat
# (due to clamen@cs.cmu.edu)
0	string		%PDF-		application/pdf

#------------------------------------------------------------------------------
# sc:  file(1) magic for "sc" spreadsheet
#
38	string		Spreadsheet	application/x-sc

#------------------------------------------------------------------------------
# tex:  file(1) magic for TeX files
#
# XXX - needs byte-endian stuff (big-endian and little-endian DVI?)
#
# From <conklin@talisman.kaleida.com>

# Although we may know the offset of certain text fields in TeX DVI
# and font files, we can't use them reliably because they are not
# zero terminated. [but we do anyway, christos]
0	string		\367\002	application/x-dvi
#0	string		\367\203	TeX generic font data
#0	string		\367\131	TeX packed font data
#0	string		\367\312	TeX virtual font data
#0	string		This\ is\ TeX,	TeX transcript text	
#0	string		This\ is\ METAFONT,	METAFONT transcript text

# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data.  The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
#2	string		\000\021	TeX font metric data
#2	string		\000\022	TeX font metric data
#>34	string		>\0		(%s)

# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
#0	string		\\input\ texinfo	Texinfo source text
#0	string		This\ is\ Info\ file	GNU Info text

# correct TeX magic for Linux (and maybe more)
# from Peter Tobias (tobias@server.et-inf.fho-emden.de)
#
0	leshort		0x02f7		application/x-dvi

# RTF - Rich Text Format
0	string		{\\rtf		application/rtf

#------------------------------------------------------------------------------
# animation:  file(1) magic for animation/movie formats
#
# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
#						MPEG file
0	string		\000\000\001\263	video/mpeg
#
# The contributor claims:
#   I couldn't find a real magic number for these, however, this
#   -appears- to work.  Note that it might catch other files, too,
#   so BE CAREFUL!
#
# Note that title and author appear in the two 20-byte chunks
# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
# 255 (hex FF)! DL format SUCKS BIG ROCKS.
#
#						DL file version 1 , medium format (160x100, 4 images/screen)
0	byte		1			video/unknown
0	byte		2			video/unknown
# Quicktime video, from Linus Walleij <triad@df.lth.se>
# from Apple quicktime file format documentation.
4   string      moov        video/quicktime
4   string      mdat        video/quicktime

# PNG [Portable Network Graphics, or "PNG's Not GIF"] images
#
# 137 P N G \r \n ^Z \n [4-byte length] H E A D [HEAD data] [HEAD crc] ...
0   string      \211PNG\015      image/png
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             